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

Unified Diff: src/hydrogen.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/arm64/lithium-codegen-arm64.cc ('k') | src/hydrogen-check-elimination.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/hydrogen.cc
diff --git a/src/hydrogen.cc b/src/hydrogen.cc
index 697111db9c8fa12e3552e45e9266887489145fc6..964db8bdcc0af450eafe73d541871abb1e4e9c0e 100644
--- a/src/hydrogen.cc
+++ b/src/hydrogen.cc
@@ -5529,7 +5529,14 @@ HInstruction* HOptimizedGraphBuilder::BuildStoreNamedField(
if (transition_to_field) {
Handle<Map> transition(info->transition());
ASSERT(!transition->is_deprecated());
- instr->SetTransition(Add<HConstant>(transition));
+ if (transition->CanBeDeprecated()) {
+ Map::AddDependentCompilationInfo(
+ transition, DependentCode::kTransitionGroup, top_info());
+ }
+ Add<HStoreNamedField>(checked_object->ActualValue(),
+ HObjectAccess::ForMap(),
+ Add<HConstant>(transition),
+ STORE_TO_INITIALIZED_ENTRY);
}
return instr;
}
« no previous file with comments | « src/arm64/lithium-codegen-arm64.cc ('k') | src/hydrogen-check-elimination.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698