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

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

Issue 2667473003: Move Entity and Local to entities.dart (Closed)
Patch Set: Created 3 years, 10 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;
11 import 'package:js_runtime/shared/embedded_names.dart' 11 import 'package:js_runtime/shared/embedded_names.dart'
12 show JsBuiltin, JsGetName; 12 show JsBuiltin, JsGetName;
13 13
14 import '../../common.dart'; 14 import '../../common.dart';
15 import '../../compiler.dart' show Compiler; 15 import '../../compiler.dart' show Compiler;
16 import '../../constants/values.dart'; 16 import '../../constants/values.dart';
17 import '../../core_types.dart' show CommonElements; 17 import '../../core_types.dart' show CommonElements;
18 import '../../elements/resolution_types.dart' show ResolutionDartType; 18 import '../../elements/resolution_types.dart' show ResolutionDartType;
19 import '../../deferred_load.dart' show OutputUnit; 19 import '../../deferred_load.dart' show OutputUnit;
20 import '../../elements/elements.dart' 20 import '../../elements/elements.dart'
21 show 21 show
22 ClassElement, 22 ClassElement,
23 Element, 23 Element,
24 Elements, 24 Elements,
25 Entity,
26 FieldElement, 25 FieldElement,
27 FunctionElement, 26 FunctionElement,
28 FunctionSignature, 27 FunctionSignature,
29 LibraryElement, 28 LibraryElement,
30 MethodElement, 29 MethodElement,
31 TypedefElement, 30 TypedefElement,
32 VariableElement; 31 VariableElement;
32 import '../../elements/entities.dart';
33 import '../../hash/sha1.dart' show Hasher; 33 import '../../hash/sha1.dart' show Hasher;
34 import '../../io/code_output.dart'; 34 import '../../io/code_output.dart';
35 import '../../io/line_column_provider.dart' 35 import '../../io/line_column_provider.dart'
36 show LineColumnCollector, LineColumnProvider; 36 show LineColumnCollector, LineColumnProvider;
37 import '../../io/source_map_builder.dart' show SourceMapBuilder; 37 import '../../io/source_map_builder.dart' show SourceMapBuilder;
38 import '../../js/js.dart' as jsAst; 38 import '../../js/js.dart' as jsAst;
39 import '../../js/js.dart' show js; 39 import '../../js/js.dart' show js;
40 import '../../js_backend/backend_helpers.dart' show BackendHelpers; 40 import '../../js_backend/backend_helpers.dart' show BackendHelpers;
41 import '../../js_backend/js_backend.dart' 41 import '../../js_backend/js_backend.dart'
42 show 42 show
(...skipping 2139 matching lines...) Expand 10 before | Expand all | Expand 10 after
2182 void invalidateCaches() { 2182 void invalidateCaches() {
2183 if (!compiler.options.hasIncrementalSupport) return; 2183 if (!compiler.options.hasIncrementalSupport) return;
2184 if (cachedElements.isEmpty) return; 2184 if (cachedElements.isEmpty) return;
2185 for (Element element in backend.codegenEnqueuer.newlyEnqueuedElements) { 2185 for (Element element in backend.codegenEnqueuer.newlyEnqueuedElements) {
2186 if (element.isInstanceMember) { 2186 if (element.isInstanceMember) {
2187 cachedClassBuilders.remove(element.enclosingClass); 2187 cachedClassBuilders.remove(element.enclosingClass);
2188 } 2188 }
2189 } 2189 }
2190 } 2190 }
2191 } 2191 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698