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

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

Issue 1152333009: Delete dart2js specific private library code (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Rebase 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | lib/runtime/dart/_js_helper.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/dart/_isolate_helper.js
diff --git a/lib/runtime/dart/_isolate_helper.js b/lib/runtime/dart/_isolate_helper.js
index 8a5aad2c61bf4772efa1b980f965287835b76b6f..87931301b9d023e3f2c978c0affa99a2c71a0a70 100644
--- a/lib/runtime/dart/_isolate_helper.js
+++ b/lib/runtime/dart/_isolate_helper.js
@@ -1,8 +1,8 @@
var _isolate_helper = dart.defineLibrary(_isolate_helper, {});
var core = dart.import(core);
var _native_typed_data = dart.import(_native_typed_data);
-var _interceptors = dart.lazyImport(_interceptors);
-var _js_helper = dart.lazyImport(_js_helper);
+var _interceptors = dart.import(_interceptors);
+var _js_helper = dart.import(_js_helper);
var isolate = dart.import(isolate);
var _foreign_helper = dart.import(_foreign_helper);
var _js_embedded_names = dart.import(_js_embedded_names);
@@ -63,8 +63,8 @@ var async = dart.import(async);
return this.serializeJsSendPort(dart.as(x, _NativeJsSendPort));
if (dart.is(x, _WorkerSendPort))
return this.serializeWorkerSendPort(dart.as(x, _WorkerSendPort));
- if (dart.is(x, _js_helper.Closure))
- return this.serializeClosure(dart.as(x, _js_helper.Closure));
+ if (dart.is(x, core.Function))
+ return this.serializeClosure(dart.as(x, core.Function));
return this.serializeDartObject(x);
}
unsupported(x, message) {
@@ -182,7 +182,7 @@ var async = dart.import(async);
serializeWorkerSendPort: [core.Object, [_WorkerSendPort]],
serializeJsSendPort: [core.Object, [_NativeJsSendPort]],
serializeCapability: [core.Object, [CapabilityImpl]],
- serializeClosure: [core.Object, [_js_helper.Closure]],
+ serializeClosure: [core.Object, [core.Function]],
serializeDartObject: [core.Object, [core.Object]]
})
});
@@ -915,7 +915,6 @@ var async = dart.import(async);
});
class _MainManagerStub extends core.Object {
postMessage(msg) {
- _js_helper.requiresPreamble();
self.postMessage(msg);
}
}
@@ -926,15 +925,12 @@ var async = dart.import(async);
let _SPAWN_FAILED_SIGNAL = "spawn failed";
dart.copyProperties(exports, {
get globalWindow() {
- _js_helper.requiresPreamble();
return self.window;
},
get globalWorker() {
- _js_helper.requiresPreamble();
return self.Worker;
},
get globalPostMessageDefined() {
- _js_helper.requiresPreamble();
return !!self.postMessage;
}
});
@@ -1074,7 +1070,6 @@ var async = dart.import(async);
}
}
static _consoleLog(msg) {
- _js_helper.requiresPreamble();
self.console.log(msg);
}
static _getJSFunctionFromName(functionName) {
@@ -1082,7 +1077,7 @@ var async = dart.import(async);
return globalFunctionsContainer[functionName]();
}
static _getJSFunctionName(f) {
- return dart.is(f, _js_helper.Closure) ? dart.as(f.$name, core.String) : null;
+ return dart.as(f.$name, core.String);
}
static _allocate(ctor) {
return new ctor();
@@ -1512,7 +1507,6 @@ var async = dart.import(async);
methods: () => ({cancel: [dart.void, []]})
});
function hasTimer() {
- _js_helper.requiresPreamble();
return self.setTimeout != null;
}
dart.fn(hasTimer, core.bool, []);
« no previous file with comments | « no previous file | lib/runtime/dart/_js_helper.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698