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

Unified Diff: src/hydrogen-load-elimination.cc

Issue 295743002: Refactor transitioning stores. (Closed) Base URL: git@github.com:v8/v8.git@master
Patch Set: Created 6 years, 7 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
« no previous file with comments | « src/hydrogen-instructions.cc ('k') | src/hydrogen-store-elimination.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/hydrogen-load-elimination.cc
diff --git a/src/hydrogen-load-elimination.cc b/src/hydrogen-load-elimination.cc
index 1198d2b7ab59afeb6318745c0cf45fcf440138bf..6967630b57cd4e25c8ddf27ae65e483845821996 100644
--- a/src/hydrogen-load-elimination.cc
+++ b/src/hydrogen-load-elimination.cc
@@ -240,12 +240,7 @@ class HLoadEliminationTable : public ZoneObject {
HValue* object = instr->object()->ActualValue();
HValue* value = instr->value();
- if (instr->has_transition()) {
- // A transition introduces a new field and alters the map of the object.
- // Since the field in the object is new, it cannot alias existing entries.
- // TODO(titzer): introduce a constant for the new map and remember it.
- KillFieldInternal(object, FieldOf(JSObject::kMapOffset), NULL);
- } else {
+ if (instr->store_mode() == STORE_TO_INITIALIZED_ENTRY) {
// Kill non-equivalent may-alias entries.
KillFieldInternal(object, field, value);
}
« no previous file with comments | « src/hydrogen-instructions.cc ('k') | src/hydrogen-store-elimination.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698