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

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

Issue 38703009: Update VM service to new isolate API (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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
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 "platform/thread.h" 10 #include "platform/thread.h"
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 const char* name() const { return name_; } 123 const char* name() const { return name_; }
124 124
125 int64_t start_time() const { return start_time_; } 125 int64_t start_time() const { return start_time_; }
126 126
127 Dart_Port main_port() { return main_port_; } 127 Dart_Port main_port() { return main_port_; }
128 void set_main_port(Dart_Port port) { 128 void set_main_port(Dart_Port port) {
129 ASSERT(main_port_ == 0); // Only set main port once. 129 ASSERT(main_port_ == 0); // Only set main port once.
130 main_port_ = port; 130 main_port_ = port;
131 } 131 }
132 132
133 Dart_Port service_port() { return service_port_; }
134 void set_service_port(Dart_Port port) {
135 ASSERT(service_port_ == 0); // Only set service port once.
136 service_port_ = port;
137 }
138
133 Heap* heap() const { return heap_; } 139 Heap* heap() const { return heap_; }
134 void set_heap(Heap* value) { heap_ = value; } 140 void set_heap(Heap* value) { heap_ = value; }
135 static intptr_t heap_offset() { return OFFSET_OF(Isolate, heap_); } 141 static intptr_t heap_offset() { return OFFSET_OF(Isolate, heap_); }
136 142
137 ObjectStore* object_store() const { return object_store_; } 143 ObjectStore* object_store() const { return object_store_; }
138 void set_object_store(ObjectStore* value) { object_store_ = value; } 144 void set_object_store(ObjectStore* value) { object_store_ = value; }
139 static intptr_t object_store_offset() { 145 static intptr_t object_store_offset() {
140 return OFFSET_OF(Isolate, object_store_); 146 return OFFSET_OF(Isolate, object_store_);
141 } 147 }
142 148
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 template<class T> T* AllocateReusableHandle(); 387 template<class T> T* AllocateReusableHandle();
382 388
383 static ThreadLocalKey isolate_key; 389 static ThreadLocalKey isolate_key;
384 StoreBuffer store_buffer_; 390 StoreBuffer store_buffer_;
385 ClassTable class_table_; 391 ClassTable class_table_;
386 MegamorphicCacheTable megamorphic_cache_table_; 392 MegamorphicCacheTable megamorphic_cache_table_;
387 Dart_MessageNotifyCallback message_notify_callback_; 393 Dart_MessageNotifyCallback message_notify_callback_;
388 char* name_; 394 char* name_;
389 int64_t start_time_; 395 int64_t start_time_;
390 Dart_Port main_port_; 396 Dart_Port main_port_;
397 Dart_Port service_port_;
391 Heap* heap_; 398 Heap* heap_;
392 ObjectStore* object_store_; 399 ObjectStore* object_store_;
393 RawContext* top_context_; 400 RawContext* top_context_;
394 uword top_exit_frame_info_; 401 uword top_exit_frame_info_;
395 void* init_callback_data_; 402 void* init_callback_data_;
396 Dart_LibraryTagHandler library_tag_handler_; 403 Dart_LibraryTagHandler library_tag_handler_;
397 ApiState* api_state_; 404 ApiState* api_state_;
398 StubCode* stub_code_; 405 StubCode* stub_code_;
399 Debugger* debugger_; 406 Debugger* debugger_;
400 bool single_step_; 407 bool single_step_;
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
530 Isolate* isolate_; 537 Isolate* isolate_;
531 char* script_url_; 538 char* script_url_;
532 char* library_url_; 539 char* library_url_;
533 char* function_name_; 540 char* function_name_;
534 char* exception_callback_name_; 541 char* exception_callback_name_;
535 }; 542 };
536 543
537 } // namespace dart 544 } // namespace dart
538 545
539 #endif // VM_ISOLATE_H_ 546 #endif // VM_ISOLATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698