OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 _js_helper; | 5 library _js_helper; |
6 | 6 |
7 import 'dart:_js_embedded_names' show | 7 import 'dart:_js_embedded_names' show |
8 DEFERRED_LIBRARY_URIS, | 8 DEFERRED_LIBRARY_URIS, |
9 DEFERRED_LIBRARY_HASHES, | 9 DEFERRED_LIBRARY_HASHES, |
10 GET_TYPE_FROM_NAME, | 10 GET_TYPE_FROM_NAME, |
(...skipping 3335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3346 if (!_loadedLibraries.contains(loadId)) { | 3346 if (!_loadedLibraries.contains(loadId)) { |
3347 throw new DeferredNotLoadedError(uri); | 3347 throw new DeferredNotLoadedError(uri); |
3348 } | 3348 } |
3349 } | 3349 } |
3350 | 3350 |
3351 /** | 3351 /** |
3352 * Special interface recognized by the compiler and implemented by DOM | 3352 * Special interface recognized by the compiler and implemented by DOM |
3353 * objects that support integer indexing. This interface is not | 3353 * objects that support integer indexing. This interface is not |
3354 * visible to anyone, and is only injected into special libraries. | 3354 * visible to anyone, and is only injected into special libraries. |
3355 */ | 3355 */ |
3356 abstract class JavaScriptIndexingBehavior extends JSMutableIndexable { | 3356 abstract class JavaScriptIndexingBehavior<E> extends JSMutableIndexable<E> { |
3357 } | 3357 } |
3358 | 3358 |
3359 // TODO(lrn): These exceptions should be implemented in core. | 3359 // TODO(lrn): These exceptions should be implemented in core. |
3360 // When they are, remove the 'Implementation' here. | 3360 // When they are, remove the 'Implementation' here. |
3361 | 3361 |
3362 /** Thrown by type assertions that fail. */ | 3362 /** Thrown by type assertions that fail. */ |
3363 class TypeErrorImplementation extends Error implements TypeError { | 3363 class TypeErrorImplementation extends Error implements TypeError { |
3364 final String message; | 3364 final String message; |
3365 | 3365 |
3366 /** | 3366 /** |
(...skipping 733 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4100 // unneeded code. | 4100 // unneeded code. |
4101 class _UnreachableError extends AssertionError { | 4101 class _UnreachableError extends AssertionError { |
4102 _UnreachableError(); | 4102 _UnreachableError(); |
4103 String toString() => "Assertion failed: Reached dead code"; | 4103 String toString() => "Assertion failed: Reached dead code"; |
4104 } | 4104 } |
4105 | 4105 |
4106 @NoInline() | 4106 @NoInline() |
4107 void assertUnreachable() { | 4107 void assertUnreachable() { |
4108 throw new _UnreachableError(); | 4108 throw new _UnreachableError(); |
4109 } | 4109 } |
OLD | NEW |