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

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

Issue 2533283002: [fullcodegen] Remove with-statement support. (Closed)
Patch Set: Created 4 years 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/ast/ast.h ('k') | src/compiler/ast-graph-builder.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 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 node->context_index() == Context::ASYNC_FUNCTION_AWAIT_CAUGHT_INDEX && 277 node->context_index() == Context::ASYNC_FUNCTION_AWAIT_CAUGHT_INDEX &&
278 catch_prediction_ == HandlerTable::ASYNC_AWAIT) { 278 catch_prediction_ == HandlerTable::ASYNC_AWAIT) {
279 node->set_context_index(Context::ASYNC_FUNCTION_AWAIT_UNCAUGHT_INDEX); 279 node->set_context_index(Context::ASYNC_FUNCTION_AWAIT_UNCAUGHT_INDEX);
280 } 280 }
281 } 281 }
282 282
283 283
284 void AstNumberingVisitor::VisitWithStatement(WithStatement* node) { 284 void AstNumberingVisitor::VisitWithStatement(WithStatement* node) {
285 IncrementNodeCount(); 285 IncrementNodeCount();
286 DisableFullCodegenAndCrankshaft(kWithStatement); 286 DisableFullCodegenAndCrankshaft(kWithStatement);
287 node->set_base_id(ReserveIdRange(WithStatement::num_ids()));
288 Visit(node->expression()); 287 Visit(node->expression());
289 Visit(node->statement()); 288 Visit(node->statement());
290 } 289 }
291 290
292 291
293 void AstNumberingVisitor::VisitDoWhileStatement(DoWhileStatement* node) { 292 void AstNumberingVisitor::VisitDoWhileStatement(DoWhileStatement* node) {
294 IncrementNodeCount(); 293 IncrementNodeCount();
295 DisableSelfOptimization(); 294 DisableSelfOptimization();
296 node->set_base_id(ReserveIdRange(DoWhileStatement::num_ids())); 295 node->set_base_id(ReserveIdRange(DoWhileStatement::num_ids()));
297 node->set_first_yield_id(yield_count_); 296 node->set_first_yield_id(yield_count_);
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
621 } 620 }
622 621
623 622
624 bool AstNumbering::Renumber(Isolate* isolate, Zone* zone, 623 bool AstNumbering::Renumber(Isolate* isolate, Zone* zone,
625 FunctionLiteral* function) { 624 FunctionLiteral* function) {
626 AstNumberingVisitor visitor(isolate, zone); 625 AstNumberingVisitor visitor(isolate, zone);
627 return visitor.Renumber(function); 626 return visitor.Renumber(function);
628 } 627 }
629 } // namespace internal 628 } // namespace internal
630 } // namespace v8 629 } // namespace v8
OLDNEW
« no previous file with comments | « src/ast/ast.h ('k') | src/compiler/ast-graph-builder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698