Explorar el Código

Remove default limit on number of instructions in JIT

jonathanvdc hace 8 años
padre
commit
d35808ba4f
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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):