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

Unified Diff: lib/isolate/isolate_leg.dart

Issue 9662046: Isolate library changes for leg support. (Closed) Base URL: http://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 side-by-side diff with in-line comments
Download patch
« lib/isolate/frog/natives.js ('K') | « lib/isolate/isolate_frog.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/isolate/isolate_leg.dart
===================================================================
--- lib/isolate/isolate_leg.dart (revision 5289)
+++ lib/isolate/isolate_leg.dart (working copy)
@@ -1,11 +1,8 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-// Dart isolate's API and implementation for frog. Since dartdocs are generated
-// using frog, we include here some additional library level comments.
-
/**
* The `dart:isolate` library defines APIs to spawn and communicate with
* isolates.
@@ -45,19 +42,3 @@
#source("frog/isolateimpl.dart");
#source("frog/ports.dart");
#source("frog/messages.dart");
-#native("frog/natives.js");
ngeoffray 2012/03/11 15:43:54 I had to create another file because leg does not
-
-ReceivePort _port;
-
-SendPort _spawnFunction(void topLevelFunction()) {
- final name = _IsolateNatives._getJSFunctionName(topLevelFunction);
- if (name == null) {
- throw new UnsupportedOperationException(
- "only top-level functions can be spawned.");
- }
- return _IsolateNatives._spawn2(name, null, false);
-}
-
-SendPort _spawnUri(String uri) {
- return _IsolateNatives._spawn2(null, uri, false);
-}
« lib/isolate/frog/natives.js ('K') | « lib/isolate/isolate_frog.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698