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

Unified Diff: runtime/vm/isolate.h

Issue 1666323002: Don't allow oob message interrupts while executing constant expressions in the parser. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: 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
Index: runtime/vm/isolate.h
diff --git a/runtime/vm/isolate.h b/runtime/vm/isolate.h
index 77b1fe690e81e508174911a8b028a1208007300d..9bca13488f2b7c753898a81c948fb041e4871386 100644
--- a/runtime/vm/isolate.h
+++ b/runtime/vm/isolate.h
@@ -286,6 +286,9 @@ class Isolate : public BaseIsolate {
RawError* HandleInterrupts();
uword GetAndClearInterrupts();
+ void DeferMessageInterrupts();
+ void RestoreMessageInterrupts();
+
// Marks all libraries as loaded.
void DoneLoading();
@@ -744,6 +747,8 @@ class Isolate : public BaseIsolate {
Simulator* simulator_;
Mutex* mutex_; // protects stack_limit_, saved_stack_limit_, compiler stats.
uword saved_stack_limit_;
+ uword deferred_interrupts_mask_;
+ uword deferred_interrupts_;
uword stack_overflow_flags_;
int32_t stack_overflow_count_;
MessageHandler* message_handler_;
@@ -864,6 +869,7 @@ REUSABLE_HANDLE_LIST(REUSABLE_FRIEND_DECLARATION)
friend class ServiceIsolate;
friend class Thread;
friend class Timeline;
+ friend class IsolateTestHelper;
DISALLOW_COPY_AND_ASSIGN(Isolate);
};
« runtime/vm/compiler.cc ('K') | « runtime/vm/compiler.cc ('k') | runtime/vm/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698