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

Unified Diff: lib/html/frog/html_frog.dart

Issue 10700103: Stop adding so many global functions in client/dart.js. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 5 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:
Download patch
« no previous file with comments | « lib/html/dartium/html_dartium.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/html/frog/html_frog.dart
diff --git a/lib/html/frog/html_frog.dart b/lib/html/frog/html_frog.dart
index 7d059b1ac4534e20bf2b190a1121ced7c948c45b..cc66a2431ce041de0f0c1cc07f55536bb6b91066 100644
--- a/lib/html/frog/html_frog.dart
+++ b/lib/html/frog/html_frog.dart
@@ -30,6 +30,7 @@ ElementList queryAll(String selector) => _document.queryAll(selector);
class _HTMLElementImpl extends _ElementImpl native "*HTMLElement" {
}
+// TODO(vsm): Move this to a separate Isolates.dart file.
_serialize(var message) {
// TODO(kasperl): Specialize the serializer.
return new _Serializer().traverse(message);
@@ -60,9 +61,7 @@ class _JsSendPortSync implements SendPortSync {
}
static _call(num id, var message) native @"""
- var deserialized = _deserialize(message);
- var result = ReceivePortSync.map[id].callback(deserialized);
- return _serialize(result);
+ return ReceivePortSync.dispatchCall(id, message);
""";
}
« no previous file with comments | « lib/html/dartium/html_dartium.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698