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

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: Remove unused bailout reason, rebase on master. Created 4 years, 8 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 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;

Powered by Google App Engine
This is Rietveld 408576698