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

Side by Side Diff: pkg/compiler/lib/src/common/codegen.dart

Issue 1394793004: Move WorldImpact to universe/world_impact.dart (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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 (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library dart2js.common.codegen; 5 library dart2js.common.codegen;
6 6
7 import '../common.dart'; 7 import '../common.dart';
8 import '../compiler.dart' show 8 import '../compiler.dart' show
9 Compiler; 9 Compiler;
10 import '../constants/values.dart' show 10 import '../constants/values.dart' show
11 ConstantValue; 11 ConstantValue;
12 import '../dart_types.dart' show 12 import '../dart_types.dart' show
13 DartType, 13 DartType,
14 InterfaceType; 14 InterfaceType;
15 import '../elements/elements.dart' show 15 import '../elements/elements.dart' show
16 AstElement, 16 AstElement,
17 ClassElement, 17 ClassElement,
18 Element, 18 Element,
19 FunctionElement, 19 FunctionElement,
20 LocalFunctionElement; 20 LocalFunctionElement;
21 import '../enqueue.dart' show 21 import '../enqueue.dart' show
22 CodegenEnqueuer, 22 CodegenEnqueuer;
23 WorldImpact;
24 import '../js_backend/js_backend.dart' show 23 import '../js_backend/js_backend.dart' show
25 JavaScriptBackend; 24 JavaScriptBackend;
26 import '../resolution/tree_elements.dart' show 25 import '../resolution/tree_elements.dart' show
27 TreeElements; 26 TreeElements;
28 import '../universe/selector.dart' show 27 import '../universe/selector.dart' show
29 Selector; 28 Selector;
30 import '../universe/universe.dart' show 29 import '../universe/universe.dart' show
31 UniverseSelector; 30 UniverseSelector;
31 import '../universe/world_impact.dart' show
32 WorldImpact;
32 import '../util/util.dart' show 33 import '../util/util.dart' show
33 Setlet; 34 Setlet;
34 import 'registry.dart' show 35 import 'registry.dart' show
35 Registry; 36 Registry;
36 import 'work.dart' show 37 import 'work.dart' show
37 ItemCompilationContext, 38 ItemCompilationContext,
38 WorkItem; 39 WorkItem;
39 40
40 // TODO(johnniwinther): Split this class into interface and implementation. 41 // TODO(johnniwinther): Split this class into interface and implementation.
41 // TODO(johnniwinther): Move this implementation to the JS backend. 42 // TODO(johnniwinther): Move this implementation to the JS backend.
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 197
197 TreeElements get resolutionTree => element.resolvedAst.elements; 198 TreeElements get resolutionTree => element.resolvedAst.elements;
198 199
199 WorldImpact run(Compiler compiler, CodegenEnqueuer world) { 200 WorldImpact run(Compiler compiler, CodegenEnqueuer world) {
200 if (world.isProcessed(element)) return const WorldImpact(); 201 if (world.isProcessed(element)) return const WorldImpact();
201 202
202 registry = new CodegenRegistry(compiler, resolutionTree); 203 registry = new CodegenRegistry(compiler, resolutionTree);
203 return compiler.codegen(this, world); 204 return compiler.codegen(this, world);
204 } 205 }
205 } 206 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/common/backend_api.dart ('k') | pkg/compiler/lib/src/common/resolution.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698