OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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/compiler/ast-graph-builder.h" | 5 #include "src/compiler/ast-graph-builder.h" |
6 | 6 |
7 #include "src/ast/compile-time-value.h" | 7 #include "src/ast/compile-time-value.h" |
8 #include "src/ast/scopes.h" | 8 #include "src/ast/scopes.h" |
9 #include "src/compilation-info.h" | 9 #include "src/compilation-info.h" |
10 #include "src/compiler.h" | 10 #include "src/compiler.h" |
(...skipping 2147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2158 // Handled entirely by the parser itself. | 2158 // Handled entirely by the parser itself. |
2159 UNREACHABLE(); | 2159 UNREACHABLE(); |
2160 } | 2160 } |
2161 | 2161 |
2162 | 2162 |
2163 void AstGraphBuilder::VisitEmptyParentheses(EmptyParentheses* expr) { | 2163 void AstGraphBuilder::VisitEmptyParentheses(EmptyParentheses* expr) { |
2164 // Handled entirely by the parser itself. | 2164 // Handled entirely by the parser itself. |
2165 UNREACHABLE(); | 2165 UNREACHABLE(); |
2166 } | 2166 } |
2167 | 2167 |
| 2168 void AstGraphBuilder::VisitGetIterator(GetIterator* expr) { |
| 2169 // GetIterator is supported only by going through Ignition first. |
| 2170 UNREACHABLE(); |
| 2171 } |
2168 | 2172 |
2169 void AstGraphBuilder::VisitThisFunction(ThisFunction* expr) { | 2173 void AstGraphBuilder::VisitThisFunction(ThisFunction* expr) { |
2170 Node* value = GetFunctionClosure(); | 2174 Node* value = GetFunctionClosure(); |
2171 ast_context()->ProduceValue(expr, value); | 2175 ast_context()->ProduceValue(expr, value); |
2172 } | 2176 } |
2173 | 2177 |
2174 | 2178 |
2175 void AstGraphBuilder::VisitSuperPropertyReference( | 2179 void AstGraphBuilder::VisitSuperPropertyReference( |
2176 SuperPropertyReference* expr) { | 2180 SuperPropertyReference* expr) { |
2177 UNREACHABLE(); | 2181 UNREACHABLE(); |
(...skipping 1115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3293 float invocation_frequency, LoopAssignmentAnalysis* loop_assignment, | 3297 float invocation_frequency, LoopAssignmentAnalysis* loop_assignment, |
3294 SourcePositionTable* source_positions, int inlining_id) | 3298 SourcePositionTable* source_positions, int inlining_id) |
3295 : AstGraphBuilder(local_zone, info, jsgraph, invocation_frequency, | 3299 : AstGraphBuilder(local_zone, info, jsgraph, invocation_frequency, |
3296 loop_assignment), | 3300 loop_assignment), |
3297 source_positions_(source_positions), | 3301 source_positions_(source_positions), |
3298 start_position_(info->shared_info()->start_position(), inlining_id) {} | 3302 start_position_(info->shared_info()->start_position(), inlining_id) {} |
3299 | 3303 |
3300 } // namespace compiler | 3304 } // namespace compiler |
3301 } // namespace internal | 3305 } // namespace internal |
3302 } // namespace v8 | 3306 } // namespace v8 |
OLD | NEW |