Index: src/compiler/simplified-lowering.cc |
diff --git a/src/compiler/simplified-lowering.cc b/src/compiler/simplified-lowering.cc |
index 379d9ac8a1022f45ec2684c1306e4dcd491599bb..491aed6b6bf0cda71d1fb16c09d135e900ad7fef 100644 |
--- a/src/compiler/simplified-lowering.cc |
+++ b/src/compiler/simplified-lowering.cc |
@@ -1031,10 +1031,8 @@ class RepresentationSelector { |
// undefined, because these special oddballs are always in the root set. |
return kNoWriteBarrier; |
} |
- if (value_type->IsHeapConstant() && |
- value_type->AsHeapConstant()->Value()->IsHeapObject()) { |
- Handle<HeapObject> value_object = |
- Handle<HeapObject>::cast(value_type->AsHeapConstant()->Value()); |
+ if (value_type->IsHeapConstant()) { |
+ Handle<HeapObject> value_object = value_type->AsHeapConstant()->Value(); |
RootIndexMap root_index_map(jsgraph_->isolate()); |
int root_index = root_index_map.Lookup(*value_object); |
if (root_index != RootIndexMap::kInvalidRootIndex && |