diff options
| author | Alon Zakai <azakai@google.com> | 2023-04-17 09:24:01 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-17 09:24:01 -0700 |
| commit | 55a5fcec460ad402c55e37d1da0f278404c64dda (patch) | |
| tree | 10c8c0e706b5d02198f1a43240220dfca36a4f87 /src/asmjs/shared-constants.h | |
| parent | d0621e5820b4ce1b72907f5cdb3c68487ce20c60 (diff) | |
| download | binaryen-55a5fcec460ad402c55e37d1da0f278404c64dda.tar.gz binaryen-55a5fcec460ad402c55e37d1da0f278404c64dda.tar.bz2 binaryen-55a5fcec460ad402c55e37d1da0f278404c64dda.zip | |
[Wasm GC] Improve GC operation coverage by using locals more (#5661)
When we emit e.g. a struct.get's reference, this PR makes us prefer a non-nullable
value, and even to reuse an existing local if possible. By doing that we reduce
the risk of a trap, and also by using locals we end up testing operations on the
same data, like this:
x = new A();
x.a = ..
foo(x.a)
In contrast, without this PR each of those x. uses might be new A().
Diffstat (limited to 'src/asmjs/shared-constants.h')
0 files changed, 0 insertions, 0 deletions
