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

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

Issue 2223913002: Add an API for setting the sticky error (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: asiva review Created 4 years, 4 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_test.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 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 517 matching lines...) Expand 10 before | Expand all | Expand 10 after
528 void set_metrics_list_head(Metric* metric) { 528 void set_metrics_list_head(Metric* metric) {
529 metrics_list_head_ = metric; 529 metrics_list_head_ = metric;
530 } 530 }
531 531
532 RawGrowableObjectArray* deoptimized_code_array() const { 532 RawGrowableObjectArray* deoptimized_code_array() const {
533 return deoptimized_code_array_; 533 return deoptimized_code_array_;
534 } 534 }
535 void set_deoptimized_code_array(const GrowableObjectArray& value); 535 void set_deoptimized_code_array(const GrowableObjectArray& value);
536 void TrackDeoptimizedCode(const Code& code); 536 void TrackDeoptimizedCode(const Code& code);
537 537
538 // Also sends a paused at exit event over the service protocol.
539 void SetStickyError(RawError* sticky_error);
540
538 RawError* sticky_error() const { return sticky_error_; } 541 RawError* sticky_error() const { return sticky_error_; }
539 void clear_sticky_error(); 542 void clear_sticky_error();
540 543
541 bool compilation_allowed() const { return compilation_allowed_; } 544 bool compilation_allowed() const { return compilation_allowed_; }
542 void set_compilation_allowed(bool allowed) { 545 void set_compilation_allowed(bool allowed) {
543 compilation_allowed_ = allowed; 546 compilation_allowed_ = allowed;
544 } 547 }
545 548
546 // In precompilation we finalize all regular classes before compiling. 549 // In precompilation we finalize all regular classes before compiling.
547 bool all_classes_finalized() const { return all_classes_finalized_; } 550 bool all_classes_finalized() const { return all_classes_finalized_; }
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after
988 intptr_t* spawn_count_; 991 intptr_t* spawn_count_;
989 992
990 Dart_IsolateFlags isolate_flags_; 993 Dart_IsolateFlags isolate_flags_;
991 bool paused_; 994 bool paused_;
992 bool errors_are_fatal_; 995 bool errors_are_fatal_;
993 }; 996 };
994 997
995 } // namespace dart 998 } // namespace dart
996 999
997 #endif // VM_ISOLATE_H_ 1000 #endif // VM_ISOLATE_H_
OLDNEW
« no previous file with comments | « runtime/vm/dart_api_impl_test.cc ('k') | runtime/vm/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698