Index: src/compiler/js-builtin-reducer.cc |
diff --git a/src/compiler/js-builtin-reducer.cc b/src/compiler/js-builtin-reducer.cc |
index f812a2cf0483d7fdd7745998132dc5a23475fc00..705735baf052864479a32c4ffb45ed4e74e777d7 100644 |
--- a/src/compiler/js-builtin-reducer.cc |
+++ b/src/compiler/js-builtin-reducer.cc |
@@ -113,8 +113,10 @@ MaybeHandle<Map> GetMapWitness(Node* node) { |
ZoneHandleSet<Map> maps; |
Node* receiver = NodeProperties::GetValueInput(node, 1); |
Node* effect = NodeProperties::GetEffectInput(node); |
- if (NodeProperties::InferReceiverMaps(receiver, effect, &maps)) { |
- if (maps.size() == 1) return MaybeHandle<Map>(maps[0]); |
+ NodeProperties::InferReceiverMapsResult result = |
+ NodeProperties::InferReceiverMaps(receiver, effect, &maps); |
+ if (result == NodeProperties::kReliableReceiverMaps && maps.size() == 1) { |
+ return maps[0]; |
} |
return MaybeHandle<Map>(); |
} |