Index: src/mips64/builtins-mips64.cc |
diff --git a/src/mips64/builtins-mips64.cc b/src/mips64/builtins-mips64.cc |
index 357a70db5b97452c2972c8188f24cd9088c942c6..59b5e228d65c3475b31cfddc1065c5d32c24e250 100644 |
--- a/src/mips64/builtins-mips64.cc |
+++ b/src/mips64/builtins-mips64.cc |
@@ -1686,8 +1686,14 @@ void Builtins::Generate_Call(MacroAssembler* masm, ConvertReceiverMode mode) { |
RelocInfo::CODE_TARGET, eq, t2, Operand(JS_FUNCTION_TYPE)); |
__ Branch(&non_function, ne, t2, Operand(JS_PROXY_TYPE)); |
- // 1. Call to function proxy. |
- // TODO(neis): Implement [[Call]] on proxies. |
+ // 1. Runtime fallback for Proxy [[Call]]. |
+ __ Push(a1); |
+ // Increase the arguments size to include the pushed function and the |
+ // existing receiver on the stack. |
+ __ Daddu(a0, a0, 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). |