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

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

Issue 1284593003: Remove dart2jslib.dart (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: 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
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 /// Generate code using the cps-based IR pipeline. 5 /// Generate code using the cps-based IR pipeline.
6 library code_generator_task; 6 library code_generator_task;
7 7
8 import 'glue.dart'; 8 import 'glue.dart';
9 import 'codegen.dart'; 9 import 'codegen.dart';
10 import 'unsugar.dart'; 10 import 'unsugar.dart';
11 11
12 import '../js_backend.dart'; 12 import '../js_backend.dart';
13 import '../../common/codegen.dart' show
14 CodegenWorkItem;
15 import '../../common/tasks.dart' show
16 CompilerTask;
17 import '../../compiler.dart' show
18 Compiler;
13 import '../../constants/constant_system.dart'; 19 import '../../constants/constant_system.dart';
14 import '../../dart2jslib.dart';
15 import '../../cps_ir/cps_ir_nodes.dart' as cps; 20 import '../../cps_ir/cps_ir_nodes.dart' as cps;
16 import '../../cps_ir/cps_ir_integrity.dart'; 21 import '../../cps_ir/cps_ir_integrity.dart';
17 import '../../cps_ir/cps_ir_builder_task.dart'; 22 import '../../cps_ir/cps_ir_builder_task.dart';
23 import '../../diagnostics/invariant.dart' show
24 DEBUG_MODE;
18 import '../../tree_ir/tree_ir_nodes.dart' as tree_ir; 25 import '../../tree_ir/tree_ir_nodes.dart' as tree_ir;
19 import '../../types/types.dart' show TypeMask, UnionTypeMask, FlatTypeMask, 26 import '../../types/types.dart' show TypeMask, UnionTypeMask, FlatTypeMask,
20 ForwardingTypeMask; 27 ForwardingTypeMask;
21 import '../../elements/elements.dart'; 28 import '../../elements/elements.dart';
22 import '../../js/js.dart' as js; 29 import '../../js/js.dart' as js;
23 import '../../io/source_information.dart' show SourceInformationStrategy; 30 import '../../io/source_information.dart' show SourceInformationStrategy;
24 import '../../tree_ir/tree_ir_builder.dart' as tree_builder; 31 import '../../tree_ir/tree_ir_builder.dart' as tree_builder;
25 import '../../cps_ir/optimizers.dart'; 32 import '../../cps_ir/optimizers.dart';
26 import '../../cps_ir/optimizers.dart' as cps_opt; 33 import '../../cps_ir/optimizers.dart' as cps_opt;
27 import '../../tracer.dart'; 34 import '../../tracer.dart';
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 // TODO(sigurdm): Make a better list of tasks. 236 // TODO(sigurdm): Make a better list of tasks.
230 return <CompilerTask>[irBuilderTask]..addAll(fallbackCompiler.tasks); 237 return <CompilerTask>[irBuilderTask]..addAll(fallbackCompiler.tasks);
231 } 238 }
232 239
233 js.Node attachPosition(js.Node node, AstElement element) { 240 js.Node attachPosition(js.Node node, AstElement element) {
234 return node.withSourceInformation( 241 return node.withSourceInformation(
235 sourceInformationFactory.createBuilderForContext(element) 242 sourceInformationFactory.createBuilderForContext(element)
236 .buildDeclaration(element)); 243 .buildDeclaration(element));
237 } 244 }
238 } 245 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_backend/codegen/glue.dart ('k') | pkg/compiler/lib/src/js_backend/constant_system_javascript.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698