Chromium Code Reviews| 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); |
| -} |