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

Unified Diff: runtime/vm/object.cc

Issue 194813008: Add compile timestamp to Code (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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: runtime/vm/object.cc
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
index 9ceaf75711a490d85109243be6bc46fc1466561e..4e58b03af8aa0805640a3315fdeef4f7b67d5046 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -10272,6 +10272,7 @@ RawCode* Code::FinalizeCode(const char* name,
assembler->FinalizeInstructions(region);
CPU::FlushICache(instrs.EntryPoint(), instrs.size());
+ code.set_compile_timestamp(OS::GetCurrentTimeMicros());
CodeObservers::NotifyAll(name,
instrs.EntryPoint(),
assembler->prologue_offset(),
« runtime/vm/object.h ('K') | « runtime/vm/object.h ('k') | runtime/vm/raw_object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698