Commits

Lars Wassermann committed 293ebf9

moved the s_method retrival in c_loop outside of the loop

Comments (0)

Files changed (1)

spyvm/interpreter.py

         old_pc = 0
         if not jit.we_are_jitted() and may_context_switch:
             self.quick_check_for_interrupt(s_context)
+        method = s_context.s_method()
         while True:
             pc = s_context.pc()
-            method = s_context.s_method()
             if pc < old_pc:
                 if jit.we_are_jitted():
                     self.quick_check_for_interrupt(s_context,