| Index: src/interpreter/interpreter.cc
|
| diff --git a/src/interpreter/interpreter.cc b/src/interpreter/interpreter.cc
|
| index 53c610a218758476fedd80d8c59471ca19d9d926..32955a1bdad223b0726b43c4e224c06bc8c15942 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_));
|
| + }
|
| +
|
| #define GENERATE_CODE(Name, ...) \
|
| { \
|
| InterpreterAssembler assembler(isolate_, &zone, Bytecode::k##Name); \
|
| @@ -111,7 +115,7 @@ bool Interpreter::MakeBytecode(CompilationInfo* info) {
|
| }
|
|
|
| bool Interpreter::IsDispatchTableInitialized() {
|
| - if (FLAG_trace_ignition) {
|
| + if (FLAG_trace_ignition || FLAG_ignition_count_handler_dispatches) {
|
| // Regenerate table to add bytecode tracing operations.
|
| return false;
|
| }
|
|
|