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

Unified Diff: src/ic/accessor-assembler.cc

Issue 2544793002: [stubs] Cleanup storing of maps to objects. (Closed)
Patch Set: Created 4 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 | « src/compiler/code-assembler.cc ('k') | src/ic/keyed-store-generic.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ic/accessor-assembler.cc
diff --git a/src/ic/accessor-assembler.cc b/src/ic/accessor-assembler.cc
index 7e4f8a3edf87c3aa737b021939718f7890d28922..497dd27d3cce4fa151e88eb6d2b2d8a595b55a2a 100644
--- a/src/ic/accessor-assembler.cc
+++ b/src/ic/accessor-assembler.cc
@@ -590,7 +590,7 @@ void AccessorAssemblerImpl::HandleStoreICProtoHandler(
descriptors, value_index_in_descriptor, 0, INTPTR_PARAMETERS);
GotoIf(WordNotEqual(p->value, constant), miss);
- StoreObjectField(p->receiver, JSObject::kMapOffset, transition);
+ StoreMap(p->receiver, transition);
Return(p->value);
}
}
@@ -709,7 +709,7 @@ void AccessorAssemblerImpl::HandleStoreFieldAndReturn(
StoreNamedField(holder, offset, true, representation, prepared_value,
transition_to_field);
if (transition_to_field) {
- StoreObjectField(holder, JSObject::kMapOffset, transition);
+ StoreMap(holder, transition);
}
Return(value);
}
@@ -719,7 +719,7 @@ void AccessorAssemblerImpl::HandleStoreFieldAndReturn(
StoreNamedField(holder, offset, false, representation, prepared_value,
transition_to_field);
if (transition_to_field) {
- StoreObjectField(holder, JSObject::kMapOffset, transition);
+ StoreMap(holder, transition);
}
Return(value);
}
« no previous file with comments | « src/compiler/code-assembler.cc ('k') | src/ic/keyed-store-generic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698