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

Side by Side Diff: pkg/compiler/lib/src/js_emitter/js_emitter.dart

Issue 1223293002: dart2js: Rename old emitter to full emitter and make it its own library. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 5 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) 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:convert';
8 import 'dart:collection' show HashMap;
9
10 import '../common.dart'; 7 import '../common.dart';
11 8
12 import '../constants/values.dart'; 9 import '../constants/values.dart';
13 10
14 import '../closure.dart' show 11 import '../closure.dart' show
15 ClosureClassElement, 12 ClosureClassElement,
16 ClosureClassMap, 13 ClosureClassMap,
17 ClosureFieldElement, 14 ClosureFieldElement,
18 CapturedVariable; 15 CapturedVariable;
19 16
20 import '../dart_types.dart' show 17 import '../dart_types.dart' show
21 TypedefType; 18 TypedefType;
22 19
23 import '../io/code_output.dart';
24
25 import '../elements/elements.dart' show 20 import '../elements/elements.dart' show
26 ConstructorBodyElement, 21 ConstructorBodyElement,
27 ElementKind, 22 ElementKind,
28 FieldElement, 23 FieldElement,
29 ParameterElement, 24 ParameterElement,
30 TypeVariableElement, 25 TypeVariableElement,
31 MethodElement, 26 MethodElement,
32 MemberElement; 27 MemberElement;
33 28
34 import '../hash/sha1.dart' show Hasher;
35
36 import '../js/js.dart' as jsAst; 29 import '../js/js.dart' as jsAst;
37 import '../js/js.dart' show js; 30 import '../js/js.dart' show js;
38 31
39 import 'package:js_ast/src/precedence.dart' as js_precedence; 32 import 'package:js_ast/src/precedence.dart' as js_precedence;
40 33
41 import '../js_backend/js_backend.dart' show 34 import '../js_backend/js_backend.dart' show
42 CheckedModeHelper, 35 CheckedModeHelper,
43 CompoundName, 36 CompoundName,
44 ConstantEmitter, 37 ConstantEmitter,
45 CustomElementsAnalysis, 38 CustomElementsAnalysis,
46 GetterName, 39 GetterName,
47 JavaScriptBackend, 40 JavaScriptBackend,
48 JavaScriptConstantCompiler, 41 JavaScriptConstantCompiler,
49 Namer, 42 Namer,
50 RuntimeTypes, 43 RuntimeTypes,
51 SetterName, 44 SetterName,
52 Substitution, 45 Substitution,
53 TypeCheck, 46 TypeCheck,
54 TypeChecks, 47 TypeChecks,
55 TypeVariableHandler; 48 TypeVariableHandler;
56 49
57 import 'model.dart'; 50 import 'model.dart';
58 import 'program_builder/program_builder.dart'; 51 import 'program_builder/program_builder.dart';
59 52
60 import 'lazy_emitter/emitter.dart' as lazy_js_emitter; 53 import 'lazy_emitter/emitter.dart' as lazy_js_emitter;
61 54 import 'full_emitter/emitter.dart' as full_js_emitter;
62 import '../io/line_column_provider.dart' show
63 LineColumnCollector,
64 LineColumnProvider;
65
66 import '../io/source_map_builder.dart' show
67 SourceMapBuilder;
68 55
69 import '../universe/universe.dart' show 56 import '../universe/universe.dart' show
70 TypeMaskSet, 57 TypeMaskSet,
71 TypedSelector; 58 TypedSelector;
72 59
73 import '../util/characters.dart' show
74 $$,
75 $A,
76 $HASH,
77 $PERIOD,
78 $Z,
79 $a,
80 $z;
81
82 import '../util/util.dart' show 60 import '../util/util.dart' show
83 NO_LOCATION_SPANNABLE, 61 NO_LOCATION_SPANNABLE,
84 Setlet; 62 Setlet;
85 63
86 import '../util/uri_extras.dart' show
87 relativize;
88
89 import '../util/util.dart' show
90 equalElements;
91
92 import '../deferred_load.dart' show 64 import '../deferred_load.dart' show
93 OutputUnit; 65 OutputUnit;
94 66
95 import 'package:js_runtime/shared/embedded_names.dart' as embeddedNames; 67 import 'package:js_runtime/shared/embedded_names.dart' as embeddedNames;
96 import 'package:js_runtime/shared/embedded_names.dart' show JsBuiltin; 68 import 'package:js_runtime/shared/embedded_names.dart' show JsBuiltin;
97 69
98 import '../native/native.dart' as native; 70 import '../native/native.dart' as native;
71
99 part 'class_stub_generator.dart'; 72 part 'class_stub_generator.dart';
100 part 'code_emitter_task.dart'; 73 part 'code_emitter_task.dart';
101 part 'helpers.dart'; 74 part 'helpers.dart';
102 part 'interceptor_stub_generator.dart'; 75 part 'interceptor_stub_generator.dart';
103 part 'main_call_stub_generator.dart'; 76 part 'main_call_stub_generator.dart';
104 part 'metadata_collector.dart'; 77 part 'metadata_collector.dart';
105 part 'native_emitter.dart'; 78 part 'native_emitter.dart';
106 part 'native_generator.dart'; 79 part 'native_generator.dart';
107 part 'parameter_stub_generator.dart'; 80 part 'parameter_stub_generator.dart';
108 part 'runtime_type_generator.dart'; 81 part 'runtime_type_generator.dart';
109 part 'type_test_registry.dart'; 82 part 'type_test_registry.dart';
110
111 part 'full_emitter/class_builder.dart';
112 part 'full_emitter/class_emitter.dart';
113 part 'full_emitter/code_emitter_helper.dart';
114 part 'full_emitter/container_builder.dart';
115 part 'full_emitter/declarations.dart';
116 part 'full_emitter/emitter.dart';
117 part 'full_emitter/interceptor_emitter.dart';
118 part 'full_emitter/nsm_emitter.dart';
119 part 'full_emitter/setup_program_builder.dart';
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_emitter/helpers.dart ('k') | pkg/compiler/lib/src/js_emitter/lazy_emitter/emitter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698