| Index: src/crankshaft/x64/lithium-codegen-x64.cc
|
| diff --git a/src/crankshaft/x64/lithium-codegen-x64.cc b/src/crankshaft/x64/lithium-codegen-x64.cc
|
| index 4f44c084ba3ee645d839aa7e2bfc7a2412d7a704..20a2fffece04e57ed26ec39ccaea454ebd8e8e7c 100644
|
| --- a/src/crankshaft/x64/lithium-codegen-x64.cc
|
| +++ b/src/crankshaft/x64/lithium-codegen-x64.cc
|
| @@ -3263,39 +3263,6 @@ void LCodeGen::DoCallWithDescriptor(LCallWithDescriptor* instr) {
|
| }
|
|
|
|
|
| -void LCodeGen::DoCallJSFunction(LCallJSFunction* instr) {
|
| - DCHECK(ToRegister(instr->function()).is(rdi));
|
| - DCHECK(ToRegister(instr->result()).is(rax));
|
| -
|
| - // Change context.
|
| - __ movp(rsi, FieldOperand(rdi, JSFunction::kContextOffset));
|
| -
|
| - // Always initialize new target and number of actual arguments.
|
| - __ LoadRoot(rdx, Heap::kUndefinedValueRootIndex);
|
| - __ Set(rax, instr->arity());
|
| -
|
| - LPointerMap* pointers = instr->pointer_map();
|
| - SafepointGenerator generator(this, pointers, Safepoint::kLazyDeopt);
|
| -
|
| - bool is_self_call = false;
|
| - if (instr->hydrogen()->function()->IsConstant()) {
|
| - Handle<JSFunction> jsfun = Handle<JSFunction>::null();
|
| - HConstant* fun_const = HConstant::cast(instr->hydrogen()->function());
|
| - jsfun = Handle<JSFunction>::cast(fun_const->handle(isolate()));
|
| - is_self_call = jsfun.is_identical_to(info()->closure());
|
| - }
|
| -
|
| - if (is_self_call) {
|
| - __ CallSelf();
|
| - } else {
|
| - Operand target = FieldOperand(rdi, JSFunction::kCodeEntryOffset);
|
| - generator.BeforeCall(__ CallSize(target));
|
| - __ Call(target);
|
| - }
|
| - generator.AfterCall();
|
| -}
|
| -
|
| -
|
| void LCodeGen::DoDeferredMathAbsTaggedHeapNumber(LMathAbs* instr) {
|
| Register input_reg = ToRegister(instr->value());
|
| __ CompareRoot(FieldOperand(input_reg, HeapObject::kMapOffset),
|
|
|