| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |