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

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

Issue 1327753002: [crankshaft] Add baseline implementation of for-of. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 3 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/hydrogen.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-numbering.h" 5 #include "src/ast-numbering.h"
6 6
7 #include "src/ast.h" 7 #include "src/ast.h"
8 #include "src/scopes.h" 8 #include "src/scopes.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 node->set_base_id(ReserveIdRange(ForInStatement::num_ids())); 382 node->set_base_id(ReserveIdRange(ForInStatement::num_ids()));
383 Visit(node->each()); 383 Visit(node->each());
384 Visit(node->enumerable()); 384 Visit(node->enumerable());
385 Visit(node->body()); 385 Visit(node->body());
386 ReserveFeedbackSlots(node); 386 ReserveFeedbackSlots(node);
387 } 387 }
388 388
389 389
390 void AstNumberingVisitor::VisitForOfStatement(ForOfStatement* node) { 390 void AstNumberingVisitor::VisitForOfStatement(ForOfStatement* node) {
391 IncrementNodeCount(); 391 IncrementNodeCount();
392 DisableCrankshaft(kForOfStatement);
393 node->set_base_id(ReserveIdRange(ForOfStatement::num_ids())); 392 node->set_base_id(ReserveIdRange(ForOfStatement::num_ids()));
394 Visit(node->assign_iterator()); 393 Visit(node->assign_iterator());
395 Visit(node->next_result()); 394 Visit(node->next_result());
396 Visit(node->result_done()); 395 Visit(node->result_done());
397 Visit(node->assign_each()); 396 Visit(node->assign_each());
398 Visit(node->body()); 397 Visit(node->body());
399 ReserveFeedbackSlots(node); 398 ReserveFeedbackSlots(node);
400 } 399 }
401 400
402 401
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
574 } 573 }
575 574
576 575
577 bool AstNumbering::Renumber(Isolate* isolate, Zone* zone, 576 bool AstNumbering::Renumber(Isolate* isolate, Zone* zone,
578 FunctionLiteral* function) { 577 FunctionLiteral* function) {
579 AstNumberingVisitor visitor(isolate, zone); 578 AstNumberingVisitor visitor(isolate, zone);
580 return visitor.Renumber(function); 579 return visitor.Renumber(function);
581 } 580 }
582 } // namespace internal 581 } // namespace internal
583 } // namespace v8 582 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698