Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(39)

Side by Side Diff: src/compiler/ast-graph-builder.cc

Issue 1226443004: [turbofan] VisitSuperCallReference is not reachable (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698