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