Index: src/ppc/builtins-ppc.cc |
diff --git a/src/ppc/builtins-ppc.cc b/src/ppc/builtins-ppc.cc |
index 22382d66e002c159c3927bfb28e58bd2587404e4..ff212f0297bdfeac7185b1b2daf3a7abdf2d9cbe 100644 |
--- a/src/ppc/builtins-ppc.cc |
+++ b/src/ppc/builtins-ppc.cc |
@@ -1698,8 +1698,14 @@ void Builtins::Generate_Call(MacroAssembler* masm, ConvertReceiverMode mode) { |
__ cmpi(r8, Operand(JS_PROXY_TYPE)); |
__ bne(&non_function); |
- // 1. Call to proxy. |
- // TODO(neis): Implement [[Call]] on proxies. |
+ // 1. Runtime fallback for Proxy [[Call]]. |
+ __ Push(r4); |
+ // Increase the arguments size to include the pushed function and the |
+ // existing receiver on the stack. |
+ __ addi(r3, r3, Operand(2)); |
+ // Tail-call to the runtime. |
+ __ JumpToExternalReference( |
+ ExternalReference(Runtime::kJSProxyCall, masm->isolate())); |
// 2. Call to something else, which might have a [[Call]] internal method (if |
// not we raise an exception). |