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

Unified Diff: lib/runtime/dart/isolate.js

Issue 1045323002: emit interfaces before use (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 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
« no previous file with comments | « lib/runtime/dart/core.js ('k') | lib/runtime/dart/typed_data.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/dart/isolate.js
diff --git a/lib/runtime/dart/isolate.js b/lib/runtime/dart/isolate.js
index 00a3ec98fa92ad16f6810616cd11a979344f8555..ab563a67358ebc80eec27b0616fcc4e89f1014e7 100644
--- a/lib/runtime/dart/isolate.js
+++ b/lib/runtime/dart/isolate.js
@@ -155,19 +155,23 @@ var isolate;
return _isolate_helper.IsolateNatives.currentIsolate;
}
});
- class SendPort extends core.Object {
- }
+ class SendPort extends core.Object {}
SendPort[dart.implements] = [Capability];
- class ReceivePort extends core.Object {
- ReceivePort() {
- return new _isolate_helper.ReceivePortImpl();
- }
- fromRawReceivePort(rawPort) {
- return new _isolate_helper.ReceivePortImpl.fromRawReceivePort(rawPort);
+ dart.defineLazyClass(exports, {
+ get ReceivePort() {
+ class ReceivePort extends core.Object {
+ ReceivePort() {
+ return new _isolate_helper.ReceivePortImpl();
+ }
+ fromRawReceivePort(rawPort) {
+ return new _isolate_helper.ReceivePortImpl.fromRawReceivePort(rawPort);
+ }
+ }
+ ReceivePort[dart.implements] = [async.Stream];
+ dart.defineNamedConstructor(ReceivePort, 'fromRawReceivePort');
+ return ReceivePort;
}
- }
- ReceivePort[dart.implements] = [async.Stream];
- dart.defineNamedConstructor(ReceivePort, 'fromRawReceivePort');
+ });
class RawReceivePort extends core.Object {
RawReceivePort(handler) {
if (handler === void 0)
@@ -212,7 +216,6 @@ var isolate;
exports.IsolateSpawnException = IsolateSpawnException;
exports.Isolate = Isolate;
exports.SendPort = SendPort;
- exports.ReceivePort = ReceivePort;
exports.RawReceivePort = RawReceivePort;
exports.RemoteError = RemoteError;
})(isolate || (isolate = {}));
« no previous file with comments | « lib/runtime/dart/core.js ('k') | lib/runtime/dart/typed_data.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698