Author: Stephan <[email protected]>
Branch:
Changeset: r303:2e05247c816b
Date: 2012-09-04 16:05 +0200
http://bitbucket.org/pypy/lang-js/changeset/2e05247c816b/
Log: promote constant global objects
diff --git a/js/jsobj.py b/js/jsobj.py
--- a/js/jsobj.py
+++ b/js/jsobj.py
@@ -133,8 +133,10 @@
raise JsTypeError(u'W_Null.ToObject')
w_Undefined = W_Undefined()
+jit.promote(w_Undefined)
w_Null = W_Null()
+jit.promote(w_Null)
class PropertyIdenfidier(object):
@@ -1202,8 +1204,10 @@
return False
w_True = W_Boolean(True)
+jit.promote(w_True)
w_False = W_Boolean(False)
+jit.promote(w_False)
def newbool(val):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit