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

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

Issue 1168933002: Fixes crashes in VM isolate shutdown. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 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/debugger_api_impl.cc ('k') | runtime/vm/object.h » ('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 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 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 static bool IsDeoptBefore(intptr_t deopt_id) { 360 static bool IsDeoptBefore(intptr_t deopt_id) {
361 return (deopt_id % kDeoptIdStep) == kDeoptIdBeforeOffset; 361 return (deopt_id % kDeoptIdStep) == kDeoptIdBeforeOffset;
362 } 362 }
363 363
364 static bool IsDeoptAfter(intptr_t deopt_id) { 364 static bool IsDeoptAfter(intptr_t deopt_id) {
365 return (deopt_id % kDeoptIdStep) == kDeoptIdAfterOffset; 365 return (deopt_id % kDeoptIdStep) == kDeoptIdAfterOffset;
366 } 366 }
367 367
368 Mutex* mutex() const { return mutex_; } 368 Mutex* mutex() const { return mutex_; }
369 369
370 Debugger* debugger() const { return debugger_; } 370 Debugger* debugger() const {
371 ASSERT(debugger_ != NULL);
372 return debugger_;
373 }
371 374
372 void set_single_step(bool value) { single_step_ = value; } 375 void set_single_step(bool value) { single_step_ = value; }
373 bool single_step() const { return single_step_; } 376 bool single_step() const { return single_step_; }
374 static intptr_t single_step_offset() { 377 static intptr_t single_step_offset() {
375 return OFFSET_OF(Isolate, single_step_); 378 return OFFSET_OF(Isolate, single_step_);
376 } 379 }
377 380
378 void set_has_compiled(bool value) { has_compiled_ = value; } 381 void set_has_compiled(bool value) { has_compiled_ = value; }
379 bool has_compiled() const { return has_compiled_; } 382 bool has_compiled() const { return has_compiled_; }
380 383
(...skipping 632 matching lines...) Expand 10 before | Expand all | Expand 10 after
1013 intptr_t serialized_args_len_; 1016 intptr_t serialized_args_len_;
1014 uint8_t* serialized_message_; 1017 uint8_t* serialized_message_;
1015 intptr_t serialized_message_len_; 1018 intptr_t serialized_message_len_;
1016 Isolate::Flags isolate_flags_; 1019 Isolate::Flags isolate_flags_;
1017 bool paused_; 1020 bool paused_;
1018 }; 1021 };
1019 1022
1020 } // namespace dart 1023 } // namespace dart
1021 1024
1022 #endif // VM_ISOLATE_H_ 1025 #endif // VM_ISOLATE_H_
OLDNEW
« no previous file with comments | « runtime/vm/debugger_api_impl.cc ('k') | runtime/vm/object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698