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

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

Issue 2397723002: [turbofan] Funnel class constructors through TurboFan. (Closed)
Patch Set: Rebased. Created 4 years, 2 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 | « no previous file | src/bailout-reason.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 582 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 // Generators can be optimized if --turbo-from-bytecode is set.
596 if (FLAG_turbo_from_bytecode) { 596 if (FLAG_turbo_from_bytecode) {
597 DisableCrankshaft(kGenerator); 597 DisableCrankshaft(kGenerator);
598 } else { 598 } else {
599 DisableOptimization(kGenerator); 599 DisableOptimization(kGenerator);
600 } 600 }
601 } 601 }
602 602
603 if (IsClassConstructor(node->kind())) {
604 DisableCrankshaft(kClassConstructorFunction);
605 }
606
603 VisitDeclarations(scope->declarations()); 607 VisitDeclarations(scope->declarations());
604 VisitStatements(node->body()); 608 VisitStatements(node->body());
605 609
606 node->set_ast_properties(&properties_); 610 node->set_ast_properties(&properties_);
607 node->set_dont_optimize_reason(dont_optimize_reason()); 611 node->set_dont_optimize_reason(dont_optimize_reason());
608 node->set_yield_count(yield_count_); 612 node->set_yield_count(yield_count_);
609 return !HasStackOverflow(); 613 return !HasStackOverflow();
610 } 614 }
611 615
612 616
613 bool AstNumbering::Renumber(Isolate* isolate, Zone* zone, 617 bool AstNumbering::Renumber(Isolate* isolate, Zone* zone,
614 FunctionLiteral* function) { 618 FunctionLiteral* function) {
615 AstNumberingVisitor visitor(isolate, zone); 619 AstNumberingVisitor visitor(isolate, zone);
616 return visitor.Renumber(function); 620 return visitor.Renumber(function);
617 } 621 }
618 } // namespace internal 622 } // namespace internal
619 } // namespace v8 623 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/bailout-reason.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698