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

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

Issue 2751983002: Pending renames and cleanups after commits (Closed)
Patch Set: Created 3 years, 9 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 28 matching lines...) Expand all
39 import '../../js/js.dart' as jsAst; 39 import '../../js/js.dart' as jsAst;
40 import '../../js/js.dart' show js; 40 import '../../js/js.dart' show js;
41 import '../../js_backend/backend_helpers.dart' show BackendHelpers; 41 import '../../js_backend/backend_helpers.dart' show BackendHelpers;
42 import '../../js_backend/js_backend.dart' 42 import '../../js_backend/js_backend.dart'
43 show 43 show
44 ConstantEmitter, 44 ConstantEmitter,
45 JavaScriptBackend, 45 JavaScriptBackend,
46 JavaScriptConstantCompiler, 46 JavaScriptConstantCompiler,
47 Namer, 47 Namer,
48 SetterName, 48 SetterName,
49 TypeVariableHandler; 49 TypeVariableCodegenAnalysis;
50 import '../../universe/call_structure.dart' show CallStructure; 50 import '../../universe/call_structure.dart' show CallStructure;
51 import '../../universe/selector.dart' show Selector; 51 import '../../universe/selector.dart' show Selector;
52 import '../../universe/world_builder.dart' show CodegenWorldBuilder; 52 import '../../universe/world_builder.dart' show CodegenWorldBuilder;
53 import '../../util/uri_extras.dart' show relativize; 53 import '../../util/uri_extras.dart' show relativize;
54 import '../../world.dart' show ClosedWorld; 54 import '../../world.dart' show ClosedWorld;
55 import '../constant_ordering.dart' show deepCompareConstants; 55 import '../constant_ordering.dart' show deepCompareConstants;
56 import '../headers.dart'; 56 import '../headers.dart';
57 import '../js_emitter.dart' hide Emitter, EmitterFactory; 57 import '../js_emitter.dart' hide Emitter, EmitterFactory;
58 import '../js_emitter.dart' as js_emitter show Emitter, EmitterFactory; 58 import '../js_emitter.dart' as js_emitter show Emitter, EmitterFactory;
59 import '../model.dart'; 59 import '../model.dart';
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 Map<OutputUnit, CodeOutput> outputBuffers = new Map<OutputUnit, CodeOutput>(); 132 Map<OutputUnit, CodeOutput> outputBuffers = new Map<OutputUnit, CodeOutput>();
133 133
134 String classesCollector; 134 String classesCollector;
135 final Map<jsAst.Name, String> mangledFieldNames = 135 final Map<jsAst.Name, String> mangledFieldNames =
136 new HashMap<jsAst.Name, String>(); 136 new HashMap<jsAst.Name, String>();
137 final Map<jsAst.Name, String> mangledGlobalFieldNames = 137 final Map<jsAst.Name, String> mangledGlobalFieldNames =
138 new HashMap<jsAst.Name, String>(); 138 new HashMap<jsAst.Name, String>();
139 final Set<jsAst.Name> recordedMangledNames = new Set<jsAst.Name>(); 139 final Set<jsAst.Name> recordedMangledNames = new Set<jsAst.Name>();
140 140
141 JavaScriptBackend get backend => compiler.backend; 141 JavaScriptBackend get backend => compiler.backend;
142 TypeVariableHandler get typeVariableHandler => backend.typeVariableHandler; 142 TypeVariableCodegenAnalysis get typeVariableCodegenAnalysis =>
143 backend.typeVariableCodegenAnalysis;
143 144
144 String get _ => space; 145 String get _ => space;
145 String get space => compiler.options.enableMinification ? "" : " "; 146 String get space => compiler.options.enableMinification ? "" : " ";
146 String get n => compiler.options.enableMinification ? "" : "\n"; 147 String get n => compiler.options.enableMinification ? "" : "\n";
147 String get N => compiler.options.enableMinification ? "\n" : ";\n"; 148 String get N => compiler.options.enableMinification ? "\n" : ";\n";
148 149
149 /** 150 /**
150 * List of expressions and statements that will be included in the 151 * List of expressions and statements that will be included in the
151 * precompiled function. 152 * precompiled function.
152 * 153 *
(...skipping 1775 matching lines...) Expand 10 before | Expand all | Expand 10 after
1928 // data. 1929 // data.
1929 mapping["_comment"] = "This mapping shows which compiled `.js` files are " 1930 mapping["_comment"] = "This mapping shows which compiled `.js` files are "
1930 "needed for a given deferred library import."; 1931 "needed for a given deferred library import.";
1931 mapping.addAll(compiler.deferredLoadTask.computeDeferredMap()); 1932 mapping.addAll(compiler.deferredLoadTask.computeDeferredMap());
1932 compiler.outputProvider( 1933 compiler.outputProvider(
1933 compiler.options.deferredMapUri.path, '', OutputType.info) 1934 compiler.options.deferredMapUri.path, '', OutputType.info)
1934 ..add(const JsonEncoder.withIndent(" ").convert(mapping)) 1935 ..add(const JsonEncoder.withIndent(" ").convert(mapping))
1935 ..close(); 1936 ..close();
1936 } 1937 }
1937 } 1938 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698