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

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

Issue 2642063003: Use entities in class_stub_generator. (Closed)
Patch Set: Created 3 years, 11 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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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.code_emitter_task; 5 library dart2js.js_emitter.code_emitter_task;
6 6
7 import 'package:js_runtime/shared/embedded_names.dart' show JsBuiltin; 7 import 'package:js_runtime/shared/embedded_names.dart' show JsBuiltin;
8 8
9 import '../common.dart'; 9 import '../common.dart';
10 import '../common/tasks.dart' show CompilerTask; 10 import '../common/tasks.dart' show CompilerTask;
11 import '../compiler.dart' show Compiler; 11 import '../compiler.dart' show Compiler;
12 import '../constants/values.dart'; 12 import '../constants/values.dart';
13 import '../elements/elements.dart' 13 import '../elements/elements.dart'
14 show 14 show
15 ClassElement, 15 ClassElement,
16 Entity, 16 Entity,
17 FieldElement, 17 FieldElement,
18 FunctionElement, 18 FunctionElement,
19 MethodElement, 19 MethodElement,
20 TypeVariableElement; 20 TypeVariableElement;
21 import '../js/js.dart' as jsAst; 21 import '../js/js.dart' as jsAst;
22 import '../js_backend/js_backend.dart' 22 import '../js_backend/js_backend.dart' show JavaScriptBackend, Namer;
23 show
24 JavaScriptBackend,
25 Namer;
26 import '../world.dart' show ClosedWorld; 23 import '../world.dart' show ClosedWorld;
27 import 'full_emitter/emitter.dart' as full_js_emitter; 24 import 'full_emitter/emitter.dart' as full_js_emitter;
28 import 'lazy_emitter/emitter.dart' as lazy_js_emitter; 25 import 'lazy_emitter/emitter.dart' as lazy_js_emitter;
29 import 'program_builder/program_builder.dart'; 26 import 'program_builder/program_builder.dart';
30 import 'startup_emitter/emitter.dart' as startup_js_emitter; 27 import 'startup_emitter/emitter.dart' as startup_js_emitter;
31 28
32 import 'metadata_collector.dart' show MetadataCollector; 29 import 'metadata_collector.dart' show MetadataCollector;
33 import 'native_emitter.dart' show NativeEmitter; 30 import 'native_emitter.dart' show NativeEmitter;
34 import 'type_test_registry.dart' show TypeTestRegistry; 31 import 'type_test_registry.dart' show TypeTestRegistry;
35 32
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 bool isConstantInlinedOrAlreadyEmitted(ConstantValue constant); 249 bool isConstantInlinedOrAlreadyEmitted(ConstantValue constant);
253 250
254 /// Returns the JS code for accessing the given [constant]. 251 /// Returns the JS code for accessing the given [constant].
255 jsAst.Expression constantReference(ConstantValue constant); 252 jsAst.Expression constantReference(ConstantValue constant);
256 253
257 /// Returns the JS template for the given [builtin]. 254 /// Returns the JS template for the given [builtin].
258 jsAst.Template templateForBuiltin(JsBuiltin builtin); 255 jsAst.Template templateForBuiltin(JsBuiltin builtin);
259 256
260 void invalidateCaches(); 257 void invalidateCaches();
261 } 258 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698