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

Unified Diff: src/code-stubs.cc

Issue 10795074: Add a new API V8::SetJitCodeEventHandler to push code name and location to users such as profilers. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Ready for review Created 8 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
Index: src/code-stubs.cc
diff --git a/src/code-stubs.cc b/src/code-stubs.cc
index f672d33e2124cf880c599cc28187b0cca234c9a4..abb038b4bc6a060fc9e892a93edfda38c69c6209 100644
--- a/src/code-stubs.cc
+++ b/src/code-stubs.cc
@@ -28,10 +28,10 @@
#include "v8.h"
#include "bootstrapper.h"
+#include "code-events.h"
#include "code-stubs.h"
#include "stub-cache.h"
#include "factory.h"
-#include "gdb-jit.h"
#include "macro-assembler.h"
namespace v8 {
@@ -76,7 +76,7 @@ void CodeStub::RecordCodeGeneration(Code* code, MacroAssembler* masm) {
Isolate* isolate = masm->isolate();
SmartArrayPointer<const char> name = GetName();
PROFILE(isolate, CodeCreateEvent(Logger::STUB_TAG, code, *name));
- GDBJIT(AddCode(GDBJITInterface::STUB, *name, code));
+ JIT_CODE_EVENT(AddCode(*name, code));
Counters* counters = isolate->counters();
counters->total_stubs_code_size()->Increment(code->instruction_size());
}

Powered by Google App Engine
This is Rietveld 408576698