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

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

Issue 2654423004: [async-functions] support await expressions in finally statements (Closed)
Patch Set: Get everything working (except possibly inspector tests) Created 3 years, 10 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
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/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 2163 matching lines...) Expand 10 before | Expand all | Expand 10 after
2174 void AstGraphBuilder::VisitEmptyParentheses(EmptyParentheses* expr) { 2174 void AstGraphBuilder::VisitEmptyParentheses(EmptyParentheses* expr) {
2175 // Handled entirely by the parser itself. 2175 // Handled entirely by the parser itself.
2176 UNREACHABLE(); 2176 UNREACHABLE();
2177 } 2177 }
2178 2178
2179 void AstGraphBuilder::VisitGetIterator(GetIterator* expr) { 2179 void AstGraphBuilder::VisitGetIterator(GetIterator* expr) {
2180 // GetIterator is supported only by going through Ignition first. 2180 // GetIterator is supported only by going through Ignition first.
2181 UNREACHABLE(); 2181 UNREACHABLE();
2182 } 2182 }
2183 2183
2184 void AstGraphBuilder::VisitInternalVariable(InternalVariable* expr) {
2185 // InternalVariable is supported only by going through Ignition first.
2186 UNREACHABLE();
2187 }
2188
2184 void AstGraphBuilder::VisitThisFunction(ThisFunction* expr) { 2189 void AstGraphBuilder::VisitThisFunction(ThisFunction* expr) {
2185 Node* value = GetFunctionClosure(); 2190 Node* value = GetFunctionClosure();
2186 ast_context()->ProduceValue(expr, value); 2191 ast_context()->ProduceValue(expr, value);
2187 } 2192 }
2188 2193
2189 2194
2190 void AstGraphBuilder::VisitSuperPropertyReference( 2195 void AstGraphBuilder::VisitSuperPropertyReference(
2191 SuperPropertyReference* expr) { 2196 SuperPropertyReference* expr) {
2192 UNREACHABLE(); 2197 UNREACHABLE();
2193 } 2198 }
(...skipping 1113 matching lines...) Expand 10 before | Expand all | Expand 10 after
3307 float invocation_frequency, LoopAssignmentAnalysis* loop_assignment, 3312 float invocation_frequency, LoopAssignmentAnalysis* loop_assignment,
3308 SourcePositionTable* source_positions, int inlining_id) 3313 SourcePositionTable* source_positions, int inlining_id)
3309 : AstGraphBuilder(local_zone, info, jsgraph, invocation_frequency, 3314 : AstGraphBuilder(local_zone, info, jsgraph, invocation_frequency,
3310 loop_assignment), 3315 loop_assignment),
3311 source_positions_(source_positions), 3316 source_positions_(source_positions),
3312 start_position_(info->shared_info()->start_position(), inlining_id) {} 3317 start_position_(info->shared_info()->start_position(), inlining_id) {}
3313 3318
3314 } // namespace compiler 3319 } // namespace compiler
3315 } // namespace internal 3320 } // namespace internal
3316 } // namespace v8 3321 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698