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

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

Issue 1421003004: Add CoreClasses (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comment. Created 5 years, 1 month 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' show 9 import 'package:js_runtime/shared/embedded_names.dart' show
10 CLASS_FIELDS_EXTRACTOR, 10 CLASS_FIELDS_EXTRACTOR,
(...skipping 17 matching lines...) Expand all
28 STATIC_FUNCTION_NAME_TO_CLOSURE, 28 STATIC_FUNCTION_NAME_TO_CLOSURE,
29 TYPE_TO_INTERCEPTOR_MAP, 29 TYPE_TO_INTERCEPTOR_MAP,
30 TYPES; 30 TYPES;
31 31
32 import '../../common.dart'; 32 import '../../common.dart';
33 import '../../constants/values.dart' show 33 import '../../constants/values.dart' show
34 ConstantValue, 34 ConstantValue,
35 FunctionConstantValue; 35 FunctionConstantValue;
36 import '../../compiler.dart' show 36 import '../../compiler.dart' show
37 Compiler; 37 Compiler;
38 import '../../core_types.dart' show
39 CoreClasses;
38 import '../../elements/elements.dart' show 40 import '../../elements/elements.dart' show
39 ClassElement, 41 ClassElement,
40 FunctionElement; 42 FunctionElement;
41 import '../../hash/sha1.dart' show 43 import '../../hash/sha1.dart' show
42 Hasher; 44 Hasher;
43 import '../../io/code_output.dart'; 45 import '../../io/code_output.dart';
44 import '../../io/line_column_provider.dart' show 46 import '../../io/line_column_provider.dart' show
45 LineColumnCollector, 47 LineColumnCollector,
46 LineColumnProvider; 48 LineColumnProvider;
47 import '../../io/source_map_builder.dart' show 49 import '../../io/source_map_builder.dart' show
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 // Json does not support comments, so we embed the explanation in the 403 // Json does not support comments, so we embed the explanation in the
402 // data. 404 // data.
403 mapping["_comment"] = "This mapping shows which compiled `.js` files are " 405 mapping["_comment"] = "This mapping shows which compiled `.js` files are "
404 "needed for a given deferred library import."; 406 "needed for a given deferred library import.";
405 mapping.addAll(compiler.deferredLoadTask.computeDeferredMap()); 407 mapping.addAll(compiler.deferredLoadTask.computeDeferredMap());
406 compiler.outputProvider(compiler.deferredMapUri.path, 'deferred_map') 408 compiler.outputProvider(compiler.deferredMapUri.path, 'deferred_map')
407 ..add(const JsonEncoder.withIndent(" ").convert(mapping)) 409 ..add(const JsonEncoder.withIndent(" ").convert(mapping))
408 ..close(); 410 ..close();
409 } 411 }
410 } 412 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698