From 1d24b83eaf710510c132091db89715607d64eea7 Mon Sep 17 00:00:00 2001 From: Thomas Lively <7121787+tlively@users.noreply.github.com> Date: Thu, 31 Mar 2022 07:57:49 -0700 Subject: [MemoryPacking] Remove workaround for old V8 bug (#4558) V8 used to incorrectly parse the segment index on bulk memory instructions as a signed LEB rather than an unsigned LEB, which meant it only worked correctly with up to 63 data segments. That bug has been fixed for over two years now, so lift the maximum number of segments generated by memory packing from 63 to the specified max, 100k. --- test/passes/memory-packing_all-features.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/passes/memory-packing_all-features.txt b/test/passes/memory-packing_all-features.txt index 731383188..a2d39083b 100644 --- a/test/passes/memory-packing_all-features.txt +++ b/test/passes/memory-packing_all-features.txt @@ -997,7 +997,9 @@ (data "a") (data "a") (data "a") - (data "a\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00a\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00a") + (data "a") + (data "a") + (data "a") (func $init-lots (block (memory.init 0 @@ -1505,6 +1507,8 @@ (data.drop 60) (data.drop 61) (data.drop 62) + (data.drop 63) + (data.drop 64) ) ) ) -- cgit v1.2.3