diff options
author | Sam Clegg <sbc@chromium.org> | 2020-10-14 21:10:26 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-14 19:10:26 -0700 |
commit | 9c5df069cc466d904c8faa1888095e84ae74d404 (patch) | |
tree | c8f69e0c526428d2849d45be1154ed45dfa77868 /test/fib-dbg.wasm.fromBinary | |
parent | 6216becd5e8d93cd17c758a63f24db4494719e2c (diff) | |
download | binaryen-9c5df069cc466d904c8faa1888095e84ae74d404.tar.gz binaryen-9c5df069cc466d904c8faa1888095e84ae74d404.tar.bz2 binaryen-9c5df069cc466d904c8faa1888095e84ae74d404.zip |
Assign import names consistently between text and binaryn reader (#3238)
The s-parser was assigning numbers names per-type where as
the binaryn reader was using the global import count as the
number to append.
This change switches to use per-element count which I think
it preferable as it increases the stability of the auto-generated
names. e.g. memory is now always named `$mimport0`.
Diffstat (limited to 'test/fib-dbg.wasm.fromBinary')
-rw-r--r-- | test/fib-dbg.wasm.fromBinary | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/fib-dbg.wasm.fromBinary b/test/fib-dbg.wasm.fromBinary index 39780b6e3..fdb0f0fec 100644 --- a/test/fib-dbg.wasm.fromBinary +++ b/test/fib-dbg.wasm.fromBinary @@ -4,8 +4,8 @@ (type $none_=>_none (func)) (type $i32_=>_none (func (param i32))) (type $none_=>_i32 (func (result i32))) - (import "env" "memory" (memory $mimport$9 256 256)) - (import "env" "table" (table $timport$10 0 0 funcref)) + (import "env" "memory" (memory $mimport$0 256 256)) + (import "env" "table" (table $timport$0 0 0 funcref)) (import "env" "DYNAMICTOP_PTR" (global $gimport$0 i32)) (import "env" "tempDoublePtr" (global $gimport$1 i32)) (import "env" "ABORT" (global $gimport$2 i32)) @@ -15,8 +15,8 @@ (import "env" "fb" (global $gimport$6 i32)) (import "global" "NaN" (global $gimport$7 f64)) (import "global" "Infinity" (global $gimport$8 f64)) - (import "env" "memoryBase" (global $gimport$11 i32)) - (import "env" "tableBase" (global $gimport$12 i32)) + (import "env" "memoryBase" (global $gimport$9 i32)) + (import "env" "tableBase" (global $gimport$10 i32)) (global $global$0 (mut i32) (global.get $gimport$0)) (global $global$1 (mut i32) (global.get $gimport$1)) (global $global$2 (mut i32) (global.get $gimport$2)) |