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

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

Issue 2427043002: VM: Remove unnecesary load of isolate in some stubs. (Closed)
Patch Set: Created 4 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/dart.cc ('k') | runtime/vm/stub_code_arm.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 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 uint64_t pause_capability() const { return pause_capability_; } 214 uint64_t pause_capability() const { return pause_capability_; }
215 void set_terminate_capability(uint64_t value) { 215 void set_terminate_capability(uint64_t value) {
216 terminate_capability_ = value; 216 terminate_capability_ = value;
217 } 217 }
218 uint64_t terminate_capability() const { return terminate_capability_; } 218 uint64_t terminate_capability() const { return terminate_capability_; }
219 219
220 void SendInternalLibMessage(LibMsgId msg_id, uint64_t capability); 220 void SendInternalLibMessage(LibMsgId msg_id, uint64_t capability);
221 221
222 Heap* heap() const { return heap_; } 222 Heap* heap() const { return heap_; }
223 void set_heap(Heap* value) { heap_ = value; } 223 void set_heap(Heap* value) { heap_ = value; }
224 static intptr_t heap_offset() { return OFFSET_OF(Isolate, heap_); }
225 224
226 ObjectStore* object_store() const { return object_store_; } 225 ObjectStore* object_store() const { return object_store_; }
227 void set_object_store(ObjectStore* value) { object_store_ = value; } 226 void set_object_store(ObjectStore* value) { object_store_ = value; }
228 227
229 ApiState* api_state() const { return api_state_; } 228 ApiState* api_state() const { return api_state_; }
230 void set_api_state(ApiState* value) { api_state_ = value; } 229 void set_api_state(ApiState* value) { api_state_ = value; }
231 230
232 void set_init_callback_data(void* value) { 231 void set_init_callback_data(void* value) {
233 init_callback_data_ = value; 232 init_callback_data_ = value;
234 } 233 }
(...skipping 789 matching lines...) Expand 10 before | Expand all | Expand 10 after
1024 intptr_t* spawn_count_; 1023 intptr_t* spawn_count_;
1025 1024
1026 Dart_IsolateFlags isolate_flags_; 1025 Dart_IsolateFlags isolate_flags_;
1027 bool paused_; 1026 bool paused_;
1028 bool errors_are_fatal_; 1027 bool errors_are_fatal_;
1029 }; 1028 };
1030 1029
1031 } // namespace dart 1030 } // namespace dart
1032 1031
1033 #endif // VM_ISOLATE_H_ 1032 #endif // VM_ISOLATE_H_
OLDNEW
« no previous file with comments | « runtime/vm/dart.cc ('k') | runtime/vm/stub_code_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698