Index: src/code-stubs-hydrogen.cc |
diff --git a/src/code-stubs-hydrogen.cc b/src/code-stubs-hydrogen.cc |
index b7247eb6bf0bf4e78d0c90f3dc81c4365e819478..e1d11fb2147ec882e1466155f7b979f59edc42dd 100644 |
--- a/src/code-stubs-hydrogen.cc |
+++ b/src/code-stubs-hydrogen.cc |
@@ -1051,16 +1051,13 @@ HValue* CodeStubGraphBuilder<StoreGlobalStub>::BuildCodeInitializedStub() { |
Handle<PropertyCell> placeholder_cell = |
isolate()->factory()->NewPropertyCell(placeholer_value); |
+ HParameter* receiver = GetParameter(0); |
HParameter* value = GetParameter(2); |
- if (stub->check_global()) { |
- // Check that the map of the global has not changed: use a placeholder map |
- // that will be replaced later with the global object's map. |
- Handle<Map> placeholder_map = isolate()->factory()->meta_map(); |
- HValue* global = Add<HConstant>( |
- StoreGlobalStub::global_placeholder(isolate())); |
- Add<HCheckMaps>(global, placeholder_map, top_info()); |
- } |
+ // Check that the map of the global has not changed: use a placeholder map |
+ // that will be replaced later with the global object's map. |
+ Handle<Map> placeholder_map = isolate()->factory()->meta_map(); |
+ Add<HCheckMaps>(receiver, placeholder_map, top_info()); |
HValue* cell = Add<HConstant>(placeholder_cell); |
HObjectAccess access(HObjectAccess::ForCellPayload(isolate())); |