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

Unified Diff: src/isolate.cc

Issue 2061623002: Introduce JIT code events dispatcher for the isolate. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 6 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
« no previous file with comments | « src/isolate.h ('k') | src/log.h » ('j') | src/log-inl.h » ('J')
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 035a626acd2eff1ba4439ae8b322a2fe3ba93af6..6578ce16fc138b294f6bf90676c469b2079141f6 100644
--- a/src/isolate.cc
+++ b/src/isolate.cc
@@ -1869,6 +1869,7 @@ Isolate::Isolate(bool enable_serializer)
is_tail_call_elimination_enabled_(true),
cpu_profiler_(NULL),
heap_profiler_(NULL),
+ code_event_dispatcher_(new CodeEventDispatcher()),
function_entry_hook_(NULL),
deferred_handles_head_(NULL),
optimizing_compile_dispatcher_(NULL),
@@ -2026,6 +2027,8 @@ void Isolate::Deinit() {
delete cpu_profiler_;
cpu_profiler_ = NULL;
+ code_event_dispatcher_.reset();
Yang 2016/06/14 13:38:12 Is there an advantage for using unique_ptr over us
alph 2016/06/14 16:38:20 It better depicts ownership semantics used here, a
+
delete root_index_map_;
root_index_map_ = NULL;
« no previous file with comments | « src/isolate.h ('k') | src/log.h » ('j') | src/log-inl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698