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

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

Issue 1024063003: Eliminate fake-Isolate workaround from concurrent sweeper. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 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/gc_sweeper.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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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/base_isolate.h" 10 #include "vm/base_isolate.h"
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 static inline Isolate* Current() { 120 static inline Isolate* Current() {
121 return reinterpret_cast<Isolate*>(OSThread::GetThreadLocal(isolate_key)); 121 return reinterpret_cast<Isolate*>(OSThread::GetThreadLocal(isolate_key));
122 } 122 }
123 123
124 static void SetCurrent(Isolate* isolate); 124 static void SetCurrent(Isolate* isolate);
125 125
126 static void InitOnce(); 126 static void InitOnce();
127 static Isolate* Init(const char* name_prefix, bool is_vm_isolate = false); 127 static Isolate* Init(const char* name_prefix, bool is_vm_isolate = false);
128 void Shutdown(); 128 void Shutdown();
129 129
130 Isolate* ShallowCopy();
131
132 // Register a newly introduced class. 130 // Register a newly introduced class.
133 void RegisterClass(const Class& cls); 131 void RegisterClass(const Class& cls);
134 void RegisterClassAt(intptr_t index, const Class& cls); 132 void RegisterClassAt(intptr_t index, const Class& cls);
135 void ValidateClassTable(); 133 void ValidateClassTable();
136 134
137 // Visit all object pointers. 135 // Visit all object pointers.
138 void VisitObjectPointers(ObjectPointerVisitor* visitor, 136 void VisitObjectPointers(ObjectPointerVisitor* visitor,
139 bool visit_prologue_weak_persistent_handles, 137 bool visit_prologue_weak_persistent_handles,
140 bool validate_frames); 138 bool validate_frames);
141 139
(...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after
640 } 638 }
641 REUSABLE_HANDLE_LIST(REUSABLE_HANDLE) 639 REUSABLE_HANDLE_LIST(REUSABLE_HANDLE)
642 #undef REUSABLE_HANDLE 640 #undef REUSABLE_HANDLE
643 641
644 static void VisitIsolates(IsolateVisitor* visitor); 642 static void VisitIsolates(IsolateVisitor* visitor);
645 643
646 Counters* counters() { return &counters_; } 644 Counters* counters() { return &counters_; }
647 645
648 private: 646 private:
649 Isolate(); 647 Isolate();
650 explicit Isolate(Isolate* original);
651 648
652 void BuildName(const char* name_prefix); 649 void BuildName(const char* name_prefix);
653 void PrintInvokedFunctions(); 650 void PrintInvokedFunctions();
654 651
655 void ProfileIdle(); 652 void ProfileIdle();
656 653
657 void set_user_tag(uword tag) { 654 void set_user_tag(uword tag) {
658 user_tag_ = tag; 655 user_tag_ = tag;
659 } 656 }
660 657
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
912 uint8_t* serialized_args_; 909 uint8_t* serialized_args_;
913 intptr_t serialized_args_len_; 910 intptr_t serialized_args_len_;
914 uint8_t* serialized_message_; 911 uint8_t* serialized_message_;
915 intptr_t serialized_message_len_; 912 intptr_t serialized_message_len_;
916 bool paused_; 913 bool paused_;
917 }; 914 };
918 915
919 } // namespace dart 916 } // namespace dart
920 917
921 #endif // VM_ISOLATE_H_ 918 #endif // VM_ISOLATE_H_
OLDNEW
« no previous file with comments | « runtime/vm/gc_sweeper.cc ('k') | runtime/vm/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698