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 11507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11518 HIfContinuation continuation; | 11518 HIfContinuation continuation; |
11519 BuildCompareNil(value, type, &continuation); | 11519 BuildCompareNil(value, type, &continuation); |
11520 return ast_context()->ReturnContinuation(&continuation, expr->id()); | 11520 return ast_context()->ReturnContinuation(&continuation, expr->id()); |
11521 } | 11521 } |
11522 } | 11522 } |
11523 | 11523 |
11524 | 11524 |
11525 void HOptimizedGraphBuilder::VisitSpread(Spread* expr) { UNREACHABLE(); } | 11525 void HOptimizedGraphBuilder::VisitSpread(Spread* expr) { UNREACHABLE(); } |
11526 | 11526 |
11527 | 11527 |
| 11528 void HOptimizedGraphBuilder::VisitEmptyParentheses(EmptyParentheses* expr) { |
| 11529 UNREACHABLE(); |
| 11530 } |
| 11531 |
| 11532 |
11528 HInstruction* HOptimizedGraphBuilder::BuildThisFunction() { | 11533 HInstruction* HOptimizedGraphBuilder::BuildThisFunction() { |
11529 // If we share optimized code between different closures, the | 11534 // If we share optimized code between different closures, the |
11530 // this-function is not a constant, except inside an inlined body. | 11535 // this-function is not a constant, except inside an inlined body. |
11531 if (function_state()->outer() != NULL) { | 11536 if (function_state()->outer() != NULL) { |
11532 return New<HConstant>( | 11537 return New<HConstant>( |
11533 function_state()->compilation_info()->closure()); | 11538 function_state()->compilation_info()->closure()); |
11534 } else { | 11539 } else { |
11535 return New<HThisFunction>(); | 11540 return New<HThisFunction>(); |
11536 } | 11541 } |
11537 } | 11542 } |
(...skipping 1897 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13435 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 13440 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); |
13436 } | 13441 } |
13437 | 13442 |
13438 #ifdef DEBUG | 13443 #ifdef DEBUG |
13439 graph_->Verify(false); // No full verify. | 13444 graph_->Verify(false); // No full verify. |
13440 #endif | 13445 #endif |
13441 } | 13446 } |
13442 | 13447 |
13443 } // namespace internal | 13448 } // namespace internal |
13444 } // namespace v8 | 13449 } // namespace v8 |
OLD | NEW |