Commit cad49c18 authored by Kevin Modzelewski's avatar Kevin Modzelewski

Have the 'ENABLE_REOPT' flag apply to the interpreter as well

parent 994269dc
......@@ -1081,7 +1081,7 @@ const void* interpreter_instr_addr = (void*)&ASTInterpreter::execute;
Box* astInterpretFunction(CompiledFunction* cf, int nargs, Box* closure, Box* generator, Box* arg1, Box* arg2,
Box* arg3, Box** args) {
if (unlikely(cf->times_called > REOPT_THRESHOLD)) {
if (unlikely(cf->times_called > REOPT_THRESHOLD && ENABLE_REOPT)) {
CompiledFunction* optimized = reoptCompiledFuncInternal(cf);
if (closure && generator)
return optimized->closure_generator_call((BoxedClosure*)closure, (BoxedGenerator*)generator, arg1, arg2,
......
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