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

Unified Diff: src/full-codegen.cc

Issue 11552033: This patch is the propagation version of https://codereview.chromium.org/10824032 patch (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 years 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/full-codegen.cc
===================================================================
--- src/full-codegen.cc (revision 13212)
+++ src/full-codegen.cc (working copy)
@@ -307,7 +307,11 @@
#ifdef ENABLE_GDB_JIT_INTERFACE
masm.positions_recorder()->StartGDBJITLineInfoRecording();
#endif
-
+ if (FLAG_jit_profile) {
danno 2012/12/20 16:27:20 See comment in flags-definition.h
+ JITCodeLineInfo* lineinfo = masm.positions_recorder()->
+ InitializeJITLineInfo();
danno 2012/12/20 16:27:20 nit: indentation should be 4 chars. Better yet, br
+ LOG_CODE_EVENT(isolate, CodeStartLinePosInfoRecordEvent(lineinfo));
+ }
FullCodeGenerator cgen(&masm, info);
cgen.Generate();
if (cgen.HasStackOverflow()) {
@@ -344,6 +348,12 @@
GDBJIT(RegisterDetailedLineInfo(*code, lineinfo));
}
#endif
+ if (FLAG_jit_profile) {
+ if (!code.is_null()) {
+ void* lineinfo = masm.positions_recorder()->DetachJITLineInfo();
+ LOG_CODE_EVENT(isolate, CodeEndLinePosInfoRecordEvent(*code, lineinfo));
+ }
+ }
return !code.is_null();
}

Powered by Google App Engine
This is Rietveld 408576698