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

Unified Diff: src/assembler.h

Issue 10824032: Enables V8 integration with the Intel VTune performance analysis tool. This allows the VTune profi… (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: 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
« no previous file with comments | « src/SConscript ('k') | src/assembler.cc » ('j') | src/assembler.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/assembler.h
===================================================================
--- src/assembler.h (revision 12182)
+++ src/assembler.h (working copy)
@@ -43,6 +43,7 @@
#include "isolate.h"
#include "runtime.h"
#include "token.h"
+#include "third_party/vtune/vtune-jit.h"
namespace v8 {
@@ -764,13 +765,21 @@
#ifdef ENABLE_GDB_JIT_INTERFACE
gdbjit_lineinfo_ = NULL;
#endif
+#ifdef ENABLE_VTUNE_JIT_INTERFACE
+ vtunejit_lineinfo_ = NULL;
+#endif
}
+ ~PositionsRecorder() {
#ifdef ENABLE_GDB_JIT_INTERFACE
- ~PositionsRecorder() {
delete gdbjit_lineinfo_;
+#endif
+#ifdef ENABLE_VTUNE_JIT_INTERFACE
+ delete vtunejit_lineinfo_;
+#endif
}
+#ifdef ENABLE_GDB_JIT_INTERFACE
void StartGDBJITLineInfoRecording() {
if (FLAG_gdbjit) {
gdbjit_lineinfo_ = new GDBJITLineInfo();
@@ -784,6 +793,18 @@
}
#endif
+#ifdef ENABLE_VTUNE_JIT_INTERFACE
+ void StartVtuneJITLineInfoRecording() {
+ vtunejit_lineinfo_ = new VtuneJITLineInfo();
+ }
+
+ VtuneJITLineInfo* DetachVtuneJITLineInfo() {
+ VtuneJITLineInfo* lineinfo = vtunejit_lineinfo_;
+ vtunejit_lineinfo_ = NULL;
+ return lineinfo;
+ }
+#endif
+
// Set current position to pos.
void RecordPosition(int pos);
@@ -805,6 +826,9 @@
#ifdef ENABLE_GDB_JIT_INTERFACE
GDBJITLineInfo* gdbjit_lineinfo_;
#endif
+#ifdef ENABLE_VTUNE_JIT_INTERFACE
+ VtuneJITLineInfo* vtunejit_lineinfo_;
danno 2012/08/02 12:38:11 Generalize to jit_code_event_line_info_
+#endif
friend class PreservePositionScope;
« no previous file with comments | « src/SConscript ('k') | src/assembler.cc » ('j') | src/assembler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698