Просмотр исходного кода

Remove default limit on number of instructions in JIT

jonathanvdc 8 лет назад
Родитель
Сommit
d35808ba4f
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      kernel/modelverse_jit/jit.py

+ 2 - 2
kernel/modelverse_jit/jit.py

@@ -85,7 +85,7 @@ class JitCompilationFailedException(Exception):
 
 class ModelverseJit(object):
     """A high-level interface to the modelverse JIT compiler."""
-    def __init__(self, max_instructions=100, compiled_function_lookup=None):
+    def __init__(self, max_instructions=None, compiled_function_lookup=None):
         self.todo_entry_points = set()
         self.no_jit_entry_points = set()
         self.jitted_entry_points = {}
@@ -317,7 +317,7 @@ class ModelverseJit(object):
         # Extract the compiled function from the JIT global state.
         compiled_function = self.jit_globals[function_name]
 
-        print(constructed_function)
+        # print(constructed_function)
         raise primitive_functions.PrimitiveFinished(compiled_function)
 
 class AnalysisState(object):