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

Unified Diff: sdk/lib/_internal/js_runtime/lib/isolate_serialization.dart

Issue 2754013002: Format all dart: library files (Closed)
Patch Set: Format all dart: library files Created 3 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 | « sdk/lib/_internal/js_runtime/lib/isolate_patch.dart ('k') | sdk/lib/_internal/js_runtime/lib/js_array.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/js_runtime/lib/isolate_serialization.dart
diff --git a/sdk/lib/_internal/js_runtime/lib/isolate_serialization.dart b/sdk/lib/_internal/js_runtime/lib/isolate_serialization.dart
index ba8f66b64d46bcd0614ed3c6a3abea8d3e278b79..619ef6ad2820b09294f6bb87976433a7df6ab863 100644
--- a/sdk/lib/_internal/js_runtime/lib/isolate_serialization.dart
+++ b/sdk/lib/_internal/js_runtime/lib/isolate_serialization.dart
@@ -117,9 +117,11 @@ class _Serializer {
serializeMap(Map x) {
Function serializeTearOff = serialize;
- return ['map',
- x.keys.map(serializeTearOff).toList(),
- x.values.map(serializeTearOff).toList()];
+ return [
+ 'map',
+ x.keys.map(serializeTearOff).toList(),
+ x.values.map(serializeTearOff).toList()
+ ];
}
serializeJSObject(JSObject x) {
@@ -193,21 +195,36 @@ class _Deserializer {
if (x is! JSArray) throw new ArgumentError("Bad serialized message: $x");
switch (x.first) {
- case "ref": return deserializeRef(x);
- case "buffer": return deserializeByteBuffer(x);
- case "typed": return deserializeTypedData(x);
- case "fixed": return deserializeFixed(x);
- case "extendable": return deserializeExtendable(x);
- case "mutable": return deserializeMutable(x);
- case "const": return deserializeConst(x);
- case "map": return deserializeMap(x);
- case "sendport": return deserializeSendPort(x);
- case "raw sendport": return deserializeRawSendPort(x);
- case "js-object": return deserializeJSObject(x);
- case "function": return deserializeClosure(x);
- case "capability": return deserializeCapability(x);
- case "dart": return deserializeDartObject(x);
- default: throw "couldn't deserialize: $x";
+ case "ref":
+ return deserializeRef(x);
+ case "buffer":
+ return deserializeByteBuffer(x);
+ case "typed":
+ return deserializeTypedData(x);
+ case "fixed":
+ return deserializeFixed(x);
+ case "extendable":
+ return deserializeExtendable(x);
+ case "mutable":
+ return deserializeMutable(x);
+ case "const":
+ return deserializeConst(x);
+ case "map":
+ return deserializeMap(x);
+ case "sendport":
+ return deserializeSendPort(x);
+ case "raw sendport":
+ return deserializeRawSendPort(x);
+ case "js-object":
+ return deserializeJSObject(x);
+ case "function":
+ return deserializeClosure(x);
+ case "capability":
+ return deserializeCapability(x);
+ case "dart":
+ return deserializeDartObject(x);
+ default:
+ throw "couldn't deserialize: $x";
}
}
@@ -364,7 +381,7 @@ class _Deserializer {
var emptyInstance = JS('', '#(#)', instanceFromClassId, classId);
deserializedObjects.add(emptyInstance);
deserializeArrayInPlace(fields);
- return JS('', '#(#, #, #)',
- initializeObject, classId, emptyInstance, fields);
+ return JS(
+ '', '#(#, #, #)', initializeObject, classId, emptyInstance, fields);
}
}
« no previous file with comments | « sdk/lib/_internal/js_runtime/lib/isolate_patch.dart ('k') | sdk/lib/_internal/js_runtime/lib/js_array.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698