| Index: src/compiler/node-properties.cc
|
| diff --git a/src/compiler/node-properties.cc b/src/compiler/node-properties.cc
|
| index 22539cbfb4201c99b9b2b9d286910c86d22a8d78..afed6347e5b87c576d215dd4dc696eeb641ceae3 100644
|
| --- a/src/compiler/node-properties.cc
|
| +++ b/src/compiler/node-properties.cc
|
| @@ -368,8 +368,10 @@ MaybeHandle<Context> NodeProperties::GetSpecializationNativeContext(
|
| Handle<Context>::cast(OpParameter<Handle<HeapObject>>(node));
|
| return handle(context->native_context());
|
| }
|
| - case IrOpcode::kOsrValue: {
|
| - int const index = OpParameter<int>(node);
|
| + case IrOpcode::kOsrGuard: {
|
| + Node* osr_value = node->InputAt(0);
|
| + DCHECK_EQ(IrOpcode::kOsrValue, osr_value->opcode());
|
| + int const index = OsrValueIndexOf(osr_value->op());
|
| if (index == Linkage::kOsrContextSpillSlotIndex) {
|
| return native_context;
|
| }
|
|
|