| 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 #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/class_table.h" |
| 10 #include "platform/thread.h" | 11 #include "platform/thread.h" |
| 11 #include "vm/base_isolate.h" | 12 #include "vm/base_isolate.h" |
| 12 #include "vm/gc_callbacks.h" | 13 #include "vm/gc_callbacks.h" |
| 13 #include "vm/store_buffer.h" | 14 #include "vm/store_buffer.h" |
| 14 #include "vm/timer.h" | 15 #include "vm/timer.h" |
| 15 | 16 |
| 16 namespace dart { | 17 namespace dart { |
| 17 | 18 |
| 18 // Forward declarations. | 19 // Forward declarations. |
| 19 class ApiState; | 20 class ApiState; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 void VisitObjectPointers(ObjectPointerVisitor* visitor, | 52 void VisitObjectPointers(ObjectPointerVisitor* visitor, |
| 52 bool visit_prologue_weak_persistent_handles, | 53 bool visit_prologue_weak_persistent_handles, |
| 53 bool validate_frames); | 54 bool validate_frames); |
| 54 | 55 |
| 55 // Visits weak object pointers. | 56 // Visits weak object pointers. |
| 56 void VisitWeakPersistentHandles(HandleVisitor* visit, | 57 void VisitWeakPersistentHandles(HandleVisitor* visit, |
| 57 bool visit_prologue_weak_persistent_handles); | 58 bool visit_prologue_weak_persistent_handles); |
| 58 | 59 |
| 59 StoreBufferBlock* store_buffer() { return &store_buffer_; } | 60 StoreBufferBlock* store_buffer() { return &store_buffer_; } |
| 60 | 61 |
| 62 ClassTable* class_table() { return &class_table_; } |
| 63 |
| 61 Dart_MessageNotifyCallback message_notify_callback() const { | 64 Dart_MessageNotifyCallback message_notify_callback() const { |
| 62 return message_notify_callback_; | 65 return message_notify_callback_; |
| 63 } | 66 } |
| 64 void set_message_notify_callback(Dart_MessageNotifyCallback value) { | 67 void set_message_notify_callback(Dart_MessageNotifyCallback value) { |
| 65 message_notify_callback_ = value; | 68 message_notify_callback_ = value; |
| 66 } | 69 } |
| 67 | 70 |
| 68 const char* name() const { return name_; } | 71 const char* name() const { return name_; } |
| 69 | 72 |
| 70 Dart_Port main_port() { return main_port_; } | 73 Dart_Port main_port() { return main_port_; } |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 void BuildName(const char* name_prefix); | 185 void BuildName(const char* name_prefix); |
| 183 void PrintInvokedFunctions(); | 186 void PrintInvokedFunctions(); |
| 184 | 187 |
| 185 static uword GetSpecifiedStackSize(); | 188 static uword GetSpecifiedStackSize(); |
| 186 | 189 |
| 187 static const uword kStackSizeBuffer = (128 * KB); | 190 static const uword kStackSizeBuffer = (128 * KB); |
| 188 static const uword kDefaultStackSize = (1 * MB); | 191 static const uword kDefaultStackSize = (1 * MB); |
| 189 | 192 |
| 190 static ThreadLocalKey isolate_key; | 193 static ThreadLocalKey isolate_key; |
| 191 StoreBufferBlock store_buffer_; | 194 StoreBufferBlock store_buffer_; |
| 195 ClassTable class_table_; |
| 192 Dart_MessageNotifyCallback message_notify_callback_; | 196 Dart_MessageNotifyCallback message_notify_callback_; |
| 193 char* name_; | 197 char* name_; |
| 194 Dart_Port main_port_; | 198 Dart_Port main_port_; |
| 195 Heap* heap_; | 199 Heap* heap_; |
| 196 ObjectStore* object_store_; | 200 ObjectStore* object_store_; |
| 197 RawContext* top_context_; | 201 RawContext* top_context_; |
| 198 int32_t random_seed_; | 202 int32_t random_seed_; |
| 199 uword top_exit_frame_info_; | 203 uword top_exit_frame_info_; |
| 200 void* init_callback_data_; | 204 void* init_callback_data_; |
| 201 Dart_LibraryTagHandler library_tag_handler_; | 205 Dart_LibraryTagHandler library_tag_handler_; |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 Isolate* new_isolate_; | 283 Isolate* new_isolate_; |
| 280 Isolate* saved_isolate_; | 284 Isolate* saved_isolate_; |
| 281 uword saved_stack_limit_; | 285 uword saved_stack_limit_; |
| 282 | 286 |
| 283 DISALLOW_COPY_AND_ASSIGN(SwitchIsolateScope); | 287 DISALLOW_COPY_AND_ASSIGN(SwitchIsolateScope); |
| 284 }; | 288 }; |
| 285 | 289 |
| 286 } // namespace dart | 290 } // namespace dart |
| 287 | 291 |
| 288 #endif // VM_ISOLATE_H_ | 292 #endif // VM_ISOLATE_H_ |
| OLD | NEW |