Chromium Code Reviews| Index: src/interpreter/interpreter.cc |
| diff --git a/src/interpreter/interpreter.cc b/src/interpreter/interpreter.cc |
| index 28ff9d571cb464a7849bbfb3dfbe38b0e5a33fb5..1440302384ae73fd85c067b0c45667e836f1befa 100644 |
| --- a/src/interpreter/interpreter.cc |
| +++ b/src/interpreter/interpreter.cc |
| @@ -32,6 +32,10 @@ void Interpreter::Initialize() { |
| Zone zone; |
| HandleScope scope(isolate_); |
| + if (FLAG_ignition_count_handler_dispatches) { |
| + memset(handlers_dispatch_counters_, 0, sizeof(handlers_dispatch_counters_)); |
| + } |
| + |
| // Generate bytecode handlers for all bytecodes and scales. |
| for (OperandScale operand_scale = OperandScale::kSingle; |
| operand_scale <= OperandScale::kMaxValid; |
| @@ -154,7 +158,8 @@ bool Interpreter::MakeBytecode(CompilationInfo* info) { |
| } |
| bool Interpreter::IsDispatchTableInitialized() { |
| - if (FLAG_trace_ignition || FLAG_trace_ignition_codegen) { |
| + if (FLAG_trace_ignition || FLAG_trace_ignition_codegen || |
| + FLAG_ignition_count_handler_dispatches) { |
| // Regenerate table to add bytecode tracing operations |
| // or to print the assembly code generated by TurboFan. |
|
rmcilroy
2016/04/05 10:00:46
Please update this comment
Stefano Sanfilippo
2016/04/05 14:01:46
Done.
|
| return false; |