Index: src/full-codegen/mips64/full-codegen-mips64.cc |
diff --git a/src/full-codegen/mips64/full-codegen-mips64.cc b/src/full-codegen/mips64/full-codegen-mips64.cc |
index 4979132ec6610816e802ec135bb0c9c04f2512a6..3f1771d7092760f5d6ce647fa29b1b84a0d0f68b 100644 |
--- a/src/full-codegen/mips64/full-codegen-mips64.cc |
+++ b/src/full-codegen/mips64/full-codegen-mips64.cc |
@@ -3739,67 +3739,6 @@ void FullCodeGenerator::EmitCall(CallRuntime* expr) { |
} |
-void FullCodeGenerator::EmitDefaultConstructorCallSuper(CallRuntime* expr) { |
- ZoneList<Expression*>* args = expr->arguments(); |
- DCHECK(args->length() == 2); |
- |
- // Evaluate new.target and super constructor. |
- VisitForStackValue(args->at(0)); |
- VisitForStackValue(args->at(1)); |
- |
- // Call the construct call builtin that handles allocation and |
- // constructor invocation. |
- SetConstructCallPosition(expr); |
- |
- // Load new target into a3. |
- __ ld(a3, MemOperand(sp, 1 * kPointerSize)); |
- |
- // Check if the calling frame is an arguments adaptor frame. |
- Label adaptor_frame, args_set_up, runtime; |
- __ ld(a2, MemOperand(fp, StandardFrameConstants::kCallerFPOffset)); |
- __ ld(a4, MemOperand(a2, StandardFrameConstants::kContextOffset)); |
- __ Branch(&adaptor_frame, eq, a4, |
- Operand(Smi::FromInt(StackFrame::ARGUMENTS_ADAPTOR))); |
- // default constructor has no arguments, so no adaptor frame means no args. |
- __ mov(a0, zero_reg); |
- __ Branch(&args_set_up); |
- |
- // Copy arguments from adaptor frame. |
- { |
- __ bind(&adaptor_frame); |
- __ ld(a1, MemOperand(a2, ArgumentsAdaptorFrameConstants::kLengthOffset)); |
- __ SmiUntag(a1, a1); |
- |
- __ mov(a0, a1); |
- |
- // Get arguments pointer in a2. |
- __ dsll(at, a1, kPointerSizeLog2); |
- __ Daddu(a2, a2, Operand(at)); |
- __ Daddu(a2, a2, Operand(StandardFrameConstants::kCallerSPOffset)); |
- Label loop; |
- __ bind(&loop); |
- // Pre-decrement a2 with kPointerSize on each iteration. |
- // Pre-decrement in order to skip receiver. |
- __ Daddu(a2, a2, Operand(-kPointerSize)); |
- __ ld(a4, MemOperand(a2)); |
- __ Push(a4); |
- __ Daddu(a1, a1, Operand(-1)); |
- __ Branch(&loop, ne, a1, Operand(zero_reg)); |
- } |
- |
- __ bind(&args_set_up); |
- __ dsll(at, a0, kPointerSizeLog2); |
- __ Daddu(at, at, Operand(sp)); |
- __ ld(a1, MemOperand(at, 0)); |
- __ Call(isolate()->builtins()->Construct(), RelocInfo::CODE_TARGET); |
- |
- // Restore context register. |
- __ ld(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); |
- |
- context()->DropAndPlug(1, result_register()); |
-} |
- |
- |
void FullCodeGenerator::EmitHasCachedArrayIndex(CallRuntime* expr) { |
ZoneList<Expression*>* args = expr->arguments(); |
VisitForAccumulatorValue(args->at(0)); |