Index: src/interpreter/interpreter.cc |
diff --git a/src/interpreter/interpreter.cc b/src/interpreter/interpreter.cc |
index 70f841656c41bad410e69647cc0306972ca18f8a..9756020ecf9992aeb9b348fa693e5712b8dc9080 100644 |
--- a/src/interpreter/interpreter.cc |
+++ b/src/interpreter/interpreter.cc |
@@ -49,6 +49,13 @@ void Interpreter::IterateDispatchTable(ObjectVisitor* v) { |
&dispatch_table_[0] + kDispatchTableSize); |
} |
+// static |
+int Interpreter::InterruptBudget() { |
+ // TODO(ignition): Tune code size multiplier. |
+ const int kCodeSizeMultiplier = 32; |
+ return FLAG_interrupt_budget * kCodeSizeMultiplier; |
+} |
+ |
bool Interpreter::MakeBytecode(CompilationInfo* info) { |
if (FLAG_print_bytecode || FLAG_print_source || FLAG_print_ast) { |
OFStream os(stdout); |