[pypy-commit] lang-smalltalk storage: Fixed whitespace in interpreter.py :(
anton_gulenko
noreply at buildbot.pypy.org
Wed May 14 14:51:05 CEST 2014
Author: Anton Gulenko <anton.gulenko at googlemail.com>
Branch: storage
Changeset: r819:bf427e482576
Date: 2014-05-14 13:15 +0200
http://bitbucket.org/pypy/lang-smalltalk/changeset/bf427e482576/
Log: Fixed whitespace in interpreter.py :(
diff --git a/spyvm/interpreter.py b/spyvm/interpreter.py
--- a/spyvm/interpreter.py
+++ b/spyvm/interpreter.py
@@ -85,7 +85,7 @@
except ProcessSwitch, p:
if self.trace:
print "====== Switched process from: %s" % s_new_context.short_str()
- print "====== to: %s " % p.s_new_context.short_str()
+ print "====== to: %s " % p.s_new_context.short_str()
s_new_context = p.s_new_context
def loop_bytecodes(self, s_context, may_context_switch=True):
@@ -126,20 +126,20 @@
self.loop_bytecodes(s_new_frame, may_context_switch)
finally:
self.remaining_stack_depth += 1
-
- def step(self, context):
- bytecode = context.fetch_next_bytecode()
- for entry in UNROLLING_BYTECODE_RANGES:
- if len(entry) == 2:
- bc, methname = entry
- if bytecode == bc:
- return getattr(context, methname)(self, bytecode)
- else:
- start, stop, methname = entry
- if start <= bytecode <= stop:
- return getattr(context, methname)(self, bytecode)
- assert 0, "unreachable"
-
+
+ def step(self, context):
+ bytecode = context.fetch_next_bytecode()
+ for entry in UNROLLING_BYTECODE_RANGES:
+ if len(entry) == 2:
+ bc, methname = entry
+ if bytecode == bc:
+ return getattr(context, methname)(self, bytecode)
+ else:
+ start, stop, methname = entry
+ if start <= bytecode <= stop:
+ return getattr(context, methname)(self, bytecode)
+ assert 0, "unreachable"
+
# ============== Methods for handling user interrupts ==============
def jitted_check_for_interrupt(self, s_frame):
More information about the pypy-commit
mailing list