| Index: src/x64/builtins-x64.cc
|
| diff --git a/src/x64/builtins-x64.cc b/src/x64/builtins-x64.cc
|
| index 848e92b3790d14fb1ac922265624968f21c731c0..1a6ee7cda1e836d9b9a5fe465f9edb43080bd339 100644
|
| --- a/src/x64/builtins-x64.cc
|
| +++ b/src/x64/builtins-x64.cc
|
| @@ -1742,14 +1742,11 @@ void Builtins::Generate_Call(MacroAssembler* masm, ConvertReceiverMode mode) {
|
| __ CmpObjectType(rdi, JS_FUNCTION_TYPE, rcx);
|
| __ j(equal, masm->isolate()->builtins()->CallFunction(mode),
|
| RelocInfo::CODE_TARGET);
|
| - __ CmpInstanceType(rcx, JS_FUNCTION_PROXY_TYPE);
|
| + __ CmpInstanceType(rcx, JS_PROXY_TYPE);
|
| __ j(not_equal, &non_function);
|
|
|
| // 1. Call to function proxy.
|
| - // TODO(neis): This doesn't match the ES6 spec for [[Call]] on proxies.
|
| - __ movp(rdi, FieldOperand(rdi, JSFunctionProxy::kCallTrapOffset));
|
| - __ AssertNotSmi(rdi);
|
| - __ jmp(&non_smi);
|
| + // TODO(neis): Implement [[Call]] on proxies.
|
|
|
| // 2. Call to something else, which might have a [[Call]] internal method (if
|
| // not we raise an exception).
|
| @@ -1804,11 +1801,10 @@ void Builtins::Generate_ConstructProxy(MacroAssembler* masm) {
|
| // -- rax : the number of arguments (not including the receiver)
|
| // -- rdx : the new target (either the same as the constructor or
|
| // the JSFunction on which new was invoked initially)
|
| - // -- rdi : the constructor to call (checked to be a JSFunctionProxy)
|
| + // -- rdi : the constructor to call (checked to be a JSProxy)
|
| // -----------------------------------
|
|
|
| // TODO(neis): This doesn't match the ES6 spec for [[Construct]] on proxies.
|
| - __ movp(rdi, FieldOperand(rdi, JSFunctionProxy::kConstructTrapOffset));
|
| __ Jump(masm->isolate()->builtins()->Call(), RelocInfo::CODE_TARGET);
|
| }
|
|
|
| @@ -1831,7 +1827,7 @@ void Builtins::Generate_Construct(MacroAssembler* masm) {
|
| __ CmpObjectType(rdi, JS_FUNCTION_TYPE, rcx);
|
| __ j(equal, masm->isolate()->builtins()->ConstructFunction(),
|
| RelocInfo::CODE_TARGET);
|
| - __ CmpInstanceType(rcx, JS_FUNCTION_PROXY_TYPE);
|
| + __ CmpInstanceType(rcx, JS_PROXY_TYPE);
|
| __ j(equal, masm->isolate()->builtins()->ConstructProxy(),
|
| RelocInfo::CODE_TARGET);
|
|
|
|
|