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

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

Issue 1410643008: Get rid of deprecated methods accessing mutator_thread_ instead of current thread (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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
« 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) 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/atomic.h" 10 #include "vm/atomic.h"
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 181
182 void SendInternalLibMessage(LibMsgId msg_id, uint64_t capability); 182 void SendInternalLibMessage(LibMsgId msg_id, uint64_t capability);
183 183
184 Heap* heap() const { return heap_; } 184 Heap* heap() const { return heap_; }
185 void set_heap(Heap* value) { heap_ = value; } 185 void set_heap(Heap* value) { heap_ = value; }
186 static intptr_t heap_offset() { return OFFSET_OF(Isolate, heap_); } 186 static intptr_t heap_offset() { return OFFSET_OF(Isolate, heap_); }
187 187
188 ObjectStore* object_store() const { return object_store_; } 188 ObjectStore* object_store() const { return object_store_; }
189 void set_object_store(ObjectStore* value) { object_store_ = value; } 189 void set_object_store(ObjectStore* value) { object_store_ = value; }
190 190
191 // DEPRECATED: Use Thread's methods instead. During migration, these default
192 // to using the mutator thread (which must also be the current thread).
193 StackResource* top_resource() const {
194 ASSERT(Thread::Current() == mutator_thread_);
195 return mutator_thread_->top_resource();
196 }
197 void set_top_resource(StackResource* value) {
198 ASSERT(Thread::Current() == mutator_thread_);
199 mutator_thread_->set_top_resource(value);
200 }
201 // DEPRECATED: Use Thread's methods instead. During migration, these default
202 // to using the mutator thread.
203 // NOTE: These are also used by the profiler.
204 uword top_exit_frame_info() const {
205 return mutator_thread_->top_exit_frame_info();
206 }
207 void set_top_exit_frame_info(uword value) {
208 mutator_thread_->set_top_exit_frame_info(value);
209 }
210
211 ApiState* api_state() const { return api_state_; } 191 ApiState* api_state() const { return api_state_; }
212 void set_api_state(ApiState* value) { api_state_ = value; } 192 void set_api_state(ApiState* value) { api_state_ = value; }
213 193
214 void set_init_callback_data(void* value) { 194 void set_init_callback_data(void* value) {
215 init_callback_data_ = value; 195 init_callback_data_ = value;
216 } 196 }
217 void* init_callback_data() const { 197 void* init_callback_data() const {
218 return init_callback_data_; 198 return init_callback_data_;
219 } 199 }
220 200
(...skipping 824 matching lines...) Expand 10 before | Expand all | Expand 10 after
1045 uint8_t* serialized_message_; 1025 uint8_t* serialized_message_;
1046 intptr_t serialized_message_len_; 1026 intptr_t serialized_message_len_;
1047 Isolate::Flags isolate_flags_; 1027 Isolate::Flags isolate_flags_;
1048 bool paused_; 1028 bool paused_;
1049 bool errors_are_fatal_; 1029 bool errors_are_fatal_;
1050 }; 1030 };
1051 1031
1052 } // namespace dart 1032 } // namespace dart
1053 1033
1054 #endif // VM_ISOLATE_H_ 1034 #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