Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 23e8c571caaea1140645b5bf2daa577b41a9d04f..101361db0dab0248d7f7cc090e973cd8c49bf0db 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -4263,6 +4263,15 @@ bool v8::V8::SetFunctionEntryHook(FunctionEntryHook entry_hook) { |
} |
+void v8::V8::SetJitCodeEventHandler( |
+ JitCodeEventOptions options, JitCodeEventHandler event_handler) { |
+ i::Isolate* isolate = i::Isolate::Current(); |
+ // Ensure that logging is initialized for our isolate. |
+ isolate->InitializeLoggingAndCounters(); |
+ isolate->logger()->SetCodeEventHandler(options, event_handler); |
+} |
+ |
+ |
bool v8::V8::Dispose() { |
i::Isolate* isolate = i::Isolate::Current(); |
if (!ApiCheck(isolate != NULL && isolate->IsDefaultIsolate(), |