Index: src/compiler/js-inlining.cc |
diff --git a/src/compiler/js-inlining.cc b/src/compiler/js-inlining.cc |
index c16c4c913d734eb9f5ec2ca83f2e4d4c14677937..34632b214de18dcc2b2bc3144854db892c574727 100644 |
--- a/src/compiler/js-inlining.cc |
+++ b/src/compiler/js-inlining.cc |
@@ -307,11 +307,10 @@ bool NeedsConvertReceiver(Node* receiver, Node* effect) { |
if (dominator->opcode() == IrOpcode::kCheckMaps && |
IsSame(dominator->InputAt(0), receiver)) { |
// Check if all maps have the given {instance_type}. |
- for (int i = 1; i < dominator->op()->ValueInputCount(); ++i) { |
- HeapObjectMatcher m(NodeProperties::GetValueInput(dominator, i)); |
- if (!m.HasValue()) return true; |
- Handle<Map> const map = Handle<Map>::cast(m.Value()); |
- if (!map->IsJSReceiverMap()) return true; |
+ ZoneHandleSet<Map> const& maps = |
+ CheckMapsParametersOf(dominator->op()).maps(); |
+ for (size_t i = 0; i < maps.size(); ++i) { |
+ if (!maps[i]->IsJSReceiverMap()) return true; |
} |
return false; |
} |