| 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 dart._isolate_helper; | 5 library dart._isolate_helper; |
| 6 | 6 |
| 7 import 'dart:_js_embedded_names' | 7 import 'dart:_js_embedded_names' |
| 8 show | 8 show |
| 9 CLASS_ID_EXTRACTOR, | 9 CLASS_ID_EXTRACTOR, |
| 10 CLASS_FIELDS_EXTRACTOR, | 10 CLASS_FIELDS_EXTRACTOR, |
| (...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 477 } | 477 } |
| 478 } | 478 } |
| 479 return result; | 479 return result; |
| 480 } | 480 } |
| 481 | 481 |
| 482 void _setGlobals() { | 482 void _setGlobals() { |
| 483 JS_SET_CURRENT_ISOLATE(isolateStatics); | 483 JS_SET_CURRENT_ISOLATE(isolateStatics); |
| 484 } | 484 } |
| 485 | 485 |
| 486 /** | 486 /** |
| 487 * Handle messages comming in on the control port. | 487 * Handle messages coming in on the control port. |
| 488 * | 488 * |
| 489 * These events do not go through the event queue. | 489 * These events do not go through the event queue. |
| 490 * The `_globalState.currentContext` context is not set to this context | 490 * The `_globalState.currentContext` context is not set to this context |
| 491 * during the handling. | 491 * during the handling. |
| 492 */ | 492 */ |
| 493 void handleControlMessage(message) { | 493 void handleControlMessage(message) { |
| 494 switch (message[0]) { | 494 switch (message[0]) { |
| 495 case "pause": | 495 case "pause": |
| 496 addPause(message[1], message[2]); | 496 addPause(message[1], message[2]); |
| 497 break; | 497 break; |
| (...skipping 953 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1451 } | 1451 } |
| 1452 | 1452 |
| 1453 bool operator ==(Object other) { | 1453 bool operator ==(Object other) { |
| 1454 if (identical(other, this)) return true; | 1454 if (identical(other, this)) return true; |
| 1455 if (other is CapabilityImpl) { | 1455 if (other is CapabilityImpl) { |
| 1456 return identical(_id, other._id); | 1456 return identical(_id, other._id); |
| 1457 } | 1457 } |
| 1458 return false; | 1458 return false; |
| 1459 } | 1459 } |
| 1460 } | 1460 } |
| OLD | NEW |