| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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_backend.helpers; | 5 library dart2js.js_backend.helpers; |
| 6 | 6 |
| 7 import '../common.dart'; | 7 import '../common.dart'; |
| 8 import '../common/names.dart' show | 8 import '../common/names.dart' show |
| 9 Uris; | 9 Uris; |
| 10 import '../common/resolution.dart' show | 10 import '../common/resolution.dart' show |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 Element mapLiteralUntypedMaker; | 123 Element mapLiteralUntypedMaker; |
| 124 Element mapLiteralUntypedEmptyMaker; | 124 Element mapLiteralUntypedEmptyMaker; |
| 125 | 125 |
| 126 ClassElement noSideEffectsClass; | 126 ClassElement noSideEffectsClass; |
| 127 ClassElement noThrowsClass; | 127 ClassElement noThrowsClass; |
| 128 ClassElement noInlineClass; | 128 ClassElement noInlineClass; |
| 129 ClassElement forceInlineClass; | 129 ClassElement forceInlineClass; |
| 130 ClassElement irRepresentationClass; | 130 ClassElement irRepresentationClass; |
| 131 | 131 |
| 132 ClassElement jsAnnotationClass; | 132 ClassElement jsAnnotationClass; |
| 133 ClassElement jsAnonymousClass; |
| 133 | 134 |
| 134 Element getInterceptorMethod; | 135 Element getInterceptorMethod; |
| 135 | 136 |
| 136 ClassElement jsInvocationMirrorClass; | 137 ClassElement jsInvocationMirrorClass; |
| 137 | 138 |
| 138 ClassElement typedArrayClass; | 139 ClassElement typedArrayClass; |
| 139 ClassElement typedArrayOfIntClass; | 140 ClassElement typedArrayOfIntClass; |
| 140 | 141 |
| 141 /** | 142 /** |
| 142 * Interface used to determine if an object has the JavaScript | 143 * Interface used to determine if an object has the JavaScript |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 } else if (uri == DART_JS_NAMES) { | 297 } else if (uri == DART_JS_NAMES) { |
| 297 preserveNamesMarker = find(library, 'preserveNames'); | 298 preserveNamesMarker = find(library, 'preserveNames'); |
| 298 } else if (uri == DART_EMBEDDED_NAMES) { | 299 } else if (uri == DART_EMBEDDED_NAMES) { |
| 299 jsGetNameEnum = find(library, 'JsGetName'); | 300 jsGetNameEnum = find(library, 'JsGetName'); |
| 300 jsBuiltinEnum = find(library, 'JsBuiltin'); | 301 jsBuiltinEnum = find(library, 'JsBuiltin'); |
| 301 } else if (uri == Uris.dart__native_typed_data) { | 302 } else if (uri == Uris.dart__native_typed_data) { |
| 302 typedArrayClass = findClass('NativeTypedArray'); | 303 typedArrayClass = findClass('NativeTypedArray'); |
| 303 typedArrayOfIntClass = findClass('NativeTypedArrayOfInt'); | 304 typedArrayOfIntClass = findClass('NativeTypedArrayOfInt'); |
| 304 } else if (uri == PACKAGE_JS) { | 305 } else if (uri == PACKAGE_JS) { |
| 305 jsAnnotationClass = find(library, 'JS'); | 306 jsAnnotationClass = find(library, 'JS'); |
| 307 jsAnonymousClass = find(library, '_Anonymous'); |
| 306 } | 308 } |
| 307 } | 309 } |
| 308 | 310 |
| 309 | 311 |
| 310 void onLibrariesLoaded(LoadedLibraries loadedLibraries) { | 312 void onLibrariesLoaded(LoadedLibraries loadedLibraries) { |
| 311 assert(loadedLibraries.containsLibrary(Uris.dart_core)); | 313 assert(loadedLibraries.containsLibrary(Uris.dart_core)); |
| 312 assert(loadedLibraries.containsLibrary(DART_INTERCEPTORS)); | 314 assert(loadedLibraries.containsLibrary(DART_INTERCEPTORS)); |
| 313 assert(loadedLibraries.containsLibrary(DART_JS_HELPER)); | 315 assert(loadedLibraries.containsLibrary(DART_JS_HELPER)); |
| 314 | 316 |
| 315 if (jsInvocationMirrorClass != null) { | 317 if (jsInvocationMirrorClass != null) { |
| (...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 659 } | 661 } |
| 660 | 662 |
| 661 Element get findIndexForNativeSubclassType { | 663 Element get findIndexForNativeSubclassType { |
| 662 return findInterceptor('findIndexForNativeSubclassType'); | 664 return findInterceptor('findIndexForNativeSubclassType'); |
| 663 } | 665 } |
| 664 | 666 |
| 665 Element get convertRtiToRuntimeType { | 667 Element get convertRtiToRuntimeType { |
| 666 return findHelper('convertRtiToRuntimeType'); | 668 return findHelper('convertRtiToRuntimeType'); |
| 667 } | 669 } |
| 668 } | 670 } |
| OLD | NEW |