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