| 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 "vm/class_table.h" |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 | 51 |
| 52 // Visit all object pointers. | 52 // Visit all object pointers. |
| 53 void VisitObjectPointers(ObjectPointerVisitor* visitor, | 53 void VisitObjectPointers(ObjectPointerVisitor* visitor, |
| 54 bool visit_prologue_weak_persistent_handles, | 54 bool visit_prologue_weak_persistent_handles, |
| 55 bool validate_frames); | 55 bool validate_frames); |
| 56 | 56 |
| 57 // Visits weak object pointers. | 57 // Visits weak object pointers. |
| 58 void VisitWeakPersistentHandles(HandleVisitor* visit, | 58 void VisitWeakPersistentHandles(HandleVisitor* visit, |
| 59 bool visit_prologue_weak_persistent_handles); | 59 bool visit_prologue_weak_persistent_handles); |
| 60 | 60 |
| 61 StoreBufferBlock* store_buffer() { return &store_buffer_; } | 61 StoreBufferBlock* store_buffer_block() { return &store_buffer_block_; } |
| 62 static intptr_t store_buffer_offset() { | 62 static intptr_t store_buffer_block_offset() { |
| 63 return OFFSET_OF(Isolate, store_buffer_); | 63 return OFFSET_OF(Isolate, store_buffer_block_); |
| 64 } | 64 } |
| 65 | 65 |
| 66 StoreBuffer* store_buffer() { return &store_buffer_; } |
| 67 |
| 66 ClassTable* class_table() { return &class_table_; } | 68 ClassTable* class_table() { return &class_table_; } |
| 67 static intptr_t class_table_offset() { | 69 static intptr_t class_table_offset() { |
| 68 return OFFSET_OF(Isolate, class_table_); | 70 return OFFSET_OF(Isolate, class_table_); |
| 69 } | 71 } |
| 70 | 72 |
| 71 Dart_MessageNotifyCallback message_notify_callback() const { | 73 Dart_MessageNotifyCallback message_notify_callback() const { |
| 72 return message_notify_callback_; | 74 return message_notify_callback_; |
| 73 } | 75 } |
| 74 void set_message_notify_callback(Dart_MessageNotifyCallback value) { | 76 void set_message_notify_callback(Dart_MessageNotifyCallback value) { |
| 75 message_notify_callback_ = value; | 77 message_notify_callback_ = value; |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 Isolate(); | 214 Isolate(); |
| 213 | 215 |
| 214 void BuildName(const char* name_prefix); | 216 void BuildName(const char* name_prefix); |
| 215 void PrintInvokedFunctions(); | 217 void PrintInvokedFunctions(); |
| 216 | 218 |
| 217 static uword GetSpecifiedStackSize(); | 219 static uword GetSpecifiedStackSize(); |
| 218 | 220 |
| 219 static const intptr_t kStackSizeBuffer = (16 * KB); | 221 static const intptr_t kStackSizeBuffer = (16 * KB); |
| 220 | 222 |
| 221 static ThreadLocalKey isolate_key; | 223 static ThreadLocalKey isolate_key; |
| 222 StoreBufferBlock store_buffer_; | 224 StoreBufferBlock store_buffer_block_; |
| 225 StoreBuffer store_buffer_; |
| 223 ClassTable class_table_; | 226 ClassTable class_table_; |
| 224 Dart_MessageNotifyCallback message_notify_callback_; | 227 Dart_MessageNotifyCallback message_notify_callback_; |
| 225 char* name_; | 228 char* name_; |
| 226 Dart_Port main_port_; | 229 Dart_Port main_port_; |
| 227 Heap* heap_; | 230 Heap* heap_; |
| 228 ObjectStore* object_store_; | 231 ObjectStore* object_store_; |
| 229 RawContext* top_context_; | 232 RawContext* top_context_; |
| 230 int32_t random_seed_; | 233 int32_t random_seed_; |
| 231 uword top_exit_frame_info_; | 234 uword top_exit_frame_info_; |
| 232 void* init_callback_data_; | 235 void* init_callback_data_; |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 Isolate* new_isolate_; | 317 Isolate* new_isolate_; |
| 315 Isolate* saved_isolate_; | 318 Isolate* saved_isolate_; |
| 316 uword saved_stack_limit_; | 319 uword saved_stack_limit_; |
| 317 | 320 |
| 318 DISALLOW_COPY_AND_ASSIGN(SwitchIsolateScope); | 321 DISALLOW_COPY_AND_ASSIGN(SwitchIsolateScope); |
| 319 }; | 322 }; |
| 320 | 323 |
| 321 } // namespace dart | 324 } // namespace dart |
| 322 | 325 |
| 323 #endif // VM_ISOLATE_H_ | 326 #endif // VM_ISOLATE_H_ |
| OLD | NEW |