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

Unified Diff: runtime/vm/code_generator.cc

Issue 11428067: Merge the Merlin heap tracing to top-of-trunk. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: address review comments 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
« no previous file with comments | « runtime/vm/code_generator.h ('k') | runtime/vm/dart.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/code_generator.cc
diff --git a/runtime/vm/code_generator.cc b/runtime/vm/code_generator.cc
index 283392ed9cd242d793fb37ceff08ea510d6fa298..87b2a89ce36376f5c4f5177f71085f7ce9f022c5 100644
--- a/runtime/vm/code_generator.cc
+++ b/runtime/vm/code_generator.cc
@@ -1945,4 +1945,20 @@ DEFINE_LEAF_RUNTIME_ENTRY(intptr_t,
}
END_LEAF_RUNTIME_ENTRY
+
+DEFINE_LEAF_RUNTIME_ENTRY(void,
+ HeapTraceStore,
+ RawObject* object,
+ uword field_addr,
+ RawObject* value) {
+ if (!(object->IsHeapObject() && value->IsHeapObject())) {
+ return;
+ }
+ HeapTrace* heap_trace = Isolate::Current()->heap()->trace();
+ heap_trace->TraceStoreIntoObject(RawObject::ToAddr(object),
+ field_addr,
+ RawObject::ToAddr(value));
+}
+END_LEAF_RUNTIME_ENTRY
+
} // namespace dart
« no previous file with comments | « runtime/vm/code_generator.h ('k') | runtime/vm/dart.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698