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