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

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

Issue 2081733004: Rip out most of our outdated modules implementation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase. Created 4 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 | « src/bailout-reason.h ('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/ast/scopes.h" 7 #include "src/ast/scopes.h"
8 #include "src/compiler.h" 8 #include "src/compiler.h"
9 #include "src/compiler/ast-loop-assignment-analyzer.h" 9 #include "src/compiler/ast-loop-assignment-analyzer.h"
10 #include "src/compiler/control-builders.h" 10 #include "src/compiler/control-builders.h"
(...skipping 1171 matching lines...) Expand 10 before | Expand all | Expand 10 after
1182 } 1182 }
1183 } 1183 }
1184 } 1184 }
1185 1185
1186 1186
1187 void AstGraphBuilder::VisitImportDeclaration(ImportDeclaration* decl) { 1187 void AstGraphBuilder::VisitImportDeclaration(ImportDeclaration* decl) {
1188 UNREACHABLE(); 1188 UNREACHABLE();
1189 } 1189 }
1190 1190
1191 1191
1192 void AstGraphBuilder::VisitExportDeclaration(ExportDeclaration* decl) {
1193 UNREACHABLE();
1194 }
1195
1196
1197 void AstGraphBuilder::VisitBlock(Block* stmt) { 1192 void AstGraphBuilder::VisitBlock(Block* stmt) {
1198 BlockBuilder block(this); 1193 BlockBuilder block(this);
1199 ControlScopeForBreakable scope(this, stmt, &block); 1194 ControlScopeForBreakable scope(this, stmt, &block);
1200 if (stmt->labels() != nullptr) block.BeginBlock(); 1195 if (stmt->labels() != nullptr) block.BeginBlock();
1201 if (stmt->scope() == nullptr) { 1196 if (stmt->scope() == nullptr) {
1202 // Visit statements in the same scope, no declarations. 1197 // Visit statements in the same scope, no declarations.
1203 VisitStatements(stmt->statements()); 1198 VisitStatements(stmt->statements());
1204 } else { 1199 } else {
1205 // Visit declarations and statements in a block scope. 1200 // Visit declarations and statements in a block scope.
1206 if (stmt->scope()->NeedsContext()) { 1201 if (stmt->scope()->NeedsContext()) {
(...skipping 3179 matching lines...) Expand 10 before | Expand all | Expand 10 after
4386 // Phi does not exist yet, introduce one. 4381 // Phi does not exist yet, introduce one.
4387 value = NewPhi(inputs, value, control); 4382 value = NewPhi(inputs, value, control);
4388 value->ReplaceInput(inputs - 1, other); 4383 value->ReplaceInput(inputs - 1, other);
4389 } 4384 }
4390 return value; 4385 return value;
4391 } 4386 }
4392 4387
4393 } // namespace compiler 4388 } // namespace compiler
4394 } // namespace internal 4389 } // namespace internal
4395 } // namespace v8 4390 } // namespace v8
OLDNEW
« no previous file with comments | « src/bailout-reason.h ('k') | src/compiler/ast-loop-assignment-analyzer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698