| Index: src/x64/full-codegen-x64.cc
|
| diff --git a/src/x64/full-codegen-x64.cc b/src/x64/full-codegen-x64.cc
|
| index d2cd5a5dd26d8a2cabddaabb4af9fc7c6fe36089..d6c3428998679d0cab8c23fc9f0b8af358457dbb 100644
|
| --- a/src/x64/full-codegen-x64.cc
|
| +++ b/src/x64/full-codegen-x64.cc
|
| @@ -4655,43 +4655,6 @@ void FullCodeGenerator::EmitDebugIsActive(CallRuntime* expr) {
|
| }
|
|
|
|
|
| -void FullCodeGenerator::EmitCallSuperWithSpread(CallRuntime* expr) {
|
| - // Assert: expr === CallRuntime("ReflectConstruct")
|
| - DCHECK_EQ(1, expr->arguments()->length());
|
| - CallRuntime* call = expr->arguments()->at(0)->AsCallRuntime();
|
| -
|
| - ZoneList<Expression*>* args = call->arguments();
|
| - DCHECK_EQ(3, args->length());
|
| -
|
| - SuperCallReference* super_call_ref = args->at(0)->AsSuperCallReference();
|
| - DCHECK_NOT_NULL(super_call_ref);
|
| -
|
| - // Load ReflectConstruct function
|
| - EmitLoadJSRuntimeFunction(call);
|
| -
|
| - // Push the target function under the receiver.
|
| - __ Push(Operand(rsp, 0));
|
| - __ movp(Operand(rsp, kPointerSize), rax);
|
| -
|
| - // Push super constructor
|
| - EmitLoadSuperConstructor(super_call_ref);
|
| - __ Push(result_register());
|
| -
|
| - // Push arguments array
|
| - VisitForStackValue(args->at(1));
|
| -
|
| - // Push NewTarget
|
| - DCHECK(args->at(2)->IsVariableProxy());
|
| - VisitForStackValue(args->at(2));
|
| -
|
| - EmitCallJSRuntimeFunction(call);
|
| -
|
| - // Restore context register.
|
| - __ movp(rsi, Operand(rbp, StandardFrameConstants::kContextOffset));
|
| - context()->DropAndPlug(1, rax);
|
| -}
|
| -
|
| -
|
| void FullCodeGenerator::EmitLoadJSRuntimeFunction(CallRuntime* expr) {
|
| // Push the builtins object as receiver.
|
| __ movp(rax, GlobalObjectOperand());
|
|
|