| Index: src/crankshaft/ia32/lithium-codegen-ia32.cc
|
| diff --git a/src/crankshaft/ia32/lithium-codegen-ia32.cc b/src/crankshaft/ia32/lithium-codegen-ia32.cc
|
| index 6ff1d7491b31ed18ead13f901cc0b0b8d4070b1b..58806f208b87865d86833851683a8c978478e23f 100644
|
| --- a/src/crankshaft/ia32/lithium-codegen-ia32.cc
|
| +++ b/src/crankshaft/ia32/lithium-codegen-ia32.cc
|
| @@ -2762,9 +2762,9 @@ void LCodeGen::DoWrapReceiver(LWrapReceiver* instr) {
|
|
|
| // Normal function. Replace undefined or null with global receiver.
|
| __ cmp(receiver, factory()->null_value());
|
| - __ j(equal, &global_object, Label::kNear);
|
| + __ j(equal, &global_object, dist);
|
| __ cmp(receiver, factory()->undefined_value());
|
| - __ j(equal, &global_object, Label::kNear);
|
| + __ j(equal, &global_object, dist);
|
|
|
| // The receiver should be a JS object.
|
| __ test(receiver, Immediate(kSmiTagMask));
|
| @@ -2772,7 +2772,7 @@ void LCodeGen::DoWrapReceiver(LWrapReceiver* instr) {
|
| __ CmpObjectType(receiver, FIRST_JS_RECEIVER_TYPE, scratch);
|
| DeoptimizeIf(below, instr, DeoptimizeReason::kNotAJavaScriptObject);
|
|
|
| - __ jmp(&receiver_ok, Label::kNear);
|
| + __ jmp(&receiver_ok, dist);
|
| __ bind(&global_object);
|
| __ mov(receiver, FieldOperand(function, JSFunction::kContextOffset));
|
| __ mov(receiver, ContextOperand(receiver, Context::NATIVE_CONTEXT_INDEX));
|
|
|