[pypy-commit] lang-smalltalk default: moved the s_method retrival in c_loop outside of the loop
lwassermann
noreply at buildbot.pypy.org
Wed May 15 20:31:23 CEST 2013
Author: Lars Wassermann <lars.wassermann at gmail.com>
Branch:
Changeset: r393:293ebf9ed46a
Date: 2013-05-15 18:28 +0000
http://bitbucket.org/pypy/lang-smalltalk/changeset/293ebf9ed46a/
Log: moved the s_method retrival in c_loop outside of the loop
diff --git a/spyvm/interpreter.py b/spyvm/interpreter.py
--- a/spyvm/interpreter.py
+++ b/spyvm/interpreter.py
@@ -89,9 +89,9 @@
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,
More information about the pypy-commit
mailing list