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