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

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

Issue 1027243003: Revert "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
130 // Register a newly introduced class. 132 // Register a newly introduced class.
131 void RegisterClass(const Class& cls); 133 void RegisterClass(const Class& cls);
132 void RegisterClassAt(intptr_t index, const Class& cls); 134 void RegisterClassAt(intptr_t index, const Class& cls);
133 void ValidateClassTable(); 135 void ValidateClassTable();
134 136
135 // Visit all object pointers. 137 // Visit all object pointers.
136 void VisitObjectPointers(ObjectPointerVisitor* visitor, 138 void VisitObjectPointers(ObjectPointerVisitor* visitor,
137 bool visit_prologue_weak_persistent_handles, 139 bool visit_prologue_weak_persistent_handles,
138 bool validate_frames); 140 bool validate_frames);
139 141
(...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after
638 } 640 }
639 REUSABLE_HANDLE_LIST(REUSABLE_HANDLE) 641 REUSABLE_HANDLE_LIST(REUSABLE_HANDLE)
640 #undef REUSABLE_HANDLE 642 #undef REUSABLE_HANDLE
641 643
642 static void VisitIsolates(IsolateVisitor* visitor); 644 static void VisitIsolates(IsolateVisitor* visitor);
643 645
644 Counters* counters() { return &counters_; } 646 Counters* counters() { return &counters_; }
645 647
646 private: 648 private:
647 Isolate(); 649 Isolate();
650 explicit Isolate(Isolate* original);
648 651
649 void BuildName(const char* name_prefix); 652 void BuildName(const char* name_prefix);
650 void PrintInvokedFunctions(); 653 void PrintInvokedFunctions();
651 654
652 void ProfileIdle(); 655 void ProfileIdle();
653 656
654 void set_user_tag(uword tag) { 657 void set_user_tag(uword tag) {
655 user_tag_ = tag; 658 user_tag_ = tag;
656 } 659 }
657 660
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
909 uint8_t* serialized_args_; 912 uint8_t* serialized_args_;
910 intptr_t serialized_args_len_; 913 intptr_t serialized_args_len_;
911 uint8_t* serialized_message_; 914 uint8_t* serialized_message_;
912 intptr_t serialized_message_len_; 915 intptr_t serialized_message_len_;
913 bool paused_; 916 bool paused_;
914 }; 917 };
915 918
916 } // namespace dart 919 } // namespace dart
917 920
918 #endif // VM_ISOLATE_H_ 921 #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