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/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 11515 matching lines...) Loading... |
11526 HIfContinuation continuation; | 11526 HIfContinuation continuation; |
11527 BuildCompareNil(value, type, &continuation); | 11527 BuildCompareNil(value, type, &continuation); |
11528 return ast_context()->ReturnContinuation(&continuation, expr->id()); | 11528 return ast_context()->ReturnContinuation(&continuation, expr->id()); |
11529 } | 11529 } |
11530 } | 11530 } |
11531 | 11531 |
11532 | 11532 |
11533 void HOptimizedGraphBuilder::VisitSpread(Spread* expr) { UNREACHABLE(); } | 11533 void HOptimizedGraphBuilder::VisitSpread(Spread* expr) { UNREACHABLE(); } |
11534 | 11534 |
11535 | 11535 |
| 11536 void HOptimizedGraphBuilder::VisitEmptyParentheses(EmptyParentheses* expr) { |
| 11537 UNREACHABLE(); |
| 11538 } |
| 11539 |
| 11540 |
11536 HInstruction* HOptimizedGraphBuilder::BuildThisFunction() { | 11541 HInstruction* HOptimizedGraphBuilder::BuildThisFunction() { |
11537 // If we share optimized code between different closures, the | 11542 // If we share optimized code between different closures, the |
11538 // this-function is not a constant, except inside an inlined body. | 11543 // this-function is not a constant, except inside an inlined body. |
11539 if (function_state()->outer() != NULL) { | 11544 if (function_state()->outer() != NULL) { |
11540 return New<HConstant>( | 11545 return New<HConstant>( |
11541 function_state()->compilation_info()->closure()); | 11546 function_state()->compilation_info()->closure()); |
11542 } else { | 11547 } else { |
11543 return New<HThisFunction>(); | 11548 return New<HThisFunction>(); |
11544 } | 11549 } |
11545 } | 11550 } |
(...skipping 1906 matching lines...) Loading... |
13452 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 13457 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); |
13453 } | 13458 } |
13454 | 13459 |
13455 #ifdef DEBUG | 13460 #ifdef DEBUG |
13456 graph_->Verify(false); // No full verify. | 13461 graph_->Verify(false); // No full verify. |
13457 #endif | 13462 #endif |
13458 } | 13463 } |
13459 | 13464 |
13460 } // namespace internal | 13465 } // namespace internal |
13461 } // namespace v8 | 13466 } // namespace v8 |
OLD | NEW |