| 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 11516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11527 | 11527 |
| 11528 | 11528 |
| 11529 void HOptimizedGraphBuilder::VisitEmptyParentheses(EmptyParentheses* expr) { | 11529 void HOptimizedGraphBuilder::VisitEmptyParentheses(EmptyParentheses* expr) { |
| 11530 UNREACHABLE(); | 11530 UNREACHABLE(); |
| 11531 } | 11531 } |
| 11532 | 11532 |
| 11533 void HOptimizedGraphBuilder::VisitGetIterator(GetIterator* expr) { | 11533 void HOptimizedGraphBuilder::VisitGetIterator(GetIterator* expr) { |
| 11534 UNREACHABLE(); | 11534 UNREACHABLE(); |
| 11535 } | 11535 } |
| 11536 | 11536 |
| 11537 void HOptimizedGraphBuilder::VisitImportCallExpression( |
| 11538 ImportCallExpression* expr) { |
| 11539 UNREACHABLE(); |
| 11540 } |
| 11541 |
| 11537 HValue* HOptimizedGraphBuilder::AddThisFunction() { | 11542 HValue* HOptimizedGraphBuilder::AddThisFunction() { |
| 11538 return AddInstruction(BuildThisFunction()); | 11543 return AddInstruction(BuildThisFunction()); |
| 11539 } | 11544 } |
| 11540 | 11545 |
| 11541 | 11546 |
| 11542 HInstruction* HOptimizedGraphBuilder::BuildThisFunction() { | 11547 HInstruction* HOptimizedGraphBuilder::BuildThisFunction() { |
| 11543 // If we share optimized code between different closures, the | 11548 // If we share optimized code between different closures, the |
| 11544 // this-function is not a constant, except inside an inlined body. | 11549 // this-function is not a constant, except inside an inlined body. |
| 11545 if (function_state()->outer() != NULL) { | 11550 if (function_state()->outer() != NULL) { |
| 11546 return New<HConstant>( | 11551 return New<HConstant>( |
| (...skipping 1482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13029 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 13034 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); |
| 13030 } | 13035 } |
| 13031 | 13036 |
| 13032 #ifdef DEBUG | 13037 #ifdef DEBUG |
| 13033 graph_->Verify(false); // No full verify. | 13038 graph_->Verify(false); // No full verify. |
| 13034 #endif | 13039 #endif |
| 13035 } | 13040 } |
| 13036 | 13041 |
| 13037 } // namespace internal | 13042 } // namespace internal |
| 13038 } // namespace v8 | 13043 } // namespace v8 |
| OLD | NEW |