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

Side by Side Diff: pkg/compiler/lib/src/js_emitter/main_call_stub_generator.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) 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.main_call_stub_generator; 5 library dart2js.js_emitter.main_call_stub_generator;
6 6
7 import 'package:js_runtime/shared/embedded_names.dart' as embeddedNames; 7 import 'package:js_runtime/shared/embedded_names.dart' as embeddedNames;
8 8
9 import '../compiler.dart' show Compiler; 9 import '../compiler.dart' show Compiler;
10 import '../elements/elements.dart' 10 import '../elements/elements.dart' show Element;
11 show
12 Element;
13 import '../js/js.dart' as jsAst; 11 import '../js/js.dart' as jsAst;
14 import '../js/js.dart' show js; 12 import '../js/js.dart' show js;
15 import '../js_backend/backend_helpers.dart' show BackendHelpers; 13 import '../js_backend/backend_helpers.dart' show BackendHelpers;
16 import '../js_backend/js_backend.dart' 14 import '../js_backend/js_backend.dart' show JavaScriptBackend;
17 show
18 JavaScriptBackend;
19 15
20 import 'code_emitter_task.dart' show CodeEmitterTask; 16 import 'code_emitter_task.dart' show CodeEmitterTask;
21 17
22 class MainCallStubGenerator { 18 class MainCallStubGenerator {
23 final Compiler compiler; 19 final Compiler compiler;
24 final JavaScriptBackend backend; 20 final JavaScriptBackend backend;
25 final CodeEmitterTask emitterTask; 21 final CodeEmitterTask emitterTask;
26 22
27 MainCallStubGenerator(this.compiler, this.backend, this.emitterTask); 23 MainCallStubGenerator(this.compiler, this.backend, this.emitterTask);
28 24
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 } else { 89 } else {
94 #mainCallClosure([]); 90 #mainCallClosure([]);
95 } 91 }
96 })''', 92 })''',
97 { 93 {
98 'currentScript': currentScriptAccess, 94 'currentScript': currentScriptAccess,
99 'mainCallClosure': mainCallClosure 95 'mainCallClosure': mainCallClosure
100 }); 96 });
101 } 97 }
102 } 98 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698