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/crankshaft/hydrogen.cc

Issue 1399893002: [es7] implement |do| expressions proposal (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Disable CrankShaft 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/crankshaft/hydrogen.h" 5 #include "src/crankshaft/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 5517 matching lines...) Expand 10 before | Expand all | Expand 10 after
5528 5528
5529 void HOptimizedGraphBuilder::VisitNativeFunctionLiteral( 5529 void HOptimizedGraphBuilder::VisitNativeFunctionLiteral(
5530 NativeFunctionLiteral* expr) { 5530 NativeFunctionLiteral* expr) {
5531 DCHECK(!HasStackOverflow()); 5531 DCHECK(!HasStackOverflow());
5532 DCHECK(current_block() != NULL); 5532 DCHECK(current_block() != NULL);
5533 DCHECK(current_block()->HasPredecessor()); 5533 DCHECK(current_block()->HasPredecessor());
5534 return Bailout(kNativeFunctionLiteral); 5534 return Bailout(kNativeFunctionLiteral);
5535 } 5535 }
5536 5536
5537 5537
5538 void HOptimizedGraphBuilder::VisitDoExpression(DoExpression* expr) {
5539 UNREACHABLE();
5540 }
5541
5542
5538 void HOptimizedGraphBuilder::VisitConditional(Conditional* expr) { 5543 void HOptimizedGraphBuilder::VisitConditional(Conditional* expr) {
5539 DCHECK(!HasStackOverflow()); 5544 DCHECK(!HasStackOverflow());
5540 DCHECK(current_block() != NULL); 5545 DCHECK(current_block() != NULL);
5541 DCHECK(current_block()->HasPredecessor()); 5546 DCHECK(current_block()->HasPredecessor());
5542 HBasicBlock* cond_true = graph()->CreateBasicBlock(); 5547 HBasicBlock* cond_true = graph()->CreateBasicBlock();
5543 HBasicBlock* cond_false = graph()->CreateBasicBlock(); 5548 HBasicBlock* cond_false = graph()->CreateBasicBlock();
5544 CHECK_BAILOUT(VisitForControl(expr->condition(), cond_true, cond_false)); 5549 CHECK_BAILOUT(VisitForControl(expr->condition(), cond_true, cond_false));
5545 5550
5546 // Visit the true and false subexpressions in the same AST context as the 5551 // Visit the true and false subexpressions in the same AST context as the
5547 // whole expression. 5552 // whole expression.
(...skipping 8143 matching lines...) Expand 10 before | Expand all | Expand 10 after
13691 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); 13696 isolate()->GetHTracer()->TraceHydrogen(name(), graph_);
13692 } 13697 }
13693 13698
13694 #ifdef DEBUG 13699 #ifdef DEBUG
13695 graph_->Verify(false); // No full verify. 13700 graph_->Verify(false); // No full verify.
13696 #endif 13701 #endif
13697 } 13702 }
13698 13703
13699 } // namespace internal 13704 } // namespace internal
13700 } // namespace v8 13705 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698