WARNING! Access to this system is limited to authorised users only.
Unauthorised users may be subject to prosecution.
Unauthorised access to this system is a criminal offence under Australian law (Federal Crimes Act 1914 Part VIA)
It is a criminal offence to:
(1) Obtain access to data without authority. -Penalty 2 years imprisonment.
(2) Damage, delete, alter or insert data without authority. -Penalty 10 years imprisonment.
User activity is monitored and recorded. Anyone using this system expressly consents to such monitoring and recording.

To protect your data, the CISO officer has suggested users to enable 2FA as soon as possible.
Currently 2.7% of users enabled 2FA.

Commit 66acd12d authored by Stefan Marr's avatar Stefan Marr
Browse files

Need to make sure is_invokable is consistently a static method for RPython


Signed-off-by: default avatarStefan Marr <git@stefan-marr.de>
parent 8e079882
......@@ -48,7 +48,8 @@ class AbstractObject(object):
def get_class(self, universe):
raise NotImplementedError("Subclasses need to implement get_class(universe).")
def is_invokable(self):
@staticmethod
def is_invokable():
return False
def __str__(self):
......
......@@ -67,8 +67,10 @@ class Method(AbstractObject):
# Make sure all nested invokables have the same holder
for i in range(0, len(self._literals)):
if self._literals[i].is_invokable():
self._literals[i].set_holder(value)
obj = self._literals[i]
assert isinstance(obj, AbstractObject)
if obj.is_invokable():
obj.set_holder(value)
# XXX this means that the JIT doesn't see changes to the constants
@jit.elidable_promote('all')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment