OLD | NEW |
---|---|
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 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
355 } | 355 } |
356 | 356 |
357 // Returns whether the vm service has requested that the debugger | 357 // Returns whether the vm service has requested that the debugger |
358 // resume execution. | 358 // resume execution. |
359 bool GetAndClearResumeRequest() { | 359 bool GetAndClearResumeRequest() { |
360 bool resume_request = resume_request_; | 360 bool resume_request = resume_request_; |
361 resume_request_ = false; | 361 resume_request_ = false; |
362 return resume_request; | 362 return resume_request; |
363 } | 363 } |
364 | 364 |
365 // Verify that the sender has the capability to pause this isolate. | 365 // Verify that the sender has the capability to pause or terminate the |
366 bool VerifyPauseCapability(const Capability& capability) const; | 366 // isolate. |
367 bool VerifyPauseCapability(const Object& capability) const; | |
368 bool VerifyTerminateCapability(const Object& capability) const; | |
siva
2014/12/13 00:24:05
Should there also be a VerifyPingCapability ?
Ivan Posva
2014/12/13 00:36:47
Having a handle to the isolate is equivalent to ha
Lasse Reichstein Nielsen
2014/12/13 02:04:46
Ping does not require any capability, anyone with
| |
369 | |
367 // Returns true if the capability was added or removed from this isolate's | 370 // Returns true if the capability was added or removed from this isolate's |
368 // list of pause events. | 371 // list of pause events. |
369 bool AddResumeCapability(const Capability& capability); | 372 bool AddResumeCapability(const Capability& capability); |
370 bool RemoveResumeCapability(const Capability& capability); | 373 bool RemoveResumeCapability(const Capability& capability); |
371 | 374 |
372 Random* random() { return &random_; } | 375 Random* random() { return &random_; } |
373 | 376 |
374 Simulator* simulator() const { return simulator_; } | 377 Simulator* simulator() const { return simulator_; } |
375 void set_simulator(Simulator* value) { simulator_ = value; } | 378 void set_simulator(Simulator* value) { simulator_ = value; } |
376 | 379 |
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
848 char* exception_callback_name_; | 851 char* exception_callback_name_; |
849 uint8_t* serialized_args_; | 852 uint8_t* serialized_args_; |
850 intptr_t serialized_args_len_; | 853 intptr_t serialized_args_len_; |
851 uint8_t* serialized_message_; | 854 uint8_t* serialized_message_; |
852 intptr_t serialized_message_len_; | 855 intptr_t serialized_message_len_; |
853 }; | 856 }; |
854 | 857 |
855 } // namespace dart | 858 } // namespace dart |
856 | 859 |
857 #endif // VM_ISOLATE_H_ | 860 #endif // VM_ISOLATE_H_ |
OLD | NEW |