Remove dead code related to new super
Support for `new super` has been removed so this code in the full code gen is now unreachable. BUG=None LOG=N R=dslomov@chromium.org Review URL: https://codereview.chromium.org/911223002 Cr-Commit-Position: refs/heads/master@{#26585}
This commit is contained in:
parent
ec4305e48b
commit
a6f0a373dc
@ -3226,12 +3226,8 @@ void FullCodeGenerator::VisitCallNew(CallNew* expr) {
|
||||
// Push constructor on the stack. If it's not a function it's used as
|
||||
// receiver for CALL_NON_FUNCTION, otherwise the value on the stack is
|
||||
// ignored.
|
||||
if (expr->expression()->IsSuperReference()) {
|
||||
EmitLoadSuperConstructor(expr->expression()->AsSuperReference());
|
||||
__ Push(result_register());
|
||||
} else {
|
||||
VisitForStackValue(expr->expression());
|
||||
}
|
||||
DCHECK(!expr->expression()->IsSuperReference());
|
||||
VisitForStackValue(expr->expression());
|
||||
|
||||
// Push the arguments ("left-to-right") on the stack.
|
||||
ZoneList<Expression*>* args = expr->arguments();
|
||||
|
@ -2915,12 +2915,8 @@ void FullCodeGenerator::VisitCallNew(CallNew* expr) {
|
||||
// Push constructor on the stack. If it's not a function it's used as
|
||||
// receiver for CALL_NON_FUNCTION, otherwise the value on the stack is
|
||||
// ignored.
|
||||
if (expr->expression()->IsSuperReference()) {
|
||||
EmitLoadSuperConstructor(expr->expression()->AsSuperReference());
|
||||
__ Push(result_register());
|
||||
} else {
|
||||
VisitForStackValue(expr->expression());
|
||||
}
|
||||
DCHECK(!expr->expression()->IsSuperReference());
|
||||
VisitForStackValue(expr->expression());
|
||||
|
||||
// Push the arguments ("left-to-right") on the stack.
|
||||
ZoneList<Expression*>* args = expr->arguments();
|
||||
|
@ -3106,12 +3106,8 @@ void FullCodeGenerator::VisitCallNew(CallNew* expr) {
|
||||
// Push constructor on the stack. If it's not a function it's used as
|
||||
// receiver for CALL_NON_FUNCTION, otherwise the value on the stack is
|
||||
// ignored.
|
||||
if (expr->expression()->IsSuperReference()) {
|
||||
EmitLoadSuperConstructor(expr->expression()->AsSuperReference());
|
||||
__ push(result_register());
|
||||
} else {
|
||||
VisitForStackValue(expr->expression());
|
||||
}
|
||||
DCHECK(!expr->expression()->IsSuperReference());
|
||||
VisitForStackValue(expr->expression());
|
||||
|
||||
// Push the arguments ("left-to-right") on the stack.
|
||||
ZoneList<Expression*>* args = expr->arguments();
|
||||
|
@ -3190,12 +3190,8 @@ void FullCodeGenerator::VisitCallNew(CallNew* expr) {
|
||||
// Push constructor on the stack. If it's not a function it's used as
|
||||
// receiver for CALL_NON_FUNCTION, otherwise the value on the stack is
|
||||
// ignored.
|
||||
if (expr->expression()->IsSuperReference()) {
|
||||
EmitLoadSuperConstructor(expr->expression()->AsSuperReference());
|
||||
__ Push(result_register());
|
||||
} else {
|
||||
VisitForStackValue(expr->expression());
|
||||
}
|
||||
DCHECK(!expr->expression()->IsSuperReference());
|
||||
VisitForStackValue(expr->expression());
|
||||
|
||||
// Push the arguments ("left-to-right") on the stack.
|
||||
ZoneList<Expression*>* args = expr->arguments();
|
||||
|
@ -3189,12 +3189,8 @@ void FullCodeGenerator::VisitCallNew(CallNew* expr) {
|
||||
// Push constructor on the stack. If it's not a function it's used as
|
||||
// receiver for CALL_NON_FUNCTION, otherwise the value on the stack is
|
||||
// ignored.
|
||||
if (expr->expression()->IsSuperReference()) {
|
||||
EmitLoadSuperConstructor(expr->expression()->AsSuperReference());
|
||||
__ Push(result_register());
|
||||
} else {
|
||||
VisitForStackValue(expr->expression());
|
||||
}
|
||||
DCHECK(!expr->expression()->IsSuperReference());
|
||||
VisitForStackValue(expr->expression());
|
||||
|
||||
// Push the arguments ("left-to-right") on the stack.
|
||||
ZoneList<Expression*>* args = expr->arguments();
|
||||
@ -3202,6 +3198,7 @@ void FullCodeGenerator::VisitCallNew(CallNew* expr) {
|
||||
for (int i = 0; i < arg_count; i++) {
|
||||
VisitForStackValue(args->at(i));
|
||||
}
|
||||
|
||||
// Call the construct call builtin that handles allocation and
|
||||
// constructor invocation.
|
||||
SetSourcePosition(expr->position());
|
||||
|
@ -3206,12 +3206,8 @@ void FullCodeGenerator::VisitCallNew(CallNew* expr) {
|
||||
// Push constructor on the stack. If it's not a function it's used as
|
||||
// receiver for CALL_NON_FUNCTION, otherwise the value on the stack is
|
||||
// ignored.
|
||||
if (expr->expression()->IsSuperReference()) {
|
||||
EmitLoadSuperConstructor(expr->expression()->AsSuperReference());
|
||||
__ Push(result_register());
|
||||
} else {
|
||||
VisitForStackValue(expr->expression());
|
||||
}
|
||||
DCHECK(!expr->expression()->IsSuperReference());
|
||||
VisitForStackValue(expr->expression());
|
||||
|
||||
// Push the arguments ("left-to-right") on the stack.
|
||||
ZoneList<Expression*>* args = expr->arguments();
|
||||
|
@ -3112,12 +3112,8 @@ void FullCodeGenerator::VisitCallNew(CallNew* expr) {
|
||||
// Push constructor on the stack. If it's not a function it's used as
|
||||
// receiver for CALL_NON_FUNCTION, otherwise the value on the stack is
|
||||
// ignored.
|
||||
if (expr->expression()->IsSuperReference()) {
|
||||
EmitLoadSuperConstructor(expr->expression()->AsSuperReference());
|
||||
__ Push(result_register());
|
||||
} else {
|
||||
VisitForStackValue(expr->expression());
|
||||
}
|
||||
DCHECK(!expr->expression()->IsSuperReference());
|
||||
VisitForStackValue(expr->expression());
|
||||
|
||||
// Push the arguments ("left-to-right") on the stack.
|
||||
ZoneList<Expression*>* args = expr->arguments();
|
||||
|
@ -3084,12 +3084,8 @@ void FullCodeGenerator::VisitCallNew(CallNew* expr) {
|
||||
// Push constructor on the stack. If it's not a function it's used as
|
||||
// receiver for CALL_NON_FUNCTION, otherwise the value on the stack is
|
||||
// ignored.
|
||||
if (expr->expression()->IsSuperReference()) {
|
||||
EmitLoadSuperConstructor(expr->expression()->AsSuperReference());
|
||||
__ push(result_register());
|
||||
} else {
|
||||
VisitForStackValue(expr->expression());
|
||||
}
|
||||
DCHECK(!expr->expression()->IsSuperReference());
|
||||
VisitForStackValue(expr->expression());
|
||||
|
||||
// Push the arguments ("left-to-right") on the stack.
|
||||
ZoneList<Expression*>* args = expr->arguments();
|
||||
|
Loading…
Reference in New Issue
Block a user