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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 } | 101 } |
102 | 102 |
103 js.Expression prototypeAccess(ClassElement e, | 103 js.Expression prototypeAccess(ClassElement e, |
104 {bool hasBeenInstantiated: false}) { | 104 {bool hasBeenInstantiated: false}) { |
105 return _emitter.prototypeAccess(e, | 105 return _emitter.prototypeAccess(e, |
106 hasBeenInstantiated: hasBeenInstantiated); | 106 hasBeenInstantiated: hasBeenInstantiated); |
107 } | 107 } |
108 | 108 |
109 | 109 |
110 String getInterceptorName(Set<ClassElement> interceptedClasses) { | 110 String getInterceptorName(Set<ClassElement> interceptedClasses) { |
111 return _backend.namer.getInterceptorName( | 111 return _backend.namer.nameForGetInterceptor(interceptedClasses); |
112 getInterceptorMethod, | |
113 interceptedClasses); | |
114 } | 112 } |
115 | 113 |
116 js.Expression getInterceptorLibrary() { | 114 js.Expression getInterceptorLibrary() { |
117 return new js.VariableUse( | 115 return new js.VariableUse( |
118 _backend.namer.globalObjectFor(_backend.interceptorsLibrary)); | 116 _backend.namer.globalObjectFor(_backend.interceptorsLibrary)); |
119 } | 117 } |
120 } | 118 } |
OLD | NEW |