| 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 750 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 761 private: | 761 private: |
| 762 friend class Dart; // Init, InitOnce, Shutdown. | 762 friend class Dart; // Init, InitOnce, Shutdown. |
| 763 | 763 |
| 764 explicit Isolate(const Dart_IsolateFlags& api_flags); | 764 explicit Isolate(const Dart_IsolateFlags& api_flags); |
| 765 | 765 |
| 766 static void InitOnce(); | 766 static void InitOnce(); |
| 767 static Isolate* Init(const char* name_prefix, | 767 static Isolate* Init(const char* name_prefix, |
| 768 const Dart_IsolateFlags& api_flags, | 768 const Dart_IsolateFlags& api_flags, |
| 769 bool is_vm_isolate = false); | 769 bool is_vm_isolate = false); |
| 770 void Shutdown(); | 770 void Shutdown(); |
| 771 // Assumes mutator is the only thread still in the isolate. |
| 772 void CloseAllTimelineBlocks(); |
| 771 | 773 |
| 772 void BuildName(const char* name_prefix); | 774 void BuildName(const char* name_prefix); |
| 773 void PrintInvokedFunctions(); | 775 void PrintInvokedFunctions(); |
| 774 | 776 |
| 775 void ProfileIdle(); | 777 void ProfileIdle(); |
| 776 | 778 |
| 777 // Visit all object pointers. Caller must ensure concurrent sweeper is not | 779 // Visit all object pointers. Caller must ensure concurrent sweeper is not |
| 778 // running, and the visitor must not allocate. | 780 // running, and the visitor must not allocate. |
| 779 void VisitObjectPointers(ObjectPointerVisitor* visitor, | 781 void VisitObjectPointers(ObjectPointerVisitor* visitor, |
| 780 bool visit_prologue_weak_persistent_handles, | 782 bool visit_prologue_weak_persistent_handles, |
| (...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1118 uint8_t* serialized_message_; | 1120 uint8_t* serialized_message_; |
| 1119 intptr_t serialized_message_len_; | 1121 intptr_t serialized_message_len_; |
| 1120 Isolate::Flags isolate_flags_; | 1122 Isolate::Flags isolate_flags_; |
| 1121 bool paused_; | 1123 bool paused_; |
| 1122 bool errors_are_fatal_; | 1124 bool errors_are_fatal_; |
| 1123 }; | 1125 }; |
| 1124 | 1126 |
| 1125 } // namespace dart | 1127 } // namespace dart |
| 1126 | 1128 |
| 1127 #endif // VM_ISOLATE_H_ | 1129 #endif // VM_ISOLATE_H_ |
| OLD | NEW |