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

Side by Side Diff: sdk/lib/_internal/compiler/js_lib/isolate_patch.dart

Issue 1154673004: Add "checked" parameter to Isolate.spawnUri. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Skip test for everything but VM for now. Created 5 years, 6 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/isolate.cc ('k') | sdk/lib/isolate/isolate.dart » ('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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 // Patch file for the dart:isolate library. 5 // Patch file for the dart:isolate library.
6 6
7 import 'dart:_js_helper' show patch; 7 import 'dart:_js_helper' show patch;
8 import 'dart:_isolate_helper' show CapabilityImpl, 8 import 'dart:_isolate_helper' show CapabilityImpl,
9 CloseToken, 9 CloseToken,
10 IsolateNatives, 10 IsolateNatives,
(...skipping 19 matching lines...) Expand all
30 pauseCapability: msg[2], 30 pauseCapability: msg[2],
31 terminateCapability: msg[3])); 31 terminateCapability: msg[3]));
32 } catch (e, st) { 32 } catch (e, st) {
33 return new Future<Isolate>.error(e, st); 33 return new Future<Isolate>.error(e, st);
34 } 34 }
35 } 35 }
36 36
37 @patch 37 @patch
38 static Future<Isolate> spawnUri( 38 static Future<Isolate> spawnUri(
39 Uri uri, List<String> args, var message, { bool paused: false, 39 Uri uri, List<String> args, var message, { bool paused: false,
40 bool checked,
40 Uri packageRoot }) { 41 Uri packageRoot }) {
41 if (packageRoot != null) throw new UnimplementedError("packageRoot"); 42 if (packageRoot != null) throw new UnimplementedError("packageRoot");
42 try { 43 try {
43 if (args is List<String>) { 44 if (args is List<String>) {
44 for (int i = 0; i < args.length; i++) { 45 for (int i = 0; i < args.length; i++) {
45 if (args[i] is! String) { 46 if (args[i] is! String) {
46 throw new ArgumentError("Args must be a list of Strings $args"); 47 throw new ArgumentError("Args must be a list of Strings $args");
47 } 48 }
48 } 49 }
49 } else if (args != null) { 50 } else if (args != null) {
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 factory RawReceivePort([void handler(event)]) { 155 factory RawReceivePort([void handler(event)]) {
155 return new RawReceivePortImpl(handler); 156 return new RawReceivePortImpl(handler);
156 } 157 }
157 } 158 }
158 159
159 @patch 160 @patch
160 class Capability { 161 class Capability {
161 @patch 162 @patch
162 factory Capability() = CapabilityImpl; 163 factory Capability() = CapabilityImpl;
163 } 164 }
OLDNEW
« no previous file with comments | « runtime/vm/isolate.cc ('k') | sdk/lib/isolate/isolate.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698