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

Side by Side Diff: src/hydrogen.cc

Issue 1399893002: [es7] implement |do| expressions proposal (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix AST numbering issue + add simple TF impl Created 5 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
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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/hydrogen.h" 5 #include "src/hydrogen.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "src/allocation-site-scopes.h" 9 #include "src/allocation-site-scopes.h"
10 #include "src/ast-numbering.h" 10 #include "src/ast-numbering.h"
(...skipping 5502 matching lines...) Expand 10 before | Expand all | Expand 10 after
5513 5513
5514 void HOptimizedGraphBuilder::VisitNativeFunctionLiteral( 5514 void HOptimizedGraphBuilder::VisitNativeFunctionLiteral(
5515 NativeFunctionLiteral* expr) { 5515 NativeFunctionLiteral* expr) {
5516 DCHECK(!HasStackOverflow()); 5516 DCHECK(!HasStackOverflow());
5517 DCHECK(current_block() != NULL); 5517 DCHECK(current_block() != NULL);
5518 DCHECK(current_block()->HasPredecessor()); 5518 DCHECK(current_block()->HasPredecessor());
5519 return Bailout(kNativeFunctionLiteral); 5519 return Bailout(kNativeFunctionLiteral);
5520 } 5520 }
5521 5521
5522 5522
5523 void HOptimizedGraphBuilder::VisitDoExpression(DoExpression* expr) {
5524 DCHECK(!HasStackOverflow());
5525 DCHECK_NOT_NULL(current_block());
5526 DCHECK(current_block()->HasPredecessor());
5527 return Bailout(kDoExpression);
5528 }
5529
5530
5523 void HOptimizedGraphBuilder::VisitConditional(Conditional* expr) { 5531 void HOptimizedGraphBuilder::VisitConditional(Conditional* expr) {
5524 DCHECK(!HasStackOverflow()); 5532 DCHECK(!HasStackOverflow());
5525 DCHECK(current_block() != NULL); 5533 DCHECK(current_block() != NULL);
5526 DCHECK(current_block()->HasPredecessor()); 5534 DCHECK(current_block()->HasPredecessor());
5527 HBasicBlock* cond_true = graph()->CreateBasicBlock(); 5535 HBasicBlock* cond_true = graph()->CreateBasicBlock();
5528 HBasicBlock* cond_false = graph()->CreateBasicBlock(); 5536 HBasicBlock* cond_false = graph()->CreateBasicBlock();
5529 CHECK_BAILOUT(VisitForControl(expr->condition(), cond_true, cond_false)); 5537 CHECK_BAILOUT(VisitForControl(expr->condition(), cond_true, cond_false));
5530 5538
5531 // Visit the true and false subexpressions in the same AST context as the 5539 // Visit the true and false subexpressions in the same AST context as the
5532 // whole expression. 5540 // whole expression.
(...skipping 8129 matching lines...) Expand 10 before | Expand all | Expand 10 after
13662 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); 13670 isolate()->GetHTracer()->TraceHydrogen(name(), graph_);
13663 } 13671 }
13664 13672
13665 #ifdef DEBUG 13673 #ifdef DEBUG
13666 graph_->Verify(false); // No full verify. 13674 graph_->Verify(false); // No full verify.
13667 #endif 13675 #endif
13668 } 13676 }
13669 13677
13670 } // namespace internal 13678 } // namespace internal
13671 } // namespace v8 13679 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698