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

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

Issue 830703004: Emit to StreamCodeOutput instead of CodeBuffer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments Created 5 years, 11 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
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 '../../source_file.dart'; 14 import '../../io/source_file.dart';
15 import '../../cps_ir/cps_ir_nodes.dart' as cps; 15 import '../../cps_ir/cps_ir_nodes.dart' as cps;
16 import '../../cps_ir/cps_ir_builder.dart'; 16 import '../../cps_ir/cps_ir_builder.dart';
17 import '../../tree_ir/tree_ir_nodes.dart' as tree_ir; 17 import '../../tree_ir/tree_ir_nodes.dart' as tree_ir;
18 import '../../tree/tree.dart' as ast; 18 import '../../tree/tree.dart' as ast;
19 import '../../types/types.dart' show TypeMask, UnionTypeMask, FlatTypeMask, 19 import '../../types/types.dart' show TypeMask, UnionTypeMask, FlatTypeMask,
20 ForwardingTypeMask; 20 ForwardingTypeMask;
21 import '../../scanner/scannerlib.dart' as scanner; 21 import '../../scanner/scannerlib.dart' as scanner;
22 import '../../elements/elements.dart'; 22 import '../../elements/elements.dart';
23 import '../../closure.dart'; 23 import '../../closure.dart';
24 import '../../js/js.dart' as js; 24 import '../../js/js.dart' as js;
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 endSourcePosition = 227 endSourcePosition =
228 new TokenSourceFileLocation(sourceFile, endToken, name); 228 new TokenSourceFileLocation(sourceFile, endToken, name);
229 } 229 }
230 return node.withPosition(sourcePosition, endSourcePosition); 230 return node.withPosition(sourcePosition, endSourcePosition);
231 } 231 }
232 232
233 SourceFile sourceFileOfElement(Element element) { 233 SourceFile sourceFileOfElement(Element element) {
234 return element.implementation.compilationUnit.script.file; 234 return element.implementation.compilationUnit.script.file;
235 } 235 }
236 } 236 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js/printer.dart ('k') | pkg/compiler/lib/src/js_backend/native_emitter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698