| 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 #ifndef VM_ISOLATE_H_ | 5 #ifndef VM_ISOLATE_H_ |
| 6 #define VM_ISOLATE_H_ | 6 #define VM_ISOLATE_H_ |
| 7 | 7 |
| 8 #include "include/dart_api.h" | 8 #include "include/dart_api.h" |
| 9 #include "platform/assert.h" | 9 #include "platform/assert.h" |
| 10 #include "vm/atomic.h" | 10 #include "vm/atomic.h" |
| (...skipping 647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 658 const Instance& id); | 658 const Instance& id); |
| 659 void RegisterServiceExtensionHandler(const String& name, | 659 void RegisterServiceExtensionHandler(const String& name, |
| 660 const Instance& closure); | 660 const Instance& closure); |
| 661 RawInstance* LookupServiceExtensionHandler(const String& name); | 661 RawInstance* LookupServiceExtensionHandler(const String& name); |
| 662 | 662 |
| 663 static void VisitIsolates(IsolateVisitor* visitor); | 663 static void VisitIsolates(IsolateVisitor* visitor); |
| 664 | 664 |
| 665 // Handle service messages until we are told to resume execution. | 665 // Handle service messages until we are told to resume execution. |
| 666 void PauseEventHandler(); | 666 void PauseEventHandler(); |
| 667 | 667 |
| 668 void AddClosureFunction(const Function& function) const; |
| 669 RawFunction* LookupClosureFunction(const Script& script, |
| 670 intptr_t token_pos) const; |
| 671 intptr_t FindClosureIndex(const Function& needle) const; |
| 672 RawFunction* ClosureFunctionFromIndex(intptr_t idx) const; |
| 673 |
| 668 bool is_service_isolate() const { return is_service_isolate_; } | 674 bool is_service_isolate() const { return is_service_isolate_; } |
| 669 | 675 |
| 670 static void KillAllIsolates(LibMsgId msg_id); | 676 static void KillAllIsolates(LibMsgId msg_id); |
| 671 static void KillIfExists(Isolate* isolate, LibMsgId msg_id); | 677 static void KillIfExists(Isolate* isolate, LibMsgId msg_id); |
| 672 | 678 |
| 673 static void DisableIsolateCreation(); | 679 static void DisableIsolateCreation(); |
| 674 static void EnableIsolateCreation(); | 680 static void EnableIsolateCreation(); |
| 675 | 681 |
| 676 private: | 682 private: |
| 677 friend class Dart; // Init, InitOnce, Shutdown. | 683 friend class Dart; // Init, InitOnce, Shutdown. |
| (...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 993 uint8_t* serialized_message_; | 999 uint8_t* serialized_message_; |
| 994 intptr_t serialized_message_len_; | 1000 intptr_t serialized_message_len_; |
| 995 Isolate::Flags isolate_flags_; | 1001 Isolate::Flags isolate_flags_; |
| 996 bool paused_; | 1002 bool paused_; |
| 997 bool errors_are_fatal_; | 1003 bool errors_are_fatal_; |
| 998 }; | 1004 }; |
| 999 | 1005 |
| 1000 } // namespace dart | 1006 } // namespace dart |
| 1001 | 1007 |
| 1002 #endif // VM_ISOLATE_H_ | 1008 #endif // VM_ISOLATE_H_ |
| OLD | NEW |