OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 _isolate_helper; | 5 library _isolate_helper; |
6 | 6 |
7 import 'dart:_js_embedded_names' show | 7 import 'dart:_js_embedded_names' show |
8 CLASS_ID_EXTRACTOR, | 8 CLASS_ID_EXTRACTOR, |
9 CLASS_FIELDS_EXTRACTOR, | 9 CLASS_FIELDS_EXTRACTOR, |
10 CREATE_NEW_ISOLATE, | 10 CREATE_NEW_ISOLATE, |
11 CURRENT_SCRIPT, | 11 CURRENT_SCRIPT, |
12 GLOBAL_FUNCTIONS, | 12 GLOBAL_FUNCTIONS, |
13 INITIALIZE_EMPTY_INSTANCE, | 13 INITIALIZE_EMPTY_INSTANCE, |
14 INSTANCE_FROM_CLASS_ID; | 14 INSTANCE_FROM_CLASS_ID; |
15 | 15 |
16 import 'dart:async'; | 16 import 'dart:async'; |
17 import 'dart:collection' show Queue; | 17 import 'dart:collection' show Queue; |
18 import 'dart:isolate'; | 18 import 'dart:isolate'; |
19 import 'dart:_native_typed_data' show NativeByteBuffer, NativeTypedData; | 19 import 'dart:_native_typed_data' show NativeByteBuffer, NativeTypedData; |
20 | 20 |
21 import 'dart:_js_helper' show | 21 import 'dart:_js_helper' show |
22 Closure, | 22 Closure, |
23 InternalMap, | 23 InternalMap, |
24 Null, | 24 Null, |
25 Primitives, | 25 Primitives, |
26 convertDartClosureToJS, | 26 convertDartClosureToJS, |
| 27 isDartObject, |
27 random64, | 28 random64, |
28 requiresPreamble; | 29 requiresPreamble; |
29 | 30 |
30 import 'dart:_foreign_helper' show DART_CLOSURE_TO_JS, | 31 import 'dart:_foreign_helper' show DART_CLOSURE_TO_JS, |
31 JS, | 32 JS, |
32 JS_CURRENT_ISOLATE_CONTEXT, | 33 JS_CURRENT_ISOLATE_CONTEXT, |
33 JS_CURRENT_ISOLATE, | 34 JS_CURRENT_ISOLATE, |
34 JS_EMBEDDED_GLOBAL, | 35 JS_EMBEDDED_GLOBAL, |
35 JS_SET_CURRENT_ISOLATE, | 36 JS_SET_CURRENT_ISOLATE, |
36 IsolateContext; | 37 IsolateContext; |
(...skipping 1405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1442 } | 1443 } |
1443 | 1444 |
1444 bool operator==(Object other) { | 1445 bool operator==(Object other) { |
1445 if (identical(other, this)) return true; | 1446 if (identical(other, this)) return true; |
1446 if (other is CapabilityImpl) { | 1447 if (other is CapabilityImpl) { |
1447 return identical(_id, other._id); | 1448 return identical(_id, other._id); |
1448 } | 1449 } |
1449 return false; | 1450 return false; |
1450 } | 1451 } |
1451 } | 1452 } |
OLD | NEW |