Commit 97c47267 authored by Kevin Modzelewski's avatar Kevin Modzelewski

Merge pull request #849 from undingen/bjit_none

bjit: don't generate a 'getGlobal' call for 'None'
parents 99f364e5 d71c1caf
......@@ -314,6 +314,8 @@ RewriterVar* JitFragmentWriter::emitGetClsAttr(RewriterVar* obj, BoxedString* s)
}
RewriterVar* JitFragmentWriter::emitGetGlobal(Box* global, BoxedString* s) {
if (s->s() == "None")
return imm(None);
return emitPPCall((void*)getGlobal, { imm(global), imm(s) }, 2, 512);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment