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

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

Issue 2837243002: Redo "dart2js: --fast-startup: use alias for 'this'" (Closed)
Patch Set: add test Created 3 years, 8 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 24 matching lines...) Expand all
35 import '../../compiler.dart' show Compiler; 35 import '../../compiler.dart' show Compiler;
36 import '../../constants/values.dart' show ConstantValue, FunctionConstantValue; 36 import '../../constants/values.dart' show ConstantValue, FunctionConstantValue;
37 import '../../common_elements.dart' show CommonElements; 37 import '../../common_elements.dart' show CommonElements;
38 import '../../elements/elements.dart' show ClassElement, MethodElement; 38 import '../../elements/elements.dart' show ClassElement, MethodElement;
39 import '../../hash/sha1.dart' show Hasher; 39 import '../../hash/sha1.dart' show Hasher;
40 import '../../io/code_output.dart'; 40 import '../../io/code_output.dart';
41 import '../../io/location_provider.dart' show LocationCollector; 41 import '../../io/location_provider.dart' show LocationCollector;
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, StringBackedName;
46 import '../constant_ordering.dart' show deepCompareConstants; 46 import '../constant_ordering.dart' show deepCompareConstants;
47 import '../headers.dart'; 47 import '../headers.dart';
48 import '../js_emitter.dart' show NativeEmitter; 48 import '../js_emitter.dart' show NativeEmitter;
49 import '../js_emitter.dart' show buildTearOffCode, NativeGenerator; 49 import '../js_emitter.dart' show buildTearOffCode, NativeGenerator;
50 import '../model.dart'; 50 import '../model.dart';
51 51
52 part 'deferred_fragment_hash.dart'; 52 part 'deferred_fragment_hash.dart';
53 part 'fragment_emitter.dart'; 53 part 'fragment_emitter.dart';
54 54
55 class ModelEmitter { 55 class ModelEmitter {
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 // data. 378 // data.
379 mapping["_comment"] = "This mapping shows which compiled `.js` files are " 379 mapping["_comment"] = "This mapping shows which compiled `.js` files are "
380 "needed for a given deferred library import."; 380 "needed for a given deferred library import.";
381 mapping.addAll(compiler.deferredLoadTask.computeDeferredMap()); 381 mapping.addAll(compiler.deferredLoadTask.computeDeferredMap());
382 compiler.outputProvider( 382 compiler.outputProvider(
383 compiler.options.deferredMapUri.path, '', OutputType.info) 383 compiler.options.deferredMapUri.path, '', OutputType.info)
384 ..add(const JsonEncoder.withIndent(" ").convert(mapping)) 384 ..add(const JsonEncoder.withIndent(" ").convert(mapping))
385 ..close(); 385 ..close();
386 } 386 }
387 } 387 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_emitter/startup_emitter/fragment_emitter.dart ('k') | tests/language/field_wierd_name_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698