[pypy-commit] lang-js default: declare more immutable fields
stepahn
noreply at buildbot.pypy.org
Tue Jun 14 20:09:28 CEST 2011
Author: Stephan <stephan at stzal.com>
Branch:
Changeset: r100:ed636a4d8c43
Date: 2011-06-14 20:07 +0200
http://bitbucket.org/pypy/lang-js/changeset/ed636a4d8c43/
Log: declare more immutable fields
diff --git a/js/opcodes.py b/js/opcodes.py
--- a/js/opcodes.py
+++ b/js/opcodes.py
@@ -80,6 +80,7 @@
return 'LOAD_FLOATCONSTANT %s' % (self.w_floatvalue.floatval,)
class LOAD_STRINGCONSTANT(Opcode):
+ _immutable_fields_ = ['w_stringvalue']
def __init__(self, value):
self.w_stringvalue = W_String(value)
@@ -141,6 +142,7 @@
return 'LOAD_ARRAY %d' % (self.counter,)
class LOAD_LIST(Opcode):
+ _immutable_fields_ = ['counter']
def __init__(self, counter):
self.counter = counter
@@ -632,6 +634,7 @@
stack.append(newbool(obj.Delete(what)))
class LOAD_LOCAL(Opcode):
+ _immutable_fields_ = ['local']
def __init__(self, local):
self.local = local
@@ -642,6 +645,7 @@
return 'LOAD_LOCAL %d' % (self.local,)
class STORE_LOCAL(Opcode):
+ _immutable_fields_ = ['local']
def __init__(self, local):
self.local = local
More information about the pypy-commit
mailing list