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 11222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11233 | 11233 |
11234 | 11234 |
11235 void HOptimizedGraphBuilder::VisitEmptyParentheses(EmptyParentheses* expr) { | 11235 void HOptimizedGraphBuilder::VisitEmptyParentheses(EmptyParentheses* expr) { |
11236 UNREACHABLE(); | 11236 UNREACHABLE(); |
11237 } | 11237 } |
11238 | 11238 |
11239 void HOptimizedGraphBuilder::VisitGetIterator(GetIterator* expr) { | 11239 void HOptimizedGraphBuilder::VisitGetIterator(GetIterator* expr) { |
11240 UNREACHABLE(); | 11240 UNREACHABLE(); |
11241 } | 11241 } |
11242 | 11242 |
| 11243 void HOptimizedGraphBuilder::VisitImportCallExpression( |
| 11244 ImportCallExpression* expr) { |
| 11245 UNREACHABLE(); |
| 11246 } |
| 11247 |
11243 HValue* HOptimizedGraphBuilder::AddThisFunction() { | 11248 HValue* HOptimizedGraphBuilder::AddThisFunction() { |
11244 return AddInstruction(BuildThisFunction()); | 11249 return AddInstruction(BuildThisFunction()); |
11245 } | 11250 } |
11246 | 11251 |
11247 | 11252 |
11248 HInstruction* HOptimizedGraphBuilder::BuildThisFunction() { | 11253 HInstruction* HOptimizedGraphBuilder::BuildThisFunction() { |
11249 // If we share optimized code between different closures, the | 11254 // If we share optimized code between different closures, the |
11250 // this-function is not a constant, except inside an inlined body. | 11255 // this-function is not a constant, except inside an inlined body. |
11251 if (function_state()->outer() != NULL) { | 11256 if (function_state()->outer() != NULL) { |
11252 return New<HConstant>( | 11257 return New<HConstant>( |
(...skipping 1482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12735 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 12740 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); |
12736 } | 12741 } |
12737 | 12742 |
12738 #ifdef DEBUG | 12743 #ifdef DEBUG |
12739 graph_->Verify(false); // No full verify. | 12744 graph_->Verify(false); // No full verify. |
12740 #endif | 12745 #endif |
12741 } | 12746 } |
12742 | 12747 |
12743 } // namespace internal | 12748 } // namespace internal |
12744 } // namespace v8 | 12749 } // namespace v8 |
OLD | NEW |