|
@@ -86,7 +86,7 @@ def create_function(
|
|
|
tree_ir.LoadLocalInstruction(jit_runtime.KWARGS_PARAMETER_NAME),
|
|
|
tree_ir.LiteralInstruction('task_root')),
|
|
|
jit_runtime.LOCALS_EDGE_NAME))
|
|
|
- for (key, val) in param_dict.items():
|
|
|
+ for (key, val) in list(param_dict.items()):
|
|
|
arg_ptr = tree_ir.create_new_local_node(
|
|
|
body_param_dict[key],
|
|
|
tree_ir.LoadLocalInstruction(jit_runtime.LOCALS_NODE_NAME))
|
|
@@ -727,7 +727,7 @@ def compile_function_body_interpret(jit, function_name, body_id, task_root, head
|
|
|
"""Create a function that invokes the interpreter on the given function."""
|
|
|
(parameter_ids, parameter_list, _), = yield [
|
|
|
("CALL_ARGS", [jit.jit_signature, (body_id,)])]
|
|
|
- param_dict = dict(zip(parameter_ids, parameter_list))
|
|
|
+ param_dict = dict(list(zip(parameter_ids, parameter_list)))
|
|
|
body_bytecode, = yield [("CALL_ARGS", [jit.jit_parse_bytecode, (body_id,)])]
|
|
|
def __interpret_function(**kwargs):
|
|
|
if header is not None:
|
|
@@ -737,7 +737,7 @@ def compile_function_body_interpret(jit, function_name, body_id, task_root, head
|
|
|
|
|
|
local_args = {}
|
|
|
inner_kwargs = dict(kwargs)
|
|
|
- for param_id, name in param_dict.items():
|
|
|
+ for param_id, name in list(param_dict.items()):
|
|
|
local_args[param_id] = inner_kwargs[name]
|
|
|
del inner_kwargs[name]
|
|
|
|
|
@@ -754,8 +754,8 @@ def compile_function_body_baseline(
|
|
|
"""Have the baseline JIT compile the function with the given name and body id."""
|
|
|
(parameter_ids, parameter_list, _), = yield [
|
|
|
("CALL_ARGS", [jit.jit_signature, (body_id,)])]
|
|
|
- param_dict = dict(zip(parameter_ids, parameter_list))
|
|
|
- body_param_dict = dict(zip(parameter_ids, [p + "_ptr" for p in parameter_list]))
|
|
|
+ param_dict = dict(list(zip(parameter_ids, parameter_list)))
|
|
|
+ body_param_dict = dict(list(zip(parameter_ids, [p + "_ptr" for p in parameter_list])))
|
|
|
body_bytecode, = yield [("CALL_ARGS", [jit.jit_parse_bytecode, (body_id,)])]
|
|
|
state = bytecode_to_tree.AnalysisState(
|
|
|
jit, body_id, task_root, body_param_dict,
|
|
@@ -782,7 +782,7 @@ def compile_function_body_fast(jit, function_name, body_id, _):
|
|
|
"""Have the fast JIT compile the function with the given name and body id."""
|
|
|
(parameter_ids, parameter_list, _), = yield [
|
|
|
("CALL_ARGS", [jit.jit_signature, (body_id,)])]
|
|
|
- param_dict = dict(zip(parameter_ids, parameter_list))
|
|
|
+ param_dict = dict(list(zip(parameter_ids, parameter_list)))
|
|
|
body_bytecode, = yield [("CALL_ARGS", [jit.jit_parse_bytecode, (body_id,)])]
|
|
|
bytecode_analyzer = bytecode_to_cfg.AnalysisState(jit, function_name, param_dict)
|
|
|
bytecode_analyzer.analyze(body_bytecode)
|