Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(731)

Unified Diff: src/interpreter/interpreter.cc

Issue 1817033002: [Interpreter] Add dispatch counters for each bytecode. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@fix-abort
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
}

Powered by Google App Engine
This is Rietveld 408576698