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

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

Issue 271153002: Add pause/resume for isolates in vmservice/observatory. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 7 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
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 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 Mutex* mutex() const { return mutex_; } 319 Mutex* mutex() const { return mutex_; }
320 320
321 Debugger* debugger() const { return debugger_; } 321 Debugger* debugger() const { return debugger_; }
322 322
323 void set_single_step(bool value) { single_step_ = value; } 323 void set_single_step(bool value) { single_step_ = value; }
324 bool single_step() const { return single_step_; } 324 bool single_step() const { return single_step_; }
325 static intptr_t single_step_offset() { 325 static intptr_t single_step_offset() {
326 return OFFSET_OF(Isolate, single_step_); 326 return OFFSET_OF(Isolate, single_step_);
327 } 327 }
328 328
329 // Requests that the debugger resume execution.
330 void Resume() {
331 resume_request_ = true;
332 }
333
334 // Returns whether the vm service has requested that the debugger
335 // resume execution.
336 bool GetAndClearResumeRequest() {
337 bool resume_request = resume_request_;
338 resume_request_ = false;
339 return resume_request;
340 }
341
329 Random* random() { return &random_; } 342 Random* random() { return &random_; }
330 343
331 Simulator* simulator() const { return simulator_; } 344 Simulator* simulator() const { return simulator_; }
332 void set_simulator(Simulator* value) { simulator_ = value; } 345 void set_simulator(Simulator* value) { simulator_ = value; }
333 346
334 Dart_GcPrologueCallback gc_prologue_callback() const { 347 Dart_GcPrologueCallback gc_prologue_callback() const {
335 return gc_prologue_callback_; 348 return gc_prologue_callback_;
336 } 349 }
337 350
338 void set_gc_prologue_callback(Dart_GcPrologueCallback callback) { 351 void set_gc_prologue_callback(Dart_GcPrologueCallback callback) {
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
543 ObjectStore* object_store_; 556 ObjectStore* object_store_;
544 RawContext* top_context_; 557 RawContext* top_context_;
545 uword top_exit_frame_info_; 558 uword top_exit_frame_info_;
546 void* init_callback_data_; 559 void* init_callback_data_;
547 Dart_EnvironmentCallback environment_callback_; 560 Dart_EnvironmentCallback environment_callback_;
548 Dart_LibraryTagHandler library_tag_handler_; 561 Dart_LibraryTagHandler library_tag_handler_;
549 ApiState* api_state_; 562 ApiState* api_state_;
550 StubCode* stub_code_; 563 StubCode* stub_code_;
551 Debugger* debugger_; 564 Debugger* debugger_;
552 bool single_step_; 565 bool single_step_;
566 bool resume_request_;
553 Random random_; 567 Random random_;
554 Simulator* simulator_; 568 Simulator* simulator_;
555 LongJumpScope* long_jump_base_; 569 LongJumpScope* long_jump_base_;
556 TimerList timer_list_; 570 TimerList timer_list_;
557 intptr_t deopt_id_; 571 intptr_t deopt_id_;
558 Mutex* mutex_; // protects stack_limit_ and saved_stack_limit_. 572 Mutex* mutex_; // protects stack_limit_ and saved_stack_limit_.
559 uword stack_limit_; 573 uword stack_limit_;
560 uword saved_stack_limit_; 574 uword saved_stack_limit_;
561 uword stack_overflow_flags_; 575 uword stack_overflow_flags_;
562 int32_t stack_overflow_count_; 576 int32_t stack_overflow_count_;
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
720 char* script_url_; 734 char* script_url_;
721 char* library_url_; 735 char* library_url_;
722 char* class_name_; 736 char* class_name_;
723 char* function_name_; 737 char* function_name_;
724 char* exception_callback_name_; 738 char* exception_callback_name_;
725 }; 739 };
726 740
727 } // namespace dart 741 } // namespace dart
728 742
729 #endif // VM_ISOLATE_H_ 743 #endif // VM_ISOLATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698