| 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 <memory> | 7 #include <memory> |
| 8 #include <sstream> | 8 #include <sstream> |
| 9 | 9 |
| 10 #include "src/allocation-site-scopes.h" | 10 #include "src/allocation-site-scopes.h" |
| (...skipping 11483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11494 | 11494 |
| 11495 | 11495 |
| 11496 void HOptimizedGraphBuilder::VisitEmptyParentheses(EmptyParentheses* expr) { | 11496 void HOptimizedGraphBuilder::VisitEmptyParentheses(EmptyParentheses* expr) { |
| 11497 UNREACHABLE(); | 11497 UNREACHABLE(); |
| 11498 } | 11498 } |
| 11499 | 11499 |
| 11500 void HOptimizedGraphBuilder::VisitGetIterator(GetIterator* expr) { | 11500 void HOptimizedGraphBuilder::VisitGetIterator(GetIterator* expr) { |
| 11501 UNREACHABLE(); | 11501 UNREACHABLE(); |
| 11502 } | 11502 } |
| 11503 | 11503 |
| 11504 void HOptimizedGraphBuilder::VisitInternalVariable(InternalVariable* expr) { |
| 11505 UNREACHABLE(); |
| 11506 } |
| 11507 |
| 11504 HValue* HOptimizedGraphBuilder::AddThisFunction() { | 11508 HValue* HOptimizedGraphBuilder::AddThisFunction() { |
| 11505 return AddInstruction(BuildThisFunction()); | 11509 return AddInstruction(BuildThisFunction()); |
| 11506 } | 11510 } |
| 11507 | 11511 |
| 11508 | 11512 |
| 11509 HInstruction* HOptimizedGraphBuilder::BuildThisFunction() { | 11513 HInstruction* HOptimizedGraphBuilder::BuildThisFunction() { |
| 11510 // If we share optimized code between different closures, the | 11514 // If we share optimized code between different closures, the |
| 11511 // this-function is not a constant, except inside an inlined body. | 11515 // this-function is not a constant, except inside an inlined body. |
| 11512 if (function_state()->outer() != NULL) { | 11516 if (function_state()->outer() != NULL) { |
| 11513 return New<HConstant>( | 11517 return New<HConstant>( |
| (...skipping 1508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13022 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 13026 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); |
| 13023 } | 13027 } |
| 13024 | 13028 |
| 13025 #ifdef DEBUG | 13029 #ifdef DEBUG |
| 13026 graph_->Verify(false); // No full verify. | 13030 graph_->Verify(false); // No full verify. |
| 13027 #endif | 13031 #endif |
| 13028 } | 13032 } |
| 13029 | 13033 |
| 13030 } // namespace internal | 13034 } // namespace internal |
| 13031 } // namespace v8 | 13035 } // namespace v8 |
| OLD | NEW |