| Index: src/compiler/js-inlining.cc
|
| diff --git a/src/compiler/js-inlining.cc b/src/compiler/js-inlining.cc
|
| index 58e5a276ccc24dd64bd313ae9983b8c04aec99bb..69cd98c9c81896572ee5e51b7adb1c09ac5dbc3f 100644
|
| --- a/src/compiler/js-inlining.cc
|
| +++ b/src/compiler/js-inlining.cc
|
| @@ -298,11 +298,10 @@ bool NeedsConvertReceiver(Node* receiver, Node* effect) {
|
| if (dominator->opcode() == IrOpcode::kCheckMaps &&
|
| 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;
|
| }
|
|
|