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

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

Issue 1315823002: Parse arrow functions at proper precedence level (Closed) Base URL: https://chromium.googlesource.com/v8/v8@master
Patch Set: Fix nits Created 5 years, 4 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 | « src/ast-numbering.cc ('k') | src/compiler/ast-loop-assignment-analyzer.cc » ('j') | 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 2849 matching lines...) Expand 10 before | Expand all | Expand 10 after
2860 ast_context()->ProduceValue(value); 2860 ast_context()->ProduceValue(value);
2861 } 2861 }
2862 2862
2863 2863
2864 void AstGraphBuilder::VisitSpread(Spread* expr) { 2864 void AstGraphBuilder::VisitSpread(Spread* expr) {
2865 // Handled entirely by the parser itself. 2865 // Handled entirely by the parser itself.
2866 UNREACHABLE(); 2866 UNREACHABLE();
2867 } 2867 }
2868 2868
2869 2869
2870 void AstGraphBuilder::VisitEmptyParentheses(EmptyParentheses* expr) {
2871 // Handled entirely by the parser itself.
2872 UNREACHABLE();
2873 }
2874
2875
2870 void AstGraphBuilder::VisitThisFunction(ThisFunction* expr) { 2876 void AstGraphBuilder::VisitThisFunction(ThisFunction* expr) {
2871 Node* value = GetFunctionClosure(); 2877 Node* value = GetFunctionClosure();
2872 ast_context()->ProduceValue(value); 2878 ast_context()->ProduceValue(value);
2873 } 2879 }
2874 2880
2875 2881
2876 void AstGraphBuilder::VisitSuperPropertyReference( 2882 void AstGraphBuilder::VisitSuperPropertyReference(
2877 SuperPropertyReference* expr) { 2883 SuperPropertyReference* expr) {
2878 Node* value = BuildThrowUnsupportedSuperError(expr->id()); 2884 Node* value = BuildThrowUnsupportedSuperError(expr->id());
2879 ast_context()->ProduceValue(value); 2885 ast_context()->ProduceValue(value);
(...skipping 1422 matching lines...) Expand 10 before | Expand all | Expand 10 after
4302 // Phi does not exist yet, introduce one. 4308 // Phi does not exist yet, introduce one.
4303 value = NewPhi(inputs, value, control); 4309 value = NewPhi(inputs, value, control);
4304 value->ReplaceInput(inputs - 1, other); 4310 value->ReplaceInput(inputs - 1, other);
4305 } 4311 }
4306 return value; 4312 return value;
4307 } 4313 }
4308 4314
4309 } // namespace compiler 4315 } // namespace compiler
4310 } // namespace internal 4316 } // namespace internal
4311 } // namespace v8 4317 } // namespace v8
OLDNEW
« no previous file with comments | « src/ast-numbering.cc ('k') | src/compiler/ast-loop-assignment-analyzer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698