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

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

Issue 2759533002: Remove legacy restart code (Closed)
Patch Set: asiva review Created 3 years, 9 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
« no previous file with comments | « runtime/vm/dart_api_impl.cc ('k') | runtime/vm/isolate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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
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
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
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_
OLDNEW
« no previous file with comments | « runtime/vm/dart_api_impl.cc ('k') | runtime/vm/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698