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

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

Issue 2221893003: pkg/compiler: fix imports (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 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.model_emitter; 5 library dart2js.js_emitter.startup_emitter.model_emitter;
6 6
7 import 'dart:convert' show JsonEncoder; 7 import 'dart:convert' show JsonEncoder;
8 8
9 import 'package:js_runtime/shared/embedded_names.dart' 9 import 'package:js_runtime/shared/embedded_names.dart'
10 show 10 show
(...skipping 13 matching lines...) Expand all
24 LEAF_TAGS, 24 LEAF_TAGS,
25 MANGLED_GLOBAL_NAMES, 25 MANGLED_GLOBAL_NAMES,
26 MANGLED_NAMES, 26 MANGLED_NAMES,
27 METADATA, 27 METADATA,
28 NATIVE_SUPERCLASS_TAG_NAME, 28 NATIVE_SUPERCLASS_TAG_NAME,
29 STATIC_FUNCTION_NAME_TO_CLOSURE, 29 STATIC_FUNCTION_NAME_TO_CLOSURE,
30 TYPE_TO_INTERCEPTOR_MAP, 30 TYPE_TO_INTERCEPTOR_MAP,
31 TYPES; 31 TYPES;
32 32
33 import '../../common.dart'; 33 import '../../common.dart';
34 import '../../compiler.dart' show Compiler;
34 import '../../constants/values.dart' show ConstantValue, FunctionConstantValue; 35 import '../../constants/values.dart' show ConstantValue, FunctionConstantValue;
35 import '../../compiler.dart' show Compiler;
36 import '../../core_types.dart' show CoreClasses; 36 import '../../core_types.dart' show CoreClasses;
37 import '../../elements/elements.dart' show ClassElement, FunctionElement; 37 import '../../elements/elements.dart' show ClassElement, FunctionElement;
38 import '../../hash/sha1.dart' show Hasher; 38 import '../../hash/sha1.dart' show Hasher;
39 import '../../io/code_output.dart'; 39 import '../../io/code_output.dart';
40 import '../../io/line_column_provider.dart' 40 import '../../io/line_column_provider.dart'
41 show LineColumnCollector, LineColumnProvider; 41 show LineColumnCollector, LineColumnProvider;
42 import '../../io/source_map_builder.dart' show SourceMapBuilder; 42 import '../../io/source_map_builder.dart' show SourceMapBuilder;
43 import '../../js/js.dart' as js; 43 import '../../js/js.dart' as js;
44 import '../../js_backend/js_backend.dart' 44 import '../../js_backend/js_backend.dart'
45 show JavaScriptBackend, Namer, ConstantEmitter; 45 show JavaScriptBackend, Namer, ConstantEmitter;
46 import '../../util/uri_extras.dart' show relativize; 46 import '../../util/uri_extras.dart' show relativize;
47
48 import '../constant_ordering.dart' show deepCompareConstants; 47 import '../constant_ordering.dart' show deepCompareConstants;
49 import '../headers.dart'; 48 import '../headers.dart';
50 import '../js_emitter.dart' show NativeEmitter; 49 import '../js_emitter.dart' show NativeEmitter;
51
52 import '../js_emitter.dart' show buildTearOffCode, NativeGenerator; 50 import '../js_emitter.dart' show buildTearOffCode, NativeGenerator;
53 import '../model.dart'; 51 import '../model.dart';
54 52
55 part 'deferred_fragment_hash.dart'; 53 part 'deferred_fragment_hash.dart';
56 part 'fragment_emitter.dart'; 54 part 'fragment_emitter.dart';
57 55
58 class ModelEmitter { 56 class ModelEmitter {
59 final Compiler compiler; 57 final Compiler compiler;
60 final Namer namer; 58 final Namer namer;
61 ConstantEmitter constantEmitter; 59 ConstantEmitter constantEmitter;
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 // data. 396 // data.
399 mapping["_comment"] = "This mapping shows which compiled `.js` files are " 397 mapping["_comment"] = "This mapping shows which compiled `.js` files are "
400 "needed for a given deferred library import."; 398 "needed for a given deferred library import.";
401 mapping.addAll(compiler.deferredLoadTask.computeDeferredMap()); 399 mapping.addAll(compiler.deferredLoadTask.computeDeferredMap());
402 compiler.outputProvider( 400 compiler.outputProvider(
403 compiler.options.deferredMapUri.path, 'deferred_map') 401 compiler.options.deferredMapUri.path, 'deferred_map')
404 ..add(const JsonEncoder.withIndent(" ").convert(mapping)) 402 ..add(const JsonEncoder.withIndent(" ").convert(mapping))
405 ..close(); 403 ..close();
406 } 404 }
407 } 405 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_emitter/startup_emitter/emitter.dart ('k') | pkg/compiler/lib/src/native/behavior.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698