OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 <limits.h> | 8 #include <limits.h> |
9 | 9 |
10 #include "include/dart_api.h" | 10 #include "include/dart_api.h" |
(...skipping 28 matching lines...) Expand all Loading... |
39 static inline Isolate* Current(); | 39 static inline Isolate* Current(); |
40 static void SetCurrent(Isolate* isolate); | 40 static void SetCurrent(Isolate* isolate); |
41 | 41 |
42 static void InitOnce(); | 42 static void InitOnce(); |
43 static Isolate* Init(); | 43 static Isolate* Init(); |
44 void Shutdown(); | 44 void Shutdown(); |
45 | 45 |
46 // Visit all object pointers. | 46 // Visit all object pointers. |
47 void VisitObjectPointers(ObjectPointerVisitor* visitor, bool validate_frames); | 47 void VisitObjectPointers(ObjectPointerVisitor* visitor, bool validate_frames); |
48 | 48 |
| 49 void VisitStrongObjectPointers(ObjectPointerVisitor* visitor, |
| 50 bool validate_frames); |
| 51 |
| 52 void VisitWeakObjectPointers(ObjectPointerVisitor* visitor); |
| 53 |
49 StoreBufferBlock* store_buffer() { return &store_buffer_; } | 54 StoreBufferBlock* store_buffer() { return &store_buffer_; } |
50 | 55 |
51 Dart_PostMessageCallback post_message_callback() const { | 56 Dart_PostMessageCallback post_message_callback() const { |
52 return post_message_callback_; | 57 return post_message_callback_; |
53 } | 58 } |
54 void set_post_message_callback(Dart_PostMessageCallback value) { | 59 void set_post_message_callback(Dart_PostMessageCallback value) { |
55 post_message_callback_ = value; | 60 post_message_callback_ = value; |
56 } | 61 } |
57 | 62 |
58 Dart_ClosePortCallback close_port_callback() const { | 63 Dart_ClosePortCallback close_port_callback() const { |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 #include "vm/isolate_linux.h" | 317 #include "vm/isolate_linux.h" |
313 #elif defined(TARGET_OS_MACOS) | 318 #elif defined(TARGET_OS_MACOS) |
314 #include "vm/isolate_macos.h" | 319 #include "vm/isolate_macos.h" |
315 #elif defined(TARGET_OS_WINDOWS) | 320 #elif defined(TARGET_OS_WINDOWS) |
316 #include "vm/isolate_win.h" | 321 #include "vm/isolate_win.h" |
317 #else | 322 #else |
318 #error Unknown target os. | 323 #error Unknown target os. |
319 #endif | 324 #endif |
320 | 325 |
321 #endif // VM_ISOLATE_H_ | 326 #endif // VM_ISOLATE_H_ |
OLD | NEW |