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

Unified Diff: src/d8.cc

Issue 381883005: Only install JitCodeEventHandler for GDB JIT if requested. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/d8.cc
diff --git a/src/d8.cc b/src/d8.cc
index 3bd38bea5609ce4b04ebf392cc162a5360b03a7c..0a0cfa8bb7717f4734dcb47548e020af3e7bacd4 100644
--- a/src/d8.cc
+++ b/src/d8.cc
@@ -1582,8 +1582,10 @@ int Shell::Main(int argc, char* argv[]) {
Isolate::Scope scope(isolate);
Initialize(isolate);
#ifdef ENABLE_GDB_JIT_INTERFACE
- v8::V8::SetJitCodeEventHandler(v8::kJitCodeEventDefault,
- i::GDBJITInterface::EventHandler);
+ if (i::FLAG_gdbjit) {
+ v8::V8::SetJitCodeEventHandler(v8::kJitCodeEventDefault,
+ i::GDBJITInterface::EventHandler);
+ }
#endif
#ifdef ENABLE_VTUNE_JIT_INTERFACE
vTune::InitializeVtuneForV8();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698