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 2023 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2034 void AstGraphBuilder::VisitEmptyParentheses(EmptyParentheses* expr) { | 2034 void AstGraphBuilder::VisitEmptyParentheses(EmptyParentheses* expr) { |
2035 // Handled entirely by the parser itself. | 2035 // Handled entirely by the parser itself. |
2036 UNREACHABLE(); | 2036 UNREACHABLE(); |
2037 } | 2037 } |
2038 | 2038 |
2039 void AstGraphBuilder::VisitGetIterator(GetIterator* expr) { | 2039 void AstGraphBuilder::VisitGetIterator(GetIterator* expr) { |
2040 // GetIterator is supported only by going through Ignition first. | 2040 // GetIterator is supported only by going through Ignition first. |
2041 UNREACHABLE(); | 2041 UNREACHABLE(); |
2042 } | 2042 } |
2043 | 2043 |
| 2044 void AstGraphBuilder::VisitImportCallExpression(ImportCallExpression* expr) { |
| 2045 // ImportCallExpression is supported only by going through Ignition first. |
| 2046 UNREACHABLE(); |
| 2047 } |
| 2048 |
2044 void AstGraphBuilder::VisitThisFunction(ThisFunction* expr) { | 2049 void AstGraphBuilder::VisitThisFunction(ThisFunction* expr) { |
2045 Node* value = GetFunctionClosure(); | 2050 Node* value = GetFunctionClosure(); |
2046 ast_context()->ProduceValue(expr, value); | 2051 ast_context()->ProduceValue(expr, value); |
2047 } | 2052 } |
2048 | 2053 |
2049 | 2054 |
2050 void AstGraphBuilder::VisitSuperPropertyReference( | 2055 void AstGraphBuilder::VisitSuperPropertyReference( |
2051 SuperPropertyReference* expr) { | 2056 SuperPropertyReference* expr) { |
2052 UNREACHABLE(); | 2057 UNREACHABLE(); |
2053 } | 2058 } |
(...skipping 1116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3170 float invocation_frequency, LoopAssignmentAnalysis* loop_assignment, | 3175 float invocation_frequency, LoopAssignmentAnalysis* loop_assignment, |
3171 SourcePositionTable* source_positions, int inlining_id) | 3176 SourcePositionTable* source_positions, int inlining_id) |
3172 : AstGraphBuilder(local_zone, info, jsgraph, invocation_frequency, | 3177 : AstGraphBuilder(local_zone, info, jsgraph, invocation_frequency, |
3173 loop_assignment), | 3178 loop_assignment), |
3174 source_positions_(source_positions), | 3179 source_positions_(source_positions), |
3175 start_position_(info->shared_info()->start_position(), inlining_id) {} | 3180 start_position_(info->shared_info()->start_position(), inlining_id) {} |
3176 | 3181 |
3177 } // namespace compiler | 3182 } // namespace compiler |
3178 } // namespace internal | 3183 } // namespace internal |
3179 } // namespace v8 | 3184 } // namespace v8 |
OLD | NEW |