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

Side by Side Diff: pkg/compiler/lib/src/js_emitter/js_emitter.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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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_emitter; 5 library dart2js.js_emitter;
6 6
7 import 'dart:async';
8
7 import '../common.dart'; 9 import '../common.dart';
8 10
9 import '../constants/expressions.dart'; 11 import '../constants/expressions.dart';
10 import '../constants/values.dart'; 12 import '../constants/values.dart';
11 13
12 import '../closure.dart' show 14 import '../closure.dart' show
13 ClosureClassElement, 15 ClosureClassElement,
14 ClosureClassMap, 16 ClosureClassMap,
15 ClosureFieldElement, 17 ClosureFieldElement,
16 CapturedVariable; 18 CapturedVariable;
17 19
18 import '../dart_types.dart' show 20 import '../dart_types.dart' show
19 TypedefType; 21 TypedefType;
20 22
21 import '../io/code_output.dart' show 23 import '../io/code_output.dart';
22 CodeBuffer;
23 24
24 import '../elements/elements.dart' show 25 import '../elements/elements.dart' show
25 ConstructorBodyElement, 26 ConstructorBodyElement,
26 ElementKind, 27 ElementKind,
27 FieldElement, 28 FieldElement,
28 ParameterElement, 29 ParameterElement,
29 TypeVariableElement; 30 TypeVariableElement;
30 31
31 import '../hash/sha1.dart' show hashOfString; 32 import '../hash/sha1.dart' show hashOfString;
32 33
33 // import '../helpers/helpers.dart'; // Included for debug helpers. 34 import '../helpers/helpers.dart'; // Included for debug helpers.
34 35
35 import '../js/js.dart' as jsAst; 36 import '../js/js.dart' as jsAst;
36 import '../js/js.dart' show 37 import '../js/js.dart' show
37 js; 38 js;
38 39
39 import '../js_backend/js_backend.dart' show 40 import '../js_backend/js_backend.dart' show
40 CheckedModeHelper, 41 CheckedModeHelper,
41 ConstantEmitter, 42 ConstantEmitter,
42 CustomElementsAnalysis, 43 CustomElementsAnalysis,
43 JavaScriptBackend, 44 JavaScriptBackend,
44 JavaScriptConstantCompiler, 45 JavaScriptConstantCompiler,
45 Namer, 46 Namer,
46 NativeEmitter, 47 NativeEmitter,
47 RuntimeTypes, 48 RuntimeTypes,
48 Substitution, 49 Substitution,
49 TypeCheck, 50 TypeCheck,
50 TypeChecks, 51 TypeChecks,
51 TypeVariableHandler; 52 TypeVariableHandler;
52 53
53 import 'model.dart'; 54 import 'model.dart';
54 import 'program_builder.dart'; 55 import 'program_builder.dart';
55 56
56 import 'new_emitter/emitter.dart' as new_js_emitter; 57 import 'new_emitter/emitter.dart' as new_js_emitter;
57 58
58 import '../source_file.dart' show 59 import '../io/line_column_provider.dart' show
59 SourceFile, 60 LineColumnCollector,
60 StringSourceFile; 61 LineColumnProvider;
61 62
62 import '../io/source_map_builder.dart' show 63 import '../io/source_map_builder.dart' show
63 SourceMapBuilder; 64 SourceMapBuilder;
64 65
65 import '../util/characters.dart' show 66 import '../util/characters.dart' show
66 $$, 67 $$,
67 $A, 68 $A,
68 $HASH, 69 $HASH,
69 $PERIOD, 70 $PERIOD,
70 $Z, 71 $Z,
(...skipping 29 matching lines...) Expand all
100 part 'old_emitter/class_emitter.dart'; 101 part 'old_emitter/class_emitter.dart';
101 part 'old_emitter/code_emitter_helper.dart'; 102 part 'old_emitter/code_emitter_helper.dart';
102 part 'old_emitter/container_builder.dart'; 103 part 'old_emitter/container_builder.dart';
103 part 'old_emitter/declarations.dart'; 104 part 'old_emitter/declarations.dart';
104 part 'old_emitter/emitter.dart'; 105 part 'old_emitter/emitter.dart';
105 part 'old_emitter/interceptor_emitter.dart'; 106 part 'old_emitter/interceptor_emitter.dart';
106 part 'old_emitter/metadata_emitter.dart'; 107 part 'old_emitter/metadata_emitter.dart';
107 part 'old_emitter/nsm_emitter.dart'; 108 part 'old_emitter/nsm_emitter.dart';
108 part 'old_emitter/reflection_data_parser.dart'; 109 part 'old_emitter/reflection_data_parser.dart';
109 part 'old_emitter/type_test_emitter.dart'; 110 part 'old_emitter/type_test_emitter.dart';
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_backend/native_emitter.dart ('k') | pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698