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; |
} |