Index: src/full-codegen/ppc/full-codegen-ppc.cc |
diff --git a/src/full-codegen/ppc/full-codegen-ppc.cc b/src/full-codegen/ppc/full-codegen-ppc.cc |
index 60ac0b58b5b00d79525f6c2964738609c5f14d22..9fd6aff785ab562cda18686083ac10b62850c932 100644 |
--- a/src/full-codegen/ppc/full-codegen-ppc.cc |
+++ b/src/full-codegen/ppc/full-codegen-ppc.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(); |
- __ LoadP(receiver, GlobalObjectOperand()); |
- __ LoadP(receiver, FieldMemOperand(receiver, GlobalObject::kBuiltinsOffset)); |
- __ push(receiver); |
+ // Push undefined as the receiver. |
+ __ LoadRoot(r3, Heap::kUndefinedValueRootIndex); |
+ __ push(r3); |
- // Load the function from the receiver. |
- __ mov(LoadDescriptor::NameRegister(), Operand(expr->name())); |
- __ mov(LoadDescriptor::SlotRegister(), |
- Operand(SmiFromSlot(expr->CallRuntimeFeedbackSlot()))); |
- CallLoadIC(NOT_INSIDE_TYPEOF); |
+ __ LoadP(r3, GlobalObjectOperand()); |
+ __ LoadP(r3, FieldMemOperand(r3, GlobalObject::kNativeContextOffset)); |
+ __ LoadP(r3, ContextOperand(r3, expr->context_index())); |
} |