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

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

Issue 2641813006: Change js_emitter parts into libraries (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 part of dart2js.js_emitter; 5 library dart2js.js_emitter.main_call_stub_generator;
6
7 import 'package:js_runtime/shared/embedded_names.dart' as embeddedNames;
8
9 import '../compiler.dart' show Compiler;
10 import '../elements/elements.dart'
11 show
12 Element;
13 import '../js/js.dart' as jsAst;
14 import '../js/js.dart' show js;
15 import '../js_backend/backend_helpers.dart' show BackendHelpers;
16 import '../js_backend/js_backend.dart'
17 show
18 JavaScriptBackend;
19
20 import 'code_emitter_task.dart' show CodeEmitterTask;
6 21
7 class MainCallStubGenerator { 22 class MainCallStubGenerator {
8 final Compiler compiler; 23 final Compiler compiler;
9 final JavaScriptBackend backend; 24 final JavaScriptBackend backend;
10 final CodeEmitterTask emitterTask; 25 final CodeEmitterTask emitterTask;
11 26
12 MainCallStubGenerator(this.compiler, this.backend, this.emitterTask); 27 MainCallStubGenerator(this.compiler, this.backend, this.emitterTask);
13 28
14 BackendHelpers get helpers => backend.helpers; 29 BackendHelpers get helpers => backend.helpers;
15 30
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 } else { 93 } else {
79 #mainCallClosure([]); 94 #mainCallClosure([]);
80 } 95 }
81 })''', 96 })''',
82 { 97 {
83 'currentScript': currentScriptAccess, 98 'currentScript': currentScriptAccess,
84 'mainCallClosure': mainCallClosure 99 'mainCallClosure': mainCallClosure
85 }); 100 });
86 } 101 }
87 } 102 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698