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/compiler.h" | 7 #include "src/compiler.h" |
8 #include "src/compiler/ast-loop-assignment-analyzer.h" | 8 #include "src/compiler/ast-loop-assignment-analyzer.h" |
9 #include "src/compiler/control-builders.h" | 9 #include "src/compiler/control-builders.h" |
10 #include "src/compiler/js-type-feedback.h" | 10 #include "src/compiler/js-type-feedback.h" |
(...skipping 2826 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2837 | 2837 |
2838 | 2838 |
2839 void AstGraphBuilder::VisitSuperPropertyReference( | 2839 void AstGraphBuilder::VisitSuperPropertyReference( |
2840 SuperPropertyReference* expr) { | 2840 SuperPropertyReference* expr) { |
2841 Node* value = BuildThrowUnsupportedSuperError(expr->id()); | 2841 Node* value = BuildThrowUnsupportedSuperError(expr->id()); |
2842 ast_context()->ProduceValue(value); | 2842 ast_context()->ProduceValue(value); |
2843 } | 2843 } |
2844 | 2844 |
2845 | 2845 |
2846 void AstGraphBuilder::VisitSuperCallReference(SuperCallReference* expr) { | 2846 void AstGraphBuilder::VisitSuperCallReference(SuperCallReference* expr) { |
2847 Node* value = BuildThrowUnsupportedSuperError(expr->id()); | 2847 // Handled by VisitCall |
2848 ast_context()->ProduceValue(value); | 2848 UNREACHABLE(); |
2849 } | 2849 } |
2850 | 2850 |
2851 | 2851 |
2852 void AstGraphBuilder::VisitCaseClause(CaseClause* expr) { | 2852 void AstGraphBuilder::VisitCaseClause(CaseClause* expr) { |
2853 // Handled entirely in VisitSwitch. | 2853 // Handled entirely in VisitSwitch. |
2854 UNREACHABLE(); | 2854 UNREACHABLE(); |
2855 } | 2855 } |
2856 | 2856 |
2857 | 2857 |
2858 void AstGraphBuilder::VisitDeclarations(ZoneList<Declaration*>* declarations) { | 2858 void AstGraphBuilder::VisitDeclarations(ZoneList<Declaration*>* declarations) { |
(...skipping 1346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4205 // Phi does not exist yet, introduce one. | 4205 // Phi does not exist yet, introduce one. |
4206 value = NewPhi(inputs, value, control); | 4206 value = NewPhi(inputs, value, control); |
4207 value->ReplaceInput(inputs - 1, other); | 4207 value->ReplaceInput(inputs - 1, other); |
4208 } | 4208 } |
4209 return value; | 4209 return value; |
4210 } | 4210 } |
4211 | 4211 |
4212 } // namespace compiler | 4212 } // namespace compiler |
4213 } // namespace internal | 4213 } // namespace internal |
4214 } // namespace v8 | 4214 } // namespace v8 |
OLD | NEW |