Index: src/arm64/full-codegen-arm64.cc |
diff --git a/src/arm64/full-codegen-arm64.cc b/src/arm64/full-codegen-arm64.cc |
index 265f75f97c4fd994e0f00373c5d21d89d9417105..c3b979d80d603b484ca43deb2217c2788f6cd5f8 100644 |
--- a/src/arm64/full-codegen-arm64.cc |
+++ b/src/arm64/full-codegen-arm64.cc |
@@ -2603,7 +2603,12 @@ void FullCodeGenerator::EmitCallWithLoadIC(Call* expr) { |
} |
// Push undefined as receiver. This is patched in the method prologue if it |
// is a sloppy mode method. |
- __ Push(isolate()->factory()->undefined_value()); |
+ { |
+ UseScratchRegisterScope temps(masm_); |
+ Register temp = temps.AcquireX(); |
+ __ LoadRoot(temp, Heap::kUndefinedValueRootIndex); |
+ __ Push(temp); |
+ } |
} else { |
// Load the function from the receiver. |
DCHECK(callee->IsProperty()); |