Commit dcee23b6 authored by Stefan Marr's avatar Stefan Marr

Changed interpreter dispatch table to use a tuple instead of a list

RPython complained about not being able to determine a unique name for the function pointers, using a tuple doesn't cause this warning anymore.
Signed-off-by: default avatarStefan Marr <git@stefan-marr.de>
parent 3a4962cf
......@@ -10,7 +10,7 @@ class Interpreter(object):
def __init__(self, universe):
self._universe = universe
self._frame = None
self._dispatch_table = [self._do_halt,
self._dispatch_table = (self._do_halt,
self._do_dup,
self._do_push_local,
self._do_push_argument,
......@@ -25,7 +25,7 @@ class Interpreter(object):
self._do_send,
self._do_super_send,
self._do_return_local,
self._do_return_non_local]
self._do_return_non_local)
def _do_halt(self, bytecode_index):
raise InterpreterHalt()
......
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