Commit d704828
committed
[dart2wasm] Use Uint8List for representing bytes
We should use `Uint8List` to represent bytes in the wasm serialization
code. For cases where we only write two fixed bytes, we use `writeByte`
instead (which is faster than `Uint8List.setRange(<int>[a, b])`. We use
a cached `ByteData` to write little-endian float32/float64.
Change-Id: Id5662c1b7a3ba15f087341b13a99bbfdfa37059e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/403864
Reviewed-by: Slava Egorov <[email protected]>1 parent 5d3d965 commit d704828
File tree
3 files changed
+192
-79
lines changed- pkg/wasm_builder/lib/src
- ir
- serialize
3 files changed
+192
-79
lines changed
0 commit comments