| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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() { return &store_buffer_; } |
| 62 static intptr_t store_buffer_offset() { |
| 63 return OFFSET_OF(Isolate, store_buffer_); |
| 64 } |
| 62 | 65 |
| 63 ClassTable* class_table() { return &class_table_; } | 66 ClassTable* class_table() { return &class_table_; } |
| 64 static intptr_t class_table_offset() { | 67 static intptr_t class_table_offset() { |
| 65 return OFFSET_OF(Isolate, class_table_); | 68 return OFFSET_OF(Isolate, class_table_); |
| 66 } | 69 } |
| 67 | 70 |
| 68 Dart_MessageNotifyCallback message_notify_callback() const { | 71 Dart_MessageNotifyCallback message_notify_callback() const { |
| 69 return message_notify_callback_; | 72 return message_notify_callback_; |
| 70 } | 73 } |
| 71 void set_message_notify_callback(Dart_MessageNotifyCallback value) { | 74 void set_message_notify_callback(Dart_MessageNotifyCallback value) { |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 Isolate* new_isolate_; | 298 Isolate* new_isolate_; |
| 296 Isolate* saved_isolate_; | 299 Isolate* saved_isolate_; |
| 297 uword saved_stack_limit_; | 300 uword saved_stack_limit_; |
| 298 | 301 |
| 299 DISALLOW_COPY_AND_ASSIGN(SwitchIsolateScope); | 302 DISALLOW_COPY_AND_ASSIGN(SwitchIsolateScope); |
| 300 }; | 303 }; |
| 301 | 304 |
| 302 } // namespace dart | 305 } // namespace dart |
| 303 | 306 |
| 304 #endif // VM_ISOLATE_H_ | 307 #endif // VM_ISOLATE_H_ |
| OLD | NEW |