Commit d71c1caf authored by Marius Wachtler's avatar Marius Wachtler

bjit: don't generate a 'getGlobal' call for 'None'

parent 1b9d802e
......@@ -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