[pypy-svn] r55544 - pypy/branch/js-refactoring/pypy/lang/js
santagada at codespeak.net
santagada at codespeak.net
Wed Jun 4 04:31:22 CEST 2008
Author: santagada
Date: Wed Jun 4 04:31:06 2008
New Revision: 55544
Modified:
pypy/branch/js-refactoring/pypy/lang/js/jscode.py
Log:
emit needs to be specialized, and popped needs to be set before
Modified: pypy/branch/js-refactoring/pypy/lang/js/jscode.py
==============================================================================
--- pypy/branch/js-refactoring/pypy/lang/js/jscode.py (original)
+++ pypy/branch/js-refactoring/pypy/lang/js/jscode.py Wed Jun 4 04:31:06 2008
@@ -16,12 +16,12 @@
pass
def run_bytecode(opcodes, ctx, stack, check_stack=True, retlast=False):
+ popped = False
if retlast:
if opcodes[-1] == 'POP':
opcodes.pop()
popped = True
- else:
- popped = False
+
i = 0
to_pop = 0
try:
@@ -133,7 +133,7 @@
self.opcodes.append(opcode)
return opcode
raise ValueError("Unknown opcode %s" % (operation,))
- #emit._annspecialcase_ = 'specialize:arg(1)'
+ emit._annspecialcase_ = 'specialize:arg(1)'
def run(self, ctx, check_stack=True, retlast=False):
if self.has_labels:
More information about the Pypy-commit
mailing list