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

Unified Diff: src/objects-inl.h

Issue 8082023: Fix map modification in transition tree traversal. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 3 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
« src/objects.cc ('K') | « src/objects.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects-inl.h
diff --git a/src/objects-inl.h b/src/objects-inl.h
index cc70bfa8e53a1e96ade1dbf2f6f0c0b17da4a017..bafa8b3299c18dfb8a3e0cf99acbea65169ed558 100644
--- a/src/objects-inl.h
+++ b/src/objects-inl.h
@@ -1229,9 +1229,9 @@ Map* HeapObject::map() {
}
-void HeapObject::set_map(Map* value) {
+void HeapObject::set_map(Map* value, WriteBarrierMode mode) {
set_map_word(MapWord::FromMap(value));
- if (value != NULL) {
+ if (mode == UPDATE_WRITE_BARRIER && value != NULL) {
// TODO(1600) We are passing NULL as a slot because maps can never be on
// evacuation candidate.
value->GetHeap()->incremental_marking()->RecordWrite(this, NULL, value);
« src/objects.cc ('K') | « src/objects.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698