Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(571)

Side by Side Diff: runtime/vm/isolate.h

Issue 9655011: Implement prologue weak persistent handles. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: final revision Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/heap.cc ('k') | runtime/vm/isolate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "platform/thread.h" 10 #include "platform/thread.h"
(...skipping 30 matching lines...) Expand all
41 return reinterpret_cast<Isolate*>(Thread::GetThreadLocal(isolate_key)); 41 return reinterpret_cast<Isolate*>(Thread::GetThreadLocal(isolate_key));
42 } 42 }
43 43
44 static void SetCurrent(Isolate* isolate); 44 static void SetCurrent(Isolate* isolate);
45 45
46 static void InitOnce(); 46 static void InitOnce();
47 static Isolate* Init(const char* name_prefix); 47 static Isolate* Init(const char* name_prefix);
48 void Shutdown(); 48 void Shutdown();
49 49
50 // Visit all object pointers. 50 // Visit all object pointers.
51 void VisitObjectPointers(ObjectPointerVisitor* visitor, bool validate_frames); 51 void VisitObjectPointers(ObjectPointerVisitor* visitor,
52 bool visit_prologue_weak_persistent_handles,
53 bool validate_frames);
52 54
53 void VisitWeakPersistentHandles(HandleVisitor* visitor); 55 // Visits weak object pointers.
56 void VisitWeakPersistentHandles(HandleVisitor* visit,
57 bool visit_prologue_weak_persistent_handles);
54 58
55 StoreBufferBlock* store_buffer() { return &store_buffer_; } 59 StoreBufferBlock* store_buffer() { return &store_buffer_; }
56 60
57 Dart_MessageNotifyCallback message_notify_callback() const { 61 Dart_MessageNotifyCallback message_notify_callback() const {
58 return message_notify_callback_; 62 return message_notify_callback_;
59 } 63 }
60 void set_message_notify_callback(Dart_MessageNotifyCallback value) { 64 void set_message_notify_callback(Dart_MessageNotifyCallback value) {
61 message_notify_callback_ = value; 65 message_notify_callback_ = value;
62 } 66 }
63 67
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 291
288 static Dart_IsolateCreateCallback create_callback_; 292 static Dart_IsolateCreateCallback create_callback_;
289 static Dart_IsolateInterruptCallback interrupt_callback_; 293 static Dart_IsolateInterruptCallback interrupt_callback_;
290 294
291 DISALLOW_COPY_AND_ASSIGN(Isolate); 295 DISALLOW_COPY_AND_ASSIGN(Isolate);
292 }; 296 };
293 297
294 } // namespace dart 298 } // namespace dart
295 299
296 #endif // VM_ISOLATE_H_ 300 #endif // VM_ISOLATE_H_
OLDNEW
« no previous file with comments | « runtime/vm/heap.cc ('k') | runtime/vm/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698