Commit 402ca7e4 by Stefan Marr

Minor refactoring

Signed-off-by: Stefan Marr <git@stefan-marr.de>
1 parent f93fb503
......@@ -115,7 +115,7 @@ class Interpreter(object):
# Compute the receiver
receiver = frame.get_stack_element(num_args - 1)
receiver.send_does_not_understand(frame, signature, self._universe, self)
receiver.send_does_not_understand(frame, signature, self)
def _do_return_local(self, frame):
return frame.top()
......@@ -297,8 +297,9 @@ class Interpreter(object):
# Compute the receiver
receiver = frame.get_stack_element(num_args - 1)
receiver.send_does_not_understand(frame, selector, self._universe, self)
receiver.send_does_not_understand(frame, selector, self)
def get_printable_location(bytecode_index, interp, method):
from som.vmobjects.method import Method
from som.interpreter.bytecodes import bytecode_as_str
......@@ -324,6 +325,7 @@ jitdriver = jit.JitDriver(
should_unroll_one_iteration = lambda bytecode_index, inter, method: True)
#reds=['tape'])
def jitpolicy(driver):
from rpython.jit.codewriter.policy import JitPolicy
return JitPolicy()
......@@ -20,7 +20,9 @@ class AbstractObject(object):
# Invoke the invokable
invokable.invoke(frame, interpreter)
def send_does_not_understand(self, frame, selector, universe, interpreter):
def send_does_not_understand(self, frame, selector, interpreter):
universe = interpreter.get_universe()
# Compute the number of arguments
number_of_arguments = selector.get_number_of_signature_arguments()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!