OLD | NEW |
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/ast-numbering.h" | 10 #include "src/ast/ast-numbering.h" |
(...skipping 5506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5517 } else { | 5517 } else { |
5518 Add<HPushArguments>(shared_info_value); | 5518 Add<HPushArguments>(shared_info_value); |
5519 Runtime::FunctionId function_id = | 5519 Runtime::FunctionId function_id = |
5520 expr->pretenure() ? Runtime::kNewClosure_Tenured : Runtime::kNewClosure; | 5520 expr->pretenure() ? Runtime::kNewClosure_Tenured : Runtime::kNewClosure; |
5521 instr = New<HCallRuntime>(Runtime::FunctionForId(function_id), 1); | 5521 instr = New<HCallRuntime>(Runtime::FunctionForId(function_id), 1); |
5522 } | 5522 } |
5523 return ast_context()->ReturnInstruction(instr, expr->id()); | 5523 return ast_context()->ReturnInstruction(instr, expr->id()); |
5524 } | 5524 } |
5525 | 5525 |
5526 | 5526 |
5527 void HOptimizedGraphBuilder::VisitClassLiteral(ClassLiteral* lit) { | |
5528 DCHECK(!HasStackOverflow()); | |
5529 DCHECK(current_block() != NULL); | |
5530 DCHECK(current_block()->HasPredecessor()); | |
5531 return Bailout(kClassLiteral); | |
5532 } | |
5533 | |
5534 | |
5535 void HOptimizedGraphBuilder::VisitNativeFunctionLiteral( | 5527 void HOptimizedGraphBuilder::VisitNativeFunctionLiteral( |
5536 NativeFunctionLiteral* expr) { | 5528 NativeFunctionLiteral* expr) { |
5537 DCHECK(!HasStackOverflow()); | 5529 DCHECK(!HasStackOverflow()); |
5538 DCHECK(current_block() != NULL); | 5530 DCHECK(current_block() != NULL); |
5539 DCHECK(current_block()->HasPredecessor()); | 5531 DCHECK(current_block()->HasPredecessor()); |
5540 return Bailout(kNativeFunctionLiteral); | 5532 return Bailout(kNativeFunctionLiteral); |
5541 } | 5533 } |
5542 | 5534 |
5543 | 5535 |
5544 void HOptimizedGraphBuilder::VisitDoExpression(DoExpression* expr) { | 5536 void HOptimizedGraphBuilder::VisitDoExpression(DoExpression* expr) { |
(...skipping 7876 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13421 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 13413 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); |
13422 } | 13414 } |
13423 | 13415 |
13424 #ifdef DEBUG | 13416 #ifdef DEBUG |
13425 graph_->Verify(false); // No full verify. | 13417 graph_->Verify(false); // No full verify. |
13426 #endif | 13418 #endif |
13427 } | 13419 } |
13428 | 13420 |
13429 } // namespace internal | 13421 } // namespace internal |
13430 } // namespace v8 | 13422 } // namespace v8 |
OLD | NEW |