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

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

Issue 917663003: Put IR builder visitors in a different library than IrBuilder. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add import to a2d. Created 5 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « pkg/compiler/lib/src/dart2jslib.dart ('k') | pkg/compiler/lib/src/use_unused_api.dart » ('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 (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 '../../dart2jslib.dart'; 13 import '../../dart2jslib.dart';
14 import '../../cps_ir/cps_ir_nodes.dart' as cps; 14 import '../../cps_ir/cps_ir_nodes.dart' as cps;
15 import '../../cps_ir/cps_ir_builder.dart'; 15 import '../../cps_ir/cps_ir_builder_task.dart';
16 import '../../tree_ir/tree_ir_nodes.dart' as tree_ir; 16 import '../../tree_ir/tree_ir_nodes.dart' as tree_ir;
17 import '../../types/types.dart' show TypeMask, UnionTypeMask, FlatTypeMask, 17 import '../../types/types.dart' show TypeMask, UnionTypeMask, FlatTypeMask,
18 ForwardingTypeMask; 18 ForwardingTypeMask;
19 import '../../elements/elements.dart'; 19 import '../../elements/elements.dart';
20 import '../../js/js.dart' as js; 20 import '../../js/js.dart' as js;
21 import '../../io/source_information.dart' show StartEndSourceInformation; 21 import '../../io/source_information.dart' show StartEndSourceInformation;
22 import '../../tree_ir/tree_ir_builder.dart' as tree_builder; 22 import '../../tree_ir/tree_ir_builder.dart' as tree_builder;
23 import '../../dart_backend/backend_ast_emitter.dart' as backend_ast_emitter; 23 import '../../dart_backend/backend_ast_emitter.dart' as backend_ast_emitter;
24 import '../../cps_ir/optimizers.dart'; 24 import '../../cps_ir/optimizers.dart';
25 import '../../tracer.dart'; 25 import '../../tracer.dart';
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 Iterable<CompilerTask> get tasks { 203 Iterable<CompilerTask> get tasks {
204 // TODO(sigurdm): Make a better list of tasks. 204 // TODO(sigurdm): Make a better list of tasks.
205 return <CompilerTask>[irBuilderTask]..addAll(fallbackCompiler.tasks); 205 return <CompilerTask>[irBuilderTask]..addAll(fallbackCompiler.tasks);
206 } 206 }
207 207
208 js.Node attachPosition(js.Node node, AstElement element) { 208 js.Node attachPosition(js.Node node, AstElement element) {
209 return node.withSourceInformation( 209 return node.withSourceInformation(
210 StartEndSourceInformation.computeSourceInformation(element)); 210 StartEndSourceInformation.computeSourceInformation(element));
211 } 211 }
212 } 212 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/dart2jslib.dart ('k') | pkg/compiler/lib/src/use_unused_api.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698