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

Side by Side Diff: src/ast/ast-numbering.cc

Issue 2629363002: [Ignition/turbo] Add a CallWithSpread bytecode. (Closed)
Patch Set: Remove case for 1 arg only from PrepareSpreadArguments Created 3 years, 11 months 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 unified diff | Download patch
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/ast/ast-numbering.h" 5 #include "src/ast/ast-numbering.h"
6 6
7 #include "src/ast/ast.h" 7 #include "src/ast/ast.h"
8 #include "src/ast/scopes.h" 8 #include "src/ast/scopes.h"
9 #include "src/compiler.h" 9 #include "src/compiler.h"
10 #include "src/objects-inl.h" 10 #include "src/objects-inl.h"
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 void AstNumberingVisitor::VisitCompareOperation(CompareOperation* node) { 405 void AstNumberingVisitor::VisitCompareOperation(CompareOperation* node) {
406 IncrementNodeCount(); 406 IncrementNodeCount();
407 node->set_base_id(ReserveIdRange(CompareOperation::num_ids())); 407 node->set_base_id(ReserveIdRange(CompareOperation::num_ids()));
408 Visit(node->left()); 408 Visit(node->left());
409 Visit(node->right()); 409 Visit(node->right());
410 ReserveFeedbackSlots(node); 410 ReserveFeedbackSlots(node);
411 } 411 }
412 412
413 void AstNumberingVisitor::VisitSpread(Spread* node) { 413 void AstNumberingVisitor::VisitSpread(Spread* node) {
414 IncrementNodeCount(); 414 IncrementNodeCount();
415 // We can only get here from super calls currently. 415 // We can only get here from spread calls currently.
416 DisableFullCodegenAndCrankshaft(kSuperReference); 416 DisableFullCodegenAndCrankshaft(kSpreadCall);
417 node->set_base_id(ReserveIdRange(Spread::num_ids())); 417 node->set_base_id(ReserveIdRange(Spread::num_ids()));
418 Visit(node->expression()); 418 Visit(node->expression());
419 } 419 }
420 420
421 void AstNumberingVisitor::VisitEmptyParentheses(EmptyParentheses* node) { 421 void AstNumberingVisitor::VisitEmptyParentheses(EmptyParentheses* node) {
422 UNREACHABLE(); 422 UNREACHABLE();
423 } 423 }
424 424
425 void AstNumberingVisitor::VisitGetIterator(GetIterator* node) { 425 void AstNumberingVisitor::VisitGetIterator(GetIterator* node) {
426 IncrementNodeCount(); 426 IncrementNodeCount();
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
662 } 662 }
663 663
664 bool AstNumbering::Renumber( 664 bool AstNumbering::Renumber(
665 Isolate* isolate, Zone* zone, FunctionLiteral* function, 665 Isolate* isolate, Zone* zone, FunctionLiteral* function,
666 Compiler::EagerInnerFunctionLiterals* eager_literals) { 666 Compiler::EagerInnerFunctionLiterals* eager_literals) {
667 AstNumberingVisitor visitor(isolate, zone, eager_literals); 667 AstNumberingVisitor visitor(isolate, zone, eager_literals);
668 return visitor.Renumber(function); 668 return visitor.Renumber(function);
669 } 669 }
670 } // namespace internal 670 } // namespace internal
671 } // namespace v8 671 } // namespace v8
OLDNEW
« no previous file with comments | « src/ast/ast.h ('k') | src/bailout-reason.h » ('j') | src/interpreter/bytecode-generator.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698