| 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 code_generator_dependencies; | 5 library code_generator_dependencies; |
| 6 | 6 |
| 7 import '../js_backend.dart'; | 7 import '../js_backend.dart'; |
| 8 import '../../dart2jslib.dart'; | 8 import '../../dart2jslib.dart'; |
| 9 import '../../js_emitter/js_emitter.dart'; | 9 import '../../js_emitter/js_emitter.dart'; |
| 10 import '../../js/js.dart' as js; | 10 import '../../js/js.dart' as js; |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 String instanceMethodName(FunctionElement element) { | 95 String instanceMethodName(FunctionElement element) { |
| 96 return _namer.instanceMethodName(element); | 96 return _namer.instanceMethodName(element); |
| 97 } | 97 } |
| 98 | 98 |
| 99 js.Expression prototypeAccess(ClassElement e, | 99 js.Expression prototypeAccess(ClassElement e, |
| 100 {bool hasBeenInstantiated: false}) { | 100 {bool hasBeenInstantiated: false}) { |
| 101 return _emitter.prototypeAccess(e, | 101 return _emitter.prototypeAccess(e, |
| 102 hasBeenInstantiated: hasBeenInstantiated); | 102 hasBeenInstantiated: hasBeenInstantiated); |
| 103 } | 103 } |
| 104 | 104 |
| 105 |
| 106 String getInterceptorName(Set<ClassElement> interceptedClasses) { |
| 107 return _backend.namer.getInterceptorName( |
| 108 getInterceptorMethod, |
| 109 interceptedClasses); |
| 110 } |
| 111 |
| 112 js.Expression getInterceptorLibrary() { |
| 113 return new js.VariableUse( |
| 114 _backend.namer.globalObjectFor(_backend.interceptorsLibrary)); |
| 115 } |
| 105 } | 116 } |
| OLD | NEW |