Index: src/full-codegen/arm/full-codegen-arm.cc |
diff --git a/src/full-codegen/arm/full-codegen-arm.cc b/src/full-codegen/arm/full-codegen-arm.cc |
index c774b6d9aea56cd1b7c184546c778986de42f03d..f839af696ac8102350572f47af26cb431d1b6b19 100644 |
--- a/src/full-codegen/arm/full-codegen-arm.cc |
+++ b/src/full-codegen/arm/full-codegen-arm.cc |
@@ -4531,17 +4531,13 @@ void FullCodeGenerator::EmitDebugIsActive(CallRuntime* expr) { |
void FullCodeGenerator::EmitLoadJSRuntimeFunction(CallRuntime* expr) { |
- // Push the builtins object as the receiver. |
- Register receiver = LoadDescriptor::ReceiverRegister(); |
- __ ldr(receiver, GlobalObjectOperand()); |
- __ ldr(receiver, FieldMemOperand(receiver, GlobalObject::kBuiltinsOffset)); |
- __ push(receiver); |
+ // Push undefined as the receiver. |
+ __ LoadRoot(r0, Heap::kUndefinedValueRootIndex); |
+ __ push(r0); |
- // Load the function from the receiver. |
- __ mov(LoadDescriptor::NameRegister(), Operand(expr->name())); |
- __ mov(LoadDescriptor::SlotRegister(), |
- Operand(SmiFromSlot(expr->CallRuntimeFeedbackSlot()))); |
- CallLoadIC(NOT_INSIDE_TYPEOF); |
+ __ ldr(r0, GlobalObjectOperand()); |
+ __ ldr(r0, FieldMemOperand(r0, GlobalObject::kNativeContextOffset)); |
+ __ ldr(r0, ContextOperand(r0, expr->context_index())); |
} |