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/atomic.h" | 10 #include "vm/atomic.h" |
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
470 // list of pause events. | 470 // list of pause events. |
471 bool AddResumeCapability(const Capability& capability); | 471 bool AddResumeCapability(const Capability& capability); |
472 bool RemoveResumeCapability(const Capability& capability); | 472 bool RemoveResumeCapability(const Capability& capability); |
473 | 473 |
474 void AddExitListener(const SendPort& listener, const Instance& response); | 474 void AddExitListener(const SendPort& listener, const Instance& response); |
475 void RemoveExitListener(const SendPort& listener); | 475 void RemoveExitListener(const SendPort& listener); |
476 void NotifyExitListeners(); | 476 void NotifyExitListeners(); |
477 | 477 |
478 void AddErrorListener(const SendPort& listener); | 478 void AddErrorListener(const SendPort& listener); |
479 void RemoveErrorListener(const SendPort& listener); | 479 void RemoveErrorListener(const SendPort& listener); |
480 void NotifyErrorListeners(const String& msg, const String& stacktrace); | 480 bool NotifyErrorListeners(const String& msg, const String& stacktrace); |
481 | 481 |
482 bool ErrorsFatal() const { return errors_fatal_; } | 482 bool ErrorsFatal() const { return errors_fatal_; } |
483 void SetErrorsFatal(bool val) { errors_fatal_ = val; } | 483 void SetErrorsFatal(bool val) { errors_fatal_ = val; } |
484 | 484 |
485 Random* random() { return &random_; } | 485 Random* random() { return &random_; } |
486 | 486 |
487 Simulator* simulator() const { return simulator_; } | 487 Simulator* simulator() const { return simulator_; } |
488 void set_simulator(Simulator* value) { simulator_ = value; } | 488 void set_simulator(Simulator* value) { simulator_ = value; } |
489 | 489 |
490 Dart_GcPrologueCallback gc_prologue_callback() const { | 490 Dart_GcPrologueCallback gc_prologue_callback() const { |
(...skipping 599 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1090 uint8_t* serialized_message_; | 1090 uint8_t* serialized_message_; |
1091 intptr_t serialized_message_len_; | 1091 intptr_t serialized_message_len_; |
1092 Isolate::Flags isolate_flags_; | 1092 Isolate::Flags isolate_flags_; |
1093 bool paused_; | 1093 bool paused_; |
1094 bool errors_are_fatal_; | 1094 bool errors_are_fatal_; |
1095 }; | 1095 }; |
1096 | 1096 |
1097 } // namespace dart | 1097 } // namespace dart |
1098 | 1098 |
1099 #endif // VM_ISOLATE_H_ | 1099 #endif // VM_ISOLATE_H_ |
OLD | NEW |