| 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 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 633 const Instance& closure); | 633 const Instance& closure); |
| 634 RawInstance* LookupServiceExtensionHandler(const String& name); | 634 RawInstance* LookupServiceExtensionHandler(const String& name); |
| 635 | 635 |
| 636 static void VisitIsolates(IsolateVisitor* visitor); | 636 static void VisitIsolates(IsolateVisitor* visitor); |
| 637 | 637 |
| 638 // Handle service messages until we are told to resume execution. | 638 // Handle service messages until we are told to resume execution. |
| 639 void PauseEventHandler(); | 639 void PauseEventHandler(); |
| 640 | 640 |
| 641 void AddClosureFunction(const Function& function) const; | 641 void AddClosureFunction(const Function& function) const; |
| 642 RawFunction* LookupClosureFunction(const Function& parent, | 642 RawFunction* LookupClosureFunction(const Function& parent, |
| 643 intptr_t token_pos) const; | 643 TokenPosition token_pos) const; |
| 644 intptr_t FindClosureIndex(const Function& needle) const; | 644 intptr_t FindClosureIndex(const Function& needle) const; |
| 645 RawFunction* ClosureFunctionFromIndex(intptr_t idx) const; | 645 RawFunction* ClosureFunctionFromIndex(intptr_t idx) const; |
| 646 | 646 |
| 647 bool is_service_isolate() const { return is_service_isolate_; } | 647 bool is_service_isolate() const { return is_service_isolate_; } |
| 648 | 648 |
| 649 static void KillAllIsolates(LibMsgId msg_id); | 649 static void KillAllIsolates(LibMsgId msg_id); |
| 650 static void KillIfExists(Isolate* isolate, LibMsgId msg_id); | 650 static void KillIfExists(Isolate* isolate, LibMsgId msg_id); |
| 651 | 651 |
| 652 static void DisableIsolateCreation(); | 652 static void DisableIsolateCreation(); |
| 653 static void EnableIsolateCreation(); | 653 static void EnableIsolateCreation(); |
| (...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 991 intptr_t* spawn_count_; | 991 intptr_t* spawn_count_; |
| 992 | 992 |
| 993 Isolate::Flags isolate_flags_; | 993 Isolate::Flags isolate_flags_; |
| 994 bool paused_; | 994 bool paused_; |
| 995 bool errors_are_fatal_; | 995 bool errors_are_fatal_; |
| 996 }; | 996 }; |
| 997 | 997 |
| 998 } // namespace dart | 998 } // namespace dart |
| 999 | 999 |
| 1000 #endif // VM_ISOLATE_H_ | 1000 #endif // VM_ISOLATE_H_ |
| OLD | NEW |