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

Unified Diff: runtime/vm/isolate.h

Issue 881373002: Implemented more of the Isolate API (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
Index: runtime/vm/isolate.h
===================================================================
--- runtime/vm/isolate.h (revision 44200)
+++ runtime/vm/isolate.h (working copy)
@@ -74,6 +74,7 @@
class RawInt32x4;
class RawUserTag;
class SampleBuffer;
+class SendPort;
class Simulator;
class StackResource;
class StackZone;
@@ -410,6 +411,17 @@
bool AddResumeCapability(const Capability& capability);
bool RemoveResumeCapability(const Capability& capability);
+ void AddExitListener(const SendPort& listener);
+ void RemoveExitListener(const SendPort& listener);
+ void NotifyExitListeners();
+
+ void AddErrorListener(const SendPort& listener);
+ void RemoveErrorListener(const SendPort& listener);
+ void NotifyErrorListeners(const String& msg, const String& stacktrace);
+
+ bool ErrorsFatal() const { return errors_fatal_; }
+ void SetErrorsFatal(bool val) { errors_fatal_ = val; }
+
Random* random() { return &random_; }
Simulator* simulator() const { return simulator_; }
@@ -674,6 +686,7 @@
Dart_Port origin_id_; // Isolates created by spawnFunc have some origin id.
uint64_t pause_capability_;
uint64_t terminate_capability_;
+ bool errors_fatal_;
Heap* heap_;
ObjectStore* object_store_;
uword top_exit_frame_info_;

Powered by Google App Engine
This is Rietveld 408576698