| 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 part of dart2js.js_emitter; | 5 |
| 6 library dart2js.js_emitter.interceptor_stub_generator; |
| 7 |
| 8 import '../compiler.dart' show Compiler; |
| 9 import '../constants/values.dart'; |
| 10 import '../elements/resolution_types.dart' |
| 11 show |
| 12 ResolutionInterfaceType; |
| 13 import '../elements/elements.dart' |
| 14 show |
| 15 ClassElement, |
| 16 Element; |
| 17 import '../js/js.dart' as jsAst; |
| 18 import '../js/js.dart' show js; |
| 19 import '../js_backend/backend_helpers.dart' show BackendHelpers; |
| 20 import '../js_backend/js_backend.dart' |
| 21 show |
| 22 CustomElementsAnalysis, |
| 23 JavaScriptBackend, |
| 24 JavaScriptConstantCompiler, |
| 25 Namer; |
| 26 import '../universe/selector.dart' show Selector; |
| 27 import '../world.dart' show ClosedWorld; |
| 28 |
| 29 import 'code_emitter_task.dart' show Emitter; |
| 6 | 30 |
| 7 class InterceptorStubGenerator { | 31 class InterceptorStubGenerator { |
| 8 final Compiler compiler; | 32 final Compiler compiler; |
| 9 final Namer namer; | 33 final Namer namer; |
| 10 final JavaScriptBackend backend; | 34 final JavaScriptBackend backend; |
| 11 final ClosedWorld closedWorld; | 35 final ClosedWorld closedWorld; |
| 12 | 36 |
| 13 InterceptorStubGenerator( | 37 InterceptorStubGenerator( |
| 14 this.compiler, this.namer, this.backend, this.closedWorld); | 38 this.compiler, this.namer, this.backend, this.closedWorld); |
| 15 | 39 |
| (...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 | 419 |
| 396 var map = new jsAst.ObjectInitializer(properties); | 420 var map = new jsAst.ObjectInitializer(properties); |
| 397 elements.add(map); | 421 elements.add(map); |
| 398 } | 422 } |
| 399 } | 423 } |
| 400 } | 424 } |
| 401 | 425 |
| 402 return new jsAst.ArrayInitializer(elements); | 426 return new jsAst.ArrayInitializer(elements); |
| 403 } | 427 } |
| 404 } | 428 } |
| OLD | NEW |