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

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

Issue 883263004: Allows turning on checked mode on a per-isolate basis (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 10 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 "vm/base_isolate.h" 10 #include "vm/base_isolate.h"
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 Mutex* mutex() const { return mutex_; } 350 Mutex* mutex() const { return mutex_; }
351 351
352 Debugger* debugger() const { return debugger_; } 352 Debugger* debugger() const { return debugger_; }
353 353
354 void set_single_step(bool value) { single_step_ = value; } 354 void set_single_step(bool value) { single_step_ = value; }
355 bool single_step() const { return single_step_; } 355 bool single_step() const { return single_step_; }
356 static intptr_t single_step_offset() { 356 static intptr_t single_step_offset() {
357 return OFFSET_OF(Isolate, single_step_); 357 return OFFSET_OF(Isolate, single_step_);
358 } 358 }
359 359
360 void set_checked_mode(bool value) { checked_mode_ = value; }
361 bool checked_mode() const { return checked_mode_; }
362
360 // Requests that the debugger resume execution. 363 // Requests that the debugger resume execution.
361 void Resume() { 364 void Resume() {
362 resume_request_ = true; 365 resume_request_ = true;
363 } 366 }
364 367
365 // Returns whether the vm service has requested that the debugger 368 // Returns whether the vm service has requested that the debugger
366 // resume execution. 369 // resume execution.
367 bool GetAndClearResumeRequest() { 370 bool GetAndClearResumeRequest() {
368 bool resume_request = resume_request_; 371 bool resume_request = resume_request_;
369 resume_request_ = false; 372 resume_request_ = false;
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
642 ObjectStore* object_store_; 645 ObjectStore* object_store_;
643 uword top_exit_frame_info_; 646 uword top_exit_frame_info_;
644 void* init_callback_data_; 647 void* init_callback_data_;
645 Dart_EnvironmentCallback environment_callback_; 648 Dart_EnvironmentCallback environment_callback_;
646 Dart_LibraryTagHandler library_tag_handler_; 649 Dart_LibraryTagHandler library_tag_handler_;
647 ApiState* api_state_; 650 ApiState* api_state_;
648 StubCode* stub_code_; 651 StubCode* stub_code_;
649 Debugger* debugger_; 652 Debugger* debugger_;
650 bool single_step_; 653 bool single_step_;
651 bool resume_request_; 654 bool resume_request_;
655 bool checked_mode_;
652 Random random_; 656 Random random_;
653 Simulator* simulator_; 657 Simulator* simulator_;
654 LongJumpScope* long_jump_base_; 658 LongJumpScope* long_jump_base_;
655 TimerList timer_list_; 659 TimerList timer_list_;
656 intptr_t deopt_id_; 660 intptr_t deopt_id_;
657 Mutex* mutex_; // protects stack_limit_ and saved_stack_limit_. 661 Mutex* mutex_; // protects stack_limit_ and saved_stack_limit_.
658 uword stack_limit_; 662 uword stack_limit_;
659 uword saved_stack_limit_; 663 uword saved_stack_limit_;
660 uword stack_base_; 664 uword stack_base_;
661 uword stack_overflow_flags_; 665 uword stack_overflow_flags_;
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
862 uint8_t* serialized_args_; 866 uint8_t* serialized_args_;
863 intptr_t serialized_args_len_; 867 intptr_t serialized_args_len_;
864 uint8_t* serialized_message_; 868 uint8_t* serialized_message_;
865 intptr_t serialized_message_len_; 869 intptr_t serialized_message_len_;
866 bool paused_; 870 bool paused_;
867 }; 871 };
868 872
869 } // namespace dart 873 } // namespace dart
870 874
871 #endif // VM_ISOLATE_H_ 875 #endif // VM_ISOLATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698