Index: src/compiler/js-builtin-reducer.cc |
diff --git a/src/compiler/js-builtin-reducer.cc b/src/compiler/js-builtin-reducer.cc |
index 78c3286d059e3d2bf26d98cc8c44121e18230615..4c15ee907887a508dd58627d4188c080bff3f181 100644 |
--- a/src/compiler/js-builtin-reducer.cc |
+++ b/src/compiler/js-builtin-reducer.cc |
@@ -330,9 +330,9 @@ bool HasInstanceTypeWitness(Node* receiver, Node* effect, |
for (int i = 1; i < dominator->op()->ValueInputCount(); ++i) { |
Node* const map = NodeProperties::GetValueInput(dominator, i); |
Type* const map_type = NodeProperties::GetType(map); |
- if (!map_type->IsConstant()) return false; |
+ if (!map_type->IsHeapConstant()) return false; |
Handle<Map> const map_value = |
- Handle<Map>::cast(map_type->AsConstant()->Value()); |
+ Handle<Map>::cast(map_type->AsHeapConstant()->Value()); |
if (map_value->instance_type() != instance_type) return false; |
} |
return true; |