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

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

Issue 2437103002: [turbofan] Remove deprecated --turbo-from-bytecode flag. (Closed)
Patch Set: Rebased. Created 4 years, 1 month 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 | « no previous file | src/compiler.cc » ('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 574 matching lines...) Expand 10 before | Expand all | Expand 10 after
585 if (scope->calls_eval()) DisableCrankshaft(kFunctionCallsEval); 585 if (scope->calls_eval()) DisableCrankshaft(kFunctionCallsEval);
586 if (scope->arguments() != NULL && !scope->arguments()->IsStackAllocated()) { 586 if (scope->arguments() != NULL && !scope->arguments()->IsStackAllocated()) {
587 DisableCrankshaft(kContextAllocatedArguments); 587 DisableCrankshaft(kContextAllocatedArguments);
588 } 588 }
589 589
590 if (scope->rest_parameter() != nullptr) { 590 if (scope->rest_parameter() != nullptr) {
591 DisableCrankshaft(kRestParameter); 591 DisableCrankshaft(kRestParameter);
592 } 592 }
593 593
594 if (IsGeneratorFunction(node->kind()) || IsAsyncFunction(node->kind())) { 594 if (IsGeneratorFunction(node->kind()) || IsAsyncFunction(node->kind())) {
595 // Generators can be optimized if --turbo-from-bytecode is set. 595 DisableCrankshaft(kGenerator);
596 if (FLAG_turbo_from_bytecode) {
597 DisableCrankshaft(kGenerator);
598 } else {
599 DisableOptimization(kGenerator);
600 }
601 } 596 }
602 597
603 if (IsClassConstructor(node->kind())) { 598 if (IsClassConstructor(node->kind())) {
604 DisableCrankshaft(kClassConstructorFunction); 599 DisableCrankshaft(kClassConstructorFunction);
605 } 600 }
606 601
607 VisitDeclarations(scope->declarations()); 602 VisitDeclarations(scope->declarations());
608 VisitStatements(node->body()); 603 VisitStatements(node->body());
609 604
610 node->set_ast_properties(&properties_); 605 node->set_ast_properties(&properties_);
611 node->set_dont_optimize_reason(dont_optimize_reason()); 606 node->set_dont_optimize_reason(dont_optimize_reason());
612 node->set_yield_count(yield_count_); 607 node->set_yield_count(yield_count_);
613 return !HasStackOverflow(); 608 return !HasStackOverflow();
614 } 609 }
615 610
616 611
617 bool AstNumbering::Renumber(Isolate* isolate, Zone* zone, 612 bool AstNumbering::Renumber(Isolate* isolate, Zone* zone,
618 FunctionLiteral* function) { 613 FunctionLiteral* function) {
619 AstNumberingVisitor visitor(isolate, zone); 614 AstNumberingVisitor visitor(isolate, zone);
620 return visitor.Renumber(function); 615 return visitor.Renumber(function);
621 } 616 }
622 } // namespace internal 617 } // namespace internal
623 } // namespace v8 618 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698