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

Unified Diff: runtime/vm/object.h

Issue 14307013: - Remember the fact that an object has been added to the (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 8 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.h
===================================================================
--- runtime/vm/object.h (revision 22083)
+++ runtime/vm/object.h (working copy)
@@ -440,7 +440,9 @@
*addr = value;
// Filter stores based on source and target.
if (!value->IsHeapObject()) return;
- if (value->IsNewObject() && raw()->IsOldObject()) {
+ if (value->IsNewObject() && raw()->IsOldObject() &&
+ !raw()->IsRemembered()) {
+ raw()->SetRememberedBit();
uword ptr = reinterpret_cast<uword>(raw());
Isolate::Current()->store_buffer()->AddPointer(ptr);
}
@@ -4963,7 +4965,9 @@
*addr = value;
// Filter stores based on source and target.
if (!value->IsHeapObject()) return;
- if (value->IsNewObject() && data()->IsOldObject()) {
+ if (value->IsNewObject() && data()->IsOldObject() &&
+ !data()->IsRemembered()) {
+ data()->SetRememberedBit();
uword ptr = reinterpret_cast<uword>(data());
Isolate::Current()->store_buffer()->AddPointer(ptr);
}
« no previous file with comments | « runtime/vm/gc_marker.cc ('k') | runtime/vm/object.cc » ('j') | runtime/vm/raw_object.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698