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

Unified Diff: runtime/vm/thread.h

Issue 1672853002: Move sticky_error_ from isolate to thread (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Comments addressed Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/snapshot.cc ('k') | runtime/vm/thread.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/thread.h
diff --git a/runtime/vm/thread.h b/runtime/vm/thread.h
index c5a0c8f3f148b2c56380f9833c48ffb5c77fbb8d..2d8531cb0c5afe22b777895f93c4829a2b076528 100644
--- a/runtime/vm/thread.h
+++ b/runtime/vm/thread.h
@@ -40,6 +40,7 @@ class PcDescriptors;
class RawBool;
class RawObject;
class RawCode;
+class RawError;
class RawGrowableObjectArray;
class RawString;
class RuntimeEntry;
@@ -365,6 +366,11 @@ LEAF_RUNTIME_ENTRY_LIST(DEFINE_OFFSET_METHOD)
}
RawGrowableObjectArray* pending_functions();
+ void clear_pending_functions();
+
+ RawError* sticky_error() const;
+ void set_sticky_error(const Error& value);
+ void clear_sticky_error();
#if defined(DEBUG)
#define REUSABLE_HANDLE_SCOPE_ACCESSORS(object) \
@@ -548,6 +554,8 @@ LEAF_RUNTIME_ENTRY_LIST(DEFINE_OFFSET_METHOD)
uword vm_tag_;
RawGrowableObjectArray* pending_functions_;
+ RawError* sticky_error_;
+
// State that is cached in the TLS for fast access in generated code.
#define DECLARE_MEMBERS(type_name, member_name, expr, default_init_value) \
type_name member_name;
« no previous file with comments | « runtime/vm/snapshot.cc ('k') | runtime/vm/thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698