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

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

Issue 2850783002: Dart SDK Spelling b, c, and d. (Closed)
Patch Set: Created 3 years, 7 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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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.full_emitter; 5 library dart2js.js_emitter.full_emitter;
6 6
7 import 'dart:collection' show HashMap; 7 import 'dart:collection' show HashMap;
8 import 'dart:convert'; 8 import 'dart:convert';
9 9
10 import 'package:js_runtime/shared/embedded_names.dart' as embeddedNames; 10 import 'package:js_runtime/shared/embedded_names.dart' as embeddedNames;
(...skipping 1324 matching lines...) Expand 10 before | Expand all | Expand 10 after
1335 bool isProgramSplit = program.isSplit; 1335 bool isProgramSplit = program.isSplit;
1336 1336
1337 List<jsAst.Statement> statements = <jsAst.Statement>[]; 1337 List<jsAst.Statement> statements = <jsAst.Statement>[];
1338 1338
1339 statements..add(buildGeneratedBy())..add(js.comment(HOOKS_API_USAGE)); 1339 statements..add(buildGeneratedBy())..add(js.comment(HOOKS_API_USAGE));
1340 1340
1341 if (isProgramSplit) { 1341 if (isProgramSplit) {
1342 statements.add(buildDeferredHeader()); 1342 statements.add(buildDeferredHeader());
1343 } 1343 }
1344 1344
1345 // Collect the AST for the decriptors 1345 // Collect the AST for the descriptors.
1346 Map<Element, ClassBuilder> descriptors = elementDescriptors[mainFragment]; 1346 Map<Element, ClassBuilder> descriptors = elementDescriptors[mainFragment];
1347 if (descriptors == null) descriptors = const {}; 1347 if (descriptors == null) descriptors = const {};
1348 1348
1349 checkEverythingEmitted(descriptors.keys); 1349 checkEverythingEmitted(descriptors.keys);
1350 1350
1351 Iterable<LibraryEntity> libraries = outputLibraryLists[mainOutputUnit]; 1351 Iterable<LibraryEntity> libraries = outputLibraryLists[mainOutputUnit];
1352 if (libraries == null) libraries = <LibraryElement>[]; 1352 if (libraries == null) libraries = <LibraryElement>[];
1353 1353
1354 List<jsAst.Expression> parts = <jsAst.Expression>[]; 1354 List<jsAst.Expression> parts = <jsAst.Expression>[];
1355 for (LibraryEntity library in _sorter.sortLibraries(libraries)) { 1355 for (LibraryEntity library in _sorter.sortLibraries(libraries)) {
(...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after
1928 // data. 1928 // data.
1929 mapping["_comment"] = "This mapping shows which compiled `.js` files are " 1929 mapping["_comment"] = "This mapping shows which compiled `.js` files are "
1930 "needed for a given deferred library import."; 1930 "needed for a given deferred library import.";
1931 mapping.addAll(compiler.deferredLoadTask.computeDeferredMap()); 1931 mapping.addAll(compiler.deferredLoadTask.computeDeferredMap());
1932 compiler.outputProvider( 1932 compiler.outputProvider(
1933 compiler.options.deferredMapUri.path, '', OutputType.info) 1933 compiler.options.deferredMapUri.path, '', OutputType.info)
1934 ..add(const JsonEncoder.withIndent(" ").convert(mapping)) 1934 ..add(const JsonEncoder.withIndent(" ").convert(mapping))
1935 ..close(); 1935 ..close();
1936 } 1936 }
1937 } 1937 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_backend/runtime_types.dart ('k') | pkg/compiler/lib/src/mirrors_used.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698