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

Side by Side Diff: pkg/compiler/lib/src/js_emitter/startup_emitter/emitter.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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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.startup_emitter; 5 library dart2js.js_emitter.startup_emitter;
6 6
7 import 'package:js_runtime/shared/embedded_names.dart' show 7 import 'package:js_runtime/shared/embedded_names.dart' show
8 JsBuiltin, 8 JsBuiltin,
9 METADATA, 9 METADATA,
10 STATIC_FUNCTION_NAME_TO_CLOSURE, 10 STATIC_FUNCTION_NAME_TO_CLOSURE,
11 TYPES; 11 TYPES;
12 12
13 import '../program_builder/program_builder.dart' show ProgramBuilder; 13 import '../program_builder/program_builder.dart' show ProgramBuilder;
14 import '../model.dart'; 14 import '../model.dart';
15 import 'model_emitter.dart'; 15 import 'model_emitter.dart';
16 import '../../common.dart'; 16 import '../../common.dart';
17 import '../../elements/elements.dart' show FieldElement; 17 import '../../elements/elements.dart' show FieldElement;
18 import '../../js/js.dart' as js; 18 import '../../js/js.dart' as js;
19 19
20 import '../../js_backend/js_backend.dart' show 20 import '../../js_backend/js_backend.dart' show
21 JavaScriptBackend, 21 JavaScriptBackend,
22 Namer; 22 Namer;
23 23
24 import '../js_emitter.dart' show 24 import '../js_emitter.dart' show
25 NativeEmitter; 25 NativeEmitter;
26 26
27 import '../js_emitter.dart' as emitterTask show 27 import '../js_emitter.dart' as emitterTask show
28 Emitter; 28 Emitter;
29 29
30 import '../../util/util.dart' show 30 import '../../diagnostics/spannable.dart' show
31 NO_LOCATION_SPANNABLE; 31 NO_LOCATION_SPANNABLE;
32 32
33 class Emitter implements emitterTask.Emitter { 33 class Emitter implements emitterTask.Emitter {
34 final Compiler _compiler; 34 final Compiler _compiler;
35 final Namer namer; 35 final Namer namer;
36 final ModelEmitter _emitter; 36 final ModelEmitter _emitter;
37 37
38 JavaScriptBackend get _backend => _compiler.backend; 38 JavaScriptBackend get _backend => _compiler.backend;
39 39
40 Emitter(Compiler compiler, Namer namer, NativeEmitter nativeEmitter, 40 Emitter(Compiler compiler, Namer namer, NativeEmitter nativeEmitter,
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 _compiler.internalError(NO_LOCATION_SPANNABLE, 187 _compiler.internalError(NO_LOCATION_SPANNABLE,
188 "Unhandled Builtin: $builtin"); 188 "Unhandled Builtin: $builtin");
189 return null; 189 return null;
190 } 190 }
191 } 191 }
192 192
193 @override 193 @override
194 void invalidateCaches() { 194 void invalidateCaches() {
195 } 195 }
196 } 196 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698