Commit 8d88b67e authored by Stefan Marr's avatar Stefan Marr

Calling conventions are now completely encoded in the frame

Signed-off-by: default avatarStefan Marr <>
parent 7355bbba
......@@ -136,6 +136,11 @@ class Frame(object):
for i in range(0, num_args):
self._stack[i] = frame.get_stack_element(num_args - 1 - i)
def pop_old_arguments_and_push_result(self, method, result):
num_args = method.get_number_of_arguments()
self._stack_pointer = self._stack_pointer - num_args
def print_stack_trace(self, bytecode_index):
# Print a stack trace starting in this frame
from som.vm.universe import std_print, std_println
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