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

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

Signed-off-by: default avatarStefan Marr <>
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):
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():
obj = self._literals[i]
assert isinstance(obj, AbstractObject)
if obj.is_invokable():
# XXX this means that the JIT doesn't see changes to the constants
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment