Index: src/deoptimizer.cc |
diff --git a/src/deoptimizer.cc b/src/deoptimizer.cc |
index 4d5e60573d29fd2aee427642c4e609de6ad2b03d..e2fa5f33ce4a88753f8d46559c59c90f13d172a5 100644 |
--- a/src/deoptimizer.cc |
+++ b/src/deoptimizer.cc |
@@ -1840,7 +1840,7 @@ Handle<Object> Deoptimizer::MaterializeNextHeapObject() { |
// We also need to make sure that the representation of all fields |
// in the given object are general enough to hold a tagged value. |
Handle<Map> map = Map::GeneralizeAllFieldRepresentations( |
- Handle<Map>::cast(MaterializeNextValue()), Representation::Tagged()); |
+ Handle<Map>::cast(MaterializeNextValue())); |
switch (map->instance_type()) { |
case HEAP_NUMBER_TYPE: { |
// Reuse the HeapNumber value directly as it is already properly |
@@ -3341,7 +3341,7 @@ Handle<Object> SlotRefValueBuilder::GetNext(Isolate* isolate, int lvl) { |
Handle<Object> map_object = slot_refs_[current_slot_].GetValue(isolate); |
Handle<Map> map = Map::GeneralizeAllFieldRepresentations( |
- Handle<Map>::cast(map_object), Representation::Tagged()); |
+ Handle<Map>::cast(map_object)); |
current_slot_++; |
// TODO(jarin) this should be unified with the code in |
// Deoptimizer::MaterializeNextHeapObject() |