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

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

Issue 1760253003: [crankshaft] Support ES6 tail call elimination. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@tco-crank-2
Patch Set: Addressing comments Created 4 years, 9 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
« no previous file with comments | « src/arm64/macro-assembler-arm64.cc ('k') | src/code-factory.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 9
10 namespace v8 { 10 namespace v8 {
(...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 for (int i = 0; i < node->values()->length(); i++) { 497 for (int i = 0; i < node->values()->length(); i++) {
498 Visit(node->values()->at(i)); 498 Visit(node->values()->at(i));
499 } 499 }
500 node->BuildConstantElements(isolate_); 500 node->BuildConstantElements(isolate_);
501 ReserveFeedbackSlots(node); 501 ReserveFeedbackSlots(node);
502 } 502 }
503 503
504 504
505 void AstNumberingVisitor::VisitCall(Call* node) { 505 void AstNumberingVisitor::VisitCall(Call* node) {
506 IncrementNodeCount(); 506 IncrementNodeCount();
507 if (node->tail_call_mode() == TailCallMode::kAllow) {
508 DisableOptimization(kTailCall);
509 }
510 ReserveFeedbackSlots(node); 507 ReserveFeedbackSlots(node);
511 node->set_base_id(ReserveIdRange(Call::num_ids())); 508 node->set_base_id(ReserveIdRange(Call::num_ids()));
512 Visit(node->expression()); 509 Visit(node->expression());
513 VisitArguments(node->arguments()); 510 VisitArguments(node->arguments());
514 } 511 }
515 512
516 513
517 void AstNumberingVisitor::VisitCallNew(CallNew* node) { 514 void AstNumberingVisitor::VisitCallNew(CallNew* node) {
518 IncrementNodeCount(); 515 IncrementNodeCount();
519 ReserveFeedbackSlots(node); 516 ReserveFeedbackSlots(node);
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
595 } 592 }
596 593
597 594
598 bool AstNumbering::Renumber(Isolate* isolate, Zone* zone, 595 bool AstNumbering::Renumber(Isolate* isolate, Zone* zone,
599 FunctionLiteral* function) { 596 FunctionLiteral* function) {
600 AstNumberingVisitor visitor(isolate, zone); 597 AstNumberingVisitor visitor(isolate, zone);
601 return visitor.Renumber(function); 598 return visitor.Renumber(function);
602 } 599 }
603 } // namespace internal 600 } // namespace internal
604 } // namespace v8 601 } // namespace v8
OLDNEW
« no previous file with comments | « src/arm64/macro-assembler-arm64.cc ('k') | src/code-factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698