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

Unified Diff: src/serialize.cc

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
Index: src/serialize.cc
===================================================================
--- src/serialize.cc (revision 12182)
+++ src/serialize.cc (working copy)
@@ -741,6 +741,10 @@
LOG(isolate_, SnapshotPositionEvent(address, source_->position()));
}
ReadChunk(current, limit, space_number, address);
+ Object* object = HeapObject::FromAddress(reinterpret_cast<Address>(address));
+ if (object->IsCode())
danno 2012/08/02 12:38:11 Deserialization is very performance sensitive, so
+ VTUNEJIT(AddCode("deserialized", reinterpret_cast<Code*>(object)));
+
#ifdef DEBUG
bool is_codespace = (space == HEAP->code_space()) ||
((space == HEAP->lo_space()) && (space_number == kLargeCode));
« src/mark-compact.cc ('K') | « src/mark-compact.cc ('k') | src/stub-cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698