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 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
414 // Verify that the sender has the capability to pause or terminate the | 414 // Verify that the sender has the capability to pause or terminate the |
415 // isolate. | 415 // isolate. |
416 bool VerifyPauseCapability(const Object& capability) const; | 416 bool VerifyPauseCapability(const Object& capability) const; |
417 bool VerifyTerminateCapability(const Object& capability) const; | 417 bool VerifyTerminateCapability(const Object& capability) const; |
418 | 418 |
419 // Returns true if the capability was added or removed from this isolate's | 419 // Returns true if the capability was added or removed from this isolate's |
420 // list of pause events. | 420 // list of pause events. |
421 bool AddResumeCapability(const Capability& capability); | 421 bool AddResumeCapability(const Capability& capability); |
422 bool RemoveResumeCapability(const Capability& capability); | 422 bool RemoveResumeCapability(const Capability& capability); |
423 | 423 |
424 void AddExitListener(const SendPort& listener); | 424 void AddExitListener(const SendPort& listener, const Instance& response); |
425 void RemoveExitListener(const SendPort& listener); | 425 void RemoveExitListener(const SendPort& listener); |
426 void NotifyExitListeners(); | 426 void NotifyExitListeners(); |
427 | 427 |
428 void AddErrorListener(const SendPort& listener); | 428 void AddErrorListener(const SendPort& listener); |
429 void RemoveErrorListener(const SendPort& listener); | 429 void RemoveErrorListener(const SendPort& listener); |
430 void NotifyErrorListeners(const String& msg, const String& stacktrace); | 430 void NotifyErrorListeners(const String& msg, const String& stacktrace); |
431 | 431 |
432 bool ErrorsFatal() const { return errors_fatal_; } | 432 bool ErrorsFatal() const { return errors_fatal_; } |
433 void SetErrorsFatal(bool val) { errors_fatal_ = val; } | 433 void SetErrorsFatal(bool val) { errors_fatal_ = val; } |
434 | 434 |
(...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
947 uint8_t* serialized_args_; | 947 uint8_t* serialized_args_; |
948 intptr_t serialized_args_len_; | 948 intptr_t serialized_args_len_; |
949 uint8_t* serialized_message_; | 949 uint8_t* serialized_message_; |
950 intptr_t serialized_message_len_; | 950 intptr_t serialized_message_len_; |
951 bool paused_; | 951 bool paused_; |
952 }; | 952 }; |
953 | 953 |
954 } // namespace dart | 954 } // namespace dart |
955 | 955 |
956 #endif // VM_ISOLATE_H_ | 956 #endif // VM_ISOLATE_H_ |
OLD | NEW |