Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Unified Diff: src/full-codegen/arm64/full-codegen-arm64.cc

Issue 1517243002: [es6] Remove the %DefaultConstructorCallSuper intrinsic. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@GetSuperConstructor
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/full-codegen/arm/full-codegen-arm.cc ('k') | src/full-codegen/full-codegen.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/full-codegen/arm64/full-codegen-arm64.cc
diff --git a/src/full-codegen/arm64/full-codegen-arm64.cc b/src/full-codegen/arm64/full-codegen-arm64.cc
index 0314b5f9c2b5cf2ab8a2601d6231ebb296494359..96a950f4572f2d63377fa519967770224907b73e 100644
--- a/src/full-codegen/arm64/full-codegen-arm64.cc
+++ b/src/full-codegen/arm64/full-codegen-arm64.cc
@@ -3434,63 +3434,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 x3.
- __ Peek(x3, 1 * kPointerSize);
-
- // Check if the calling frame is an arguments adaptor frame.
- Label adaptor_frame, args_set_up, runtime;
- __ Ldr(x11, MemOperand(fp, StandardFrameConstants::kCallerFPOffset));
- __ Ldr(x12, MemOperand(x11, StandardFrameConstants::kContextOffset));
- __ Cmp(x12, Smi::FromInt(StackFrame::ARGUMENTS_ADAPTOR));
- __ B(eq, &adaptor_frame);
- // default constructor has no arguments, so no adaptor frame means no args.
- __ Mov(x0, Operand(0));
- __ B(&args_set_up);
-
- // Copy arguments from adaptor frame.
- {
- __ bind(&adaptor_frame);
- __ Ldr(x1, MemOperand(x11, ArgumentsAdaptorFrameConstants::kLengthOffset));
- __ SmiUntag(x1, x1);
-
- __ Mov(x0, x1);
-
- // Get arguments pointer in x11.
- __ Add(x11, x11, Operand(x1, LSL, kPointerSizeLog2));
- __ Add(x11, x11, StandardFrameConstants::kCallerSPOffset);
- Label loop;
- __ bind(&loop);
- // Pre-decrement x11 with kPointerSize on each iteration.
- // Pre-decrement in order to skip receiver.
- __ Ldr(x10, MemOperand(x11, -kPointerSize, PreIndex));
- __ Push(x10);
- __ Sub(x1, x1, Operand(1));
- __ Cbnz(x1, &loop);
- }
-
- __ bind(&args_set_up);
- __ Peek(x1, Operand(x0, LSL, kPointerSizeLog2));
- __ Call(isolate()->builtins()->Construct(), RelocInfo::CODE_TARGET);
-
- // Restore context register.
- __ Ldr(cp, MemOperand(fp, StandardFrameConstants::kContextOffset));
-
- context()->DropAndPlug(1, x0);
-}
-
-
void FullCodeGenerator::EmitHasCachedArrayIndex(CallRuntime* expr) {
ZoneList<Expression*>* args = expr->arguments();
VisitForAccumulatorValue(args->at(0));
« no previous file with comments | « src/full-codegen/arm/full-codegen-arm.cc ('k') | src/full-codegen/full-codegen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698