[pypy-commit] lang-js default: added missing emit functions

stepahn noreply at buildbot.pypy.org
Fri Jun 3 14:48:16 CEST 2011


Author: Stephan <stephan at stzal.com>
Branch: 
Changeset: r93:e431aad1b694
Date: 2011-06-03 14:58 +0200
http://bitbucket.org/pypy/lang-js/changeset/e431aad1b694/

Log:	added missing emit functions

diff --git a/js/jscode.py b/js/jscode.py
--- a/js/jscode.py
+++ b/js/jscode.py
@@ -123,7 +123,11 @@
         return opcode
     emit._annspecialcase_ = 'specialize:arg(1)'
 
+    def emit_str(self, s):
+        return self.emit('LOAD_STRINGCONSTANT', s)
 
+    def emit_int(self, i):
+        return self.emit('LOAD_INTCONSTANT', i)
 
     def unpop(self):
         if self.opcodes and isinstance(self.opcodes[-1], POP):


More information about the pypy-commit mailing list