Index: src/mips/builtins-mips.cc |
diff --git a/src/mips/builtins-mips.cc b/src/mips/builtins-mips.cc |
index a617ff8f21a026820f0d0793798bf970a5b91cba..9d1473d938c7b7b2ed573baa6a45eac2109d0b50 100644 |
--- a/src/mips/builtins-mips.cc |
+++ b/src/mips/builtins-mips.cc |
@@ -1694,8 +1694,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 Proxy. |
- // TODO(neis): implement call on Proxy |
+ // 1. Runtime fallback for Proxy [[Call]]. |
+ __ Push(a1); |
+ // Increase the arguments size to include the pushed function and the |
+ // existing receiver on the stack. |
+ __ Addu(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). |