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

Side by Side Diff: lib/isolate/isolate_frog.dart

Issue 9478027: spawnUri: fixing test with recent support for multi-script tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « lib/isolate/frog/isolateimpl.dart ('k') | tests/isolate/isolate.status » ('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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 5
6 // Dart isolate's API and implementation for frog. 6 // Dart isolate's API and implementation for frog.
7 #library("dart:isolate"); 7 #library("dart:isolate");
8 8
9 #import("../uri/uri.dart");
9 #source("isolate_api.dart"); 10 #source("isolate_api.dart");
10 #source("frog/compiler_hooks.dart"); 11 #source("frog/compiler_hooks.dart");
11 #source("frog/isolateimpl.dart"); 12 #source("frog/isolateimpl.dart");
12 #source("frog/ports.dart"); 13 #source("frog/ports.dart");
13 #source("frog/messages.dart"); 14 #source("frog/messages.dart");
14 #native("frog/natives.js"); 15 #native("frog/natives.js");
15 16
16 /** Default factory for [Isolate2]. */ 17 /** Default factory for [Isolate2]. */
17 class _IsolateFactory { 18 class _IsolateFactory {
18 19
19 factory Isolate2.fromCode(Function topLevelFunction) { 20 factory Isolate2.fromCode(Function topLevelFunction) {
20 final name = _IsolateNatives._getJSFunctionName(topLevelFunction); 21 final name = _IsolateNatives._getJSFunctionName(topLevelFunction);
21 if (name == null) { 22 if (name == null) {
22 throw new UnsupportedOperationException( 23 throw new UnsupportedOperationException(
23 "only top-level functions can be spawned."); 24 "only top-level functions can be spawned.");
24 } 25 }
25 return new _Isolate2Impl(_IsolateNatives._spawn2(name, null, false)); 26 return new _Isolate2Impl(_IsolateNatives._spawn2(name, null, false));
26 } 27 }
27 28
28 factory Isolate2.fromUri(String uri) { 29 factory Isolate2.fromUri(String uri) {
29 return new _Isolate2Impl(_IsolateNatives._spawn2(null, uri, false)); 30 return new _Isolate2Impl(_IsolateNatives._spawn2(null, uri, false));
30 } 31 }
31 } 32 }
OLDNEW
« no previous file with comments | « lib/isolate/frog/isolateimpl.dart ('k') | tests/isolate/isolate.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698