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

Unified Diff: src/isolate.cc

Issue 1728593002: [Interpreter] Add support for cpu profiler logging. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 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
« src/isolate.h ('K') | « src/isolate.h ('k') | src/log.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/isolate.cc
diff --git a/src/isolate.cc b/src/isolate.cc
index 8eb8b71b39347918cf32ef3c7127e410a3340bd4..8120ab7f2a7c7c92f2f2a27267bc00ae9081b1f7 100644
--- a/src/isolate.cc
+++ b/src/isolate.cc
@@ -1802,6 +1802,10 @@ Isolate::Isolate(bool enable_serializer)
stress_deopt_count_(0),
virtual_handler_register_(NULL),
virtual_slot_register_(NULL),
+ interpreter_entry_trampoline_start_(NULL),
+ interpreter_entry_trampoline_end_(NULL),
+ interpreter_bytecode_dispatch_start_(NULL),
+ interpreter_bytecode_dispatch_end_(NULL),
next_optimization_id_(0),
js_calls_from_api_counter_(0),
#if TRACE_MAPS
@@ -2227,6 +2231,15 @@ bool Isolate::Init(Deserializer* des) {
if (FLAG_ignition) {
interpreter_->Initialize();
+
+ Handle<Code> entry_trampoine = builtins()->InterpreterEntryTrampoline();
+ interpreter_entry_trampoline_start_ = entry_trampoine->instruction_start();
+ interpreter_entry_trampoline_end_ = entry_trampoine->instruction_end();
+ Handle<Code> bytecode_dispatch =
+ builtins()->InterpreterEnterBytecodeDispatch();
+ interpreter_bytecode_dispatch_start_ =
+ bytecode_dispatch->instruction_start();
+ interpreter_bytecode_dispatch_end_ = bytecode_dispatch->instruction_end();
}
// Finish initialization of ThreadLocal after deserialization is done.
« src/isolate.h ('K') | « src/isolate.h ('k') | src/log.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698