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 RUNTIME_VM_ISOLATE_H_ | 5 #ifndef RUNTIME_VM_ISOLATE_H_ |
6 #define RUNTIME_VM_ISOLATE_H_ | 6 #define RUNTIME_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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 kKillMsg = 4, | 156 kKillMsg = 4, |
157 kAddExitMsg = 5, | 157 kAddExitMsg = 5, |
158 kDelExitMsg = 6, | 158 kDelExitMsg = 6, |
159 kAddErrorMsg = 7, | 159 kAddErrorMsg = 7, |
160 kDelErrorMsg = 8, | 160 kDelErrorMsg = 8, |
161 kErrorFatalMsg = 9, | 161 kErrorFatalMsg = 9, |
162 | 162 |
163 // Internal message ids. | 163 // Internal message ids. |
164 kInterruptMsg = 10, // Break in the debugger. | 164 kInterruptMsg = 10, // Break in the debugger. |
165 kInternalKillMsg = 11, // Like kill, but does not run exit listeners, etc. | 165 kInternalKillMsg = 11, // Like kill, but does not run exit listeners, etc. |
166 kVMRestartMsg = 12, // Sent to isolates when vm is restarting. | |
167 }; | 166 }; |
168 // The different Isolate API message priorities for ping and kill messages. | 167 // The different Isolate API message priorities for ping and kill messages. |
169 enum LibMsgPriority { | 168 enum LibMsgPriority { |
170 kImmediateAction = 0, | 169 kImmediateAction = 0, |
171 kBeforeNextEventAction = 1, | 170 kBeforeNextEventAction = 1, |
172 kAsEventAction = 2 | 171 kAsEventAction = 2 |
173 }; | 172 }; |
174 | 173 |
175 ~Isolate(); | 174 ~Isolate(); |
176 | 175 |
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
523 bool IsPaused() const; | 522 bool IsPaused() const; |
524 | 523 |
525 bool should_pause_post_service_request() const { | 524 bool should_pause_post_service_request() const { |
526 return should_pause_post_service_request_; | 525 return should_pause_post_service_request_; |
527 } | 526 } |
528 void set_should_pause_post_service_request( | 527 void set_should_pause_post_service_request( |
529 bool should_pause_post_service_request) { | 528 bool should_pause_post_service_request) { |
530 should_pause_post_service_request_ = should_pause_post_service_request; | 529 should_pause_post_service_request_ = should_pause_post_service_request; |
531 } | 530 } |
532 | 531 |
533 void PausePostRequest(); | 532 RawError* PausePostRequest(); |
534 | 533 |
535 uword user_tag() const { return user_tag_; } | 534 uword user_tag() const { return user_tag_; } |
536 static intptr_t user_tag_offset() { return OFFSET_OF(Isolate, user_tag_); } | 535 static intptr_t user_tag_offset() { return OFFSET_OF(Isolate, user_tag_); } |
537 static intptr_t current_tag_offset() { | 536 static intptr_t current_tag_offset() { |
538 return OFFSET_OF(Isolate, current_tag_); | 537 return OFFSET_OF(Isolate, current_tag_); |
539 } | 538 } |
540 static intptr_t default_tag_offset() { | 539 static intptr_t default_tag_offset() { |
541 return OFFSET_OF(Isolate, default_tag_); | 540 return OFFSET_OF(Isolate, default_tag_); |
542 } | 541 } |
543 | 542 |
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1035 intptr_t* spawn_count_; | 1034 intptr_t* spawn_count_; |
1036 | 1035 |
1037 Dart_IsolateFlags isolate_flags_; | 1036 Dart_IsolateFlags isolate_flags_; |
1038 bool paused_; | 1037 bool paused_; |
1039 bool errors_are_fatal_; | 1038 bool errors_are_fatal_; |
1040 }; | 1039 }; |
1041 | 1040 |
1042 } // namespace dart | 1041 } // namespace dart |
1043 | 1042 |
1044 #endif // RUNTIME_VM_ISOLATE_H_ | 1043 #endif // RUNTIME_VM_ISOLATE_H_ |
OLD | NEW |