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

Unified Diff: runtime/lib/isolate_patch.dart

Issue 1244733002: - Implement VM parts of https://codereview.chromium.org/1240743003/ (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Update isolate.status file as expected. Created 5 years, 5 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/lib/isolate.cc ('k') | runtime/vm/bootstrap_natives.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/isolate_patch.dart
diff --git a/runtime/lib/isolate_patch.dart b/runtime/lib/isolate_patch.dart
index 0dff00247d4d12b293f51b525a3d2b0b64eeec92..7e1c496bc3cb68635c8afbaa30bbe1619c59b714 100644
--- a/runtime/lib/isolate_patch.dart
+++ b/runtime/lib/isolate_patch.dart
@@ -282,7 +282,8 @@ patch class Isolate {
try {
// The VM will invoke [_startIsolate] with entryPoint as argument.
readyPort = new RawReceivePort();
- _spawnFunction(readyPort.sendPort, entryPoint, message, paused);
+ _spawnFunction(readyPort.sendPort, entryPoint, message,
+ paused, errorsAreFatal, onExit, onError);
Completer completer = new Completer<Isolate>.sync();
readyPort.handler = (readyMessage) {
readyPort.close();
@@ -314,7 +315,8 @@ patch class Isolate {
var packageRootString =
(packageRoot == null) ? null : packageRoot.toString();
_spawnUri(readyPort.sendPort, uri.toString(), args, message,
- paused, checked, packageRootString);
+ paused, checked, packageRootString,
+ errorsAreFatal, onExit, onError);
Completer completer = new Completer<Isolate>.sync();
readyPort.handler = (readyMessage) {
readyPort.close();
@@ -351,12 +353,14 @@ patch class Isolate {
static void _spawnFunction(SendPort readyPort, Function topLevelFunction,
- var message, bool paused)
+ var message, bool paused, bool errorsAreFatal,
+ SendPort onExit, SendPort onError)
native "Isolate_spawnFunction";
static void _spawnUri(SendPort readyPort, String uri,
List<String> args, var message,
- bool paused, bool checked, String packageRoot)
+ bool paused, bool checked, String packageRoot,
+ bool errorsAreFatal, SendPort onExit, SendPort onError)
native "Isolate_spawnUri";
static void _sendOOB(port, msg) native "Isolate_sendOOB";
« no previous file with comments | « runtime/lib/isolate.cc ('k') | runtime/vm/bootstrap_natives.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698