diff options
author | Alon Zakai <azakai@google.com> | 2023-05-04 16:44:09 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-04 16:44:09 -0700 |
commit | 7f8e4cbf6273c9b13b3a1a42f5e2833ea0d0f686 (patch) | |
tree | cc0343495b994c67a01b5143e6345d45a1c3587d /test/binaryen.js | |
parent | 09fe432c0d3cb7562767a8e06d4e918beb5990c2 (diff) | |
download | binaryen-7f8e4cbf6273c9b13b3a1a42f5e2833ea0d0f686.tar.gz binaryen-7f8e4cbf6273c9b13b3a1a42f5e2833ea0d0f686.tar.bz2 binaryen-7f8e4cbf6273c9b13b3a1a42f5e2833ea0d0f686.zip |
[NFC] Refactor each of ArrayNewSeg and ArrayInit into subclasses for Data/Elem (#5692)
ArrayNewSeg => ArrayNewSegData, ArrayNewSegElem
ArrayInit => ArrayInitData, ArrayInitElem
Basically we remove the opcode and use the class type to differentiate them.
This adds some code but it makes the representation simpler and more compact in
memory, and it will help with #5690
Diffstat (limited to 'test/binaryen.js')
-rw-r--r-- | test/binaryen.js/kitchen-sink.js.txt | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/test/binaryen.js/kitchen-sink.js.txt b/test/binaryen.js/kitchen-sink.js.txt index 35b8ea438..5244e10c7 100644 --- a/test/binaryen.js/kitchen-sink.js.txt +++ b/test/binaryen.js/kitchen-sink.js.txt @@ -97,25 +97,25 @@ StructNewId: 60 StructGetId: 61 StructSetId: 62 ArrayNewId: 63 -ArrayNewFixedId: 65 -ArrayGetId: 66 -ArraySetId: 67 -ArrayLenId: 68 -ArrayCopy: 69 -RefAs: 72 -StringNew: 73 -StringConst: 74 -StringMeasure: 75 -StringEncode: 76 -StringConcat: 77 -StringEq: 78 -StringAs: 79 -StringWTF8Advance: 80 -StringWTF16Get: 81 -StringIterNext: 82 -StringIterMove: 83 -StringSliceWTF: 84 -StringSliceIter: 85 +ArrayNewFixedId: 66 +ArrayGetId: 67 +ArraySetId: 68 +ArrayLenId: 69 +ArrayCopy: 70 +RefAs: 74 +StringNew: 75 +StringConst: 76 +StringMeasure: 77 +StringEncode: 78 +StringConcat: 79 +StringEq: 80 +StringAs: 81 +StringWTF8Advance: 82 +StringWTF16Get: 83 +StringIterNext: 84 +StringIterMove: 85 +StringSliceWTF: 86 +StringSliceIter: 87 getExpressionInfo={"id":15,"type":4,"op":6} (f32.neg (f32.const -33.61199951171875) |