Index: src/compiler/js-global-object-specialization.cc |
diff --git a/src/compiler/js-global-object-specialization.cc b/src/compiler/js-global-object-specialization.cc |
index 25262ff850a8471cd2cc787d1f774429ed8885ce..7ef07c1bb3dc2af56cf7408dbdf7605f2c3408d3 100644 |
--- a/src/compiler/js-global-object-specialization.cc |
+++ b/src/compiler/js-global-object-specialization.cc |
@@ -112,10 +112,11 @@ Reduction JSGlobalObjectSpecialization::ReduceJSLoadGlobal(Node* node) { |
} else if (property_cell_value->IsNumber()) { |
property_cell_value_type = type_cache_.kHeapNumber; |
} else { |
+ // TODO(turbofan): Track the property_cell_value_map on the FieldAccess |
+ // below and use it in LoadElimination to eliminate map checks. |
Handle<Map> property_cell_value_map( |
Handle<HeapObject>::cast(property_cell_value)->map(), isolate()); |
- property_cell_value_type = |
- Type::Class(property_cell_value_map, graph()->zone()); |
+ property_cell_value_type = Type::For(property_cell_value_map); |
} |
} |
Node* value = effect = graph()->NewNode( |