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

Side by Side Diff: pkg/compiler/lib/src/js_model/js_strategy.dart

Issue 2938193003: Revert "Towards compiling Hello World!" and "Compile and run Hello World!" (Closed)
Patch Set: Created 3 years, 6 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) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, 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.js_model.strategy; 5 library dart2js.js_model.strategy;
6 6
7 import '../backend_strategy.dart'; 7 import '../backend_strategy.dart';
8 import '../closure.dart' show ClosureConversionTask; 8 import '../closure.dart' show ClosureConversionTask;
9 import '../common_elements.dart'; 9 import '../common_elements.dart';
10 import '../compiler.dart'; 10 import '../compiler.dart';
11 import '../elements/elements.dart' show TypedefElement; 11 import '../elements/elements.dart' show TypedefElement;
12 import '../elements/entities.dart'; 12 import '../elements/entities.dart';
13 import '../enqueue.dart'; 13 import '../enqueue.dart';
14 import '../io/source_information.dart'; 14 import '../io/source_information.dart';
15 import '../js_emitter/sorter.dart'; 15 import '../js_emitter/sorter.dart';
16 import '../js/js_source_mapping.dart'; 16 import '../js/js_source_mapping.dart';
17 import '../js_backend/backend.dart'; 17 import '../js_backend/backend.dart';
18 import '../js_backend/backend_usage.dart'; 18 import '../js_backend/backend_usage.dart';
19 import '../js_backend/constant_system_javascript.dart'; 19 import '../js_backend/constant_system_javascript.dart';
20 import '../js_backend/interceptor_data.dart'; 20 import '../js_backend/interceptor_data.dart';
21 import '../js_backend/native_data.dart'; 21 import '../js_backend/native_data.dart';
22 import '../kernel/kernel_strategy.dart';
23 import '../kernel/kernel_backend_strategy.dart'; 22 import '../kernel/kernel_backend_strategy.dart';
24 import '../ssa/ssa.dart'; 23 import '../ssa/ssa.dart';
25 import '../universe/class_set.dart'; 24 import '../universe/class_set.dart';
26 import '../universe/world_builder.dart'; 25 import '../universe/world_builder.dart';
27 import '../util/emptyset.dart'; 26 import '../util/emptyset.dart';
28 import '../world.dart'; 27 import '../world.dart';
29 import 'elements.dart'; 28 import 'elements.dart';
30 29
31 class JsBackendStrategy implements BackendStrategy { 30 class JsBackendStrategy implements BackendStrategy {
32 final Compiler _compiler; 31 final Compiler _compiler;
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 @override 126 @override
128 WorkItemBuilder createCodegenWorkItemBuilder(ClosedWorld closedWorld) { 127 WorkItemBuilder createCodegenWorkItemBuilder(ClosedWorld closedWorld) {
129 return new KernelCodegenWorkItemBuilder(_compiler.backend, closedWorld); 128 return new KernelCodegenWorkItemBuilder(_compiler.backend, closedWorld);
130 } 129 }
131 130
132 @override 131 @override
133 CodegenWorldBuilder createCodegenWorldBuilder( 132 CodegenWorldBuilder createCodegenWorldBuilder(
134 NativeBasicData nativeBasicData, 133 NativeBasicData nativeBasicData,
135 ClosedWorld closedWorld, 134 ClosedWorld closedWorld,
136 SelectorConstraintsStrategy selectorConstraintsStrategy) { 135 SelectorConstraintsStrategy selectorConstraintsStrategy) {
137 KernelFrontEndStrategy frontendStrategy = _compiler.frontendStrategy; 136 return new KernelCodegenWorldBuilder(closedWorld.elementEnvironment,
138 return new KernelCodegenWorldBuilder( 137 nativeBasicData, closedWorld, selectorConstraintsStrategy);
139 frontendStrategy.elementMap,
140 closedWorld.elementEnvironment,
141 nativeBasicData,
142 closedWorld,
143 selectorConstraintsStrategy);
144 } 138 }
145 } 139 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_emitter/type_test_registry.dart ('k') | pkg/compiler/lib/src/kernel/element_map.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698