wasmtime 16.0.0 → 17.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Cargo.lock +103 -79
- data/ext/Cargo.toml +7 -6
- data/ext/cargo-vendor/cranelift-bforest-0.104.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/cranelift-bforest-0.104.0/Cargo.toml +40 -0
- data/ext/cargo-vendor/cranelift-codegen-0.104.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/cranelift-codegen-0.104.0/Cargo.toml +175 -0
- data/ext/cargo-vendor/cranelift-codegen-0.104.0/build.rs +392 -0
- data/ext/cargo-vendor/cranelift-codegen-0.104.0/src/isa/aarch64/inst.isle +4197 -0
- data/ext/cargo-vendor/cranelift-codegen-0.104.0/src/isa/aarch64/lower/isle.rs +882 -0
- data/ext/cargo-vendor/cranelift-codegen-0.104.0/src/isa/x64/abi.rs +1305 -0
- data/ext/cargo-vendor/cranelift-codegen-0.104.0/src/isle_prelude.rs +957 -0
- data/ext/cargo-vendor/cranelift-codegen-0.104.0/src/machinst/isle.rs +908 -0
- data/ext/cargo-vendor/cranelift-codegen-0.104.0/src/machinst/mod.rs +558 -0
- data/ext/cargo-vendor/cranelift-codegen-0.104.0/src/machinst/pcc.rs +159 -0
- data/ext/cargo-vendor/cranelift-codegen-0.104.0/src/opts/arithmetic.isle +169 -0
- data/ext/cargo-vendor/cranelift-codegen-0.104.0/src/opts/bitops.isle +188 -0
- data/ext/cargo-vendor/cranelift-codegen-0.104.0/src/opts/cprop.isle +248 -0
- data/ext/cargo-vendor/cranelift-codegen-0.104.0/src/opts/extends.isle +116 -0
- data/ext/cargo-vendor/cranelift-codegen-0.104.0/src/opts/icmp.isle +197 -0
- data/ext/cargo-vendor/cranelift-codegen-0.104.0/src/opts/selects.isle +77 -0
- data/ext/cargo-vendor/cranelift-codegen-0.104.0/src/opts/shifts.isle +307 -0
- data/ext/cargo-vendor/cranelift-codegen-0.104.0/src/opts/spaceship.isle +194 -0
- data/ext/cargo-vendor/cranelift-codegen-0.104.0/src/opts.rs +265 -0
- data/ext/cargo-vendor/cranelift-codegen-0.104.0/src/prelude.isle +641 -0
- data/ext/cargo-vendor/cranelift-codegen-0.104.0/src/prelude_lower.isle +1073 -0
- data/ext/cargo-vendor/cranelift-codegen-0.104.0/src/prelude_opt.isle +134 -0
- data/ext/cargo-vendor/cranelift-codegen-meta-0.104.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/cranelift-codegen-meta-0.104.0/Cargo.toml +35 -0
- data/ext/cargo-vendor/cranelift-codegen-shared-0.104.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/cranelift-codegen-shared-0.104.0/Cargo.toml +22 -0
- data/ext/cargo-vendor/cranelift-control-0.104.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/cranelift-control-0.104.0/Cargo.toml +30 -0
- data/ext/cargo-vendor/cranelift-entity-0.104.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/cranelift-entity-0.104.0/Cargo.toml +50 -0
- data/ext/cargo-vendor/cranelift-entity-0.104.0/src/primary.rs +541 -0
- data/ext/cargo-vendor/cranelift-frontend-0.104.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/cranelift-frontend-0.104.0/Cargo.toml +68 -0
- data/ext/cargo-vendor/cranelift-isle-0.104.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/cranelift-isle-0.104.0/Cargo.toml +46 -0
- data/ext/cargo-vendor/cranelift-native-0.104.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/cranelift-native-0.104.0/Cargo.toml +43 -0
- data/ext/cargo-vendor/cranelift-wasm-0.104.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/cranelift-wasm-0.104.0/Cargo.toml +106 -0
- data/ext/cargo-vendor/cranelift-wasm-0.104.0/src/code_translator.rs +3646 -0
- data/ext/cargo-vendor/deterministic-wasi-ctx-0.1.18/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/deterministic-wasi-ctx-0.1.18/Cargo.toml +49 -0
- data/ext/cargo-vendor/deterministic-wasi-ctx-0.1.18/README.md +52 -0
- data/ext/cargo-vendor/deterministic-wasi-ctx-0.1.18/src/clocks.rs +56 -0
- data/ext/cargo-vendor/deterministic-wasi-ctx-0.1.18/src/lib.rs +24 -0
- data/ext/cargo-vendor/deterministic-wasi-ctx-0.1.18/src/noop_scheduler.rs +25 -0
- data/ext/cargo-vendor/deterministic-wasi-ctx-0.1.18/tests/clocks.rs +33 -0
- data/ext/cargo-vendor/deterministic-wasi-ctx-0.1.18/tests/common/mod.rs +33 -0
- data/ext/cargo-vendor/deterministic-wasi-ctx-0.1.18/tests/random.rs +17 -0
- data/ext/cargo-vendor/deterministic-wasi-ctx-0.1.18/tests/scheduler.rs +24 -0
- data/ext/cargo-vendor/rand_pcg-0.3.1/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/rand_pcg-0.3.1/CHANGELOG.md +37 -0
- data/ext/cargo-vendor/rand_pcg-0.3.1/COPYRIGHT +12 -0
- data/ext/cargo-vendor/rand_pcg-0.3.1/Cargo.toml +37 -0
- data/ext/cargo-vendor/rand_pcg-0.3.1/LICENSE-APACHE +201 -0
- data/ext/cargo-vendor/rand_pcg-0.3.1/LICENSE-MIT +26 -0
- data/ext/cargo-vendor/rand_pcg-0.3.1/README.md +42 -0
- data/ext/cargo-vendor/rand_pcg-0.3.1/src/lib.rs +45 -0
- data/ext/cargo-vendor/rand_pcg-0.3.1/src/pcg128.rs +296 -0
- data/ext/cargo-vendor/rand_pcg-0.3.1/src/pcg64.rs +166 -0
- data/ext/cargo-vendor/rand_pcg-0.3.1/tests/lcg128xsl64.rs +77 -0
- data/ext/cargo-vendor/rand_pcg-0.3.1/tests/lcg64xsh32.rs +70 -0
- data/ext/cargo-vendor/rand_pcg-0.3.1/tests/mcg128xsl64.rs +75 -0
- data/ext/cargo-vendor/wasi-cap-std-sync-17.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasi-cap-std-sync-17.0.0/Cargo.toml +102 -0
- data/ext/cargo-vendor/wasi-common-17.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasi-common-17.0.0/Cargo.toml +131 -0
- data/ext/cargo-vendor/wasi-common-17.0.0/src/error.rs +26 -0
- data/ext/cargo-vendor/wasi-common-17.0.0/src/snapshots/preview_1/error.rs +266 -0
- data/ext/cargo-vendor/wasmtime-17.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-17.0.0/Cargo.toml +211 -0
- data/ext/cargo-vendor/wasmtime-17.0.0/src/component/component.rs +545 -0
- data/ext/cargo-vendor/wasmtime-17.0.0/src/component/instance.rs +815 -0
- data/ext/cargo-vendor/wasmtime-17.0.0/src/component/linker.rs +580 -0
- data/ext/cargo-vendor/wasmtime-17.0.0/src/component/matching.rs +215 -0
- data/ext/cargo-vendor/wasmtime-17.0.0/src/component/mod.rs +351 -0
- data/ext/cargo-vendor/wasmtime-17.0.0/src/component/resource_table.rs +350 -0
- data/ext/cargo-vendor/wasmtime-17.0.0/src/component/resources.rs +823 -0
- data/ext/cargo-vendor/wasmtime-17.0.0/src/config.rs +2428 -0
- data/ext/cargo-vendor/wasmtime-17.0.0/src/func/typed.rs +638 -0
- data/ext/cargo-vendor/wasmtime-17.0.0/src/lib.rs +526 -0
- data/ext/cargo-vendor/wasmtime-17.0.0/src/store.rs +2389 -0
- data/ext/cargo-vendor/wasmtime-asm-macros-17.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-asm-macros-17.0.0/Cargo.toml +22 -0
- data/ext/cargo-vendor/wasmtime-cache-17.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-cache-17.0.0/Cargo.toml +81 -0
- data/ext/cargo-vendor/wasmtime-component-macro-17.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-component-macro-17.0.0/Cargo.toml +67 -0
- data/ext/cargo-vendor/wasmtime-component-macro-17.0.0/src/bindgen.rs +371 -0
- data/ext/cargo-vendor/wasmtime-component-macro-17.0.0/tests/codegen/multiversion/root.wit +8 -0
- data/ext/cargo-vendor/wasmtime-component-util-17.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-component-util-17.0.0/Cargo.toml +25 -0
- data/ext/cargo-vendor/wasmtime-cranelift-17.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-cranelift-17.0.0/Cargo.toml +112 -0
- data/ext/cargo-vendor/wasmtime-cranelift-shared-17.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-cranelift-shared-17.0.0/Cargo.toml +71 -0
- data/ext/cargo-vendor/wasmtime-environ-17.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-environ-17.0.0/Cargo.lock +726 -0
- data/ext/cargo-vendor/wasmtime-environ-17.0.0/Cargo.toml +125 -0
- data/ext/cargo-vendor/wasmtime-environ-17.0.0/examples/factc.rs +205 -0
- data/ext/cargo-vendor/wasmtime-fiber-17.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-fiber-17.0.0/Cargo.toml +63 -0
- data/ext/cargo-vendor/wasmtime-jit-17.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-jit-17.0.0/Cargo.toml +125 -0
- data/ext/cargo-vendor/wasmtime-jit-debug-17.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-jit-debug-17.0.0/Cargo.toml +67 -0
- data/ext/cargo-vendor/wasmtime-jit-icache-coherence-17.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-jit-icache-coherence-17.0.0/Cargo.toml +46 -0
- data/ext/cargo-vendor/wasmtime-runtime-17.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-runtime-17.0.0/Cargo.toml +139 -0
- data/ext/cargo-vendor/wasmtime-runtime-17.0.0/src/instance/allocator/pooling/memory_pool.rs +997 -0
- data/ext/cargo-vendor/wasmtime-runtime-17.0.0/src/instance/allocator/pooling.rs +658 -0
- data/ext/cargo-vendor/wasmtime-runtime-17.0.0/src/memory.rs +973 -0
- data/ext/cargo-vendor/wasmtime-runtime-17.0.0/src/parking_spot.rs +622 -0
- data/ext/cargo-vendor/wasmtime-runtime-17.0.0/src/sys/windows/mmap.rs +216 -0
- data/ext/cargo-vendor/wasmtime-types-17.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-types-17.0.0/Cargo.toml +36 -0
- data/ext/cargo-vendor/wasmtime-versioned-export-macros-17.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-versioned-export-macros-17.0.0/Cargo.toml +32 -0
- data/ext/cargo-vendor/wasmtime-wasi-17.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-wasi-17.0.0/Cargo.toml +261 -0
- data/ext/cargo-vendor/wasmtime-wasi-17.0.0/src/preview2/ctx.rs +333 -0
- data/ext/cargo-vendor/wasmtime-wasi-17.0.0/src/preview2/filesystem.rs +325 -0
- data/ext/cargo-vendor/wasmtime-wasi-17.0.0/src/preview2/host/clocks.rs +103 -0
- data/ext/cargo-vendor/wasmtime-wasi-17.0.0/src/preview2/host/filesystem.rs +1069 -0
- data/ext/cargo-vendor/wasmtime-wasi-17.0.0/src/preview2/host/instance_network.rs +15 -0
- data/ext/cargo-vendor/wasmtime-wasi-17.0.0/src/preview2/host/network.rs +625 -0
- data/ext/cargo-vendor/wasmtime-wasi-17.0.0/src/preview2/host/tcp.rs +605 -0
- data/ext/cargo-vendor/wasmtime-wasi-17.0.0/src/preview2/host/udp.rs +530 -0
- data/ext/cargo-vendor/wasmtime-wasi-17.0.0/src/preview2/mod.rs +327 -0
- data/ext/cargo-vendor/wasmtime-wasi-17.0.0/src/preview2/network.rs +108 -0
- data/ext/cargo-vendor/wasmtime-wasi-17.0.0/src/preview2/poll.rs +175 -0
- data/ext/cargo-vendor/wasmtime-wasi-17.0.0/src/preview2/preview1.rs +2362 -0
- data/ext/cargo-vendor/wasmtime-wasi-17.0.0/src/preview2/stream.rs +181 -0
- data/ext/cargo-vendor/wasmtime-wasi-17.0.0/src/preview2/tcp.rs +335 -0
- data/ext/cargo-vendor/wasmtime-wasi-17.0.0/src/preview2/udp.rs +125 -0
- data/ext/cargo-vendor/wasmtime-wasi-17.0.0/tests/all/api.rs +217 -0
- data/ext/cargo-vendor/wasmtime-wasi-17.0.0/tests/all/async_.rs +364 -0
- data/ext/cargo-vendor/wasmtime-wasi-17.0.0/tests/all/main.rs +112 -0
- data/ext/cargo-vendor/wasmtime-wasi-17.0.0/tests/all/preview1.rs +243 -0
- data/ext/cargo-vendor/wasmtime-wasi-17.0.0/tests/all/sync.rs +303 -0
- data/ext/cargo-vendor/wasmtime-wasi-17.0.0/wit/command-extended.wit +6 -0
- data/ext/cargo-vendor/wasmtime-wasi-17.0.0/wit/deps/cli/command.wit +7 -0
- data/ext/cargo-vendor/wasmtime-wasi-17.0.0/wit/deps/cli/imports.wit +20 -0
- data/ext/cargo-vendor/wasmtime-wasi-17.0.0/wit/deps/cli/stdio.wit +17 -0
- data/ext/cargo-vendor/wasmtime-wasi-17.0.0/wit/deps/cli/terminal.wit +49 -0
- data/ext/cargo-vendor/wasmtime-wasi-17.0.0/wit/deps/clocks/monotonic-clock.wit +45 -0
- data/ext/cargo-vendor/wasmtime-wasi-17.0.0/wit/deps/clocks/wall-clock.wit +42 -0
- data/ext/cargo-vendor/wasmtime-wasi-17.0.0/wit/deps/clocks/world.wit +6 -0
- data/ext/cargo-vendor/wasmtime-wasi-17.0.0/wit/deps/filesystem/preopens.wit +8 -0
- data/ext/cargo-vendor/wasmtime-wasi-17.0.0/wit/deps/filesystem/types.wit +634 -0
- data/ext/cargo-vendor/wasmtime-wasi-17.0.0/wit/deps/filesystem/world.wit +6 -0
- data/ext/cargo-vendor/wasmtime-wasi-17.0.0/wit/deps/http/proxy.wit +32 -0
- data/ext/cargo-vendor/wasmtime-wasi-17.0.0/wit/deps/http/types.wit +570 -0
- data/ext/cargo-vendor/wasmtime-wasi-17.0.0/wit/deps/io/error.wit +34 -0
- data/ext/cargo-vendor/wasmtime-wasi-17.0.0/wit/deps/io/poll.wit +41 -0
- data/ext/cargo-vendor/wasmtime-wasi-17.0.0/wit/deps/io/streams.wit +251 -0
- data/ext/cargo-vendor/wasmtime-wasi-17.0.0/wit/deps/io/world.wit +6 -0
- data/ext/cargo-vendor/wasmtime-wasi-17.0.0/wit/deps/random/insecure-seed.wit +25 -0
- data/ext/cargo-vendor/wasmtime-wasi-17.0.0/wit/deps/random/insecure.wit +22 -0
- data/ext/cargo-vendor/wasmtime-wasi-17.0.0/wit/deps/random/random.wit +26 -0
- data/ext/cargo-vendor/wasmtime-wasi-17.0.0/wit/deps/random/world.wit +7 -0
- data/ext/cargo-vendor/wasmtime-wasi-17.0.0/wit/deps/sockets/ip-name-lookup.wit +51 -0
- data/ext/cargo-vendor/wasmtime-wasi-17.0.0/wit/deps/sockets/network.wit +145 -0
- data/ext/cargo-vendor/wasmtime-wasi-17.0.0/wit/deps/sockets/tcp-create-socket.wit +27 -0
- data/ext/cargo-vendor/wasmtime-wasi-17.0.0/wit/deps/sockets/tcp.wit +309 -0
- data/ext/cargo-vendor/wasmtime-wasi-17.0.0/wit/deps/sockets/udp-create-socket.wit +27 -0
- data/ext/cargo-vendor/wasmtime-wasi-17.0.0/wit/deps/sockets/udp.wit +264 -0
- data/ext/cargo-vendor/wasmtime-wasi-17.0.0/wit/deps/sockets/world.wit +11 -0
- data/ext/cargo-vendor/wasmtime-wasi-17.0.0/wit/test.wit +22 -0
- data/ext/cargo-vendor/wasmtime-winch-17.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-winch-17.0.0/Cargo.toml +77 -0
- data/ext/cargo-vendor/wasmtime-wit-bindgen-17.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-wit-bindgen-17.0.0/Cargo.toml +41 -0
- data/ext/cargo-vendor/wasmtime-wit-bindgen-17.0.0/src/lib.rs +2097 -0
- data/ext/cargo-vendor/wasmtime-wmemcheck-17.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-wmemcheck-17.0.0/Cargo.toml +29 -0
- data/ext/cargo-vendor/wiggle-17.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wiggle-17.0.0/Cargo.toml +115 -0
- data/ext/cargo-vendor/wiggle-generate-17.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wiggle-generate-17.0.0/Cargo.toml +65 -0
- data/ext/cargo-vendor/wiggle-macro-17.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wiggle-macro-17.0.0/Cargo.toml +55 -0
- data/ext/cargo-vendor/winch-codegen-0.15.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/winch-codegen-0.15.0/Cargo.toml +76 -0
- data/ext/cargo-vendor/winch-codegen-0.15.0/src/codegen/context.rs +553 -0
- data/ext/cargo-vendor/winch-codegen-0.15.0/src/codegen/env.rs +309 -0
- data/ext/cargo-vendor/winch-codegen-0.15.0/src/isa/aarch64/masm.rs +457 -0
- data/ext/cargo-vendor/winch-codegen-0.15.0/src/isa/x64/asm.rs +1149 -0
- data/ext/cargo-vendor/winch-codegen-0.15.0/src/isa/x64/masm.rs +1044 -0
- data/ext/cargo-vendor/winch-codegen-0.15.0/src/masm.rs +708 -0
- data/ext/cargo-vendor/winch-codegen-0.15.0/src/stack.rs +452 -0
- data/ext/cargo-vendor/winch-codegen-0.15.0/src/visitor.rs +1617 -0
- data/ext/src/helpers/mod.rs +4 -0
- data/ext/src/helpers/nogvl.rs +29 -0
- data/ext/src/helpers/tmplock.rs +45 -0
- data/ext/src/ruby_api/engine.rs +7 -3
- data/ext/src/ruby_api/mod.rs +3 -0
- data/ext/src/ruby_api/module.rs +22 -8
- data/ext/src/ruby_api/store.rs +66 -12
- data/ext/src/ruby_api/wasi_ctx.rs +110 -0
- data/ext/src/ruby_api/wasi_ctx_builder.rs +10 -7
- data/lib/wasmtime/version.rb +1 -1
- metadata +931 -904
- data/ext/cargo-vendor/cranelift-bforest-0.103.0/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/cranelift-bforest-0.103.0/Cargo.toml +0 -40
- data/ext/cargo-vendor/cranelift-codegen-0.103.0/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/cranelift-codegen-0.103.0/Cargo.toml +0 -175
- data/ext/cargo-vendor/cranelift-codegen-0.103.0/build.rs +0 -391
- data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/isa/aarch64/inst.isle +0 -4193
- data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/isa/aarch64/lower/isle.rs +0 -874
- data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/isa/x64/abi.rs +0 -1300
- data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/isle_prelude.rs +0 -977
- data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/machinst/isle.rs +0 -896
- data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/machinst/mod.rs +0 -557
- data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/machinst/pcc.rs +0 -160
- data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/opts/arithmetic.isle +0 -152
- data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/opts/bitops.isle +0 -198
- data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/opts/cprop.isle +0 -237
- data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/opts/extends.isle +0 -34
- data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/opts/icmp.isle +0 -199
- data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/opts/selects.isle +0 -76
- data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/opts/shifts.isle +0 -310
- data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/opts.rs +0 -172
- data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/prelude.isle +0 -649
- data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/prelude_lower.isle +0 -1061
- data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/prelude_opt.isle +0 -58
- data/ext/cargo-vendor/cranelift-codegen-meta-0.103.0/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/cranelift-codegen-meta-0.103.0/Cargo.toml +0 -35
- data/ext/cargo-vendor/cranelift-codegen-shared-0.103.0/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/cranelift-codegen-shared-0.103.0/Cargo.toml +0 -22
- data/ext/cargo-vendor/cranelift-control-0.103.0/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/cranelift-control-0.103.0/Cargo.toml +0 -30
- data/ext/cargo-vendor/cranelift-entity-0.103.0/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/cranelift-entity-0.103.0/Cargo.toml +0 -50
- data/ext/cargo-vendor/cranelift-entity-0.103.0/src/primary.rs +0 -516
- data/ext/cargo-vendor/cranelift-frontend-0.103.0/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/cranelift-frontend-0.103.0/Cargo.toml +0 -68
- data/ext/cargo-vendor/cranelift-isle-0.103.0/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/cranelift-isle-0.103.0/Cargo.toml +0 -46
- data/ext/cargo-vendor/cranelift-native-0.103.0/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/cranelift-native-0.103.0/Cargo.toml +0 -43
- data/ext/cargo-vendor/cranelift-wasm-0.103.0/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/cranelift-wasm-0.103.0/Cargo.toml +0 -106
- data/ext/cargo-vendor/cranelift-wasm-0.103.0/src/code_translator.rs +0 -3646
- data/ext/cargo-vendor/wasi-cap-std-sync-16.0.0/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasi-cap-std-sync-16.0.0/Cargo.toml +0 -102
- data/ext/cargo-vendor/wasi-common-16.0.0/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasi-common-16.0.0/Cargo.toml +0 -131
- data/ext/cargo-vendor/wasi-common-16.0.0/src/error.rs +0 -26
- data/ext/cargo-vendor/wasi-common-16.0.0/src/snapshots/preview_1/error.rs +0 -265
- data/ext/cargo-vendor/wasmtime-16.0.0/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-16.0.0/Cargo.toml +0 -211
- data/ext/cargo-vendor/wasmtime-16.0.0/src/component/component.rs +0 -505
- data/ext/cargo-vendor/wasmtime-16.0.0/src/component/instance.rs +0 -797
- data/ext/cargo-vendor/wasmtime-16.0.0/src/component/linker.rs +0 -523
- data/ext/cargo-vendor/wasmtime-16.0.0/src/component/matching.rs +0 -215
- data/ext/cargo-vendor/wasmtime-16.0.0/src/component/mod.rs +0 -349
- data/ext/cargo-vendor/wasmtime-16.0.0/src/component/resources.rs +0 -725
- data/ext/cargo-vendor/wasmtime-16.0.0/src/config.rs +0 -2422
- data/ext/cargo-vendor/wasmtime-16.0.0/src/func/typed.rs +0 -638
- data/ext/cargo-vendor/wasmtime-16.0.0/src/lib.rs +0 -520
- data/ext/cargo-vendor/wasmtime-16.0.0/src/store.rs +0 -2388
- data/ext/cargo-vendor/wasmtime-asm-macros-16.0.0/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-asm-macros-16.0.0/Cargo.toml +0 -22
- data/ext/cargo-vendor/wasmtime-cache-16.0.0/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-cache-16.0.0/Cargo.toml +0 -81
- data/ext/cargo-vendor/wasmtime-component-macro-16.0.0/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-component-macro-16.0.0/Cargo.toml +0 -67
- data/ext/cargo-vendor/wasmtime-component-macro-16.0.0/src/bindgen.rs +0 -371
- data/ext/cargo-vendor/wasmtime-component-macro-16.0.0/tests/codegen/multiversion/root.wit +0 -7
- data/ext/cargo-vendor/wasmtime-component-util-16.0.0/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-component-util-16.0.0/Cargo.toml +0 -25
- data/ext/cargo-vendor/wasmtime-cranelift-16.0.0/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-cranelift-16.0.0/Cargo.toml +0 -112
- data/ext/cargo-vendor/wasmtime-cranelift-shared-16.0.0/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-cranelift-shared-16.0.0/Cargo.toml +0 -71
- data/ext/cargo-vendor/wasmtime-environ-16.0.0/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-environ-16.0.0/Cargo.lock +0 -660
- data/ext/cargo-vendor/wasmtime-environ-16.0.0/Cargo.toml +0 -125
- data/ext/cargo-vendor/wasmtime-environ-16.0.0/examples/factc.rs +0 -205
- data/ext/cargo-vendor/wasmtime-fiber-16.0.0/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-fiber-16.0.0/Cargo.toml +0 -63
- data/ext/cargo-vendor/wasmtime-jit-16.0.0/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-jit-16.0.0/Cargo.toml +0 -125
- data/ext/cargo-vendor/wasmtime-jit-debug-16.0.0/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-jit-debug-16.0.0/Cargo.toml +0 -67
- data/ext/cargo-vendor/wasmtime-jit-icache-coherence-16.0.0/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-jit-icache-coherence-16.0.0/Cargo.toml +0 -46
- data/ext/cargo-vendor/wasmtime-runtime-16.0.0/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-runtime-16.0.0/Cargo.toml +0 -139
- data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/instance/allocator/pooling/memory_pool.rs +0 -1005
- data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/instance/allocator/pooling.rs +0 -698
- data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/memory.rs +0 -968
- data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/parking_spot.rs +0 -520
- data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/sys/windows/mmap.rs +0 -211
- data/ext/cargo-vendor/wasmtime-types-16.0.0/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-types-16.0.0/Cargo.toml +0 -36
- data/ext/cargo-vendor/wasmtime-versioned-export-macros-16.0.0/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-versioned-export-macros-16.0.0/Cargo.toml +0 -32
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/Cargo.toml +0 -261
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/src/preview2/ctx.rs +0 -325
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/src/preview2/filesystem.rs +0 -326
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/src/preview2/host/clocks.rs +0 -103
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/src/preview2/host/filesystem.rs +0 -1069
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/src/preview2/host/instance_network.rs +0 -15
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/src/preview2/host/network.rs +0 -570
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/src/preview2/host/tcp.rs +0 -632
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/src/preview2/host/udp.rs +0 -550
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/src/preview2/mod.rs +0 -328
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/src/preview2/network.rs +0 -57
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/src/preview2/poll.rs +0 -175
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/src/preview2/preview1.rs +0 -2348
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/src/preview2/stream.rs +0 -182
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/src/preview2/table.rs +0 -337
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/src/preview2/tcp.rs +0 -338
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/src/preview2/udp.rs +0 -118
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/tests/all/api.rs +0 -218
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/tests/all/async_.rs +0 -360
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/tests/all/main.rs +0 -113
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/tests/all/preview1.rs +0 -239
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/tests/all/sync.rs +0 -299
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/wit/command-extended.wit +0 -6
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/wit/deps/cli/command.wit +0 -7
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/wit/deps/cli/imports.wit +0 -20
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/wit/deps/cli/stdio.wit +0 -17
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/wit/deps/cli/terminal.wit +0 -47
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/wit/deps/clocks/monotonic-clock.wit +0 -45
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/wit/deps/clocks/wall-clock.wit +0 -42
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/wit/deps/clocks/world.wit +0 -6
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/wit/deps/filesystem/preopens.wit +0 -8
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/wit/deps/filesystem/types.wit +0 -634
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/wit/deps/filesystem/world.wit +0 -6
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/wit/deps/http/proxy.wit +0 -32
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/wit/deps/http/types.wit +0 -570
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/wit/deps/io/error.wit +0 -34
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/wit/deps/io/poll.wit +0 -41
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/wit/deps/io/streams.wit +0 -251
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/wit/deps/io/world.wit +0 -6
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/wit/deps/random/insecure-seed.wit +0 -25
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/wit/deps/random/insecure.wit +0 -22
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/wit/deps/random/random.wit +0 -26
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/wit/deps/random/world.wit +0 -7
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/wit/deps/sockets/ip-name-lookup.wit +0 -51
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/wit/deps/sockets/network.wit +0 -147
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/wit/deps/sockets/tcp-create-socket.wit +0 -26
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/wit/deps/sockets/tcp.wit +0 -321
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/wit/deps/sockets/udp-create-socket.wit +0 -26
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/wit/deps/sockets/udp.wit +0 -277
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/wit/deps/sockets/world.wit +0 -11
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/wit/test.wit +0 -22
- data/ext/cargo-vendor/wasmtime-winch-16.0.0/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-winch-16.0.0/Cargo.toml +0 -77
- data/ext/cargo-vendor/wasmtime-wit-bindgen-16.0.0/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-wit-bindgen-16.0.0/Cargo.toml +0 -41
- data/ext/cargo-vendor/wasmtime-wit-bindgen-16.0.0/src/lib.rs +0 -2095
- data/ext/cargo-vendor/wasmtime-wmemcheck-16.0.0/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-wmemcheck-16.0.0/Cargo.toml +0 -29
- data/ext/cargo-vendor/wiggle-16.0.0/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wiggle-16.0.0/Cargo.toml +0 -115
- data/ext/cargo-vendor/wiggle-generate-16.0.0/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wiggle-generate-16.0.0/Cargo.toml +0 -65
- data/ext/cargo-vendor/wiggle-macro-16.0.0/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wiggle-macro-16.0.0/Cargo.toml +0 -55
- data/ext/cargo-vendor/winch-codegen-0.14.0/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/winch-codegen-0.14.0/Cargo.toml +0 -76
- data/ext/cargo-vendor/winch-codegen-0.14.0/src/codegen/context.rs +0 -545
- data/ext/cargo-vendor/winch-codegen-0.14.0/src/codegen/env.rs +0 -251
- data/ext/cargo-vendor/winch-codegen-0.14.0/src/isa/aarch64/masm.rs +0 -444
- data/ext/cargo-vendor/winch-codegen-0.14.0/src/isa/x64/asm.rs +0 -1117
- data/ext/cargo-vendor/winch-codegen-0.14.0/src/isa/x64/masm.rs +0 -994
- data/ext/cargo-vendor/winch-codegen-0.14.0/src/masm.rs +0 -679
- data/ext/cargo-vendor/winch-codegen-0.14.0/src/stack.rs +0 -436
- data/ext/cargo-vendor/winch-codegen-0.14.0/src/visitor.rs +0 -1383
- /data/ext/cargo-vendor/{cranelift-bforest-0.103.0 → cranelift-bforest-0.104.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{cranelift-bforest-0.103.0 → cranelift-bforest-0.104.0}/README.md +0 -0
- /data/ext/cargo-vendor/{cranelift-bforest-0.103.0 → cranelift-bforest-0.104.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-bforest-0.103.0 → cranelift-bforest-0.104.0}/src/map.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-bforest-0.103.0 → cranelift-bforest-0.104.0}/src/node.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-bforest-0.103.0 → cranelift-bforest-0.104.0}/src/path.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-bforest-0.103.0 → cranelift-bforest-0.104.0}/src/pool.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-bforest-0.103.0 → cranelift-bforest-0.104.0}/src/set.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/README.md +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/benches/x64-evex-encoding.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/alias_analysis.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/binemit/mod.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/binemit/stack_map.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/bitset.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/cfg_printer.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/constant_hash.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/context.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/ctxhash.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/cursor.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/data_value.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/dbg.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/dce.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/dominator_tree.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/egraph/cost.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/egraph/domtree.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/egraph/elaborate.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/egraph.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/flowgraph.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/fx.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/incremental_cache.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/inst_predicates.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/ir/atomic_rmw_op.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/ir/builder.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/ir/condcodes.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/ir/constant.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/ir/dfg.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/ir/dynamic_type.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/ir/entities.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/ir/extfunc.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/ir/extname.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/ir/function.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/ir/globalvalue.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/ir/immediates.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/ir/instructions.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/ir/jumptable.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/ir/known_symbol.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/ir/layout.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/ir/libcall.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/ir/memflags.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/ir/memtype.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/ir/mod.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/ir/pcc.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/ir/progpoint.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/ir/sourceloc.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/ir/stackslot.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/ir/table.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/ir/trapcode.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/ir/types.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/aarch64/abi.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/aarch64/inst/args.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/aarch64/inst/emit.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/aarch64/inst/emit_tests.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/aarch64/inst/imms.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/aarch64/inst/mod.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/aarch64/inst/regs.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/aarch64/inst/unwind/systemv.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/aarch64/inst/unwind.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/aarch64/inst_neon.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/aarch64/lower/isle/generated_code.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/aarch64/lower.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/aarch64/lower.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/aarch64/lower_dynamic_neon.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/aarch64/mod.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/aarch64/pcc.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/aarch64/settings.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/call_conv.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/mod.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/riscv64/abi.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/riscv64/inst/args.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/riscv64/inst/emit.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/riscv64/inst/emit_tests.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/riscv64/inst/encode.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/riscv64/inst/imms.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/riscv64/inst/mod.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/riscv64/inst/regs.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/riscv64/inst/unwind/systemv.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/riscv64/inst/unwind.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/riscv64/inst/vector.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/riscv64/inst.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/riscv64/inst_vector.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/riscv64/lower/isle/generated_code.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/riscv64/lower/isle.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/riscv64/lower.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/riscv64/lower.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/riscv64/mod.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/riscv64/settings.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/s390x/abi.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/s390x/inst/args.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/s390x/inst/emit.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/s390x/inst/emit_tests.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/s390x/inst/imms.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/s390x/inst/mod.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/s390x/inst/regs.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/s390x/inst/unwind/systemv.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/s390x/inst/unwind.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/s390x/inst.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/s390x/lower/isle/generated_code.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/s390x/lower/isle.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/s390x/lower.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/s390x/lower.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/s390x/mod.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/s390x/settings.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/unwind/systemv.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/unwind/winx64.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/unwind.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/x64/encoding/evex.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/x64/encoding/mod.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/x64/encoding/rex.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/x64/encoding/vex.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/x64/inst/args.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/x64/inst/emit.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/x64/inst/emit_state.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/x64/inst/emit_tests.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/x64/inst/mod.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/x64/inst/regs.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/x64/inst/unwind/systemv.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/x64/inst/unwind/winx64.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/x64/inst/unwind.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/x64/inst.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/x64/lower/isle/generated_code.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/x64/lower/isle.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/x64/lower.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/x64/lower.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/x64/mod.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/x64/pcc.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/isa/x64/settings.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/iterators.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/legalizer/globalvalue.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/legalizer/mod.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/legalizer/table.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/loop_analysis.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/machinst/abi.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/machinst/blockorder.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/machinst/buffer.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/machinst/compile.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/machinst/helpers.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/machinst/inst_common.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/machinst/lower.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/machinst/reg.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/machinst/valueregs.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/machinst/vcode.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/nan_canonicalization.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/opts/README.md +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/opts/generated_code.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/opts/remat.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/opts/vector.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/print_errors.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/remove_constant_phis.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/result.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/scoped_hash_map.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/settings.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/souper_harvest.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/timing.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/unionfind.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/unreachable_code.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/value_label.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/verifier/mod.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.103.0 → cranelift-codegen-0.104.0}/src/write.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.103.0 → cranelift-codegen-meta-0.104.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.103.0 → cranelift-codegen-meta-0.104.0}/README.md +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.103.0 → cranelift-codegen-meta-0.104.0}/src/cdsl/formats.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.103.0 → cranelift-codegen-meta-0.104.0}/src/cdsl/instructions.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.103.0 → cranelift-codegen-meta-0.104.0}/src/cdsl/isa.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.103.0 → cranelift-codegen-meta-0.104.0}/src/cdsl/mod.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.103.0 → cranelift-codegen-meta-0.104.0}/src/cdsl/operands.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.103.0 → cranelift-codegen-meta-0.104.0}/src/cdsl/settings.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.103.0 → cranelift-codegen-meta-0.104.0}/src/cdsl/types.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.103.0 → cranelift-codegen-meta-0.104.0}/src/cdsl/typevar.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.103.0 → cranelift-codegen-meta-0.104.0}/src/constant_hash.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.103.0 → cranelift-codegen-meta-0.104.0}/src/error.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.103.0 → cranelift-codegen-meta-0.104.0}/src/gen_inst.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.103.0 → cranelift-codegen-meta-0.104.0}/src/gen_settings.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.103.0 → cranelift-codegen-meta-0.104.0}/src/gen_types.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.103.0 → cranelift-codegen-meta-0.104.0}/src/isa/arm64.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.103.0 → cranelift-codegen-meta-0.104.0}/src/isa/mod.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.103.0 → cranelift-codegen-meta-0.104.0}/src/isa/riscv64.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.103.0 → cranelift-codegen-meta-0.104.0}/src/isa/s390x.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.103.0 → cranelift-codegen-meta-0.104.0}/src/isa/x86.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.103.0 → cranelift-codegen-meta-0.104.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.103.0 → cranelift-codegen-meta-0.104.0}/src/shared/entities.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.103.0 → cranelift-codegen-meta-0.104.0}/src/shared/formats.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.103.0 → cranelift-codegen-meta-0.104.0}/src/shared/immediates.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.103.0 → cranelift-codegen-meta-0.104.0}/src/shared/instructions.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.103.0 → cranelift-codegen-meta-0.104.0}/src/shared/mod.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.103.0 → cranelift-codegen-meta-0.104.0}/src/shared/settings.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.103.0 → cranelift-codegen-meta-0.104.0}/src/shared/types.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.103.0 → cranelift-codegen-meta-0.104.0}/src/srcgen.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.103.0 → cranelift-codegen-meta-0.104.0}/src/unique_table.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-shared-0.103.0 → cranelift-codegen-shared-0.104.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-shared-0.103.0 → cranelift-codegen-shared-0.104.0}/README.md +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-shared-0.103.0 → cranelift-codegen-shared-0.104.0}/src/constant_hash.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-shared-0.103.0 → cranelift-codegen-shared-0.104.0}/src/constants.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-shared-0.103.0 → cranelift-codegen-shared-0.104.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-control-0.103.0 → cranelift-control-0.104.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{cranelift-control-0.103.0 → cranelift-control-0.104.0}/README.md +0 -0
- /data/ext/cargo-vendor/{cranelift-control-0.103.0 → cranelift-control-0.104.0}/src/chaos.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-control-0.103.0 → cranelift-control-0.104.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-control-0.103.0 → cranelift-control-0.104.0}/src/zero_sized.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-entity-0.103.0 → cranelift-entity-0.104.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{cranelift-entity-0.103.0 → cranelift-entity-0.104.0}/README.md +0 -0
- /data/ext/cargo-vendor/{cranelift-entity-0.103.0 → cranelift-entity-0.104.0}/src/boxed_slice.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-entity-0.103.0 → cranelift-entity-0.104.0}/src/iter.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-entity-0.103.0 → cranelift-entity-0.104.0}/src/keys.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-entity-0.103.0 → cranelift-entity-0.104.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-entity-0.103.0 → cranelift-entity-0.104.0}/src/list.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-entity-0.103.0 → cranelift-entity-0.104.0}/src/map.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-entity-0.103.0 → cranelift-entity-0.104.0}/src/packed_option.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-entity-0.103.0 → cranelift-entity-0.104.0}/src/set.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-entity-0.103.0 → cranelift-entity-0.104.0}/src/sparse.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-entity-0.103.0 → cranelift-entity-0.104.0}/src/unsigned.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-frontend-0.103.0 → cranelift-frontend-0.104.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{cranelift-frontend-0.103.0 → cranelift-frontend-0.104.0}/README.md +0 -0
- /data/ext/cargo-vendor/{cranelift-frontend-0.103.0 → cranelift-frontend-0.104.0}/src/frontend.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-frontend-0.103.0 → cranelift-frontend-0.104.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-frontend-0.103.0 → cranelift-frontend-0.104.0}/src/ssa.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-frontend-0.103.0 → cranelift-frontend-0.104.0}/src/switch.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-frontend-0.103.0 → cranelift-frontend-0.104.0}/src/variable.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.103.0 → cranelift-isle-0.104.0}/README.md +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.103.0 → cranelift-isle-0.104.0}/build.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.103.0 → cranelift-isle-0.104.0}/isle_examples/fail/bad_converters.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.103.0 → cranelift-isle-0.104.0}/isle_examples/fail/bound_var_type_mismatch.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.103.0 → cranelift-isle-0.104.0}/isle_examples/fail/converter_extractor_constructor.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.103.0 → cranelift-isle-0.104.0}/isle_examples/fail/error1.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.103.0 → cranelift-isle-0.104.0}/isle_examples/fail/extra_parens.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.103.0 → cranelift-isle-0.104.0}/isle_examples/fail/impure_expression.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.103.0 → cranelift-isle-0.104.0}/isle_examples/fail/impure_rhs.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.103.0 → cranelift-isle-0.104.0}/isle_examples/fail/multi_internal_etor.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.103.0 → cranelift-isle-0.104.0}/isle_examples/fail/multi_prio.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.103.0 → cranelift-isle-0.104.0}/isle_examples/link/borrows.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.103.0 → cranelift-isle-0.104.0}/isle_examples/link/borrows_main.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.103.0 → cranelift-isle-0.104.0}/isle_examples/link/iflets.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.103.0 → cranelift-isle-0.104.0}/isle_examples/link/iflets_main.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.103.0 → cranelift-isle-0.104.0}/isle_examples/link/multi_constructor.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.103.0 → cranelift-isle-0.104.0}/isle_examples/link/multi_constructor_main.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.103.0 → cranelift-isle-0.104.0}/isle_examples/link/multi_extractor.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.103.0 → cranelift-isle-0.104.0}/isle_examples/link/multi_extractor_main.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.103.0 → cranelift-isle-0.104.0}/isle_examples/link/test.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.103.0 → cranelift-isle-0.104.0}/isle_examples/link/test_main.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.103.0 → cranelift-isle-0.104.0}/isle_examples/pass/bound_var.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.103.0 → cranelift-isle-0.104.0}/isle_examples/pass/construct_and_extract.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.103.0 → cranelift-isle-0.104.0}/isle_examples/pass/conversions.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.103.0 → cranelift-isle-0.104.0}/isle_examples/pass/conversions_extern.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.103.0 → cranelift-isle-0.104.0}/isle_examples/pass/let.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.103.0 → cranelift-isle-0.104.0}/isle_examples/pass/nodebug.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.103.0 → cranelift-isle-0.104.0}/isle_examples/pass/prio_trie_bug.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.103.0 → cranelift-isle-0.104.0}/isle_examples/pass/test2.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.103.0 → cranelift-isle-0.104.0}/isle_examples/pass/test3.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.103.0 → cranelift-isle-0.104.0}/isle_examples/pass/test4.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.103.0 → cranelift-isle-0.104.0}/isle_examples/pass/tutorial.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.103.0 → cranelift-isle-0.104.0}/isle_examples/run/iconst.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.103.0 → cranelift-isle-0.104.0}/isle_examples/run/iconst_main.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.103.0 → cranelift-isle-0.104.0}/isle_examples/run/let_shadowing.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.103.0 → cranelift-isle-0.104.0}/isle_examples/run/let_shadowing_main.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.103.0 → cranelift-isle-0.104.0}/src/ast.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.103.0 → cranelift-isle-0.104.0}/src/codegen.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.103.0 → cranelift-isle-0.104.0}/src/compile.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.103.0 → cranelift-isle-0.104.0}/src/error.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.103.0 → cranelift-isle-0.104.0}/src/lexer.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.103.0 → cranelift-isle-0.104.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.103.0 → cranelift-isle-0.104.0}/src/log.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.103.0 → cranelift-isle-0.104.0}/src/overlap.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.103.0 → cranelift-isle-0.104.0}/src/parser.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.103.0 → cranelift-isle-0.104.0}/src/sema.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.103.0 → cranelift-isle-0.104.0}/src/serialize.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.103.0 → cranelift-isle-0.104.0}/src/trie_again.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.103.0 → cranelift-isle-0.104.0}/tests/run_tests.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-native-0.103.0 → cranelift-native-0.104.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{cranelift-native-0.103.0 → cranelift-native-0.104.0}/README.md +0 -0
- /data/ext/cargo-vendor/{cranelift-native-0.103.0 → cranelift-native-0.104.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-native-0.103.0 → cranelift-native-0.104.0}/src/riscv.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.103.0 → cranelift-wasm-0.104.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.103.0 → cranelift-wasm-0.104.0}/README.md +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.103.0 → cranelift-wasm-0.104.0}/src/code_translator/bounds_checks.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.103.0 → cranelift-wasm-0.104.0}/src/environ/dummy.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.103.0 → cranelift-wasm-0.104.0}/src/environ/mod.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.103.0 → cranelift-wasm-0.104.0}/src/environ/spec.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.103.0 → cranelift-wasm-0.104.0}/src/func_translator.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.103.0 → cranelift-wasm-0.104.0}/src/heap.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.103.0 → cranelift-wasm-0.104.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.103.0 → cranelift-wasm-0.104.0}/src/module_translator.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.103.0 → cranelift-wasm-0.104.0}/src/sections_translator.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.103.0 → cranelift-wasm-0.104.0}/src/state.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.103.0 → cranelift-wasm-0.104.0}/src/translation_utils.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.103.0 → cranelift-wasm-0.104.0}/tests/wasm_testsuite.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.103.0 → cranelift-wasm-0.104.0}/wasmtests/arith.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.103.0 → cranelift-wasm-0.104.0}/wasmtests/br_table.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.103.0 → cranelift-wasm-0.104.0}/wasmtests/call-simd.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.103.0 → cranelift-wasm-0.104.0}/wasmtests/call.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.103.0 → cranelift-wasm-0.104.0}/wasmtests/embenchen_fannkuch.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.103.0 → cranelift-wasm-0.104.0}/wasmtests/embenchen_fasta.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.103.0 → cranelift-wasm-0.104.0}/wasmtests/embenchen_ifs.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.103.0 → cranelift-wasm-0.104.0}/wasmtests/embenchen_primes.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.103.0 → cranelift-wasm-0.104.0}/wasmtests/fac-multi-value.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.103.0 → cranelift-wasm-0.104.0}/wasmtests/fibonacci.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.103.0 → cranelift-wasm-0.104.0}/wasmtests/globals.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.103.0 → cranelift-wasm-0.104.0}/wasmtests/icall-simd.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.103.0 → cranelift-wasm-0.104.0}/wasmtests/icall.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.103.0 → cranelift-wasm-0.104.0}/wasmtests/if-reachability-translation-0.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.103.0 → cranelift-wasm-0.104.0}/wasmtests/if-reachability-translation-1.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.103.0 → cranelift-wasm-0.104.0}/wasmtests/if-reachability-translation-2.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.103.0 → cranelift-wasm-0.104.0}/wasmtests/if-reachability-translation-3.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.103.0 → cranelift-wasm-0.104.0}/wasmtests/if-reachability-translation-4.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.103.0 → cranelift-wasm-0.104.0}/wasmtests/if-reachability-translation-5.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.103.0 → cranelift-wasm-0.104.0}/wasmtests/if-reachability-translation-6.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.103.0 → cranelift-wasm-0.104.0}/wasmtests/if-unreachable-else-params-2.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.103.0 → cranelift-wasm-0.104.0}/wasmtests/if-unreachable-else-params.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.103.0 → cranelift-wasm-0.104.0}/wasmtests/issue-1306-name-section-with-u32-max-function-index.wasm +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.103.0 → cranelift-wasm-0.104.0}/wasmtests/memory.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.103.0 → cranelift-wasm-0.104.0}/wasmtests/multi-0.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.103.0 → cranelift-wasm-0.104.0}/wasmtests/multi-1.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.103.0 → cranelift-wasm-0.104.0}/wasmtests/multi-10.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.103.0 → cranelift-wasm-0.104.0}/wasmtests/multi-11.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.103.0 → cranelift-wasm-0.104.0}/wasmtests/multi-12.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.103.0 → cranelift-wasm-0.104.0}/wasmtests/multi-13.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.103.0 → cranelift-wasm-0.104.0}/wasmtests/multi-14.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.103.0 → cranelift-wasm-0.104.0}/wasmtests/multi-15.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.103.0 → cranelift-wasm-0.104.0}/wasmtests/multi-16.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.103.0 → cranelift-wasm-0.104.0}/wasmtests/multi-17.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.103.0 → cranelift-wasm-0.104.0}/wasmtests/multi-2.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.103.0 → cranelift-wasm-0.104.0}/wasmtests/multi-3.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.103.0 → cranelift-wasm-0.104.0}/wasmtests/multi-4.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.103.0 → cranelift-wasm-0.104.0}/wasmtests/multi-5.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.103.0 → cranelift-wasm-0.104.0}/wasmtests/multi-6.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.103.0 → cranelift-wasm-0.104.0}/wasmtests/multi-7.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.103.0 → cranelift-wasm-0.104.0}/wasmtests/multi-8.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.103.0 → cranelift-wasm-0.104.0}/wasmtests/multi-9.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.103.0 → cranelift-wasm-0.104.0}/wasmtests/nullref.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.103.0 → cranelift-wasm-0.104.0}/wasmtests/passive-data.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.103.0 → cranelift-wasm-0.104.0}/wasmtests/pr2303.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.103.0 → cranelift-wasm-0.104.0}/wasmtests/pr2559.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.103.0 → cranelift-wasm-0.104.0}/wasmtests/ref-func-0.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.103.0 → cranelift-wasm-0.104.0}/wasmtests/rust_fannkuch.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.103.0 → cranelift-wasm-0.104.0}/wasmtests/select.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.103.0 → cranelift-wasm-0.104.0}/wasmtests/simd-store.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.103.0 → cranelift-wasm-0.104.0}/wasmtests/simd.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.103.0 → cranelift-wasm-0.104.0}/wasmtests/table-copy.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.103.0 → cranelift-wasm-0.104.0}/wasmtests/unreachable_code.wat +0 -0
- /data/ext/cargo-vendor/{wasi-cap-std-sync-16.0.0 → wasi-cap-std-sync-17.0.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wasi-cap-std-sync-16.0.0 → wasi-cap-std-sync-17.0.0}/README.md +0 -0
- /data/ext/cargo-vendor/{wasi-cap-std-sync-16.0.0 → wasi-cap-std-sync-17.0.0}/src/clocks.rs +0 -0
- /data/ext/cargo-vendor/{wasi-cap-std-sync-16.0.0 → wasi-cap-std-sync-17.0.0}/src/dir.rs +0 -0
- /data/ext/cargo-vendor/{wasi-cap-std-sync-16.0.0 → wasi-cap-std-sync-17.0.0}/src/file.rs +0 -0
- /data/ext/cargo-vendor/{wasi-cap-std-sync-16.0.0 → wasi-cap-std-sync-17.0.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{wasi-cap-std-sync-16.0.0 → wasi-cap-std-sync-17.0.0}/src/net.rs +0 -0
- /data/ext/cargo-vendor/{wasi-cap-std-sync-16.0.0 → wasi-cap-std-sync-17.0.0}/src/sched/unix.rs +0 -0
- /data/ext/cargo-vendor/{wasi-cap-std-sync-16.0.0 → wasi-cap-std-sync-17.0.0}/src/sched/windows.rs +0 -0
- /data/ext/cargo-vendor/{wasi-cap-std-sync-16.0.0 → wasi-cap-std-sync-17.0.0}/src/sched.rs +0 -0
- /data/ext/cargo-vendor/{wasi-cap-std-sync-16.0.0 → wasi-cap-std-sync-17.0.0}/src/stdio.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-16.0.0 → wasi-common-17.0.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wasi-common-16.0.0 → wasi-common-17.0.0}/README.md +0 -0
- /data/ext/cargo-vendor/{wasi-common-16.0.0 → wasi-common-17.0.0}/WASI/README.md +0 -0
- /data/ext/cargo-vendor/{wasi-common-16.0.0 → wasi-common-17.0.0}/WASI/docs/README.md +0 -0
- /data/ext/cargo-vendor/{wasi-common-16.0.0 → wasi-common-17.0.0}/WASI/phases/README.md +0 -0
- /data/ext/cargo-vendor/{wasi-common-16.0.0 → wasi-common-17.0.0}/WASI/phases/ephemeral/docs.md +0 -0
- /data/ext/cargo-vendor/{wasi-common-16.0.0 → wasi-common-17.0.0}/WASI/phases/ephemeral/witx/typenames.witx +0 -0
- /data/ext/cargo-vendor/{wasi-common-16.0.0 → wasi-common-17.0.0}/WASI/phases/ephemeral/witx/wasi_ephemeral_args.witx +0 -0
- /data/ext/cargo-vendor/{wasi-common-16.0.0 → wasi-common-17.0.0}/WASI/phases/ephemeral/witx/wasi_ephemeral_clock.witx +0 -0
- /data/ext/cargo-vendor/{wasi-common-16.0.0 → wasi-common-17.0.0}/WASI/phases/ephemeral/witx/wasi_ephemeral_environ.witx +0 -0
- /data/ext/cargo-vendor/{wasi-common-16.0.0 → wasi-common-17.0.0}/WASI/phases/ephemeral/witx/wasi_ephemeral_fd.witx +0 -0
- /data/ext/cargo-vendor/{wasi-common-16.0.0 → wasi-common-17.0.0}/WASI/phases/ephemeral/witx/wasi_ephemeral_path.witx +0 -0
- /data/ext/cargo-vendor/{wasi-common-16.0.0 → wasi-common-17.0.0}/WASI/phases/ephemeral/witx/wasi_ephemeral_poll.witx +0 -0
- /data/ext/cargo-vendor/{wasi-common-16.0.0 → wasi-common-17.0.0}/WASI/phases/ephemeral/witx/wasi_ephemeral_proc.witx +0 -0
- /data/ext/cargo-vendor/{wasi-common-16.0.0 → wasi-common-17.0.0}/WASI/phases/ephemeral/witx/wasi_ephemeral_random.witx +0 -0
- /data/ext/cargo-vendor/{wasi-common-16.0.0 → wasi-common-17.0.0}/WASI/phases/ephemeral/witx/wasi_ephemeral_sched.witx +0 -0
- /data/ext/cargo-vendor/{wasi-common-16.0.0 → wasi-common-17.0.0}/WASI/phases/ephemeral/witx/wasi_ephemeral_sock.witx +0 -0
- /data/ext/cargo-vendor/{wasi-common-16.0.0 → wasi-common-17.0.0}/WASI/phases/old/snapshot_0/docs.md +0 -0
- /data/ext/cargo-vendor/{wasi-common-16.0.0 → wasi-common-17.0.0}/WASI/phases/old/snapshot_0/witx/typenames.witx +0 -0
- /data/ext/cargo-vendor/{wasi-common-16.0.0 → wasi-common-17.0.0}/WASI/phases/old/snapshot_0/witx/wasi_unstable.witx +0 -0
- /data/ext/cargo-vendor/{wasi-common-16.0.0 → wasi-common-17.0.0}/WASI/phases/snapshot/docs.html +0 -0
- /data/ext/cargo-vendor/{wasi-common-16.0.0 → wasi-common-17.0.0}/WASI/phases/snapshot/docs.md +0 -0
- /data/ext/cargo-vendor/{wasi-common-16.0.0 → wasi-common-17.0.0}/WASI/phases/snapshot/witx/typenames.witx +0 -0
- /data/ext/cargo-vendor/{wasi-common-16.0.0 → wasi-common-17.0.0}/WASI/phases/snapshot/witx/wasi_snapshot_preview1.witx +0 -0
- /data/ext/cargo-vendor/{wasi-common-16.0.0 → wasi-common-17.0.0}/WASI/proposal-template/README.md +0 -0
- /data/ext/cargo-vendor/{wasi-common-16.0.0 → wasi-common-17.0.0}/WASI/proposals/README.md +0 -0
- /data/ext/cargo-vendor/{wasi-common-16.0.0 → wasi-common-17.0.0}/WASI/snapshots/README.md +0 -0
- /data/ext/cargo-vendor/{wasi-common-16.0.0 → wasi-common-17.0.0}/WASI/standard/README.md +0 -0
- /data/ext/cargo-vendor/{wasi-common-16.0.0 → wasi-common-17.0.0}/build.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-16.0.0 → wasi-common-17.0.0}/src/clocks.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-16.0.0 → wasi-common-17.0.0}/src/ctx.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-16.0.0 → wasi-common-17.0.0}/src/dir.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-16.0.0 → wasi-common-17.0.0}/src/file.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-16.0.0 → wasi-common-17.0.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-16.0.0 → wasi-common-17.0.0}/src/pipe.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-16.0.0 → wasi-common-17.0.0}/src/random.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-16.0.0 → wasi-common-17.0.0}/src/sched/subscription.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-16.0.0 → wasi-common-17.0.0}/src/sched.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-16.0.0 → wasi-common-17.0.0}/src/snapshots/mod.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-16.0.0 → wasi-common-17.0.0}/src/snapshots/preview_0.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-16.0.0 → wasi-common-17.0.0}/src/snapshots/preview_1.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-16.0.0 → wasi-common-17.0.0}/src/string_array.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-16.0.0 → wasi-common-17.0.0}/src/table.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-16.0.0 → wasmtime-17.0.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wasmtime-16.0.0 → wasmtime-17.0.0}/README.md +0 -0
- /data/ext/cargo-vendor/{wasmtime-16.0.0 → wasmtime-17.0.0}/src/code.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-16.0.0 → wasmtime-17.0.0}/src/compiler.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-16.0.0 → wasmtime-17.0.0}/src/component/func/host.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-16.0.0 → wasmtime-17.0.0}/src/component/func/options.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-16.0.0 → wasmtime-17.0.0}/src/component/func/typed.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-16.0.0 → wasmtime-17.0.0}/src/component/func.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-16.0.0 → wasmtime-17.0.0}/src/component/storage.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-16.0.0 → wasmtime-17.0.0}/src/component/store.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-16.0.0 → wasmtime-17.0.0}/src/component/types.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-16.0.0 → wasmtime-17.0.0}/src/component/values.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-16.0.0 → wasmtime-17.0.0}/src/coredump.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-16.0.0 → wasmtime-17.0.0}/src/engine/serialization.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-16.0.0 → wasmtime-17.0.0}/src/engine.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-16.0.0 → wasmtime-17.0.0}/src/externals/global.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-16.0.0 → wasmtime-17.0.0}/src/externals/table.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-16.0.0 → wasmtime-17.0.0}/src/externals.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-16.0.0 → wasmtime-17.0.0}/src/func.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-16.0.0 → wasmtime-17.0.0}/src/instance.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-16.0.0 → wasmtime-17.0.0}/src/limits.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-16.0.0 → wasmtime-17.0.0}/src/linker.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-16.0.0 → wasmtime-17.0.0}/src/memory.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-16.0.0 → wasmtime-17.0.0}/src/module/registry.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-16.0.0 → wasmtime-17.0.0}/src/module.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-16.0.0 → wasmtime-17.0.0}/src/profiling.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-16.0.0 → wasmtime-17.0.0}/src/ref.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-16.0.0 → wasmtime-17.0.0}/src/resources.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-16.0.0 → wasmtime-17.0.0}/src/signatures.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-16.0.0 → wasmtime-17.0.0}/src/stack.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-16.0.0 → wasmtime-17.0.0}/src/store/context.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-16.0.0 → wasmtime-17.0.0}/src/store/data.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-16.0.0 → wasmtime-17.0.0}/src/store/func_refs.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-16.0.0 → wasmtime-17.0.0}/src/trampoline/func.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-16.0.0 → wasmtime-17.0.0}/src/trampoline/global.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-16.0.0 → wasmtime-17.0.0}/src/trampoline/memory.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-16.0.0 → wasmtime-17.0.0}/src/trampoline/table.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-16.0.0 → wasmtime-17.0.0}/src/trampoline.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-16.0.0 → wasmtime-17.0.0}/src/trap.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-16.0.0 → wasmtime-17.0.0}/src/types/matching.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-16.0.0 → wasmtime-17.0.0}/src/types.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-16.0.0 → wasmtime-17.0.0}/src/unix.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-16.0.0 → wasmtime-17.0.0}/src/v128.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-16.0.0 → wasmtime-17.0.0}/src/values.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-16.0.0 → wasmtime-17.0.0}/src/windows.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-asm-macros-16.0.0 → wasmtime-asm-macros-17.0.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cache-16.0.0 → wasmtime-cache-17.0.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wasmtime-cache-16.0.0 → wasmtime-cache-17.0.0}/build.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cache-16.0.0 → wasmtime-cache-17.0.0}/src/config/tests.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cache-16.0.0 → wasmtime-cache-17.0.0}/src/config.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cache-16.0.0 → wasmtime-cache-17.0.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cache-16.0.0 → wasmtime-cache-17.0.0}/src/tests.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cache-16.0.0 → wasmtime-cache-17.0.0}/src/worker/tests/system_time_stub.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cache-16.0.0 → wasmtime-cache-17.0.0}/src/worker/tests.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cache-16.0.0 → wasmtime-cache-17.0.0}/src/worker.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cache-16.0.0 → wasmtime-cache-17.0.0}/tests/cache_write_default_config.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-16.0.0 → wasmtime-component-macro-17.0.0}/src/component.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-16.0.0 → wasmtime-component-macro-17.0.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-16.0.0 → wasmtime-component-macro-17.0.0}/tests/codegen/char.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-16.0.0 → wasmtime-component-macro-17.0.0}/tests/codegen/conventions.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-16.0.0 → wasmtime-component-macro-17.0.0}/tests/codegen/direct-import.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-16.0.0 → wasmtime-component-macro-17.0.0}/tests/codegen/empty.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-16.0.0 → wasmtime-component-macro-17.0.0}/tests/codegen/flags.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-16.0.0 → wasmtime-component-macro-17.0.0}/tests/codegen/floats.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-16.0.0 → wasmtime-component-macro-17.0.0}/tests/codegen/function-new.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-16.0.0 → wasmtime-component-macro-17.0.0}/tests/codegen/integers.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-16.0.0 → wasmtime-component-macro-17.0.0}/tests/codegen/lists.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-16.0.0 → wasmtime-component-macro-17.0.0}/tests/codegen/many-arguments.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-16.0.0 → wasmtime-component-macro-17.0.0}/tests/codegen/multi-return.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-16.0.0 → wasmtime-component-macro-17.0.0}/tests/codegen/multiversion/deps/v1/root.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-16.0.0 → wasmtime-component-macro-17.0.0}/tests/codegen/multiversion/deps/v2/root.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-16.0.0 → wasmtime-component-macro-17.0.0}/tests/codegen/records.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-16.0.0 → wasmtime-component-macro-17.0.0}/tests/codegen/rename.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-16.0.0 → wasmtime-component-macro-17.0.0}/tests/codegen/resources-export.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-16.0.0 → wasmtime-component-macro-17.0.0}/tests/codegen/resources-import.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-16.0.0 → wasmtime-component-macro-17.0.0}/tests/codegen/share-types.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-16.0.0 → wasmtime-component-macro-17.0.0}/tests/codegen/simple-functions.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-16.0.0 → wasmtime-component-macro-17.0.0}/tests/codegen/simple-lists.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-16.0.0 → wasmtime-component-macro-17.0.0}/tests/codegen/simple-wasi.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-16.0.0 → wasmtime-component-macro-17.0.0}/tests/codegen/small-anonymous.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-16.0.0 → wasmtime-component-macro-17.0.0}/tests/codegen/smoke-default.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-16.0.0 → wasmtime-component-macro-17.0.0}/tests/codegen/smoke-export.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-16.0.0 → wasmtime-component-macro-17.0.0}/tests/codegen/smoke.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-16.0.0 → wasmtime-component-macro-17.0.0}/tests/codegen/strings.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-16.0.0 → wasmtime-component-macro-17.0.0}/tests/codegen/use-paths.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-16.0.0 → wasmtime-component-macro-17.0.0}/tests/codegen/variants.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-16.0.0 → wasmtime-component-macro-17.0.0}/tests/codegen/worlds-with-types.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-16.0.0 → wasmtime-component-macro-17.0.0}/tests/codegen.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-util-16.0.0 → wasmtime-component-util-17.0.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-16.0.0 → wasmtime-cranelift-17.0.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-16.0.0 → wasmtime-cranelift-17.0.0}/SECURITY.md +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-16.0.0 → wasmtime-cranelift-17.0.0}/src/builder.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-16.0.0 → wasmtime-cranelift-17.0.0}/src/compiler/component.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-16.0.0 → wasmtime-cranelift-17.0.0}/src/compiler.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-16.0.0 → wasmtime-cranelift-17.0.0}/src/debug/gc.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-16.0.0 → wasmtime-cranelift-17.0.0}/src/debug/transform/address_transform.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-16.0.0 → wasmtime-cranelift-17.0.0}/src/debug/transform/attr.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-16.0.0 → wasmtime-cranelift-17.0.0}/src/debug/transform/expression.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-16.0.0 → wasmtime-cranelift-17.0.0}/src/debug/transform/line_program.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-16.0.0 → wasmtime-cranelift-17.0.0}/src/debug/transform/mod.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-16.0.0 → wasmtime-cranelift-17.0.0}/src/debug/transform/range_info_builder.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-16.0.0 → wasmtime-cranelift-17.0.0}/src/debug/transform/refs.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-16.0.0 → wasmtime-cranelift-17.0.0}/src/debug/transform/simulate.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-16.0.0 → wasmtime-cranelift-17.0.0}/src/debug/transform/unit.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-16.0.0 → wasmtime-cranelift-17.0.0}/src/debug/transform/utils.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-16.0.0 → wasmtime-cranelift-17.0.0}/src/debug/write_debuginfo.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-16.0.0 → wasmtime-cranelift-17.0.0}/src/debug.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-16.0.0 → wasmtime-cranelift-17.0.0}/src/func_environ.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-16.0.0 → wasmtime-cranelift-17.0.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-shared-16.0.0 → wasmtime-cranelift-shared-17.0.0}/src/compiled_function.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-shared-16.0.0 → wasmtime-cranelift-shared-17.0.0}/src/isa_builder.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-shared-16.0.0 → wasmtime-cranelift-shared-17.0.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-shared-16.0.0 → wasmtime-cranelift-shared-17.0.0}/src/obj.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-16.0.0 → wasmtime-environ-17.0.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-16.0.0 → wasmtime-environ-17.0.0}/src/address_map.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-16.0.0 → wasmtime-environ-17.0.0}/src/builtin.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-16.0.0 → wasmtime-environ-17.0.0}/src/compilation.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-16.0.0 → wasmtime-environ-17.0.0}/src/component/compiler.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-16.0.0 → wasmtime-environ-17.0.0}/src/component/dfg.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-16.0.0 → wasmtime-environ-17.0.0}/src/component/info.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-16.0.0 → wasmtime-environ-17.0.0}/src/component/translate/adapt.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-16.0.0 → wasmtime-environ-17.0.0}/src/component/translate/inline.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-16.0.0 → wasmtime-environ-17.0.0}/src/component/translate.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-16.0.0 → wasmtime-environ-17.0.0}/src/component/types/resources.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-16.0.0 → wasmtime-environ-17.0.0}/src/component/types.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-16.0.0 → wasmtime-environ-17.0.0}/src/component/vmcomponent_offsets.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-16.0.0 → wasmtime-environ-17.0.0}/src/component.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-16.0.0 → wasmtime-environ-17.0.0}/src/fact/core_types.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-16.0.0 → wasmtime-environ-17.0.0}/src/fact/signature.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-16.0.0 → wasmtime-environ-17.0.0}/src/fact/trampoline.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-16.0.0 → wasmtime-environ-17.0.0}/src/fact/transcode.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-16.0.0 → wasmtime-environ-17.0.0}/src/fact/traps.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-16.0.0 → wasmtime-environ-17.0.0}/src/fact.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-16.0.0 → wasmtime-environ-17.0.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-16.0.0 → wasmtime-environ-17.0.0}/src/module.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-16.0.0 → wasmtime-environ-17.0.0}/src/module_environ.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-16.0.0 → wasmtime-environ-17.0.0}/src/module_types.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-16.0.0 → wasmtime-environ-17.0.0}/src/obj.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-16.0.0 → wasmtime-environ-17.0.0}/src/ref_bits.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-16.0.0 → wasmtime-environ-17.0.0}/src/scopevec.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-16.0.0 → wasmtime-environ-17.0.0}/src/stack_map.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-16.0.0 → wasmtime-environ-17.0.0}/src/trap_encoding.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-16.0.0 → wasmtime-environ-17.0.0}/src/tunables.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-16.0.0 → wasmtime-environ-17.0.0}/src/vmoffsets.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-fiber-16.0.0 → wasmtime-fiber-17.0.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wasmtime-fiber-16.0.0 → wasmtime-fiber-17.0.0}/build.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-fiber-16.0.0 → wasmtime-fiber-17.0.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-fiber-16.0.0 → wasmtime-fiber-17.0.0}/src/unix/aarch64.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-fiber-16.0.0 → wasmtime-fiber-17.0.0}/src/unix/arm.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-fiber-16.0.0 → wasmtime-fiber-17.0.0}/src/unix/riscv64.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-fiber-16.0.0 → wasmtime-fiber-17.0.0}/src/unix/s390x.S +0 -0
- /data/ext/cargo-vendor/{wasmtime-fiber-16.0.0 → wasmtime-fiber-17.0.0}/src/unix/x86.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-fiber-16.0.0 → wasmtime-fiber-17.0.0}/src/unix/x86_64.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-fiber-16.0.0 → wasmtime-fiber-17.0.0}/src/unix.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-fiber-16.0.0 → wasmtime-fiber-17.0.0}/src/windows.c +0 -0
- /data/ext/cargo-vendor/{wasmtime-fiber-16.0.0 → wasmtime-fiber-17.0.0}/src/windows.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-jit-16.0.0 → wasmtime-jit-17.0.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wasmtime-jit-16.0.0 → wasmtime-jit-17.0.0}/src/code_memory.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-jit-16.0.0 → wasmtime-jit-17.0.0}/src/debug.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-jit-16.0.0 → wasmtime-jit-17.0.0}/src/demangling.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-jit-16.0.0 → wasmtime-jit-17.0.0}/src/instantiate.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-jit-16.0.0 → wasmtime-jit-17.0.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-jit-16.0.0 → wasmtime-jit-17.0.0}/src/profiling/jitdump.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-jit-16.0.0 → wasmtime-jit-17.0.0}/src/profiling/perfmap.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-jit-16.0.0 → wasmtime-jit-17.0.0}/src/profiling/vtune.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-jit-16.0.0 → wasmtime-jit-17.0.0}/src/profiling.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-jit-debug-16.0.0 → wasmtime-jit-debug-17.0.0}/README.md +0 -0
- /data/ext/cargo-vendor/{wasmtime-jit-debug-16.0.0 → wasmtime-jit-debug-17.0.0}/src/gdb_jit_int.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-jit-debug-16.0.0 → wasmtime-jit-debug-17.0.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-jit-debug-16.0.0 → wasmtime-jit-debug-17.0.0}/src/perf_jitdump.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-jit-icache-coherence-16.0.0 → wasmtime-jit-icache-coherence-17.0.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-jit-icache-coherence-16.0.0 → wasmtime-jit-icache-coherence-17.0.0}/src/libc.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-jit-icache-coherence-16.0.0 → wasmtime-jit-icache-coherence-17.0.0}/src/miri.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-jit-icache-coherence-16.0.0 → wasmtime-jit-icache-coherence-17.0.0}/src/win.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-16.0.0 → wasmtime-runtime-17.0.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-16.0.0 → wasmtime-runtime-17.0.0}/build.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-16.0.0 → wasmtime-runtime-17.0.0}/proptest-regressions/instance/allocator/pooling/memory_pool.txt +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-16.0.0 → wasmtime-runtime-17.0.0}/src/arch/aarch64.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-16.0.0 → wasmtime-runtime-17.0.0}/src/arch/mod.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-16.0.0 → wasmtime-runtime-17.0.0}/src/arch/riscv64.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-16.0.0 → wasmtime-runtime-17.0.0}/src/arch/s390x.S +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-16.0.0 → wasmtime-runtime-17.0.0}/src/arch/s390x.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-16.0.0 → wasmtime-runtime-17.0.0}/src/arch/x86_64.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-16.0.0 → wasmtime-runtime-17.0.0}/src/component/libcalls.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-16.0.0 → wasmtime-runtime-17.0.0}/src/component/resources.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-16.0.0 → wasmtime-runtime-17.0.0}/src/component.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-16.0.0 → wasmtime-runtime-17.0.0}/src/cow.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-16.0.0 → wasmtime-runtime-17.0.0}/src/debug_builtins.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-16.0.0 → wasmtime-runtime-17.0.0}/src/export.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-16.0.0 → wasmtime-runtime-17.0.0}/src/externref.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-16.0.0 → wasmtime-runtime-17.0.0}/src/helpers.c +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-16.0.0 → wasmtime-runtime-17.0.0}/src/imports.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-16.0.0 → wasmtime-runtime-17.0.0}/src/instance/allocator/on_demand.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-16.0.0 → wasmtime-runtime-17.0.0}/src/instance/allocator/pooling/index_allocator.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-16.0.0 → wasmtime-runtime-17.0.0}/src/instance/allocator/pooling/stack_pool.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-16.0.0 → wasmtime-runtime-17.0.0}/src/instance/allocator/pooling/table_pool.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-16.0.0 → wasmtime-runtime-17.0.0}/src/instance/allocator.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-16.0.0 → wasmtime-runtime-17.0.0}/src/instance.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-16.0.0 → wasmtime-runtime-17.0.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-16.0.0 → wasmtime-runtime-17.0.0}/src/libcalls.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-16.0.0 → wasmtime-runtime-17.0.0}/src/mmap.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-16.0.0 → wasmtime-runtime-17.0.0}/src/mmap_vec.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-16.0.0 → wasmtime-runtime-17.0.0}/src/module_id.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-16.0.0 → wasmtime-runtime-17.0.0}/src/mpk/disabled.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-16.0.0 → wasmtime-runtime-17.0.0}/src/mpk/enabled.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-16.0.0 → wasmtime-runtime-17.0.0}/src/mpk/mod.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-16.0.0 → wasmtime-runtime-17.0.0}/src/mpk/pkru.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-16.0.0 → wasmtime-runtime-17.0.0}/src/mpk/sys.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-16.0.0 → wasmtime-runtime-17.0.0}/src/send_sync_ptr.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-16.0.0 → wasmtime-runtime-17.0.0}/src/store_box.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-16.0.0 → wasmtime-runtime-17.0.0}/src/sys/miri/mmap.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-16.0.0 → wasmtime-runtime-17.0.0}/src/sys/miri/mod.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-16.0.0 → wasmtime-runtime-17.0.0}/src/sys/miri/traphandlers.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-16.0.0 → wasmtime-runtime-17.0.0}/src/sys/miri/unwind.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-16.0.0 → wasmtime-runtime-17.0.0}/src/sys/miri/vm.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-16.0.0 → wasmtime-runtime-17.0.0}/src/sys/mod.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-16.0.0 → wasmtime-runtime-17.0.0}/src/sys/unix/machports.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-16.0.0 → wasmtime-runtime-17.0.0}/src/sys/unix/macos_traphandlers.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-16.0.0 → wasmtime-runtime-17.0.0}/src/sys/unix/mmap.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-16.0.0 → wasmtime-runtime-17.0.0}/src/sys/unix/mod.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-16.0.0 → wasmtime-runtime-17.0.0}/src/sys/unix/signals.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-16.0.0 → wasmtime-runtime-17.0.0}/src/sys/unix/unwind.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-16.0.0 → wasmtime-runtime-17.0.0}/src/sys/unix/vm.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-16.0.0 → wasmtime-runtime-17.0.0}/src/sys/windows/mod.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-16.0.0 → wasmtime-runtime-17.0.0}/src/sys/windows/traphandlers.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-16.0.0 → wasmtime-runtime-17.0.0}/src/sys/windows/unwind.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-16.0.0 → wasmtime-runtime-17.0.0}/src/sys/windows/vm.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-16.0.0 → wasmtime-runtime-17.0.0}/src/table.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-16.0.0 → wasmtime-runtime-17.0.0}/src/traphandlers/backtrace.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-16.0.0 → wasmtime-runtime-17.0.0}/src/traphandlers/coredump.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-16.0.0 → wasmtime-runtime-17.0.0}/src/traphandlers.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-16.0.0 → wasmtime-runtime-17.0.0}/src/vmcontext/vm_host_func_context.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-16.0.0 → wasmtime-runtime-17.0.0}/src/vmcontext.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-types-16.0.0 → wasmtime-types-17.0.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wasmtime-types-16.0.0 → wasmtime-types-17.0.0}/src/error.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-types-16.0.0 → wasmtime-types-17.0.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-versioned-export-macros-16.0.0 → wasmtime-versioned-export-macros-17.0.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-16.0.0 → wasmtime-wasi-17.0.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-16.0.0 → wasmtime-wasi-17.0.0}/README.md +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-16.0.0 → wasmtime-wasi-17.0.0}/build.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-16.0.0 → wasmtime-wasi-17.0.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-16.0.0 → wasmtime-wasi-17.0.0}/src/preview2/clocks/host.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-16.0.0 → wasmtime-wasi-17.0.0}/src/preview2/clocks.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-16.0.0 → wasmtime-wasi-17.0.0}/src/preview2/command.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-16.0.0 → wasmtime-wasi-17.0.0}/src/preview2/error.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-16.0.0 → wasmtime-wasi-17.0.0}/src/preview2/host/env.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-16.0.0 → wasmtime-wasi-17.0.0}/src/preview2/host/exit.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-16.0.0 → wasmtime-wasi-17.0.0}/src/preview2/host/filesystem/sync.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-16.0.0 → wasmtime-wasi-17.0.0}/src/preview2/host/io.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-16.0.0 → wasmtime-wasi-17.0.0}/src/preview2/host/mod.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-16.0.0 → wasmtime-wasi-17.0.0}/src/preview2/host/random.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-16.0.0 → wasmtime-wasi-17.0.0}/src/preview2/host/tcp_create_socket.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-16.0.0 → wasmtime-wasi-17.0.0}/src/preview2/host/udp_create_socket.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-16.0.0 → wasmtime-wasi-17.0.0}/src/preview2/ip_name_lookup.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-16.0.0 → wasmtime-wasi-17.0.0}/src/preview2/pipe.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-16.0.0 → wasmtime-wasi-17.0.0}/src/preview2/preview0.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-16.0.0 → wasmtime-wasi-17.0.0}/src/preview2/random.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-16.0.0 → wasmtime-wasi-17.0.0}/src/preview2/stdio/worker_thread_stdin.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-16.0.0 → wasmtime-wasi-17.0.0}/src/preview2/stdio.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-16.0.0 → wasmtime-wasi-17.0.0}/src/preview2/write_stream.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-16.0.0 → wasmtime-wasi-17.0.0}/tests/process_stdin.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-16.0.0 → wasmtime-wasi-17.0.0}/wit/deps/cli/environment.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-16.0.0 → wasmtime-wasi-17.0.0}/wit/deps/cli/exit.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-16.0.0 → wasmtime-wasi-17.0.0}/wit/deps/cli/run.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-16.0.0 → wasmtime-wasi-17.0.0}/wit/deps/http/handler.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-16.0.0 → wasmtime-wasi-17.0.0}/wit/deps/sockets/instance-network.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-16.0.0 → wasmtime-wasi-17.0.0}/witx/preview0/typenames.witx +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-16.0.0 → wasmtime-wasi-17.0.0}/witx/preview0/wasi_unstable.witx +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-16.0.0 → wasmtime-wasi-17.0.0}/witx/preview1/typenames.witx +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-16.0.0 → wasmtime-wasi-17.0.0}/witx/preview1/wasi_snapshot_preview1.witx +0 -0
- /data/ext/cargo-vendor/{wasmtime-winch-16.0.0 → wasmtime-winch-17.0.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wasmtime-winch-16.0.0 → wasmtime-winch-17.0.0}/src/builder.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-winch-16.0.0 → wasmtime-winch-17.0.0}/src/compiler.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-winch-16.0.0 → wasmtime-winch-17.0.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wit-bindgen-16.0.0 → wasmtime-wit-bindgen-17.0.0}/src/rust.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wit-bindgen-16.0.0 → wasmtime-wit-bindgen-17.0.0}/src/source.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wit-bindgen-16.0.0 → wasmtime-wit-bindgen-17.0.0}/src/types.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wmemcheck-16.0.0 → wasmtime-wmemcheck-17.0.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-16.0.0 → wiggle-17.0.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wiggle-16.0.0 → wiggle-17.0.0}/README.md +0 -0
- /data/ext/cargo-vendor/{wiggle-16.0.0 → wiggle-17.0.0}/src/borrow.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-16.0.0 → wiggle-17.0.0}/src/error.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-16.0.0 → wiggle-17.0.0}/src/guest_type.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-16.0.0 → wiggle-17.0.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-16.0.0 → wiggle-17.0.0}/src/region.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-16.0.0 → wiggle-17.0.0}/src/wasmtime.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-generate-16.0.0 → wiggle-generate-17.0.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wiggle-generate-16.0.0 → wiggle-generate-17.0.0}/README.md +0 -0
- /data/ext/cargo-vendor/{wiggle-generate-16.0.0 → wiggle-generate-17.0.0}/src/codegen_settings.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-generate-16.0.0 → wiggle-generate-17.0.0}/src/config.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-generate-16.0.0 → wiggle-generate-17.0.0}/src/funcs.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-generate-16.0.0 → wiggle-generate-17.0.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-generate-16.0.0 → wiggle-generate-17.0.0}/src/lifetimes.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-generate-16.0.0 → wiggle-generate-17.0.0}/src/module_trait.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-generate-16.0.0 → wiggle-generate-17.0.0}/src/names.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-generate-16.0.0 → wiggle-generate-17.0.0}/src/types/error.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-generate-16.0.0 → wiggle-generate-17.0.0}/src/types/flags.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-generate-16.0.0 → wiggle-generate-17.0.0}/src/types/handle.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-generate-16.0.0 → wiggle-generate-17.0.0}/src/types/mod.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-generate-16.0.0 → wiggle-generate-17.0.0}/src/types/record.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-generate-16.0.0 → wiggle-generate-17.0.0}/src/types/variant.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-generate-16.0.0 → wiggle-generate-17.0.0}/src/wasmtime.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-macro-16.0.0 → wiggle-macro-17.0.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wiggle-macro-16.0.0 → wiggle-macro-17.0.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{winch-codegen-0.14.0 → winch-codegen-0.15.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{winch-codegen-0.14.0 → winch-codegen-0.15.0}/build.rs +0 -0
- /data/ext/cargo-vendor/{winch-codegen-0.14.0 → winch-codegen-0.15.0}/src/abi/local.rs +0 -0
- /data/ext/cargo-vendor/{winch-codegen-0.14.0 → winch-codegen-0.15.0}/src/abi/mod.rs +0 -0
- /data/ext/cargo-vendor/{winch-codegen-0.14.0 → winch-codegen-0.15.0}/src/codegen/builtin.rs +0 -0
- /data/ext/cargo-vendor/{winch-codegen-0.14.0 → winch-codegen-0.15.0}/src/codegen/call.rs +0 -0
- /data/ext/cargo-vendor/{winch-codegen-0.14.0 → winch-codegen-0.15.0}/src/codegen/control.rs +0 -0
- /data/ext/cargo-vendor/{winch-codegen-0.14.0 → winch-codegen-0.15.0}/src/codegen/mod.rs +0 -0
- /data/ext/cargo-vendor/{winch-codegen-0.14.0 → winch-codegen-0.15.0}/src/frame/mod.rs +0 -0
- /data/ext/cargo-vendor/{winch-codegen-0.14.0 → winch-codegen-0.15.0}/src/isa/aarch64/abi.rs +0 -0
- /data/ext/cargo-vendor/{winch-codegen-0.14.0 → winch-codegen-0.15.0}/src/isa/aarch64/address.rs +0 -0
- /data/ext/cargo-vendor/{winch-codegen-0.14.0 → winch-codegen-0.15.0}/src/isa/aarch64/asm.rs +0 -0
- /data/ext/cargo-vendor/{winch-codegen-0.14.0 → winch-codegen-0.15.0}/src/isa/aarch64/mod.rs +0 -0
- /data/ext/cargo-vendor/{winch-codegen-0.14.0 → winch-codegen-0.15.0}/src/isa/aarch64/regs.rs +0 -0
- /data/ext/cargo-vendor/{winch-codegen-0.14.0 → winch-codegen-0.15.0}/src/isa/mod.rs +0 -0
- /data/ext/cargo-vendor/{winch-codegen-0.14.0 → winch-codegen-0.15.0}/src/isa/reg.rs +0 -0
- /data/ext/cargo-vendor/{winch-codegen-0.14.0 → winch-codegen-0.15.0}/src/isa/x64/abi.rs +0 -0
- /data/ext/cargo-vendor/{winch-codegen-0.14.0 → winch-codegen-0.15.0}/src/isa/x64/address.rs +0 -0
- /data/ext/cargo-vendor/{winch-codegen-0.14.0 → winch-codegen-0.15.0}/src/isa/x64/mod.rs +0 -0
- /data/ext/cargo-vendor/{winch-codegen-0.14.0 → winch-codegen-0.15.0}/src/isa/x64/regs.rs +0 -0
- /data/ext/cargo-vendor/{winch-codegen-0.14.0 → winch-codegen-0.15.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{winch-codegen-0.14.0 → winch-codegen-0.15.0}/src/regalloc.rs +0 -0
- /data/ext/cargo-vendor/{winch-codegen-0.14.0 → winch-codegen-0.15.0}/src/regset.rs +0 -0
- /data/ext/cargo-vendor/{winch-codegen-0.14.0 → winch-codegen-0.15.0}/src/trampoline.rs +0 -0
@@ -1,3646 +0,0 @@
|
|
1
|
-
//! This module contains the bulk of the interesting code performing the translation between
|
2
|
-
//! WebAssembly and Cranelift IR.
|
3
|
-
//!
|
4
|
-
//! The translation is done in one pass, opcode by opcode. Two main data structures are used during
|
5
|
-
//! code translations: the value stack and the control stack. The value stack mimics the execution
|
6
|
-
//! of the WebAssembly stack machine: each instruction result is pushed onto the stack and
|
7
|
-
//! instruction arguments are popped off the stack. Similarly, when encountering a control flow
|
8
|
-
//! block, it is pushed onto the control stack and popped off when encountering the corresponding
|
9
|
-
//! `End`.
|
10
|
-
//!
|
11
|
-
//! Another data structure, the translation state, records information concerning unreachable code
|
12
|
-
//! status and about if inserting a return at the end of the function is necessary.
|
13
|
-
//!
|
14
|
-
//! Some of the WebAssembly instructions need information about the environment for which they
|
15
|
-
//! are being translated:
|
16
|
-
//!
|
17
|
-
//! - the loads and stores need the memory base address;
|
18
|
-
//! - the `get_global` and `set_global` instructions depend on how the globals are implemented;
|
19
|
-
//! - `memory.size` and `memory.grow` are runtime functions;
|
20
|
-
//! - `call_indirect` has to translate the function index into the address of where this
|
21
|
-
//! is;
|
22
|
-
//!
|
23
|
-
//! That is why `translate_function_body` takes an object having the `WasmRuntime` trait as
|
24
|
-
//! argument.
|
25
|
-
//!
|
26
|
-
//! There is extra complexity associated with translation of 128-bit SIMD instructions.
|
27
|
-
//! Wasm only considers there to be a single 128-bit vector type. But CLIF's type system
|
28
|
-
//! distinguishes different lane configurations, so considers 8X16, 16X8, 32X4 and 64X2 to be
|
29
|
-
//! different types. The result is that, in wasm, it's perfectly OK to take the output of (eg)
|
30
|
-
//! an `add.16x8` and use that as an operand of a `sub.32x4`, without using any cast. But when
|
31
|
-
//! translated into CLIF, that will cause a verifier error due to the apparent type mismatch.
|
32
|
-
//!
|
33
|
-
//! This file works around that problem by liberally inserting `bitcast` instructions in many
|
34
|
-
//! places -- mostly, before the use of vector values, either as arguments to CLIF instructions
|
35
|
-
//! or as block actual parameters. These are no-op casts which nevertheless have different
|
36
|
-
//! input and output types, and are used (mostly) to "convert" 16X8, 32X4 and 64X2-typed vectors
|
37
|
-
//! to the "canonical" type, 8X16. Hence the functions `optionally_bitcast_vector`,
|
38
|
-
//! `bitcast_arguments`, `pop*_with_bitcast`, `canonicalise_then_jump`,
|
39
|
-
//! `canonicalise_then_br{z,nz}`, `is_non_canonical_v128` and `canonicalise_v128_values`.
|
40
|
-
//! Note that the `bitcast*` functions are occasionally used to convert to some type other than
|
41
|
-
//! 8X16, but the `canonicalise*` functions always convert to type 8X16.
|
42
|
-
//!
|
43
|
-
//! Be careful when adding support for new vector instructions. And when adding new jumps, even
|
44
|
-
//! if they are apparently don't have any connection to vectors. Never generate any kind of
|
45
|
-
//! (inter-block) jump directly. Instead use `canonicalise_then_jump` and
|
46
|
-
//! `canonicalise_then_br{z,nz}`.
|
47
|
-
//!
|
48
|
-
//! The use of bitcasts is ugly and inefficient, but currently unavoidable:
|
49
|
-
//!
|
50
|
-
//! * they make the logic in this file fragile: miss out a bitcast for any reason, and there is
|
51
|
-
//! the risk of the system failing in the verifier. At least for debug builds.
|
52
|
-
//!
|
53
|
-
//! * in the new backends, they potentially interfere with pattern matching on CLIF -- the
|
54
|
-
//! patterns need to take into account the presence of bitcast nodes.
|
55
|
-
//!
|
56
|
-
//! * in the new backends, they get translated into machine-level vector-register-copy
|
57
|
-
//! instructions, none of which are actually necessary. We then depend on the register
|
58
|
-
//! allocator to coalesce them all out.
|
59
|
-
//!
|
60
|
-
//! * they increase the total number of CLIF nodes that have to be processed, hence slowing down
|
61
|
-
//! the compilation pipeline. Also, the extra coalescing work generates a slowdown.
|
62
|
-
//!
|
63
|
-
//! A better solution which would avoid all four problems would be to remove the 8X16, 16X8,
|
64
|
-
//! 32X4 and 64X2 types from CLIF and instead have a single V128 type.
|
65
|
-
//!
|
66
|
-
//! For further background see also:
|
67
|
-
//! <https://github.com/bytecodealliance/wasmtime/issues/1147>
|
68
|
-
//! ("Too many raw_bitcasts in SIMD code")
|
69
|
-
//! <https://github.com/bytecodealliance/cranelift/pull/1251>
|
70
|
-
//! ("Add X128 type to represent WebAssembly's V128 type")
|
71
|
-
//! <https://github.com/bytecodealliance/cranelift/pull/1236>
|
72
|
-
//! ("Relax verification to allow I8X16 to act as a default vector type")
|
73
|
-
|
74
|
-
mod bounds_checks;
|
75
|
-
|
76
|
-
use super::{hash_map, HashMap};
|
77
|
-
use crate::environ::{FuncEnvironment, GlobalVariable};
|
78
|
-
use crate::state::{ControlStackFrame, ElseData, FuncTranslationState};
|
79
|
-
use crate::translation_utils::{
|
80
|
-
block_with_params, blocktype_params_results, f32_translation, f64_translation,
|
81
|
-
};
|
82
|
-
use crate::wasm_unsupported;
|
83
|
-
use crate::{FuncIndex, GlobalIndex, MemoryIndex, TableIndex, TypeIndex, WasmResult};
|
84
|
-
use core::{i32, u32};
|
85
|
-
use cranelift_codegen::ir::condcodes::{FloatCC, IntCC};
|
86
|
-
use cranelift_codegen::ir::immediates::Offset32;
|
87
|
-
use cranelift_codegen::ir::types::*;
|
88
|
-
use cranelift_codegen::ir::{
|
89
|
-
self, AtomicRmwOp, ConstantData, InstBuilder, JumpTableData, MemFlags, Value, ValueLabel,
|
90
|
-
};
|
91
|
-
use cranelift_codegen::packed_option::ReservedValue;
|
92
|
-
use cranelift_frontend::{FunctionBuilder, Variable};
|
93
|
-
use itertools::Itertools;
|
94
|
-
use smallvec::SmallVec;
|
95
|
-
use std::convert::TryFrom;
|
96
|
-
use std::vec::Vec;
|
97
|
-
use wasmparser::{FuncValidator, MemArg, Operator, WasmModuleResources};
|
98
|
-
|
99
|
-
/// Given a `Reachability<T>`, unwrap the inner `T` or, when unreachable, set
|
100
|
-
/// `state.reachable = false` and return.
|
101
|
-
///
|
102
|
-
/// Used in combination with calling `prepare_addr` and `prepare_atomic_addr`
|
103
|
-
/// when we can statically determine that a Wasm access will unconditionally
|
104
|
-
/// trap.
|
105
|
-
macro_rules! unwrap_or_return_unreachable_state {
|
106
|
-
($state:ident, $value:expr) => {
|
107
|
-
match $value {
|
108
|
-
Reachability::Reachable(x) => x,
|
109
|
-
Reachability::Unreachable => {
|
110
|
-
$state.reachable = false;
|
111
|
-
return Ok(());
|
112
|
-
}
|
113
|
-
}
|
114
|
-
};
|
115
|
-
}
|
116
|
-
|
117
|
-
/// Translates wasm operators into Cranelift IR instructions.
|
118
|
-
pub fn translate_operator<FE: FuncEnvironment + ?Sized>(
|
119
|
-
validator: &mut FuncValidator<impl WasmModuleResources>,
|
120
|
-
op: &Operator,
|
121
|
-
builder: &mut FunctionBuilder,
|
122
|
-
state: &mut FuncTranslationState,
|
123
|
-
environ: &mut FE,
|
124
|
-
) -> WasmResult<()> {
|
125
|
-
if !state.reachable {
|
126
|
-
translate_unreachable_operator(validator, &op, builder, state, environ)?;
|
127
|
-
return Ok(());
|
128
|
-
}
|
129
|
-
|
130
|
-
// Given that we believe the current block is reachable, the FunctionBuilder ought to agree.
|
131
|
-
debug_assert!(!builder.is_unreachable());
|
132
|
-
|
133
|
-
// This big match treats all Wasm code operators.
|
134
|
-
match op {
|
135
|
-
/********************************** Locals ****************************************
|
136
|
-
* `get_local` and `set_local` are treated as non-SSA variables and will completely
|
137
|
-
* disappear in the Cranelift Code
|
138
|
-
***********************************************************************************/
|
139
|
-
Operator::LocalGet { local_index } => {
|
140
|
-
let val = builder.use_var(Variable::from_u32(*local_index));
|
141
|
-
state.push1(val);
|
142
|
-
let label = ValueLabel::from_u32(*local_index);
|
143
|
-
builder.set_val_label(val, label);
|
144
|
-
}
|
145
|
-
Operator::LocalSet { local_index } => {
|
146
|
-
let mut val = state.pop1();
|
147
|
-
|
148
|
-
// Ensure SIMD values are cast to their default Cranelift type, I8x16.
|
149
|
-
let ty = builder.func.dfg.value_type(val);
|
150
|
-
if ty.is_vector() {
|
151
|
-
val = optionally_bitcast_vector(val, I8X16, builder);
|
152
|
-
}
|
153
|
-
|
154
|
-
builder.def_var(Variable::from_u32(*local_index), val);
|
155
|
-
let label = ValueLabel::from_u32(*local_index);
|
156
|
-
builder.set_val_label(val, label);
|
157
|
-
}
|
158
|
-
Operator::LocalTee { local_index } => {
|
159
|
-
let mut val = state.peek1();
|
160
|
-
|
161
|
-
// Ensure SIMD values are cast to their default Cranelift type, I8x16.
|
162
|
-
let ty = builder.func.dfg.value_type(val);
|
163
|
-
if ty.is_vector() {
|
164
|
-
val = optionally_bitcast_vector(val, I8X16, builder);
|
165
|
-
}
|
166
|
-
|
167
|
-
builder.def_var(Variable::from_u32(*local_index), val);
|
168
|
-
let label = ValueLabel::from_u32(*local_index);
|
169
|
-
builder.set_val_label(val, label);
|
170
|
-
}
|
171
|
-
/********************************** Globals ****************************************
|
172
|
-
* `get_global` and `set_global` are handled by the environment.
|
173
|
-
***********************************************************************************/
|
174
|
-
Operator::GlobalGet { global_index } => {
|
175
|
-
let val = match state.get_global(builder.func, *global_index, environ)? {
|
176
|
-
GlobalVariable::Const(val) => val,
|
177
|
-
GlobalVariable::Memory { gv, offset, ty } => {
|
178
|
-
let addr = builder.ins().global_value(environ.pointer_type(), gv);
|
179
|
-
let mut flags = ir::MemFlags::trusted();
|
180
|
-
// Put globals in the "table" abstract heap category as well.
|
181
|
-
flags.set_table();
|
182
|
-
builder.ins().load(ty, flags, addr, offset)
|
183
|
-
}
|
184
|
-
GlobalVariable::Custom => environ.translate_custom_global_get(
|
185
|
-
builder.cursor(),
|
186
|
-
GlobalIndex::from_u32(*global_index),
|
187
|
-
)?,
|
188
|
-
};
|
189
|
-
state.push1(val);
|
190
|
-
}
|
191
|
-
Operator::GlobalSet { global_index } => {
|
192
|
-
match state.get_global(builder.func, *global_index, environ)? {
|
193
|
-
GlobalVariable::Const(_) => panic!("global #{} is a constant", *global_index),
|
194
|
-
GlobalVariable::Memory { gv, offset, ty } => {
|
195
|
-
let addr = builder.ins().global_value(environ.pointer_type(), gv);
|
196
|
-
let mut flags = ir::MemFlags::trusted();
|
197
|
-
// Put globals in the "table" abstract heap category as well.
|
198
|
-
flags.set_table();
|
199
|
-
let mut val = state.pop1();
|
200
|
-
// Ensure SIMD values are cast to their default Cranelift type, I8x16.
|
201
|
-
if ty.is_vector() {
|
202
|
-
val = optionally_bitcast_vector(val, I8X16, builder);
|
203
|
-
}
|
204
|
-
debug_assert_eq!(ty, builder.func.dfg.value_type(val));
|
205
|
-
builder.ins().store(flags, val, addr, offset);
|
206
|
-
environ.update_global(builder, *global_index, val);
|
207
|
-
}
|
208
|
-
GlobalVariable::Custom => {
|
209
|
-
let val = state.pop1();
|
210
|
-
environ.translate_custom_global_set(
|
211
|
-
builder.cursor(),
|
212
|
-
GlobalIndex::from_u32(*global_index),
|
213
|
-
val,
|
214
|
-
)?;
|
215
|
-
}
|
216
|
-
}
|
217
|
-
}
|
218
|
-
/********************************* Stack misc ***************************************
|
219
|
-
* `drop`, `nop`, `unreachable` and `select`.
|
220
|
-
***********************************************************************************/
|
221
|
-
Operator::Drop => {
|
222
|
-
state.pop1();
|
223
|
-
}
|
224
|
-
Operator::Select => {
|
225
|
-
let (mut arg1, mut arg2, cond) = state.pop3();
|
226
|
-
if builder.func.dfg.value_type(arg1).is_vector() {
|
227
|
-
arg1 = optionally_bitcast_vector(arg1, I8X16, builder);
|
228
|
-
}
|
229
|
-
if builder.func.dfg.value_type(arg2).is_vector() {
|
230
|
-
arg2 = optionally_bitcast_vector(arg2, I8X16, builder);
|
231
|
-
}
|
232
|
-
state.push1(builder.ins().select(cond, arg1, arg2));
|
233
|
-
}
|
234
|
-
Operator::TypedSelect { ty: _ } => {
|
235
|
-
// We ignore the explicit type parameter as it is only needed for
|
236
|
-
// validation, which we require to have been performed before
|
237
|
-
// translation.
|
238
|
-
let (mut arg1, mut arg2, cond) = state.pop3();
|
239
|
-
if builder.func.dfg.value_type(arg1).is_vector() {
|
240
|
-
arg1 = optionally_bitcast_vector(arg1, I8X16, builder);
|
241
|
-
}
|
242
|
-
if builder.func.dfg.value_type(arg2).is_vector() {
|
243
|
-
arg2 = optionally_bitcast_vector(arg2, I8X16, builder);
|
244
|
-
}
|
245
|
-
state.push1(builder.ins().select(cond, arg1, arg2));
|
246
|
-
}
|
247
|
-
Operator::Nop => {
|
248
|
-
// We do nothing
|
249
|
-
}
|
250
|
-
Operator::Unreachable => {
|
251
|
-
builder.ins().trap(ir::TrapCode::UnreachableCodeReached);
|
252
|
-
state.reachable = false;
|
253
|
-
}
|
254
|
-
/***************************** Control flow blocks **********************************
|
255
|
-
* When starting a control flow block, we create a new `Block` that will hold the code
|
256
|
-
* after the block, and we push a frame on the control stack. Depending on the type
|
257
|
-
* of block, we create a new `Block` for the body of the block with an associated
|
258
|
-
* jump instruction.
|
259
|
-
*
|
260
|
-
* The `End` instruction pops the last control frame from the control stack, seals
|
261
|
-
* the destination block (since `br` instructions targeting it only appear inside the
|
262
|
-
* block and have already been translated) and modify the value stack to use the
|
263
|
-
* possible `Block`'s arguments values.
|
264
|
-
***********************************************************************************/
|
265
|
-
Operator::Block { blockty } => {
|
266
|
-
let (params, results) = blocktype_params_results(validator, *blockty)?;
|
267
|
-
let next = block_with_params(builder, results.clone(), environ)?;
|
268
|
-
state.push_block(next, params.len(), results.len());
|
269
|
-
}
|
270
|
-
Operator::Loop { blockty } => {
|
271
|
-
let (params, results) = blocktype_params_results(validator, *blockty)?;
|
272
|
-
let loop_body = block_with_params(builder, params.clone(), environ)?;
|
273
|
-
let next = block_with_params(builder, results.clone(), environ)?;
|
274
|
-
canonicalise_then_jump(builder, loop_body, state.peekn(params.len()));
|
275
|
-
state.push_loop(loop_body, next, params.len(), results.len());
|
276
|
-
|
277
|
-
// Pop the initial `Block` actuals and replace them with the `Block`'s
|
278
|
-
// params since control flow joins at the top of the loop.
|
279
|
-
state.popn(params.len());
|
280
|
-
state
|
281
|
-
.stack
|
282
|
-
.extend_from_slice(builder.block_params(loop_body));
|
283
|
-
|
284
|
-
builder.switch_to_block(loop_body);
|
285
|
-
environ.translate_loop_header(builder)?;
|
286
|
-
}
|
287
|
-
Operator::If { blockty } => {
|
288
|
-
let val = state.pop1();
|
289
|
-
|
290
|
-
let next_block = builder.create_block();
|
291
|
-
let (params, results) = blocktype_params_results(validator, *blockty)?;
|
292
|
-
let (destination, else_data) = if params.clone().eq(results.clone()) {
|
293
|
-
// It is possible there is no `else` block, so we will only
|
294
|
-
// allocate a block for it if/when we find the `else`. For now,
|
295
|
-
// we if the condition isn't true, then we jump directly to the
|
296
|
-
// destination block following the whole `if...end`. If we do end
|
297
|
-
// up discovering an `else`, then we will allocate a block for it
|
298
|
-
// and go back and patch the jump.
|
299
|
-
let destination = block_with_params(builder, results.clone(), environ)?;
|
300
|
-
let branch_inst = canonicalise_brif(
|
301
|
-
builder,
|
302
|
-
val,
|
303
|
-
next_block,
|
304
|
-
&[],
|
305
|
-
destination,
|
306
|
-
state.peekn(params.len()),
|
307
|
-
);
|
308
|
-
(
|
309
|
-
destination,
|
310
|
-
ElseData::NoElse {
|
311
|
-
branch_inst,
|
312
|
-
placeholder: destination,
|
313
|
-
},
|
314
|
-
)
|
315
|
-
} else {
|
316
|
-
// The `if` type signature is not valid without an `else` block,
|
317
|
-
// so we eagerly allocate the `else` block here.
|
318
|
-
let destination = block_with_params(builder, results.clone(), environ)?;
|
319
|
-
let else_block = block_with_params(builder, params.clone(), environ)?;
|
320
|
-
canonicalise_brif(
|
321
|
-
builder,
|
322
|
-
val,
|
323
|
-
next_block,
|
324
|
-
&[],
|
325
|
-
else_block,
|
326
|
-
state.peekn(params.len()),
|
327
|
-
);
|
328
|
-
builder.seal_block(else_block);
|
329
|
-
(destination, ElseData::WithElse { else_block })
|
330
|
-
};
|
331
|
-
|
332
|
-
builder.seal_block(next_block); // Only predecessor is the current block.
|
333
|
-
builder.switch_to_block(next_block);
|
334
|
-
|
335
|
-
// Here we append an argument to a Block targeted by an argumentless jump instruction
|
336
|
-
// But in fact there are two cases:
|
337
|
-
// - either the If does not have a Else clause, in that case ty = EmptyBlock
|
338
|
-
// and we add nothing;
|
339
|
-
// - either the If have an Else clause, in that case the destination of this jump
|
340
|
-
// instruction will be changed later when we translate the Else operator.
|
341
|
-
state.push_if(
|
342
|
-
destination,
|
343
|
-
else_data,
|
344
|
-
params.len(),
|
345
|
-
results.len(),
|
346
|
-
*blockty,
|
347
|
-
);
|
348
|
-
}
|
349
|
-
Operator::Else => {
|
350
|
-
let i = state.control_stack.len() - 1;
|
351
|
-
match state.control_stack[i] {
|
352
|
-
ControlStackFrame::If {
|
353
|
-
ref else_data,
|
354
|
-
head_is_reachable,
|
355
|
-
ref mut consequent_ends_reachable,
|
356
|
-
num_return_values,
|
357
|
-
blocktype,
|
358
|
-
destination,
|
359
|
-
..
|
360
|
-
} => {
|
361
|
-
// We finished the consequent, so record its final
|
362
|
-
// reachability state.
|
363
|
-
debug_assert!(consequent_ends_reachable.is_none());
|
364
|
-
*consequent_ends_reachable = Some(state.reachable);
|
365
|
-
|
366
|
-
if head_is_reachable {
|
367
|
-
// We have a branch from the head of the `if` to the `else`.
|
368
|
-
state.reachable = true;
|
369
|
-
|
370
|
-
// Ensure we have a block for the `else` block (it may have
|
371
|
-
// already been pre-allocated, see `ElseData` for details).
|
372
|
-
let else_block = match *else_data {
|
373
|
-
ElseData::NoElse {
|
374
|
-
branch_inst,
|
375
|
-
placeholder,
|
376
|
-
} => {
|
377
|
-
let (params, _results) =
|
378
|
-
blocktype_params_results(validator, blocktype)?;
|
379
|
-
debug_assert_eq!(params.len(), num_return_values);
|
380
|
-
let else_block =
|
381
|
-
block_with_params(builder, params.clone(), environ)?;
|
382
|
-
canonicalise_then_jump(
|
383
|
-
builder,
|
384
|
-
destination,
|
385
|
-
state.peekn(params.len()),
|
386
|
-
);
|
387
|
-
state.popn(params.len());
|
388
|
-
|
389
|
-
builder.change_jump_destination(
|
390
|
-
branch_inst,
|
391
|
-
placeholder,
|
392
|
-
else_block,
|
393
|
-
);
|
394
|
-
builder.seal_block(else_block);
|
395
|
-
else_block
|
396
|
-
}
|
397
|
-
ElseData::WithElse { else_block } => {
|
398
|
-
canonicalise_then_jump(
|
399
|
-
builder,
|
400
|
-
destination,
|
401
|
-
state.peekn(num_return_values),
|
402
|
-
);
|
403
|
-
state.popn(num_return_values);
|
404
|
-
else_block
|
405
|
-
}
|
406
|
-
};
|
407
|
-
|
408
|
-
// You might be expecting that we push the parameters for this
|
409
|
-
// `else` block here, something like this:
|
410
|
-
//
|
411
|
-
// state.pushn(&control_stack_frame.params);
|
412
|
-
//
|
413
|
-
// We don't do that because they are already on the top of the stack
|
414
|
-
// for us: we pushed the parameters twice when we saw the initial
|
415
|
-
// `if` so that we wouldn't have to save the parameters in the
|
416
|
-
// `ControlStackFrame` as another `Vec` allocation.
|
417
|
-
|
418
|
-
builder.switch_to_block(else_block);
|
419
|
-
|
420
|
-
// We don't bother updating the control frame's `ElseData`
|
421
|
-
// to `WithElse` because nothing else will read it.
|
422
|
-
}
|
423
|
-
}
|
424
|
-
_ => unreachable!(),
|
425
|
-
}
|
426
|
-
}
|
427
|
-
Operator::End => {
|
428
|
-
let frame = state.control_stack.pop().unwrap();
|
429
|
-
let next_block = frame.following_code();
|
430
|
-
let return_count = frame.num_return_values();
|
431
|
-
let return_args = state.peekn_mut(return_count);
|
432
|
-
|
433
|
-
canonicalise_then_jump(builder, next_block, return_args);
|
434
|
-
// You might expect that if we just finished an `if` block that
|
435
|
-
// didn't have a corresponding `else` block, then we would clean
|
436
|
-
// up our duplicate set of parameters that we pushed earlier
|
437
|
-
// right here. However, we don't have to explicitly do that,
|
438
|
-
// since we truncate the stack back to the original height
|
439
|
-
// below.
|
440
|
-
|
441
|
-
builder.switch_to_block(next_block);
|
442
|
-
builder.seal_block(next_block);
|
443
|
-
|
444
|
-
// If it is a loop we also have to seal the body loop block
|
445
|
-
if let ControlStackFrame::Loop { header, .. } = frame {
|
446
|
-
builder.seal_block(header)
|
447
|
-
}
|
448
|
-
|
449
|
-
frame.truncate_value_stack_to_original_size(&mut state.stack);
|
450
|
-
state
|
451
|
-
.stack
|
452
|
-
.extend_from_slice(builder.block_params(next_block));
|
453
|
-
}
|
454
|
-
/**************************** Branch instructions *********************************
|
455
|
-
* The branch instructions all have as arguments a target nesting level, which
|
456
|
-
* corresponds to how many control stack frames do we have to pop to get the
|
457
|
-
* destination `Block`.
|
458
|
-
*
|
459
|
-
* Once the destination `Block` is found, we sometimes have to declare a certain depth
|
460
|
-
* of the stack unreachable, because some branch instructions are terminator.
|
461
|
-
*
|
462
|
-
* The `br_table` case is much more complicated because Cranelift's `br_table` instruction
|
463
|
-
* does not support jump arguments like all the other branch instructions. That is why, in
|
464
|
-
* the case where we would use jump arguments for every other branch instruction, we
|
465
|
-
* need to split the critical edges leaving the `br_tables` by creating one `Block` per
|
466
|
-
* table destination; the `br_table` will point to these newly created `Blocks` and these
|
467
|
-
* `Block`s contain only a jump instruction pointing to the final destination, this time with
|
468
|
-
* jump arguments.
|
469
|
-
*
|
470
|
-
* This system is also implemented in Cranelift's SSA construction algorithm, because
|
471
|
-
* `use_var` located in a destination `Block` of a `br_table` might trigger the addition
|
472
|
-
* of jump arguments in each predecessor branch instruction, one of which might be a
|
473
|
-
* `br_table`.
|
474
|
-
***********************************************************************************/
|
475
|
-
Operator::Br { relative_depth } => {
|
476
|
-
let i = state.control_stack.len() - 1 - (*relative_depth as usize);
|
477
|
-
let (return_count, br_destination) = {
|
478
|
-
let frame = &mut state.control_stack[i];
|
479
|
-
// We signal that all the code that follows until the next End is unreachable
|
480
|
-
frame.set_branched_to_exit();
|
481
|
-
let return_count = if frame.is_loop() {
|
482
|
-
frame.num_param_values()
|
483
|
-
} else {
|
484
|
-
frame.num_return_values()
|
485
|
-
};
|
486
|
-
(return_count, frame.br_destination())
|
487
|
-
};
|
488
|
-
let destination_args = state.peekn_mut(return_count);
|
489
|
-
canonicalise_then_jump(builder, br_destination, destination_args);
|
490
|
-
state.popn(return_count);
|
491
|
-
state.reachable = false;
|
492
|
-
}
|
493
|
-
Operator::BrIf { relative_depth } => translate_br_if(*relative_depth, builder, state),
|
494
|
-
Operator::BrTable { targets } => {
|
495
|
-
let default = targets.default();
|
496
|
-
let mut min_depth = default;
|
497
|
-
for depth in targets.targets() {
|
498
|
-
let depth = depth?;
|
499
|
-
if depth < min_depth {
|
500
|
-
min_depth = depth;
|
501
|
-
}
|
502
|
-
}
|
503
|
-
let jump_args_count = {
|
504
|
-
let i = state.control_stack.len() - 1 - (min_depth as usize);
|
505
|
-
let min_depth_frame = &state.control_stack[i];
|
506
|
-
if min_depth_frame.is_loop() {
|
507
|
-
min_depth_frame.num_param_values()
|
508
|
-
} else {
|
509
|
-
min_depth_frame.num_return_values()
|
510
|
-
}
|
511
|
-
};
|
512
|
-
let val = state.pop1();
|
513
|
-
let mut data = Vec::with_capacity(targets.len() as usize);
|
514
|
-
if jump_args_count == 0 {
|
515
|
-
// No jump arguments
|
516
|
-
for depth in targets.targets() {
|
517
|
-
let depth = depth?;
|
518
|
-
let block = {
|
519
|
-
let i = state.control_stack.len() - 1 - (depth as usize);
|
520
|
-
let frame = &mut state.control_stack[i];
|
521
|
-
frame.set_branched_to_exit();
|
522
|
-
frame.br_destination()
|
523
|
-
};
|
524
|
-
data.push(builder.func.dfg.block_call(block, &[]));
|
525
|
-
}
|
526
|
-
let block = {
|
527
|
-
let i = state.control_stack.len() - 1 - (default as usize);
|
528
|
-
let frame = &mut state.control_stack[i];
|
529
|
-
frame.set_branched_to_exit();
|
530
|
-
frame.br_destination()
|
531
|
-
};
|
532
|
-
let block = builder.func.dfg.block_call(block, &[]);
|
533
|
-
let jt = builder.create_jump_table(JumpTableData::new(block, &data));
|
534
|
-
builder.ins().br_table(val, jt);
|
535
|
-
} else {
|
536
|
-
// Here we have jump arguments, but Cranelift's br_table doesn't support them
|
537
|
-
// We then proceed to split the edges going out of the br_table
|
538
|
-
let return_count = jump_args_count;
|
539
|
-
let mut dest_block_sequence = vec![];
|
540
|
-
let mut dest_block_map = HashMap::new();
|
541
|
-
for depth in targets.targets() {
|
542
|
-
let depth = depth?;
|
543
|
-
let branch_block = match dest_block_map.entry(depth as usize) {
|
544
|
-
hash_map::Entry::Occupied(entry) => *entry.get(),
|
545
|
-
hash_map::Entry::Vacant(entry) => {
|
546
|
-
let block = builder.create_block();
|
547
|
-
dest_block_sequence.push((depth as usize, block));
|
548
|
-
*entry.insert(block)
|
549
|
-
}
|
550
|
-
};
|
551
|
-
data.push(builder.func.dfg.block_call(branch_block, &[]));
|
552
|
-
}
|
553
|
-
let default_branch_block = match dest_block_map.entry(default as usize) {
|
554
|
-
hash_map::Entry::Occupied(entry) => *entry.get(),
|
555
|
-
hash_map::Entry::Vacant(entry) => {
|
556
|
-
let block = builder.create_block();
|
557
|
-
dest_block_sequence.push((default as usize, block));
|
558
|
-
*entry.insert(block)
|
559
|
-
}
|
560
|
-
};
|
561
|
-
let default_branch_block = builder.func.dfg.block_call(default_branch_block, &[]);
|
562
|
-
let jt = builder.create_jump_table(JumpTableData::new(default_branch_block, &data));
|
563
|
-
builder.ins().br_table(val, jt);
|
564
|
-
for (depth, dest_block) in dest_block_sequence {
|
565
|
-
builder.switch_to_block(dest_block);
|
566
|
-
builder.seal_block(dest_block);
|
567
|
-
let real_dest_block = {
|
568
|
-
let i = state.control_stack.len() - 1 - depth;
|
569
|
-
let frame = &mut state.control_stack[i];
|
570
|
-
frame.set_branched_to_exit();
|
571
|
-
frame.br_destination()
|
572
|
-
};
|
573
|
-
let destination_args = state.peekn_mut(return_count);
|
574
|
-
canonicalise_then_jump(builder, real_dest_block, destination_args);
|
575
|
-
}
|
576
|
-
state.popn(return_count);
|
577
|
-
}
|
578
|
-
state.reachable = false;
|
579
|
-
}
|
580
|
-
Operator::Return => {
|
581
|
-
let return_count = {
|
582
|
-
let frame = &mut state.control_stack[0];
|
583
|
-
frame.num_return_values()
|
584
|
-
};
|
585
|
-
{
|
586
|
-
let return_args = state.peekn_mut(return_count);
|
587
|
-
environ.handle_before_return(&return_args, builder);
|
588
|
-
bitcast_wasm_returns(environ, return_args, builder);
|
589
|
-
builder.ins().return_(return_args);
|
590
|
-
}
|
591
|
-
state.popn(return_count);
|
592
|
-
state.reachable = false;
|
593
|
-
}
|
594
|
-
/********************************** Exception handing **********************************/
|
595
|
-
Operator::Try { .. }
|
596
|
-
| Operator::Catch { .. }
|
597
|
-
| Operator::Throw { .. }
|
598
|
-
| Operator::Rethrow { .. }
|
599
|
-
| Operator::Delegate { .. }
|
600
|
-
| Operator::CatchAll => {
|
601
|
-
return Err(wasm_unsupported!(
|
602
|
-
"proposed exception handling operator {:?}",
|
603
|
-
op
|
604
|
-
));
|
605
|
-
}
|
606
|
-
/************************************ Calls ****************************************
|
607
|
-
* The call instructions pop off their arguments from the stack and append their
|
608
|
-
* return values to it. `call_indirect` needs environment support because there is an
|
609
|
-
* argument referring to an index in the external functions table of the module.
|
610
|
-
************************************************************************************/
|
611
|
-
Operator::Call { function_index } => {
|
612
|
-
let (fref, num_args) = state.get_direct_func(builder.func, *function_index, environ)?;
|
613
|
-
|
614
|
-
// Bitcast any vector arguments to their default type, I8X16, before calling.
|
615
|
-
let args = state.peekn_mut(num_args);
|
616
|
-
bitcast_wasm_params(
|
617
|
-
environ,
|
618
|
-
builder.func.dfg.ext_funcs[fref].signature,
|
619
|
-
args,
|
620
|
-
builder,
|
621
|
-
);
|
622
|
-
|
623
|
-
let call = environ.translate_call(
|
624
|
-
builder,
|
625
|
-
FuncIndex::from_u32(*function_index),
|
626
|
-
fref,
|
627
|
-
args,
|
628
|
-
)?;
|
629
|
-
let inst_results = builder.inst_results(call);
|
630
|
-
debug_assert_eq!(
|
631
|
-
inst_results.len(),
|
632
|
-
builder.func.dfg.signatures[builder.func.dfg.ext_funcs[fref].signature]
|
633
|
-
.returns
|
634
|
-
.len(),
|
635
|
-
"translate_call results should match the call signature"
|
636
|
-
);
|
637
|
-
state.popn(num_args);
|
638
|
-
state.pushn(inst_results);
|
639
|
-
}
|
640
|
-
Operator::CallIndirect {
|
641
|
-
type_index,
|
642
|
-
table_index,
|
643
|
-
table_byte: _,
|
644
|
-
} => {
|
645
|
-
// `type_index` is the index of the function's signature and
|
646
|
-
// `table_index` is the index of the table to search the function
|
647
|
-
// in.
|
648
|
-
let (sigref, num_args) = state.get_indirect_sig(builder.func, *type_index, environ)?;
|
649
|
-
let table = state.get_or_create_table(builder.func, *table_index, environ)?;
|
650
|
-
let callee = state.pop1();
|
651
|
-
|
652
|
-
// Bitcast any vector arguments to their default type, I8X16, before calling.
|
653
|
-
let args = state.peekn_mut(num_args);
|
654
|
-
bitcast_wasm_params(environ, sigref, args, builder);
|
655
|
-
|
656
|
-
let call = environ.translate_call_indirect(
|
657
|
-
builder,
|
658
|
-
TableIndex::from_u32(*table_index),
|
659
|
-
table,
|
660
|
-
TypeIndex::from_u32(*type_index),
|
661
|
-
sigref,
|
662
|
-
callee,
|
663
|
-
state.peekn(num_args),
|
664
|
-
)?;
|
665
|
-
let inst_results = builder.inst_results(call);
|
666
|
-
debug_assert_eq!(
|
667
|
-
inst_results.len(),
|
668
|
-
builder.func.dfg.signatures[sigref].returns.len(),
|
669
|
-
"translate_call_indirect results should match the call signature"
|
670
|
-
);
|
671
|
-
state.popn(num_args);
|
672
|
-
state.pushn(inst_results);
|
673
|
-
}
|
674
|
-
/******************************* Tail Calls ******************************************
|
675
|
-
* The tail call instructions pop their arguments from the stack and
|
676
|
-
* then permanently transfer control to their callee. The indirect
|
677
|
-
* version requires environment support (while the direct version can
|
678
|
-
* optionally be hooked but doesn't require it) it interacts with the
|
679
|
-
* VM's runtime state via tables.
|
680
|
-
************************************************************************************/
|
681
|
-
Operator::ReturnCall { function_index } => {
|
682
|
-
let (fref, num_args) = state.get_direct_func(builder.func, *function_index, environ)?;
|
683
|
-
|
684
|
-
// Bitcast any vector arguments to their default type, I8X16, before calling.
|
685
|
-
let args = state.peekn_mut(num_args);
|
686
|
-
bitcast_wasm_params(
|
687
|
-
environ,
|
688
|
-
builder.func.dfg.ext_funcs[fref].signature,
|
689
|
-
args,
|
690
|
-
builder,
|
691
|
-
);
|
692
|
-
|
693
|
-
environ.translate_return_call(
|
694
|
-
builder,
|
695
|
-
FuncIndex::from_u32(*function_index),
|
696
|
-
fref,
|
697
|
-
args,
|
698
|
-
)?;
|
699
|
-
|
700
|
-
state.popn(num_args);
|
701
|
-
state.reachable = false;
|
702
|
-
}
|
703
|
-
Operator::ReturnCallIndirect {
|
704
|
-
type_index,
|
705
|
-
table_index,
|
706
|
-
} => {
|
707
|
-
// `type_index` is the index of the function's signature and
|
708
|
-
// `table_index` is the index of the table to search the function
|
709
|
-
// in.
|
710
|
-
let (sigref, num_args) = state.get_indirect_sig(builder.func, *type_index, environ)?;
|
711
|
-
let table = state.get_or_create_table(builder.func, *table_index, environ)?;
|
712
|
-
let callee = state.pop1();
|
713
|
-
|
714
|
-
// Bitcast any vector arguments to their default type, I8X16, before calling.
|
715
|
-
let args = state.peekn_mut(num_args);
|
716
|
-
bitcast_wasm_params(environ, sigref, args, builder);
|
717
|
-
|
718
|
-
environ.translate_return_call_indirect(
|
719
|
-
builder,
|
720
|
-
TableIndex::from_u32(*table_index),
|
721
|
-
table,
|
722
|
-
TypeIndex::from_u32(*type_index),
|
723
|
-
sigref,
|
724
|
-
callee,
|
725
|
-
state.peekn(num_args),
|
726
|
-
)?;
|
727
|
-
|
728
|
-
state.popn(num_args);
|
729
|
-
state.reachable = false;
|
730
|
-
}
|
731
|
-
Operator::ReturnCallRef { type_index } => {
|
732
|
-
// Get function signature
|
733
|
-
// `index` is the index of the function's signature and `table_index` is the index of
|
734
|
-
// the table to search the function in.
|
735
|
-
let (sigref, num_args) = state.get_indirect_sig(builder.func, *type_index, environ)?;
|
736
|
-
let callee = state.pop1();
|
737
|
-
|
738
|
-
// Bitcast any vector arguments to their default type, I8X16, before calling.
|
739
|
-
let args = state.peekn_mut(num_args);
|
740
|
-
bitcast_wasm_params(environ, sigref, args, builder);
|
741
|
-
|
742
|
-
environ.translate_return_call_ref(builder, sigref, callee, state.peekn(num_args))?;
|
743
|
-
|
744
|
-
state.popn(num_args);
|
745
|
-
state.reachable = false;
|
746
|
-
}
|
747
|
-
/******************************* Memory management ***********************************
|
748
|
-
* Memory management is handled by environment. It is usually translated into calls to
|
749
|
-
* special functions.
|
750
|
-
************************************************************************************/
|
751
|
-
Operator::MemoryGrow { mem, mem_byte: _ } => {
|
752
|
-
// The WebAssembly MVP only supports one linear memory, but we expect the reserved
|
753
|
-
// argument to be a memory index.
|
754
|
-
let heap_index = MemoryIndex::from_u32(*mem);
|
755
|
-
let heap = state.get_heap(builder.func, *mem, environ)?;
|
756
|
-
let val = state.pop1();
|
757
|
-
environ.before_memory_grow(builder, val, heap_index);
|
758
|
-
state.push1(environ.translate_memory_grow(builder.cursor(), heap_index, heap, val)?)
|
759
|
-
}
|
760
|
-
Operator::MemorySize { mem, mem_byte: _ } => {
|
761
|
-
let heap_index = MemoryIndex::from_u32(*mem);
|
762
|
-
let heap = state.get_heap(builder.func, *mem, environ)?;
|
763
|
-
state.push1(environ.translate_memory_size(builder.cursor(), heap_index, heap)?);
|
764
|
-
}
|
765
|
-
/******************************* Load instructions ***********************************
|
766
|
-
* Wasm specifies an integer alignment flag but we drop it in Cranelift.
|
767
|
-
* The memory base address is provided by the environment.
|
768
|
-
************************************************************************************/
|
769
|
-
Operator::I32Load8U { memarg } => {
|
770
|
-
unwrap_or_return_unreachable_state!(
|
771
|
-
state,
|
772
|
-
translate_load(memarg, ir::Opcode::Uload8, I32, builder, state, environ)?
|
773
|
-
);
|
774
|
-
}
|
775
|
-
Operator::I32Load16U { memarg } => {
|
776
|
-
unwrap_or_return_unreachable_state!(
|
777
|
-
state,
|
778
|
-
translate_load(memarg, ir::Opcode::Uload16, I32, builder, state, environ)?
|
779
|
-
);
|
780
|
-
}
|
781
|
-
Operator::I32Load8S { memarg } => {
|
782
|
-
unwrap_or_return_unreachable_state!(
|
783
|
-
state,
|
784
|
-
translate_load(memarg, ir::Opcode::Sload8, I32, builder, state, environ)?
|
785
|
-
);
|
786
|
-
}
|
787
|
-
Operator::I32Load16S { memarg } => {
|
788
|
-
unwrap_or_return_unreachable_state!(
|
789
|
-
state,
|
790
|
-
translate_load(memarg, ir::Opcode::Sload16, I32, builder, state, environ)?
|
791
|
-
);
|
792
|
-
}
|
793
|
-
Operator::I64Load8U { memarg } => {
|
794
|
-
unwrap_or_return_unreachable_state!(
|
795
|
-
state,
|
796
|
-
translate_load(memarg, ir::Opcode::Uload8, I64, builder, state, environ)?
|
797
|
-
);
|
798
|
-
}
|
799
|
-
Operator::I64Load16U { memarg } => {
|
800
|
-
unwrap_or_return_unreachable_state!(
|
801
|
-
state,
|
802
|
-
translate_load(memarg, ir::Opcode::Uload16, I64, builder, state, environ)?
|
803
|
-
);
|
804
|
-
}
|
805
|
-
Operator::I64Load8S { memarg } => {
|
806
|
-
unwrap_or_return_unreachable_state!(
|
807
|
-
state,
|
808
|
-
translate_load(memarg, ir::Opcode::Sload8, I64, builder, state, environ)?
|
809
|
-
);
|
810
|
-
}
|
811
|
-
Operator::I64Load16S { memarg } => {
|
812
|
-
unwrap_or_return_unreachable_state!(
|
813
|
-
state,
|
814
|
-
translate_load(memarg, ir::Opcode::Sload16, I64, builder, state, environ)?
|
815
|
-
);
|
816
|
-
}
|
817
|
-
Operator::I64Load32S { memarg } => {
|
818
|
-
unwrap_or_return_unreachable_state!(
|
819
|
-
state,
|
820
|
-
translate_load(memarg, ir::Opcode::Sload32, I64, builder, state, environ)?
|
821
|
-
);
|
822
|
-
}
|
823
|
-
Operator::I64Load32U { memarg } => {
|
824
|
-
unwrap_or_return_unreachable_state!(
|
825
|
-
state,
|
826
|
-
translate_load(memarg, ir::Opcode::Uload32, I64, builder, state, environ)?
|
827
|
-
);
|
828
|
-
}
|
829
|
-
Operator::I32Load { memarg } => {
|
830
|
-
unwrap_or_return_unreachable_state!(
|
831
|
-
state,
|
832
|
-
translate_load(memarg, ir::Opcode::Load, I32, builder, state, environ)?
|
833
|
-
);
|
834
|
-
}
|
835
|
-
Operator::F32Load { memarg } => {
|
836
|
-
unwrap_or_return_unreachable_state!(
|
837
|
-
state,
|
838
|
-
translate_load(memarg, ir::Opcode::Load, F32, builder, state, environ)?
|
839
|
-
);
|
840
|
-
}
|
841
|
-
Operator::I64Load { memarg } => {
|
842
|
-
unwrap_or_return_unreachable_state!(
|
843
|
-
state,
|
844
|
-
translate_load(memarg, ir::Opcode::Load, I64, builder, state, environ)?
|
845
|
-
);
|
846
|
-
}
|
847
|
-
Operator::F64Load { memarg } => {
|
848
|
-
unwrap_or_return_unreachable_state!(
|
849
|
-
state,
|
850
|
-
translate_load(memarg, ir::Opcode::Load, F64, builder, state, environ)?
|
851
|
-
);
|
852
|
-
}
|
853
|
-
Operator::V128Load { memarg } => {
|
854
|
-
unwrap_or_return_unreachable_state!(
|
855
|
-
state,
|
856
|
-
translate_load(memarg, ir::Opcode::Load, I8X16, builder, state, environ)?
|
857
|
-
);
|
858
|
-
}
|
859
|
-
Operator::V128Load8x8S { memarg } => {
|
860
|
-
//TODO(#6829): add before_load() and before_store() hooks for SIMD loads and stores.
|
861
|
-
let (flags, _, base) = unwrap_or_return_unreachable_state!(
|
862
|
-
state,
|
863
|
-
prepare_addr(memarg, 8, builder, state, environ)?
|
864
|
-
);
|
865
|
-
let loaded = builder.ins().sload8x8(flags, base, 0);
|
866
|
-
state.push1(loaded);
|
867
|
-
}
|
868
|
-
Operator::V128Load8x8U { memarg } => {
|
869
|
-
let (flags, _, base) = unwrap_or_return_unreachable_state!(
|
870
|
-
state,
|
871
|
-
prepare_addr(memarg, 8, builder, state, environ)?
|
872
|
-
);
|
873
|
-
let loaded = builder.ins().uload8x8(flags, base, 0);
|
874
|
-
state.push1(loaded);
|
875
|
-
}
|
876
|
-
Operator::V128Load16x4S { memarg } => {
|
877
|
-
let (flags, _, base) = unwrap_or_return_unreachable_state!(
|
878
|
-
state,
|
879
|
-
prepare_addr(memarg, 8, builder, state, environ)?
|
880
|
-
);
|
881
|
-
let loaded = builder.ins().sload16x4(flags, base, 0);
|
882
|
-
state.push1(loaded);
|
883
|
-
}
|
884
|
-
Operator::V128Load16x4U { memarg } => {
|
885
|
-
let (flags, _, base) = unwrap_or_return_unreachable_state!(
|
886
|
-
state,
|
887
|
-
prepare_addr(memarg, 8, builder, state, environ)?
|
888
|
-
);
|
889
|
-
let loaded = builder.ins().uload16x4(flags, base, 0);
|
890
|
-
state.push1(loaded);
|
891
|
-
}
|
892
|
-
Operator::V128Load32x2S { memarg } => {
|
893
|
-
let (flags, _, base) = unwrap_or_return_unreachable_state!(
|
894
|
-
state,
|
895
|
-
prepare_addr(memarg, 8, builder, state, environ)?
|
896
|
-
);
|
897
|
-
let loaded = builder.ins().sload32x2(flags, base, 0);
|
898
|
-
state.push1(loaded);
|
899
|
-
}
|
900
|
-
Operator::V128Load32x2U { memarg } => {
|
901
|
-
let (flags, _, base) = unwrap_or_return_unreachable_state!(
|
902
|
-
state,
|
903
|
-
prepare_addr(memarg, 8, builder, state, environ)?
|
904
|
-
);
|
905
|
-
let loaded = builder.ins().uload32x2(flags, base, 0);
|
906
|
-
state.push1(loaded);
|
907
|
-
}
|
908
|
-
/****************************** Store instructions ***********************************
|
909
|
-
* Wasm specifies an integer alignment flag but we drop it in Cranelift.
|
910
|
-
* The memory base address is provided by the environment.
|
911
|
-
************************************************************************************/
|
912
|
-
Operator::I32Store { memarg }
|
913
|
-
| Operator::I64Store { memarg }
|
914
|
-
| Operator::F32Store { memarg }
|
915
|
-
| Operator::F64Store { memarg } => {
|
916
|
-
translate_store(memarg, ir::Opcode::Store, builder, state, environ)?;
|
917
|
-
}
|
918
|
-
Operator::I32Store8 { memarg } | Operator::I64Store8 { memarg } => {
|
919
|
-
translate_store(memarg, ir::Opcode::Istore8, builder, state, environ)?;
|
920
|
-
}
|
921
|
-
Operator::I32Store16 { memarg } | Operator::I64Store16 { memarg } => {
|
922
|
-
translate_store(memarg, ir::Opcode::Istore16, builder, state, environ)?;
|
923
|
-
}
|
924
|
-
Operator::I64Store32 { memarg } => {
|
925
|
-
translate_store(memarg, ir::Opcode::Istore32, builder, state, environ)?;
|
926
|
-
}
|
927
|
-
Operator::V128Store { memarg } => {
|
928
|
-
translate_store(memarg, ir::Opcode::Store, builder, state, environ)?;
|
929
|
-
}
|
930
|
-
/****************************** Nullary Operators ************************************/
|
931
|
-
Operator::I32Const { value } => {
|
932
|
-
state.push1(builder.ins().iconst(I32, *value as u32 as i64))
|
933
|
-
}
|
934
|
-
Operator::I64Const { value } => state.push1(builder.ins().iconst(I64, *value)),
|
935
|
-
Operator::F32Const { value } => {
|
936
|
-
state.push1(builder.ins().f32const(f32_translation(*value)));
|
937
|
-
}
|
938
|
-
Operator::F64Const { value } => {
|
939
|
-
state.push1(builder.ins().f64const(f64_translation(*value)));
|
940
|
-
}
|
941
|
-
/******************************* Unary Operators *************************************/
|
942
|
-
Operator::I32Clz | Operator::I64Clz => {
|
943
|
-
let arg = state.pop1();
|
944
|
-
state.push1(builder.ins().clz(arg));
|
945
|
-
}
|
946
|
-
Operator::I32Ctz | Operator::I64Ctz => {
|
947
|
-
let arg = state.pop1();
|
948
|
-
state.push1(builder.ins().ctz(arg));
|
949
|
-
}
|
950
|
-
Operator::I32Popcnt | Operator::I64Popcnt => {
|
951
|
-
let arg = state.pop1();
|
952
|
-
state.push1(builder.ins().popcnt(arg));
|
953
|
-
}
|
954
|
-
Operator::I64ExtendI32S => {
|
955
|
-
let val = state.pop1();
|
956
|
-
state.push1(builder.ins().sextend(I64, val));
|
957
|
-
}
|
958
|
-
Operator::I64ExtendI32U => {
|
959
|
-
let val = state.pop1();
|
960
|
-
state.push1(builder.ins().uextend(I64, val));
|
961
|
-
}
|
962
|
-
Operator::I32WrapI64 => {
|
963
|
-
let val = state.pop1();
|
964
|
-
state.push1(builder.ins().ireduce(I32, val));
|
965
|
-
}
|
966
|
-
Operator::F32Sqrt | Operator::F64Sqrt => {
|
967
|
-
let arg = state.pop1();
|
968
|
-
state.push1(builder.ins().sqrt(arg));
|
969
|
-
}
|
970
|
-
Operator::F32Ceil | Operator::F64Ceil => {
|
971
|
-
let arg = state.pop1();
|
972
|
-
state.push1(builder.ins().ceil(arg));
|
973
|
-
}
|
974
|
-
Operator::F32Floor | Operator::F64Floor => {
|
975
|
-
let arg = state.pop1();
|
976
|
-
state.push1(builder.ins().floor(arg));
|
977
|
-
}
|
978
|
-
Operator::F32Trunc | Operator::F64Trunc => {
|
979
|
-
let arg = state.pop1();
|
980
|
-
state.push1(builder.ins().trunc(arg));
|
981
|
-
}
|
982
|
-
Operator::F32Nearest | Operator::F64Nearest => {
|
983
|
-
let arg = state.pop1();
|
984
|
-
state.push1(builder.ins().nearest(arg));
|
985
|
-
}
|
986
|
-
Operator::F32Abs | Operator::F64Abs => {
|
987
|
-
let val = state.pop1();
|
988
|
-
state.push1(builder.ins().fabs(val));
|
989
|
-
}
|
990
|
-
Operator::F32Neg | Operator::F64Neg => {
|
991
|
-
let arg = state.pop1();
|
992
|
-
state.push1(builder.ins().fneg(arg));
|
993
|
-
}
|
994
|
-
Operator::F64ConvertI64U | Operator::F64ConvertI32U => {
|
995
|
-
let val = state.pop1();
|
996
|
-
state.push1(builder.ins().fcvt_from_uint(F64, val));
|
997
|
-
}
|
998
|
-
Operator::F64ConvertI64S | Operator::F64ConvertI32S => {
|
999
|
-
let val = state.pop1();
|
1000
|
-
state.push1(builder.ins().fcvt_from_sint(F64, val));
|
1001
|
-
}
|
1002
|
-
Operator::F32ConvertI64S | Operator::F32ConvertI32S => {
|
1003
|
-
let val = state.pop1();
|
1004
|
-
state.push1(builder.ins().fcvt_from_sint(F32, val));
|
1005
|
-
}
|
1006
|
-
Operator::F32ConvertI64U | Operator::F32ConvertI32U => {
|
1007
|
-
let val = state.pop1();
|
1008
|
-
state.push1(builder.ins().fcvt_from_uint(F32, val));
|
1009
|
-
}
|
1010
|
-
Operator::F64PromoteF32 => {
|
1011
|
-
let val = state.pop1();
|
1012
|
-
state.push1(builder.ins().fpromote(F64, val));
|
1013
|
-
}
|
1014
|
-
Operator::F32DemoteF64 => {
|
1015
|
-
let val = state.pop1();
|
1016
|
-
state.push1(builder.ins().fdemote(F32, val));
|
1017
|
-
}
|
1018
|
-
Operator::I64TruncF64S | Operator::I64TruncF32S => {
|
1019
|
-
let val = state.pop1();
|
1020
|
-
state.push1(builder.ins().fcvt_to_sint(I64, val));
|
1021
|
-
}
|
1022
|
-
Operator::I32TruncF64S | Operator::I32TruncF32S => {
|
1023
|
-
let val = state.pop1();
|
1024
|
-
state.push1(builder.ins().fcvt_to_sint(I32, val));
|
1025
|
-
}
|
1026
|
-
Operator::I64TruncF64U | Operator::I64TruncF32U => {
|
1027
|
-
let val = state.pop1();
|
1028
|
-
state.push1(builder.ins().fcvt_to_uint(I64, val));
|
1029
|
-
}
|
1030
|
-
Operator::I32TruncF64U | Operator::I32TruncF32U => {
|
1031
|
-
let val = state.pop1();
|
1032
|
-
state.push1(builder.ins().fcvt_to_uint(I32, val));
|
1033
|
-
}
|
1034
|
-
Operator::I64TruncSatF64S | Operator::I64TruncSatF32S => {
|
1035
|
-
let val = state.pop1();
|
1036
|
-
state.push1(builder.ins().fcvt_to_sint_sat(I64, val));
|
1037
|
-
}
|
1038
|
-
Operator::I32TruncSatF64S | Operator::I32TruncSatF32S => {
|
1039
|
-
let val = state.pop1();
|
1040
|
-
state.push1(builder.ins().fcvt_to_sint_sat(I32, val));
|
1041
|
-
}
|
1042
|
-
Operator::I64TruncSatF64U | Operator::I64TruncSatF32U => {
|
1043
|
-
let val = state.pop1();
|
1044
|
-
state.push1(builder.ins().fcvt_to_uint_sat(I64, val));
|
1045
|
-
}
|
1046
|
-
Operator::I32TruncSatF64U | Operator::I32TruncSatF32U => {
|
1047
|
-
let val = state.pop1();
|
1048
|
-
state.push1(builder.ins().fcvt_to_uint_sat(I32, val));
|
1049
|
-
}
|
1050
|
-
Operator::F32ReinterpretI32 => {
|
1051
|
-
let val = state.pop1();
|
1052
|
-
state.push1(builder.ins().bitcast(F32, MemFlags::new(), val));
|
1053
|
-
}
|
1054
|
-
Operator::F64ReinterpretI64 => {
|
1055
|
-
let val = state.pop1();
|
1056
|
-
state.push1(builder.ins().bitcast(F64, MemFlags::new(), val));
|
1057
|
-
}
|
1058
|
-
Operator::I32ReinterpretF32 => {
|
1059
|
-
let val = state.pop1();
|
1060
|
-
state.push1(builder.ins().bitcast(I32, MemFlags::new(), val));
|
1061
|
-
}
|
1062
|
-
Operator::I64ReinterpretF64 => {
|
1063
|
-
let val = state.pop1();
|
1064
|
-
state.push1(builder.ins().bitcast(I64, MemFlags::new(), val));
|
1065
|
-
}
|
1066
|
-
Operator::I32Extend8S => {
|
1067
|
-
let val = state.pop1();
|
1068
|
-
state.push1(builder.ins().ireduce(I8, val));
|
1069
|
-
let val = state.pop1();
|
1070
|
-
state.push1(builder.ins().sextend(I32, val));
|
1071
|
-
}
|
1072
|
-
Operator::I32Extend16S => {
|
1073
|
-
let val = state.pop1();
|
1074
|
-
state.push1(builder.ins().ireduce(I16, val));
|
1075
|
-
let val = state.pop1();
|
1076
|
-
state.push1(builder.ins().sextend(I32, val));
|
1077
|
-
}
|
1078
|
-
Operator::I64Extend8S => {
|
1079
|
-
let val = state.pop1();
|
1080
|
-
state.push1(builder.ins().ireduce(I8, val));
|
1081
|
-
let val = state.pop1();
|
1082
|
-
state.push1(builder.ins().sextend(I64, val));
|
1083
|
-
}
|
1084
|
-
Operator::I64Extend16S => {
|
1085
|
-
let val = state.pop1();
|
1086
|
-
state.push1(builder.ins().ireduce(I16, val));
|
1087
|
-
let val = state.pop1();
|
1088
|
-
state.push1(builder.ins().sextend(I64, val));
|
1089
|
-
}
|
1090
|
-
Operator::I64Extend32S => {
|
1091
|
-
let val = state.pop1();
|
1092
|
-
state.push1(builder.ins().ireduce(I32, val));
|
1093
|
-
let val = state.pop1();
|
1094
|
-
state.push1(builder.ins().sextend(I64, val));
|
1095
|
-
}
|
1096
|
-
/****************************** Binary Operators ************************************/
|
1097
|
-
Operator::I32Add | Operator::I64Add => {
|
1098
|
-
let (arg1, arg2) = state.pop2();
|
1099
|
-
state.push1(builder.ins().iadd(arg1, arg2));
|
1100
|
-
}
|
1101
|
-
Operator::I32And | Operator::I64And => {
|
1102
|
-
let (arg1, arg2) = state.pop2();
|
1103
|
-
state.push1(builder.ins().band(arg1, arg2));
|
1104
|
-
}
|
1105
|
-
Operator::I32Or | Operator::I64Or => {
|
1106
|
-
let (arg1, arg2) = state.pop2();
|
1107
|
-
state.push1(builder.ins().bor(arg1, arg2));
|
1108
|
-
}
|
1109
|
-
Operator::I32Xor | Operator::I64Xor => {
|
1110
|
-
let (arg1, arg2) = state.pop2();
|
1111
|
-
state.push1(builder.ins().bxor(arg1, arg2));
|
1112
|
-
}
|
1113
|
-
Operator::I32Shl | Operator::I64Shl => {
|
1114
|
-
let (arg1, arg2) = state.pop2();
|
1115
|
-
state.push1(builder.ins().ishl(arg1, arg2));
|
1116
|
-
}
|
1117
|
-
Operator::I32ShrS | Operator::I64ShrS => {
|
1118
|
-
let (arg1, arg2) = state.pop2();
|
1119
|
-
state.push1(builder.ins().sshr(arg1, arg2));
|
1120
|
-
}
|
1121
|
-
Operator::I32ShrU | Operator::I64ShrU => {
|
1122
|
-
let (arg1, arg2) = state.pop2();
|
1123
|
-
state.push1(builder.ins().ushr(arg1, arg2));
|
1124
|
-
}
|
1125
|
-
Operator::I32Rotl | Operator::I64Rotl => {
|
1126
|
-
let (arg1, arg2) = state.pop2();
|
1127
|
-
state.push1(builder.ins().rotl(arg1, arg2));
|
1128
|
-
}
|
1129
|
-
Operator::I32Rotr | Operator::I64Rotr => {
|
1130
|
-
let (arg1, arg2) = state.pop2();
|
1131
|
-
state.push1(builder.ins().rotr(arg1, arg2));
|
1132
|
-
}
|
1133
|
-
Operator::F32Add | Operator::F64Add => {
|
1134
|
-
let (arg1, arg2) = state.pop2();
|
1135
|
-
state.push1(builder.ins().fadd(arg1, arg2));
|
1136
|
-
}
|
1137
|
-
Operator::I32Sub | Operator::I64Sub => {
|
1138
|
-
let (arg1, arg2) = state.pop2();
|
1139
|
-
state.push1(builder.ins().isub(arg1, arg2));
|
1140
|
-
}
|
1141
|
-
Operator::F32Sub | Operator::F64Sub => {
|
1142
|
-
let (arg1, arg2) = state.pop2();
|
1143
|
-
state.push1(builder.ins().fsub(arg1, arg2));
|
1144
|
-
}
|
1145
|
-
Operator::I32Mul | Operator::I64Mul => {
|
1146
|
-
let (arg1, arg2) = state.pop2();
|
1147
|
-
state.push1(builder.ins().imul(arg1, arg2));
|
1148
|
-
}
|
1149
|
-
Operator::F32Mul | Operator::F64Mul => {
|
1150
|
-
let (arg1, arg2) = state.pop2();
|
1151
|
-
state.push1(builder.ins().fmul(arg1, arg2));
|
1152
|
-
}
|
1153
|
-
Operator::F32Div | Operator::F64Div => {
|
1154
|
-
let (arg1, arg2) = state.pop2();
|
1155
|
-
state.push1(builder.ins().fdiv(arg1, arg2));
|
1156
|
-
}
|
1157
|
-
Operator::I32DivS | Operator::I64DivS => {
|
1158
|
-
let (arg1, arg2) = state.pop2();
|
1159
|
-
state.push1(builder.ins().sdiv(arg1, arg2));
|
1160
|
-
}
|
1161
|
-
Operator::I32DivU | Operator::I64DivU => {
|
1162
|
-
let (arg1, arg2) = state.pop2();
|
1163
|
-
state.push1(builder.ins().udiv(arg1, arg2));
|
1164
|
-
}
|
1165
|
-
Operator::I32RemS | Operator::I64RemS => {
|
1166
|
-
let (arg1, arg2) = state.pop2();
|
1167
|
-
state.push1(builder.ins().srem(arg1, arg2));
|
1168
|
-
}
|
1169
|
-
Operator::I32RemU | Operator::I64RemU => {
|
1170
|
-
let (arg1, arg2) = state.pop2();
|
1171
|
-
state.push1(builder.ins().urem(arg1, arg2));
|
1172
|
-
}
|
1173
|
-
Operator::F32Min | Operator::F64Min => {
|
1174
|
-
let (arg1, arg2) = state.pop2();
|
1175
|
-
state.push1(builder.ins().fmin(arg1, arg2));
|
1176
|
-
}
|
1177
|
-
Operator::F32Max | Operator::F64Max => {
|
1178
|
-
let (arg1, arg2) = state.pop2();
|
1179
|
-
state.push1(builder.ins().fmax(arg1, arg2));
|
1180
|
-
}
|
1181
|
-
Operator::F32Copysign | Operator::F64Copysign => {
|
1182
|
-
let (arg1, arg2) = state.pop2();
|
1183
|
-
state.push1(builder.ins().fcopysign(arg1, arg2));
|
1184
|
-
}
|
1185
|
-
/**************************** Comparison Operators **********************************/
|
1186
|
-
Operator::I32LtS | Operator::I64LtS => {
|
1187
|
-
translate_icmp(IntCC::SignedLessThan, builder, state)
|
1188
|
-
}
|
1189
|
-
Operator::I32LtU | Operator::I64LtU => {
|
1190
|
-
translate_icmp(IntCC::UnsignedLessThan, builder, state)
|
1191
|
-
}
|
1192
|
-
Operator::I32LeS | Operator::I64LeS => {
|
1193
|
-
translate_icmp(IntCC::SignedLessThanOrEqual, builder, state)
|
1194
|
-
}
|
1195
|
-
Operator::I32LeU | Operator::I64LeU => {
|
1196
|
-
translate_icmp(IntCC::UnsignedLessThanOrEqual, builder, state)
|
1197
|
-
}
|
1198
|
-
Operator::I32GtS | Operator::I64GtS => {
|
1199
|
-
translate_icmp(IntCC::SignedGreaterThan, builder, state)
|
1200
|
-
}
|
1201
|
-
Operator::I32GtU | Operator::I64GtU => {
|
1202
|
-
translate_icmp(IntCC::UnsignedGreaterThan, builder, state)
|
1203
|
-
}
|
1204
|
-
Operator::I32GeS | Operator::I64GeS => {
|
1205
|
-
translate_icmp(IntCC::SignedGreaterThanOrEqual, builder, state)
|
1206
|
-
}
|
1207
|
-
Operator::I32GeU | Operator::I64GeU => {
|
1208
|
-
translate_icmp(IntCC::UnsignedGreaterThanOrEqual, builder, state)
|
1209
|
-
}
|
1210
|
-
Operator::I32Eqz | Operator::I64Eqz => {
|
1211
|
-
let arg = state.pop1();
|
1212
|
-
let val = builder.ins().icmp_imm(IntCC::Equal, arg, 0);
|
1213
|
-
state.push1(builder.ins().uextend(I32, val));
|
1214
|
-
}
|
1215
|
-
Operator::I32Eq | Operator::I64Eq => translate_icmp(IntCC::Equal, builder, state),
|
1216
|
-
Operator::F32Eq | Operator::F64Eq => translate_fcmp(FloatCC::Equal, builder, state),
|
1217
|
-
Operator::I32Ne | Operator::I64Ne => translate_icmp(IntCC::NotEqual, builder, state),
|
1218
|
-
Operator::F32Ne | Operator::F64Ne => translate_fcmp(FloatCC::NotEqual, builder, state),
|
1219
|
-
Operator::F32Gt | Operator::F64Gt => translate_fcmp(FloatCC::GreaterThan, builder, state),
|
1220
|
-
Operator::F32Ge | Operator::F64Ge => {
|
1221
|
-
translate_fcmp(FloatCC::GreaterThanOrEqual, builder, state)
|
1222
|
-
}
|
1223
|
-
Operator::F32Lt | Operator::F64Lt => translate_fcmp(FloatCC::LessThan, builder, state),
|
1224
|
-
Operator::F32Le | Operator::F64Le => {
|
1225
|
-
translate_fcmp(FloatCC::LessThanOrEqual, builder, state)
|
1226
|
-
}
|
1227
|
-
Operator::RefNull { hty } => {
|
1228
|
-
let hty = environ.convert_heap_type(*hty);
|
1229
|
-
state.push1(environ.translate_ref_null(builder.cursor(), hty)?)
|
1230
|
-
}
|
1231
|
-
Operator::RefIsNull => {
|
1232
|
-
let value = state.pop1();
|
1233
|
-
state.push1(environ.translate_ref_is_null(builder.cursor(), value)?);
|
1234
|
-
}
|
1235
|
-
Operator::RefFunc { function_index } => {
|
1236
|
-
let index = FuncIndex::from_u32(*function_index);
|
1237
|
-
state.push1(environ.translate_ref_func(builder.cursor(), index)?);
|
1238
|
-
}
|
1239
|
-
Operator::MemoryAtomicWait32 { memarg } | Operator::MemoryAtomicWait64 { memarg } => {
|
1240
|
-
// The WebAssembly MVP only supports one linear memory and
|
1241
|
-
// wasmparser will ensure that the memory indices specified are
|
1242
|
-
// zero.
|
1243
|
-
let implied_ty = match op {
|
1244
|
-
Operator::MemoryAtomicWait64 { .. } => I64,
|
1245
|
-
Operator::MemoryAtomicWait32 { .. } => I32,
|
1246
|
-
_ => unreachable!(),
|
1247
|
-
};
|
1248
|
-
let heap_index = MemoryIndex::from_u32(memarg.memory);
|
1249
|
-
let heap = state.get_heap(builder.func, memarg.memory, environ)?;
|
1250
|
-
let timeout = state.pop1(); // 64 (fixed)
|
1251
|
-
let expected = state.pop1(); // 32 or 64 (per the `Ixx` in `IxxAtomicWait`)
|
1252
|
-
assert!(builder.func.dfg.value_type(expected) == implied_ty);
|
1253
|
-
let addr = state.pop1();
|
1254
|
-
let effective_addr = if memarg.offset == 0 {
|
1255
|
-
addr
|
1256
|
-
} else {
|
1257
|
-
let index_type = environ.heaps()[heap].index_type;
|
1258
|
-
let offset = builder.ins().iconst(index_type, memarg.offset as i64);
|
1259
|
-
builder
|
1260
|
-
.ins()
|
1261
|
-
.uadd_overflow_trap(addr, offset, ir::TrapCode::HeapOutOfBounds)
|
1262
|
-
};
|
1263
|
-
// `fn translate_atomic_wait` can inspect the type of `expected` to figure out what
|
1264
|
-
// code it needs to generate, if it wants.
|
1265
|
-
let res = environ.translate_atomic_wait(
|
1266
|
-
builder.cursor(),
|
1267
|
-
heap_index,
|
1268
|
-
heap,
|
1269
|
-
effective_addr,
|
1270
|
-
expected,
|
1271
|
-
timeout,
|
1272
|
-
)?;
|
1273
|
-
state.push1(res);
|
1274
|
-
}
|
1275
|
-
Operator::MemoryAtomicNotify { memarg } => {
|
1276
|
-
let heap_index = MemoryIndex::from_u32(memarg.memory);
|
1277
|
-
let heap = state.get_heap(builder.func, memarg.memory, environ)?;
|
1278
|
-
let count = state.pop1(); // 32 (fixed)
|
1279
|
-
let addr = state.pop1();
|
1280
|
-
let effective_addr = if memarg.offset == 0 {
|
1281
|
-
addr
|
1282
|
-
} else {
|
1283
|
-
let index_type = environ.heaps()[heap].index_type;
|
1284
|
-
let offset = builder.ins().iconst(index_type, memarg.offset as i64);
|
1285
|
-
builder
|
1286
|
-
.ins()
|
1287
|
-
.uadd_overflow_trap(addr, offset, ir::TrapCode::HeapOutOfBounds)
|
1288
|
-
};
|
1289
|
-
let res = environ.translate_atomic_notify(
|
1290
|
-
builder.cursor(),
|
1291
|
-
heap_index,
|
1292
|
-
heap,
|
1293
|
-
effective_addr,
|
1294
|
-
count,
|
1295
|
-
)?;
|
1296
|
-
state.push1(res);
|
1297
|
-
}
|
1298
|
-
Operator::I32AtomicLoad { memarg } => {
|
1299
|
-
translate_atomic_load(I32, I32, memarg, builder, state, environ)?
|
1300
|
-
}
|
1301
|
-
Operator::I64AtomicLoad { memarg } => {
|
1302
|
-
translate_atomic_load(I64, I64, memarg, builder, state, environ)?
|
1303
|
-
}
|
1304
|
-
Operator::I32AtomicLoad8U { memarg } => {
|
1305
|
-
translate_atomic_load(I32, I8, memarg, builder, state, environ)?
|
1306
|
-
}
|
1307
|
-
Operator::I32AtomicLoad16U { memarg } => {
|
1308
|
-
translate_atomic_load(I32, I16, memarg, builder, state, environ)?
|
1309
|
-
}
|
1310
|
-
Operator::I64AtomicLoad8U { memarg } => {
|
1311
|
-
translate_atomic_load(I64, I8, memarg, builder, state, environ)?
|
1312
|
-
}
|
1313
|
-
Operator::I64AtomicLoad16U { memarg } => {
|
1314
|
-
translate_atomic_load(I64, I16, memarg, builder, state, environ)?
|
1315
|
-
}
|
1316
|
-
Operator::I64AtomicLoad32U { memarg } => {
|
1317
|
-
translate_atomic_load(I64, I32, memarg, builder, state, environ)?
|
1318
|
-
}
|
1319
|
-
|
1320
|
-
Operator::I32AtomicStore { memarg } => {
|
1321
|
-
translate_atomic_store(I32, memarg, builder, state, environ)?
|
1322
|
-
}
|
1323
|
-
Operator::I64AtomicStore { memarg } => {
|
1324
|
-
translate_atomic_store(I64, memarg, builder, state, environ)?
|
1325
|
-
}
|
1326
|
-
Operator::I32AtomicStore8 { memarg } => {
|
1327
|
-
translate_atomic_store(I8, memarg, builder, state, environ)?
|
1328
|
-
}
|
1329
|
-
Operator::I32AtomicStore16 { memarg } => {
|
1330
|
-
translate_atomic_store(I16, memarg, builder, state, environ)?
|
1331
|
-
}
|
1332
|
-
Operator::I64AtomicStore8 { memarg } => {
|
1333
|
-
translate_atomic_store(I8, memarg, builder, state, environ)?
|
1334
|
-
}
|
1335
|
-
Operator::I64AtomicStore16 { memarg } => {
|
1336
|
-
translate_atomic_store(I16, memarg, builder, state, environ)?
|
1337
|
-
}
|
1338
|
-
Operator::I64AtomicStore32 { memarg } => {
|
1339
|
-
translate_atomic_store(I32, memarg, builder, state, environ)?
|
1340
|
-
}
|
1341
|
-
|
1342
|
-
Operator::I32AtomicRmwAdd { memarg } => {
|
1343
|
-
translate_atomic_rmw(I32, I32, AtomicRmwOp::Add, memarg, builder, state, environ)?
|
1344
|
-
}
|
1345
|
-
Operator::I64AtomicRmwAdd { memarg } => {
|
1346
|
-
translate_atomic_rmw(I64, I64, AtomicRmwOp::Add, memarg, builder, state, environ)?
|
1347
|
-
}
|
1348
|
-
Operator::I32AtomicRmw8AddU { memarg } => {
|
1349
|
-
translate_atomic_rmw(I32, I8, AtomicRmwOp::Add, memarg, builder, state, environ)?
|
1350
|
-
}
|
1351
|
-
Operator::I32AtomicRmw16AddU { memarg } => {
|
1352
|
-
translate_atomic_rmw(I32, I16, AtomicRmwOp::Add, memarg, builder, state, environ)?
|
1353
|
-
}
|
1354
|
-
Operator::I64AtomicRmw8AddU { memarg } => {
|
1355
|
-
translate_atomic_rmw(I64, I8, AtomicRmwOp::Add, memarg, builder, state, environ)?
|
1356
|
-
}
|
1357
|
-
Operator::I64AtomicRmw16AddU { memarg } => {
|
1358
|
-
translate_atomic_rmw(I64, I16, AtomicRmwOp::Add, memarg, builder, state, environ)?
|
1359
|
-
}
|
1360
|
-
Operator::I64AtomicRmw32AddU { memarg } => {
|
1361
|
-
translate_atomic_rmw(I64, I32, AtomicRmwOp::Add, memarg, builder, state, environ)?
|
1362
|
-
}
|
1363
|
-
|
1364
|
-
Operator::I32AtomicRmwSub { memarg } => {
|
1365
|
-
translate_atomic_rmw(I32, I32, AtomicRmwOp::Sub, memarg, builder, state, environ)?
|
1366
|
-
}
|
1367
|
-
Operator::I64AtomicRmwSub { memarg } => {
|
1368
|
-
translate_atomic_rmw(I64, I64, AtomicRmwOp::Sub, memarg, builder, state, environ)?
|
1369
|
-
}
|
1370
|
-
Operator::I32AtomicRmw8SubU { memarg } => {
|
1371
|
-
translate_atomic_rmw(I32, I8, AtomicRmwOp::Sub, memarg, builder, state, environ)?
|
1372
|
-
}
|
1373
|
-
Operator::I32AtomicRmw16SubU { memarg } => {
|
1374
|
-
translate_atomic_rmw(I32, I16, AtomicRmwOp::Sub, memarg, builder, state, environ)?
|
1375
|
-
}
|
1376
|
-
Operator::I64AtomicRmw8SubU { memarg } => {
|
1377
|
-
translate_atomic_rmw(I64, I8, AtomicRmwOp::Sub, memarg, builder, state, environ)?
|
1378
|
-
}
|
1379
|
-
Operator::I64AtomicRmw16SubU { memarg } => {
|
1380
|
-
translate_atomic_rmw(I64, I16, AtomicRmwOp::Sub, memarg, builder, state, environ)?
|
1381
|
-
}
|
1382
|
-
Operator::I64AtomicRmw32SubU { memarg } => {
|
1383
|
-
translate_atomic_rmw(I64, I32, AtomicRmwOp::Sub, memarg, builder, state, environ)?
|
1384
|
-
}
|
1385
|
-
|
1386
|
-
Operator::I32AtomicRmwAnd { memarg } => {
|
1387
|
-
translate_atomic_rmw(I32, I32, AtomicRmwOp::And, memarg, builder, state, environ)?
|
1388
|
-
}
|
1389
|
-
Operator::I64AtomicRmwAnd { memarg } => {
|
1390
|
-
translate_atomic_rmw(I64, I64, AtomicRmwOp::And, memarg, builder, state, environ)?
|
1391
|
-
}
|
1392
|
-
Operator::I32AtomicRmw8AndU { memarg } => {
|
1393
|
-
translate_atomic_rmw(I32, I8, AtomicRmwOp::And, memarg, builder, state, environ)?
|
1394
|
-
}
|
1395
|
-
Operator::I32AtomicRmw16AndU { memarg } => {
|
1396
|
-
translate_atomic_rmw(I32, I16, AtomicRmwOp::And, memarg, builder, state, environ)?
|
1397
|
-
}
|
1398
|
-
Operator::I64AtomicRmw8AndU { memarg } => {
|
1399
|
-
translate_atomic_rmw(I64, I8, AtomicRmwOp::And, memarg, builder, state, environ)?
|
1400
|
-
}
|
1401
|
-
Operator::I64AtomicRmw16AndU { memarg } => {
|
1402
|
-
translate_atomic_rmw(I64, I16, AtomicRmwOp::And, memarg, builder, state, environ)?
|
1403
|
-
}
|
1404
|
-
Operator::I64AtomicRmw32AndU { memarg } => {
|
1405
|
-
translate_atomic_rmw(I64, I32, AtomicRmwOp::And, memarg, builder, state, environ)?
|
1406
|
-
}
|
1407
|
-
|
1408
|
-
Operator::I32AtomicRmwOr { memarg } => {
|
1409
|
-
translate_atomic_rmw(I32, I32, AtomicRmwOp::Or, memarg, builder, state, environ)?
|
1410
|
-
}
|
1411
|
-
Operator::I64AtomicRmwOr { memarg } => {
|
1412
|
-
translate_atomic_rmw(I64, I64, AtomicRmwOp::Or, memarg, builder, state, environ)?
|
1413
|
-
}
|
1414
|
-
Operator::I32AtomicRmw8OrU { memarg } => {
|
1415
|
-
translate_atomic_rmw(I32, I8, AtomicRmwOp::Or, memarg, builder, state, environ)?
|
1416
|
-
}
|
1417
|
-
Operator::I32AtomicRmw16OrU { memarg } => {
|
1418
|
-
translate_atomic_rmw(I32, I16, AtomicRmwOp::Or, memarg, builder, state, environ)?
|
1419
|
-
}
|
1420
|
-
Operator::I64AtomicRmw8OrU { memarg } => {
|
1421
|
-
translate_atomic_rmw(I64, I8, AtomicRmwOp::Or, memarg, builder, state, environ)?
|
1422
|
-
}
|
1423
|
-
Operator::I64AtomicRmw16OrU { memarg } => {
|
1424
|
-
translate_atomic_rmw(I64, I16, AtomicRmwOp::Or, memarg, builder, state, environ)?
|
1425
|
-
}
|
1426
|
-
Operator::I64AtomicRmw32OrU { memarg } => {
|
1427
|
-
translate_atomic_rmw(I64, I32, AtomicRmwOp::Or, memarg, builder, state, environ)?
|
1428
|
-
}
|
1429
|
-
|
1430
|
-
Operator::I32AtomicRmwXor { memarg } => {
|
1431
|
-
translate_atomic_rmw(I32, I32, AtomicRmwOp::Xor, memarg, builder, state, environ)?
|
1432
|
-
}
|
1433
|
-
Operator::I64AtomicRmwXor { memarg } => {
|
1434
|
-
translate_atomic_rmw(I64, I64, AtomicRmwOp::Xor, memarg, builder, state, environ)?
|
1435
|
-
}
|
1436
|
-
Operator::I32AtomicRmw8XorU { memarg } => {
|
1437
|
-
translate_atomic_rmw(I32, I8, AtomicRmwOp::Xor, memarg, builder, state, environ)?
|
1438
|
-
}
|
1439
|
-
Operator::I32AtomicRmw16XorU { memarg } => {
|
1440
|
-
translate_atomic_rmw(I32, I16, AtomicRmwOp::Xor, memarg, builder, state, environ)?
|
1441
|
-
}
|
1442
|
-
Operator::I64AtomicRmw8XorU { memarg } => {
|
1443
|
-
translate_atomic_rmw(I64, I8, AtomicRmwOp::Xor, memarg, builder, state, environ)?
|
1444
|
-
}
|
1445
|
-
Operator::I64AtomicRmw16XorU { memarg } => {
|
1446
|
-
translate_atomic_rmw(I64, I16, AtomicRmwOp::Xor, memarg, builder, state, environ)?
|
1447
|
-
}
|
1448
|
-
Operator::I64AtomicRmw32XorU { memarg } => {
|
1449
|
-
translate_atomic_rmw(I64, I32, AtomicRmwOp::Xor, memarg, builder, state, environ)?
|
1450
|
-
}
|
1451
|
-
|
1452
|
-
Operator::I32AtomicRmwXchg { memarg } => {
|
1453
|
-
translate_atomic_rmw(I32, I32, AtomicRmwOp::Xchg, memarg, builder, state, environ)?
|
1454
|
-
}
|
1455
|
-
Operator::I64AtomicRmwXchg { memarg } => {
|
1456
|
-
translate_atomic_rmw(I64, I64, AtomicRmwOp::Xchg, memarg, builder, state, environ)?
|
1457
|
-
}
|
1458
|
-
Operator::I32AtomicRmw8XchgU { memarg } => {
|
1459
|
-
translate_atomic_rmw(I32, I8, AtomicRmwOp::Xchg, memarg, builder, state, environ)?
|
1460
|
-
}
|
1461
|
-
Operator::I32AtomicRmw16XchgU { memarg } => {
|
1462
|
-
translate_atomic_rmw(I32, I16, AtomicRmwOp::Xchg, memarg, builder, state, environ)?
|
1463
|
-
}
|
1464
|
-
Operator::I64AtomicRmw8XchgU { memarg } => {
|
1465
|
-
translate_atomic_rmw(I64, I8, AtomicRmwOp::Xchg, memarg, builder, state, environ)?
|
1466
|
-
}
|
1467
|
-
Operator::I64AtomicRmw16XchgU { memarg } => {
|
1468
|
-
translate_atomic_rmw(I64, I16, AtomicRmwOp::Xchg, memarg, builder, state, environ)?
|
1469
|
-
}
|
1470
|
-
Operator::I64AtomicRmw32XchgU { memarg } => {
|
1471
|
-
translate_atomic_rmw(I64, I32, AtomicRmwOp::Xchg, memarg, builder, state, environ)?
|
1472
|
-
}
|
1473
|
-
|
1474
|
-
Operator::I32AtomicRmwCmpxchg { memarg } => {
|
1475
|
-
translate_atomic_cas(I32, I32, memarg, builder, state, environ)?
|
1476
|
-
}
|
1477
|
-
Operator::I64AtomicRmwCmpxchg { memarg } => {
|
1478
|
-
translate_atomic_cas(I64, I64, memarg, builder, state, environ)?
|
1479
|
-
}
|
1480
|
-
Operator::I32AtomicRmw8CmpxchgU { memarg } => {
|
1481
|
-
translate_atomic_cas(I32, I8, memarg, builder, state, environ)?
|
1482
|
-
}
|
1483
|
-
Operator::I32AtomicRmw16CmpxchgU { memarg } => {
|
1484
|
-
translate_atomic_cas(I32, I16, memarg, builder, state, environ)?
|
1485
|
-
}
|
1486
|
-
Operator::I64AtomicRmw8CmpxchgU { memarg } => {
|
1487
|
-
translate_atomic_cas(I64, I8, memarg, builder, state, environ)?
|
1488
|
-
}
|
1489
|
-
Operator::I64AtomicRmw16CmpxchgU { memarg } => {
|
1490
|
-
translate_atomic_cas(I64, I16, memarg, builder, state, environ)?
|
1491
|
-
}
|
1492
|
-
Operator::I64AtomicRmw32CmpxchgU { memarg } => {
|
1493
|
-
translate_atomic_cas(I64, I32, memarg, builder, state, environ)?
|
1494
|
-
}
|
1495
|
-
|
1496
|
-
Operator::AtomicFence { .. } => {
|
1497
|
-
builder.ins().fence();
|
1498
|
-
}
|
1499
|
-
Operator::MemoryCopy { src_mem, dst_mem } => {
|
1500
|
-
let src_index = MemoryIndex::from_u32(*src_mem);
|
1501
|
-
let dst_index = MemoryIndex::from_u32(*dst_mem);
|
1502
|
-
let src_heap = state.get_heap(builder.func, *src_mem, environ)?;
|
1503
|
-
let dst_heap = state.get_heap(builder.func, *dst_mem, environ)?;
|
1504
|
-
let len = state.pop1();
|
1505
|
-
let src_pos = state.pop1();
|
1506
|
-
let dst_pos = state.pop1();
|
1507
|
-
environ.translate_memory_copy(
|
1508
|
-
builder.cursor(),
|
1509
|
-
src_index,
|
1510
|
-
src_heap,
|
1511
|
-
dst_index,
|
1512
|
-
dst_heap,
|
1513
|
-
dst_pos,
|
1514
|
-
src_pos,
|
1515
|
-
len,
|
1516
|
-
)?;
|
1517
|
-
}
|
1518
|
-
Operator::MemoryFill { mem } => {
|
1519
|
-
let heap_index = MemoryIndex::from_u32(*mem);
|
1520
|
-
let heap = state.get_heap(builder.func, *mem, environ)?;
|
1521
|
-
let len = state.pop1();
|
1522
|
-
let val = state.pop1();
|
1523
|
-
let dest = state.pop1();
|
1524
|
-
environ.translate_memory_fill(builder.cursor(), heap_index, heap, dest, val, len)?;
|
1525
|
-
}
|
1526
|
-
Operator::MemoryInit { data_index, mem } => {
|
1527
|
-
let heap_index = MemoryIndex::from_u32(*mem);
|
1528
|
-
let heap = state.get_heap(builder.func, *mem, environ)?;
|
1529
|
-
let len = state.pop1();
|
1530
|
-
let src = state.pop1();
|
1531
|
-
let dest = state.pop1();
|
1532
|
-
environ.translate_memory_init(
|
1533
|
-
builder.cursor(),
|
1534
|
-
heap_index,
|
1535
|
-
heap,
|
1536
|
-
*data_index,
|
1537
|
-
dest,
|
1538
|
-
src,
|
1539
|
-
len,
|
1540
|
-
)?;
|
1541
|
-
}
|
1542
|
-
Operator::DataDrop { data_index } => {
|
1543
|
-
environ.translate_data_drop(builder.cursor(), *data_index)?;
|
1544
|
-
}
|
1545
|
-
Operator::TableSize { table: index } => {
|
1546
|
-
let table = state.get_or_create_table(builder.func, *index, environ)?;
|
1547
|
-
state.push1(environ.translate_table_size(
|
1548
|
-
builder.cursor(),
|
1549
|
-
TableIndex::from_u32(*index),
|
1550
|
-
table,
|
1551
|
-
)?);
|
1552
|
-
}
|
1553
|
-
Operator::TableGrow { table: index } => {
|
1554
|
-
let table_index = TableIndex::from_u32(*index);
|
1555
|
-
let table = state.get_or_create_table(builder.func, *index, environ)?;
|
1556
|
-
let delta = state.pop1();
|
1557
|
-
let init_value = state.pop1();
|
1558
|
-
state.push1(environ.translate_table_grow(
|
1559
|
-
builder.cursor(),
|
1560
|
-
table_index,
|
1561
|
-
table,
|
1562
|
-
delta,
|
1563
|
-
init_value,
|
1564
|
-
)?);
|
1565
|
-
}
|
1566
|
-
Operator::TableGet { table: index } => {
|
1567
|
-
let table_index = TableIndex::from_u32(*index);
|
1568
|
-
let table = state.get_or_create_table(builder.func, *index, environ)?;
|
1569
|
-
let index = state.pop1();
|
1570
|
-
state.push1(environ.translate_table_get(builder, table_index, table, index)?);
|
1571
|
-
}
|
1572
|
-
Operator::TableSet { table: index } => {
|
1573
|
-
let table_index = TableIndex::from_u32(*index);
|
1574
|
-
let table = state.get_or_create_table(builder.func, *index, environ)?;
|
1575
|
-
let value = state.pop1();
|
1576
|
-
let index = state.pop1();
|
1577
|
-
environ.translate_table_set(builder, table_index, table, value, index)?;
|
1578
|
-
}
|
1579
|
-
Operator::TableCopy {
|
1580
|
-
dst_table: dst_table_index,
|
1581
|
-
src_table: src_table_index,
|
1582
|
-
} => {
|
1583
|
-
let dst_table = state.get_or_create_table(builder.func, *dst_table_index, environ)?;
|
1584
|
-
let src_table = state.get_or_create_table(builder.func, *src_table_index, environ)?;
|
1585
|
-
let len = state.pop1();
|
1586
|
-
let src = state.pop1();
|
1587
|
-
let dest = state.pop1();
|
1588
|
-
environ.translate_table_copy(
|
1589
|
-
builder.cursor(),
|
1590
|
-
TableIndex::from_u32(*dst_table_index),
|
1591
|
-
dst_table,
|
1592
|
-
TableIndex::from_u32(*src_table_index),
|
1593
|
-
src_table,
|
1594
|
-
dest,
|
1595
|
-
src,
|
1596
|
-
len,
|
1597
|
-
)?;
|
1598
|
-
}
|
1599
|
-
Operator::TableFill { table } => {
|
1600
|
-
let table_index = TableIndex::from_u32(*table);
|
1601
|
-
let len = state.pop1();
|
1602
|
-
let val = state.pop1();
|
1603
|
-
let dest = state.pop1();
|
1604
|
-
environ.translate_table_fill(builder.cursor(), table_index, dest, val, len)?;
|
1605
|
-
}
|
1606
|
-
Operator::TableInit {
|
1607
|
-
elem_index,
|
1608
|
-
table: table_index,
|
1609
|
-
} => {
|
1610
|
-
let table = state.get_or_create_table(builder.func, *table_index, environ)?;
|
1611
|
-
let len = state.pop1();
|
1612
|
-
let src = state.pop1();
|
1613
|
-
let dest = state.pop1();
|
1614
|
-
environ.translate_table_init(
|
1615
|
-
builder.cursor(),
|
1616
|
-
*elem_index,
|
1617
|
-
TableIndex::from_u32(*table_index),
|
1618
|
-
table,
|
1619
|
-
dest,
|
1620
|
-
src,
|
1621
|
-
len,
|
1622
|
-
)?;
|
1623
|
-
}
|
1624
|
-
Operator::ElemDrop { elem_index } => {
|
1625
|
-
environ.translate_elem_drop(builder.cursor(), *elem_index)?;
|
1626
|
-
}
|
1627
|
-
Operator::V128Const { value } => {
|
1628
|
-
let data = value.bytes().to_vec().into();
|
1629
|
-
let handle = builder.func.dfg.constants.insert(data);
|
1630
|
-
let value = builder.ins().vconst(I8X16, handle);
|
1631
|
-
// the v128.const is typed in CLIF as a I8x16 but bitcast to a different type
|
1632
|
-
// before use
|
1633
|
-
state.push1(value)
|
1634
|
-
}
|
1635
|
-
Operator::I8x16Splat | Operator::I16x8Splat => {
|
1636
|
-
let reduced = builder.ins().ireduce(type_of(op).lane_type(), state.pop1());
|
1637
|
-
let splatted = builder.ins().splat(type_of(op), reduced);
|
1638
|
-
state.push1(splatted)
|
1639
|
-
}
|
1640
|
-
Operator::I32x4Splat
|
1641
|
-
| Operator::I64x2Splat
|
1642
|
-
| Operator::F32x4Splat
|
1643
|
-
| Operator::F64x2Splat => {
|
1644
|
-
let splatted = builder.ins().splat(type_of(op), state.pop1());
|
1645
|
-
state.push1(splatted)
|
1646
|
-
}
|
1647
|
-
Operator::V128Load8Splat { memarg }
|
1648
|
-
| Operator::V128Load16Splat { memarg }
|
1649
|
-
| Operator::V128Load32Splat { memarg }
|
1650
|
-
| Operator::V128Load64Splat { memarg } => {
|
1651
|
-
unwrap_or_return_unreachable_state!(
|
1652
|
-
state,
|
1653
|
-
translate_load(
|
1654
|
-
memarg,
|
1655
|
-
ir::Opcode::Load,
|
1656
|
-
type_of(op).lane_type(),
|
1657
|
-
builder,
|
1658
|
-
state,
|
1659
|
-
environ,
|
1660
|
-
)?
|
1661
|
-
);
|
1662
|
-
let splatted = builder.ins().splat(type_of(op), state.pop1());
|
1663
|
-
state.push1(splatted)
|
1664
|
-
}
|
1665
|
-
Operator::V128Load32Zero { memarg } | Operator::V128Load64Zero { memarg } => {
|
1666
|
-
unwrap_or_return_unreachable_state!(
|
1667
|
-
state,
|
1668
|
-
translate_load(
|
1669
|
-
memarg,
|
1670
|
-
ir::Opcode::Load,
|
1671
|
-
type_of(op).lane_type(),
|
1672
|
-
builder,
|
1673
|
-
state,
|
1674
|
-
environ,
|
1675
|
-
)?
|
1676
|
-
);
|
1677
|
-
let as_vector = builder.ins().scalar_to_vector(type_of(op), state.pop1());
|
1678
|
-
state.push1(as_vector)
|
1679
|
-
}
|
1680
|
-
Operator::V128Load8Lane { memarg, lane }
|
1681
|
-
| Operator::V128Load16Lane { memarg, lane }
|
1682
|
-
| Operator::V128Load32Lane { memarg, lane }
|
1683
|
-
| Operator::V128Load64Lane { memarg, lane } => {
|
1684
|
-
let vector = pop1_with_bitcast(state, type_of(op), builder);
|
1685
|
-
unwrap_or_return_unreachable_state!(
|
1686
|
-
state,
|
1687
|
-
translate_load(
|
1688
|
-
memarg,
|
1689
|
-
ir::Opcode::Load,
|
1690
|
-
type_of(op).lane_type(),
|
1691
|
-
builder,
|
1692
|
-
state,
|
1693
|
-
environ,
|
1694
|
-
)?
|
1695
|
-
);
|
1696
|
-
let replacement = state.pop1();
|
1697
|
-
state.push1(builder.ins().insertlane(vector, replacement, *lane))
|
1698
|
-
}
|
1699
|
-
Operator::V128Store8Lane { memarg, lane }
|
1700
|
-
| Operator::V128Store16Lane { memarg, lane }
|
1701
|
-
| Operator::V128Store32Lane { memarg, lane }
|
1702
|
-
| Operator::V128Store64Lane { memarg, lane } => {
|
1703
|
-
let vector = pop1_with_bitcast(state, type_of(op), builder);
|
1704
|
-
state.push1(builder.ins().extractlane(vector, lane.clone()));
|
1705
|
-
translate_store(memarg, ir::Opcode::Store, builder, state, environ)?;
|
1706
|
-
}
|
1707
|
-
Operator::I8x16ExtractLaneS { lane } | Operator::I16x8ExtractLaneS { lane } => {
|
1708
|
-
let vector = pop1_with_bitcast(state, type_of(op), builder);
|
1709
|
-
let extracted = builder.ins().extractlane(vector, lane.clone());
|
1710
|
-
state.push1(builder.ins().sextend(I32, extracted))
|
1711
|
-
}
|
1712
|
-
Operator::I8x16ExtractLaneU { lane } | Operator::I16x8ExtractLaneU { lane } => {
|
1713
|
-
let vector = pop1_with_bitcast(state, type_of(op), builder);
|
1714
|
-
let extracted = builder.ins().extractlane(vector, lane.clone());
|
1715
|
-
state.push1(builder.ins().uextend(I32, extracted));
|
1716
|
-
// On x86, PEXTRB zeroes the upper bits of the destination register of extractlane so
|
1717
|
-
// uextend could be elided; for now, uextend is needed for Cranelift's type checks to
|
1718
|
-
// work.
|
1719
|
-
}
|
1720
|
-
Operator::I32x4ExtractLane { lane }
|
1721
|
-
| Operator::I64x2ExtractLane { lane }
|
1722
|
-
| Operator::F32x4ExtractLane { lane }
|
1723
|
-
| Operator::F64x2ExtractLane { lane } => {
|
1724
|
-
let vector = pop1_with_bitcast(state, type_of(op), builder);
|
1725
|
-
state.push1(builder.ins().extractlane(vector, lane.clone()))
|
1726
|
-
}
|
1727
|
-
Operator::I8x16ReplaceLane { lane } | Operator::I16x8ReplaceLane { lane } => {
|
1728
|
-
let (vector, replacement) = state.pop2();
|
1729
|
-
let ty = type_of(op);
|
1730
|
-
let reduced = builder.ins().ireduce(ty.lane_type(), replacement);
|
1731
|
-
let vector = optionally_bitcast_vector(vector, ty, builder);
|
1732
|
-
state.push1(builder.ins().insertlane(vector, reduced, *lane))
|
1733
|
-
}
|
1734
|
-
Operator::I32x4ReplaceLane { lane }
|
1735
|
-
| Operator::I64x2ReplaceLane { lane }
|
1736
|
-
| Operator::F32x4ReplaceLane { lane }
|
1737
|
-
| Operator::F64x2ReplaceLane { lane } => {
|
1738
|
-
let (vector, replacement) = state.pop2();
|
1739
|
-
let vector = optionally_bitcast_vector(vector, type_of(op), builder);
|
1740
|
-
state.push1(builder.ins().insertlane(vector, replacement, *lane))
|
1741
|
-
}
|
1742
|
-
Operator::I8x16Shuffle { lanes, .. } => {
|
1743
|
-
let (a, b) = pop2_with_bitcast(state, I8X16, builder);
|
1744
|
-
let lanes = ConstantData::from(lanes.as_ref());
|
1745
|
-
let mask = builder.func.dfg.immediates.push(lanes);
|
1746
|
-
let shuffled = builder.ins().shuffle(a, b, mask);
|
1747
|
-
state.push1(shuffled)
|
1748
|
-
// At this point the original types of a and b are lost; users of this value (i.e. this
|
1749
|
-
// WASM-to-CLIF translator) may need to bitcast for type-correctness. This is due
|
1750
|
-
// to WASM using the less specific v128 type for certain operations and more specific
|
1751
|
-
// types (e.g. i8x16) for others.
|
1752
|
-
}
|
1753
|
-
Operator::I8x16Swizzle => {
|
1754
|
-
let (a, b) = pop2_with_bitcast(state, I8X16, builder);
|
1755
|
-
state.push1(builder.ins().swizzle(a, b))
|
1756
|
-
}
|
1757
|
-
Operator::I8x16Add | Operator::I16x8Add | Operator::I32x4Add | Operator::I64x2Add => {
|
1758
|
-
let (a, b) = pop2_with_bitcast(state, type_of(op), builder);
|
1759
|
-
state.push1(builder.ins().iadd(a, b))
|
1760
|
-
}
|
1761
|
-
Operator::I8x16AddSatS | Operator::I16x8AddSatS => {
|
1762
|
-
let (a, b) = pop2_with_bitcast(state, type_of(op), builder);
|
1763
|
-
state.push1(builder.ins().sadd_sat(a, b))
|
1764
|
-
}
|
1765
|
-
Operator::I8x16AddSatU | Operator::I16x8AddSatU => {
|
1766
|
-
let (a, b) = pop2_with_bitcast(state, type_of(op), builder);
|
1767
|
-
state.push1(builder.ins().uadd_sat(a, b))
|
1768
|
-
}
|
1769
|
-
Operator::I8x16Sub | Operator::I16x8Sub | Operator::I32x4Sub | Operator::I64x2Sub => {
|
1770
|
-
let (a, b) = pop2_with_bitcast(state, type_of(op), builder);
|
1771
|
-
state.push1(builder.ins().isub(a, b))
|
1772
|
-
}
|
1773
|
-
Operator::I8x16SubSatS | Operator::I16x8SubSatS => {
|
1774
|
-
let (a, b) = pop2_with_bitcast(state, type_of(op), builder);
|
1775
|
-
state.push1(builder.ins().ssub_sat(a, b))
|
1776
|
-
}
|
1777
|
-
Operator::I8x16SubSatU | Operator::I16x8SubSatU => {
|
1778
|
-
let (a, b) = pop2_with_bitcast(state, type_of(op), builder);
|
1779
|
-
state.push1(builder.ins().usub_sat(a, b))
|
1780
|
-
}
|
1781
|
-
Operator::I8x16MinS | Operator::I16x8MinS | Operator::I32x4MinS => {
|
1782
|
-
let (a, b) = pop2_with_bitcast(state, type_of(op), builder);
|
1783
|
-
state.push1(builder.ins().smin(a, b))
|
1784
|
-
}
|
1785
|
-
Operator::I8x16MinU | Operator::I16x8MinU | Operator::I32x4MinU => {
|
1786
|
-
let (a, b) = pop2_with_bitcast(state, type_of(op), builder);
|
1787
|
-
state.push1(builder.ins().umin(a, b))
|
1788
|
-
}
|
1789
|
-
Operator::I8x16MaxS | Operator::I16x8MaxS | Operator::I32x4MaxS => {
|
1790
|
-
let (a, b) = pop2_with_bitcast(state, type_of(op), builder);
|
1791
|
-
state.push1(builder.ins().smax(a, b))
|
1792
|
-
}
|
1793
|
-
Operator::I8x16MaxU | Operator::I16x8MaxU | Operator::I32x4MaxU => {
|
1794
|
-
let (a, b) = pop2_with_bitcast(state, type_of(op), builder);
|
1795
|
-
state.push1(builder.ins().umax(a, b))
|
1796
|
-
}
|
1797
|
-
Operator::I8x16AvgrU | Operator::I16x8AvgrU => {
|
1798
|
-
let (a, b) = pop2_with_bitcast(state, type_of(op), builder);
|
1799
|
-
state.push1(builder.ins().avg_round(a, b))
|
1800
|
-
}
|
1801
|
-
Operator::I8x16Neg | Operator::I16x8Neg | Operator::I32x4Neg | Operator::I64x2Neg => {
|
1802
|
-
let a = pop1_with_bitcast(state, type_of(op), builder);
|
1803
|
-
state.push1(builder.ins().ineg(a))
|
1804
|
-
}
|
1805
|
-
Operator::I8x16Abs | Operator::I16x8Abs | Operator::I32x4Abs | Operator::I64x2Abs => {
|
1806
|
-
let a = pop1_with_bitcast(state, type_of(op), builder);
|
1807
|
-
state.push1(builder.ins().iabs(a))
|
1808
|
-
}
|
1809
|
-
Operator::I16x8Mul | Operator::I32x4Mul | Operator::I64x2Mul => {
|
1810
|
-
let (a, b) = pop2_with_bitcast(state, type_of(op), builder);
|
1811
|
-
state.push1(builder.ins().imul(a, b))
|
1812
|
-
}
|
1813
|
-
Operator::V128Or => {
|
1814
|
-
let (a, b) = pop2_with_bitcast(state, type_of(op), builder);
|
1815
|
-
state.push1(builder.ins().bor(a, b))
|
1816
|
-
}
|
1817
|
-
Operator::V128Xor => {
|
1818
|
-
let (a, b) = pop2_with_bitcast(state, type_of(op), builder);
|
1819
|
-
state.push1(builder.ins().bxor(a, b))
|
1820
|
-
}
|
1821
|
-
Operator::V128And => {
|
1822
|
-
let (a, b) = pop2_with_bitcast(state, type_of(op), builder);
|
1823
|
-
state.push1(builder.ins().band(a, b))
|
1824
|
-
}
|
1825
|
-
Operator::V128AndNot => {
|
1826
|
-
let (a, b) = pop2_with_bitcast(state, type_of(op), builder);
|
1827
|
-
state.push1(builder.ins().band_not(a, b))
|
1828
|
-
}
|
1829
|
-
Operator::V128Not => {
|
1830
|
-
let a = state.pop1();
|
1831
|
-
state.push1(builder.ins().bnot(a));
|
1832
|
-
}
|
1833
|
-
Operator::I8x16Shl | Operator::I16x8Shl | Operator::I32x4Shl | Operator::I64x2Shl => {
|
1834
|
-
let (a, b) = state.pop2();
|
1835
|
-
let bitcast_a = optionally_bitcast_vector(a, type_of(op), builder);
|
1836
|
-
// The spec expects to shift with `b mod lanewidth`; This is directly compatible
|
1837
|
-
// with cranelift's instruction.
|
1838
|
-
state.push1(builder.ins().ishl(bitcast_a, b))
|
1839
|
-
}
|
1840
|
-
Operator::I8x16ShrU | Operator::I16x8ShrU | Operator::I32x4ShrU | Operator::I64x2ShrU => {
|
1841
|
-
let (a, b) = state.pop2();
|
1842
|
-
let bitcast_a = optionally_bitcast_vector(a, type_of(op), builder);
|
1843
|
-
// The spec expects to shift with `b mod lanewidth`; This is directly compatible
|
1844
|
-
// with cranelift's instruction.
|
1845
|
-
state.push1(builder.ins().ushr(bitcast_a, b))
|
1846
|
-
}
|
1847
|
-
Operator::I8x16ShrS | Operator::I16x8ShrS | Operator::I32x4ShrS | Operator::I64x2ShrS => {
|
1848
|
-
let (a, b) = state.pop2();
|
1849
|
-
let bitcast_a = optionally_bitcast_vector(a, type_of(op), builder);
|
1850
|
-
// The spec expects to shift with `b mod lanewidth`; This is directly compatible
|
1851
|
-
// with cranelift's instruction.
|
1852
|
-
state.push1(builder.ins().sshr(bitcast_a, b))
|
1853
|
-
}
|
1854
|
-
Operator::V128Bitselect => {
|
1855
|
-
let (a, b, c) = pop3_with_bitcast(state, I8X16, builder);
|
1856
|
-
// The CLIF operand ordering is slightly different and the types of all three
|
1857
|
-
// operands must match (hence the bitcast).
|
1858
|
-
state.push1(builder.ins().bitselect(c, a, b))
|
1859
|
-
}
|
1860
|
-
Operator::V128AnyTrue => {
|
1861
|
-
let a = pop1_with_bitcast(state, type_of(op), builder);
|
1862
|
-
let bool_result = builder.ins().vany_true(a);
|
1863
|
-
state.push1(builder.ins().uextend(I32, bool_result))
|
1864
|
-
}
|
1865
|
-
Operator::I8x16AllTrue
|
1866
|
-
| Operator::I16x8AllTrue
|
1867
|
-
| Operator::I32x4AllTrue
|
1868
|
-
| Operator::I64x2AllTrue => {
|
1869
|
-
let a = pop1_with_bitcast(state, type_of(op), builder);
|
1870
|
-
let bool_result = builder.ins().vall_true(a);
|
1871
|
-
state.push1(builder.ins().uextend(I32, bool_result))
|
1872
|
-
}
|
1873
|
-
Operator::I8x16Bitmask
|
1874
|
-
| Operator::I16x8Bitmask
|
1875
|
-
| Operator::I32x4Bitmask
|
1876
|
-
| Operator::I64x2Bitmask => {
|
1877
|
-
let a = pop1_with_bitcast(state, type_of(op), builder);
|
1878
|
-
state.push1(builder.ins().vhigh_bits(I32, a));
|
1879
|
-
}
|
1880
|
-
Operator::I8x16Eq | Operator::I16x8Eq | Operator::I32x4Eq | Operator::I64x2Eq => {
|
1881
|
-
translate_vector_icmp(IntCC::Equal, type_of(op), builder, state)
|
1882
|
-
}
|
1883
|
-
Operator::I8x16Ne | Operator::I16x8Ne | Operator::I32x4Ne | Operator::I64x2Ne => {
|
1884
|
-
translate_vector_icmp(IntCC::NotEqual, type_of(op), builder, state)
|
1885
|
-
}
|
1886
|
-
Operator::I8x16GtS | Operator::I16x8GtS | Operator::I32x4GtS | Operator::I64x2GtS => {
|
1887
|
-
translate_vector_icmp(IntCC::SignedGreaterThan, type_of(op), builder, state)
|
1888
|
-
}
|
1889
|
-
Operator::I8x16LtS | Operator::I16x8LtS | Operator::I32x4LtS | Operator::I64x2LtS => {
|
1890
|
-
translate_vector_icmp(IntCC::SignedLessThan, type_of(op), builder, state)
|
1891
|
-
}
|
1892
|
-
Operator::I8x16GtU | Operator::I16x8GtU | Operator::I32x4GtU => {
|
1893
|
-
translate_vector_icmp(IntCC::UnsignedGreaterThan, type_of(op), builder, state)
|
1894
|
-
}
|
1895
|
-
Operator::I8x16LtU | Operator::I16x8LtU | Operator::I32x4LtU => {
|
1896
|
-
translate_vector_icmp(IntCC::UnsignedLessThan, type_of(op), builder, state)
|
1897
|
-
}
|
1898
|
-
Operator::I8x16GeS | Operator::I16x8GeS | Operator::I32x4GeS | Operator::I64x2GeS => {
|
1899
|
-
translate_vector_icmp(IntCC::SignedGreaterThanOrEqual, type_of(op), builder, state)
|
1900
|
-
}
|
1901
|
-
Operator::I8x16LeS | Operator::I16x8LeS | Operator::I32x4LeS | Operator::I64x2LeS => {
|
1902
|
-
translate_vector_icmp(IntCC::SignedLessThanOrEqual, type_of(op), builder, state)
|
1903
|
-
}
|
1904
|
-
Operator::I8x16GeU | Operator::I16x8GeU | Operator::I32x4GeU => translate_vector_icmp(
|
1905
|
-
IntCC::UnsignedGreaterThanOrEqual,
|
1906
|
-
type_of(op),
|
1907
|
-
builder,
|
1908
|
-
state,
|
1909
|
-
),
|
1910
|
-
Operator::I8x16LeU | Operator::I16x8LeU | Operator::I32x4LeU => {
|
1911
|
-
translate_vector_icmp(IntCC::UnsignedLessThanOrEqual, type_of(op), builder, state)
|
1912
|
-
}
|
1913
|
-
Operator::F32x4Eq | Operator::F64x2Eq => {
|
1914
|
-
translate_vector_fcmp(FloatCC::Equal, type_of(op), builder, state)
|
1915
|
-
}
|
1916
|
-
Operator::F32x4Ne | Operator::F64x2Ne => {
|
1917
|
-
translate_vector_fcmp(FloatCC::NotEqual, type_of(op), builder, state)
|
1918
|
-
}
|
1919
|
-
Operator::F32x4Lt | Operator::F64x2Lt => {
|
1920
|
-
translate_vector_fcmp(FloatCC::LessThan, type_of(op), builder, state)
|
1921
|
-
}
|
1922
|
-
Operator::F32x4Gt | Operator::F64x2Gt => {
|
1923
|
-
translate_vector_fcmp(FloatCC::GreaterThan, type_of(op), builder, state)
|
1924
|
-
}
|
1925
|
-
Operator::F32x4Le | Operator::F64x2Le => {
|
1926
|
-
translate_vector_fcmp(FloatCC::LessThanOrEqual, type_of(op), builder, state)
|
1927
|
-
}
|
1928
|
-
Operator::F32x4Ge | Operator::F64x2Ge => {
|
1929
|
-
translate_vector_fcmp(FloatCC::GreaterThanOrEqual, type_of(op), builder, state)
|
1930
|
-
}
|
1931
|
-
Operator::F32x4Add | Operator::F64x2Add => {
|
1932
|
-
let (a, b) = pop2_with_bitcast(state, type_of(op), builder);
|
1933
|
-
state.push1(builder.ins().fadd(a, b))
|
1934
|
-
}
|
1935
|
-
Operator::F32x4Sub | Operator::F64x2Sub => {
|
1936
|
-
let (a, b) = pop2_with_bitcast(state, type_of(op), builder);
|
1937
|
-
state.push1(builder.ins().fsub(a, b))
|
1938
|
-
}
|
1939
|
-
Operator::F32x4Mul | Operator::F64x2Mul => {
|
1940
|
-
let (a, b) = pop2_with_bitcast(state, type_of(op), builder);
|
1941
|
-
state.push1(builder.ins().fmul(a, b))
|
1942
|
-
}
|
1943
|
-
Operator::F32x4Div | Operator::F64x2Div => {
|
1944
|
-
let (a, b) = pop2_with_bitcast(state, type_of(op), builder);
|
1945
|
-
state.push1(builder.ins().fdiv(a, b))
|
1946
|
-
}
|
1947
|
-
Operator::F32x4Max | Operator::F64x2Max => {
|
1948
|
-
let (a, b) = pop2_with_bitcast(state, type_of(op), builder);
|
1949
|
-
state.push1(builder.ins().fmax(a, b))
|
1950
|
-
}
|
1951
|
-
Operator::F32x4Min | Operator::F64x2Min => {
|
1952
|
-
let (a, b) = pop2_with_bitcast(state, type_of(op), builder);
|
1953
|
-
state.push1(builder.ins().fmin(a, b))
|
1954
|
-
}
|
1955
|
-
Operator::F32x4PMax | Operator::F64x2PMax => {
|
1956
|
-
// Note the careful ordering here with respect to `fcmp` and
|
1957
|
-
// `bitselect`. This matches the spec definition of:
|
1958
|
-
//
|
1959
|
-
// fpmax(z1, z2) =
|
1960
|
-
// * If z1 is less than z2 then return z2.
|
1961
|
-
// * Else return z1.
|
1962
|
-
let ty = type_of(op);
|
1963
|
-
let (a, b) = pop2_with_bitcast(state, ty, builder);
|
1964
|
-
let cmp = builder.ins().fcmp(FloatCC::LessThan, a, b);
|
1965
|
-
let cmp = optionally_bitcast_vector(cmp, ty, builder);
|
1966
|
-
state.push1(builder.ins().bitselect(cmp, b, a))
|
1967
|
-
}
|
1968
|
-
Operator::F32x4PMin | Operator::F64x2PMin => {
|
1969
|
-
// Note the careful ordering here which is similar to `pmax` above:
|
1970
|
-
//
|
1971
|
-
// fpmin(z1, z2) =
|
1972
|
-
// * If z2 is less than z1 then return z2.
|
1973
|
-
// * Else return z1.
|
1974
|
-
let ty = type_of(op);
|
1975
|
-
let (a, b) = pop2_with_bitcast(state, ty, builder);
|
1976
|
-
let cmp = builder.ins().fcmp(FloatCC::LessThan, b, a);
|
1977
|
-
let cmp = optionally_bitcast_vector(cmp, ty, builder);
|
1978
|
-
state.push1(builder.ins().bitselect(cmp, b, a))
|
1979
|
-
}
|
1980
|
-
Operator::F32x4Sqrt | Operator::F64x2Sqrt => {
|
1981
|
-
let a = pop1_with_bitcast(state, type_of(op), builder);
|
1982
|
-
state.push1(builder.ins().sqrt(a))
|
1983
|
-
}
|
1984
|
-
Operator::F32x4Neg | Operator::F64x2Neg => {
|
1985
|
-
let a = pop1_with_bitcast(state, type_of(op), builder);
|
1986
|
-
state.push1(builder.ins().fneg(a))
|
1987
|
-
}
|
1988
|
-
Operator::F32x4Abs | Operator::F64x2Abs => {
|
1989
|
-
let a = pop1_with_bitcast(state, type_of(op), builder);
|
1990
|
-
state.push1(builder.ins().fabs(a))
|
1991
|
-
}
|
1992
|
-
Operator::F32x4ConvertI32x4S => {
|
1993
|
-
let a = pop1_with_bitcast(state, I32X4, builder);
|
1994
|
-
state.push1(builder.ins().fcvt_from_sint(F32X4, a))
|
1995
|
-
}
|
1996
|
-
Operator::F32x4ConvertI32x4U => {
|
1997
|
-
let a = pop1_with_bitcast(state, I32X4, builder);
|
1998
|
-
state.push1(builder.ins().fcvt_from_uint(F32X4, a))
|
1999
|
-
}
|
2000
|
-
Operator::F64x2ConvertLowI32x4S => {
|
2001
|
-
let a = pop1_with_bitcast(state, I32X4, builder);
|
2002
|
-
let widened_a = builder.ins().swiden_low(a);
|
2003
|
-
state.push1(builder.ins().fcvt_from_sint(F64X2, widened_a));
|
2004
|
-
}
|
2005
|
-
Operator::F64x2ConvertLowI32x4U => {
|
2006
|
-
let a = pop1_with_bitcast(state, I32X4, builder);
|
2007
|
-
let widened_a = builder.ins().uwiden_low(a);
|
2008
|
-
state.push1(builder.ins().fcvt_from_uint(F64X2, widened_a));
|
2009
|
-
}
|
2010
|
-
Operator::F64x2PromoteLowF32x4 => {
|
2011
|
-
let a = pop1_with_bitcast(state, F32X4, builder);
|
2012
|
-
state.push1(builder.ins().fvpromote_low(a));
|
2013
|
-
}
|
2014
|
-
Operator::F32x4DemoteF64x2Zero => {
|
2015
|
-
let a = pop1_with_bitcast(state, F64X2, builder);
|
2016
|
-
state.push1(builder.ins().fvdemote(a));
|
2017
|
-
}
|
2018
|
-
Operator::I32x4TruncSatF32x4S => {
|
2019
|
-
let a = pop1_with_bitcast(state, F32X4, builder);
|
2020
|
-
state.push1(builder.ins().fcvt_to_sint_sat(I32X4, a))
|
2021
|
-
}
|
2022
|
-
Operator::I32x4TruncSatF64x2SZero => {
|
2023
|
-
let a = pop1_with_bitcast(state, F64X2, builder);
|
2024
|
-
let converted_a = builder.ins().fcvt_to_sint_sat(I64X2, a);
|
2025
|
-
let handle = builder.func.dfg.constants.insert(vec![0u8; 16].into());
|
2026
|
-
let zero = builder.ins().vconst(I64X2, handle);
|
2027
|
-
|
2028
|
-
state.push1(builder.ins().snarrow(converted_a, zero));
|
2029
|
-
}
|
2030
|
-
|
2031
|
-
// FIXME(#5913): the relaxed instructions here are translated the same
|
2032
|
-
// as the saturating instructions, even when the code generator
|
2033
|
-
// configuration allow for different semantics across hosts. On x86,
|
2034
|
-
// however, it's theoretically possible to have a slightly more optimal
|
2035
|
-
// lowering which accounts for NaN differently, although the lowering is
|
2036
|
-
// still not trivial (e.g. one instruction). At this time the
|
2037
|
-
// more-optimal-but-still-large lowering for x86 is not implemented so
|
2038
|
-
// the relaxed instructions are listed here instead of down below with
|
2039
|
-
// the other relaxed instructions. An x86-specific implementation (or
|
2040
|
-
// perhaps for other backends too) should be added and the codegen for
|
2041
|
-
// the relaxed instruction should conditionally be different.
|
2042
|
-
Operator::I32x4RelaxedTruncF32x4U | Operator::I32x4TruncSatF32x4U => {
|
2043
|
-
let a = pop1_with_bitcast(state, F32X4, builder);
|
2044
|
-
state.push1(builder.ins().fcvt_to_uint_sat(I32X4, a))
|
2045
|
-
}
|
2046
|
-
Operator::I32x4RelaxedTruncF64x2UZero | Operator::I32x4TruncSatF64x2UZero => {
|
2047
|
-
let a = pop1_with_bitcast(state, F64X2, builder);
|
2048
|
-
let converted_a = builder.ins().fcvt_to_uint_sat(I64X2, a);
|
2049
|
-
let handle = builder.func.dfg.constants.insert(vec![0u8; 16].into());
|
2050
|
-
let zero = builder.ins().vconst(I64X2, handle);
|
2051
|
-
|
2052
|
-
state.push1(builder.ins().uunarrow(converted_a, zero));
|
2053
|
-
}
|
2054
|
-
|
2055
|
-
Operator::I8x16NarrowI16x8S => {
|
2056
|
-
let (a, b) = pop2_with_bitcast(state, I16X8, builder);
|
2057
|
-
state.push1(builder.ins().snarrow(a, b))
|
2058
|
-
}
|
2059
|
-
Operator::I16x8NarrowI32x4S => {
|
2060
|
-
let (a, b) = pop2_with_bitcast(state, I32X4, builder);
|
2061
|
-
state.push1(builder.ins().snarrow(a, b))
|
2062
|
-
}
|
2063
|
-
Operator::I8x16NarrowI16x8U => {
|
2064
|
-
let (a, b) = pop2_with_bitcast(state, I16X8, builder);
|
2065
|
-
state.push1(builder.ins().unarrow(a, b))
|
2066
|
-
}
|
2067
|
-
Operator::I16x8NarrowI32x4U => {
|
2068
|
-
let (a, b) = pop2_with_bitcast(state, I32X4, builder);
|
2069
|
-
state.push1(builder.ins().unarrow(a, b))
|
2070
|
-
}
|
2071
|
-
Operator::I16x8ExtendLowI8x16S => {
|
2072
|
-
let a = pop1_with_bitcast(state, I8X16, builder);
|
2073
|
-
state.push1(builder.ins().swiden_low(a))
|
2074
|
-
}
|
2075
|
-
Operator::I16x8ExtendHighI8x16S => {
|
2076
|
-
let a = pop1_with_bitcast(state, I8X16, builder);
|
2077
|
-
state.push1(builder.ins().swiden_high(a))
|
2078
|
-
}
|
2079
|
-
Operator::I16x8ExtendLowI8x16U => {
|
2080
|
-
let a = pop1_with_bitcast(state, I8X16, builder);
|
2081
|
-
state.push1(builder.ins().uwiden_low(a))
|
2082
|
-
}
|
2083
|
-
Operator::I16x8ExtendHighI8x16U => {
|
2084
|
-
let a = pop1_with_bitcast(state, I8X16, builder);
|
2085
|
-
state.push1(builder.ins().uwiden_high(a))
|
2086
|
-
}
|
2087
|
-
Operator::I32x4ExtendLowI16x8S => {
|
2088
|
-
let a = pop1_with_bitcast(state, I16X8, builder);
|
2089
|
-
state.push1(builder.ins().swiden_low(a))
|
2090
|
-
}
|
2091
|
-
Operator::I32x4ExtendHighI16x8S => {
|
2092
|
-
let a = pop1_with_bitcast(state, I16X8, builder);
|
2093
|
-
state.push1(builder.ins().swiden_high(a))
|
2094
|
-
}
|
2095
|
-
Operator::I32x4ExtendLowI16x8U => {
|
2096
|
-
let a = pop1_with_bitcast(state, I16X8, builder);
|
2097
|
-
state.push1(builder.ins().uwiden_low(a))
|
2098
|
-
}
|
2099
|
-
Operator::I32x4ExtendHighI16x8U => {
|
2100
|
-
let a = pop1_with_bitcast(state, I16X8, builder);
|
2101
|
-
state.push1(builder.ins().uwiden_high(a))
|
2102
|
-
}
|
2103
|
-
Operator::I64x2ExtendLowI32x4S => {
|
2104
|
-
let a = pop1_with_bitcast(state, I32X4, builder);
|
2105
|
-
state.push1(builder.ins().swiden_low(a))
|
2106
|
-
}
|
2107
|
-
Operator::I64x2ExtendHighI32x4S => {
|
2108
|
-
let a = pop1_with_bitcast(state, I32X4, builder);
|
2109
|
-
state.push1(builder.ins().swiden_high(a))
|
2110
|
-
}
|
2111
|
-
Operator::I64x2ExtendLowI32x4U => {
|
2112
|
-
let a = pop1_with_bitcast(state, I32X4, builder);
|
2113
|
-
state.push1(builder.ins().uwiden_low(a))
|
2114
|
-
}
|
2115
|
-
Operator::I64x2ExtendHighI32x4U => {
|
2116
|
-
let a = pop1_with_bitcast(state, I32X4, builder);
|
2117
|
-
state.push1(builder.ins().uwiden_high(a))
|
2118
|
-
}
|
2119
|
-
Operator::I16x8ExtAddPairwiseI8x16S => {
|
2120
|
-
let a = pop1_with_bitcast(state, I8X16, builder);
|
2121
|
-
let widen_low = builder.ins().swiden_low(a);
|
2122
|
-
let widen_high = builder.ins().swiden_high(a);
|
2123
|
-
state.push1(builder.ins().iadd_pairwise(widen_low, widen_high));
|
2124
|
-
}
|
2125
|
-
Operator::I32x4ExtAddPairwiseI16x8S => {
|
2126
|
-
let a = pop1_with_bitcast(state, I16X8, builder);
|
2127
|
-
let widen_low = builder.ins().swiden_low(a);
|
2128
|
-
let widen_high = builder.ins().swiden_high(a);
|
2129
|
-
state.push1(builder.ins().iadd_pairwise(widen_low, widen_high));
|
2130
|
-
}
|
2131
|
-
Operator::I16x8ExtAddPairwiseI8x16U => {
|
2132
|
-
let a = pop1_with_bitcast(state, I8X16, builder);
|
2133
|
-
let widen_low = builder.ins().uwiden_low(a);
|
2134
|
-
let widen_high = builder.ins().uwiden_high(a);
|
2135
|
-
state.push1(builder.ins().iadd_pairwise(widen_low, widen_high));
|
2136
|
-
}
|
2137
|
-
Operator::I32x4ExtAddPairwiseI16x8U => {
|
2138
|
-
let a = pop1_with_bitcast(state, I16X8, builder);
|
2139
|
-
let widen_low = builder.ins().uwiden_low(a);
|
2140
|
-
let widen_high = builder.ins().uwiden_high(a);
|
2141
|
-
state.push1(builder.ins().iadd_pairwise(widen_low, widen_high));
|
2142
|
-
}
|
2143
|
-
Operator::F32x4Ceil | Operator::F64x2Ceil => {
|
2144
|
-
// This is something of a misuse of `type_of`, because that produces the return type
|
2145
|
-
// of `op`. In this case we want the arg type, but we know it's the same as the
|
2146
|
-
// return type. Same for the 3 cases below.
|
2147
|
-
let arg = pop1_with_bitcast(state, type_of(op), builder);
|
2148
|
-
state.push1(builder.ins().ceil(arg));
|
2149
|
-
}
|
2150
|
-
Operator::F32x4Floor | Operator::F64x2Floor => {
|
2151
|
-
let arg = pop1_with_bitcast(state, type_of(op), builder);
|
2152
|
-
state.push1(builder.ins().floor(arg));
|
2153
|
-
}
|
2154
|
-
Operator::F32x4Trunc | Operator::F64x2Trunc => {
|
2155
|
-
let arg = pop1_with_bitcast(state, type_of(op), builder);
|
2156
|
-
state.push1(builder.ins().trunc(arg));
|
2157
|
-
}
|
2158
|
-
Operator::F32x4Nearest | Operator::F64x2Nearest => {
|
2159
|
-
let arg = pop1_with_bitcast(state, type_of(op), builder);
|
2160
|
-
state.push1(builder.ins().nearest(arg));
|
2161
|
-
}
|
2162
|
-
Operator::I32x4DotI16x8S => {
|
2163
|
-
let (a, b) = pop2_with_bitcast(state, I16X8, builder);
|
2164
|
-
let alow = builder.ins().swiden_low(a);
|
2165
|
-
let blow = builder.ins().swiden_low(b);
|
2166
|
-
let low = builder.ins().imul(alow, blow);
|
2167
|
-
let ahigh = builder.ins().swiden_high(a);
|
2168
|
-
let bhigh = builder.ins().swiden_high(b);
|
2169
|
-
let high = builder.ins().imul(ahigh, bhigh);
|
2170
|
-
state.push1(builder.ins().iadd_pairwise(low, high));
|
2171
|
-
}
|
2172
|
-
Operator::I8x16Popcnt => {
|
2173
|
-
let arg = pop1_with_bitcast(state, type_of(op), builder);
|
2174
|
-
state.push1(builder.ins().popcnt(arg));
|
2175
|
-
}
|
2176
|
-
Operator::I16x8Q15MulrSatS => {
|
2177
|
-
let (a, b) = pop2_with_bitcast(state, I16X8, builder);
|
2178
|
-
state.push1(builder.ins().sqmul_round_sat(a, b))
|
2179
|
-
}
|
2180
|
-
Operator::I16x8ExtMulLowI8x16S => {
|
2181
|
-
let (a, b) = pop2_with_bitcast(state, I8X16, builder);
|
2182
|
-
let a_low = builder.ins().swiden_low(a);
|
2183
|
-
let b_low = builder.ins().swiden_low(b);
|
2184
|
-
state.push1(builder.ins().imul(a_low, b_low));
|
2185
|
-
}
|
2186
|
-
Operator::I16x8ExtMulHighI8x16S => {
|
2187
|
-
let (a, b) = pop2_with_bitcast(state, I8X16, builder);
|
2188
|
-
let a_high = builder.ins().swiden_high(a);
|
2189
|
-
let b_high = builder.ins().swiden_high(b);
|
2190
|
-
state.push1(builder.ins().imul(a_high, b_high));
|
2191
|
-
}
|
2192
|
-
Operator::I16x8ExtMulLowI8x16U => {
|
2193
|
-
let (a, b) = pop2_with_bitcast(state, I8X16, builder);
|
2194
|
-
let a_low = builder.ins().uwiden_low(a);
|
2195
|
-
let b_low = builder.ins().uwiden_low(b);
|
2196
|
-
state.push1(builder.ins().imul(a_low, b_low));
|
2197
|
-
}
|
2198
|
-
Operator::I16x8ExtMulHighI8x16U => {
|
2199
|
-
let (a, b) = pop2_with_bitcast(state, I8X16, builder);
|
2200
|
-
let a_high = builder.ins().uwiden_high(a);
|
2201
|
-
let b_high = builder.ins().uwiden_high(b);
|
2202
|
-
state.push1(builder.ins().imul(a_high, b_high));
|
2203
|
-
}
|
2204
|
-
Operator::I32x4ExtMulLowI16x8S => {
|
2205
|
-
let (a, b) = pop2_with_bitcast(state, I16X8, builder);
|
2206
|
-
let a_low = builder.ins().swiden_low(a);
|
2207
|
-
let b_low = builder.ins().swiden_low(b);
|
2208
|
-
state.push1(builder.ins().imul(a_low, b_low));
|
2209
|
-
}
|
2210
|
-
Operator::I32x4ExtMulHighI16x8S => {
|
2211
|
-
let (a, b) = pop2_with_bitcast(state, I16X8, builder);
|
2212
|
-
let a_high = builder.ins().swiden_high(a);
|
2213
|
-
let b_high = builder.ins().swiden_high(b);
|
2214
|
-
state.push1(builder.ins().imul(a_high, b_high));
|
2215
|
-
}
|
2216
|
-
Operator::I32x4ExtMulLowI16x8U => {
|
2217
|
-
let (a, b) = pop2_with_bitcast(state, I16X8, builder);
|
2218
|
-
let a_low = builder.ins().uwiden_low(a);
|
2219
|
-
let b_low = builder.ins().uwiden_low(b);
|
2220
|
-
state.push1(builder.ins().imul(a_low, b_low));
|
2221
|
-
}
|
2222
|
-
Operator::I32x4ExtMulHighI16x8U => {
|
2223
|
-
let (a, b) = pop2_with_bitcast(state, I16X8, builder);
|
2224
|
-
let a_high = builder.ins().uwiden_high(a);
|
2225
|
-
let b_high = builder.ins().uwiden_high(b);
|
2226
|
-
state.push1(builder.ins().imul(a_high, b_high));
|
2227
|
-
}
|
2228
|
-
Operator::I64x2ExtMulLowI32x4S => {
|
2229
|
-
let (a, b) = pop2_with_bitcast(state, I32X4, builder);
|
2230
|
-
let a_low = builder.ins().swiden_low(a);
|
2231
|
-
let b_low = builder.ins().swiden_low(b);
|
2232
|
-
state.push1(builder.ins().imul(a_low, b_low));
|
2233
|
-
}
|
2234
|
-
Operator::I64x2ExtMulHighI32x4S => {
|
2235
|
-
let (a, b) = pop2_with_bitcast(state, I32X4, builder);
|
2236
|
-
let a_high = builder.ins().swiden_high(a);
|
2237
|
-
let b_high = builder.ins().swiden_high(b);
|
2238
|
-
state.push1(builder.ins().imul(a_high, b_high));
|
2239
|
-
}
|
2240
|
-
Operator::I64x2ExtMulLowI32x4U => {
|
2241
|
-
let (a, b) = pop2_with_bitcast(state, I32X4, builder);
|
2242
|
-
let a_low = builder.ins().uwiden_low(a);
|
2243
|
-
let b_low = builder.ins().uwiden_low(b);
|
2244
|
-
state.push1(builder.ins().imul(a_low, b_low));
|
2245
|
-
}
|
2246
|
-
Operator::I64x2ExtMulHighI32x4U => {
|
2247
|
-
let (a, b) = pop2_with_bitcast(state, I32X4, builder);
|
2248
|
-
let a_high = builder.ins().uwiden_high(a);
|
2249
|
-
let b_high = builder.ins().uwiden_high(b);
|
2250
|
-
state.push1(builder.ins().imul(a_high, b_high));
|
2251
|
-
}
|
2252
|
-
Operator::MemoryDiscard { .. } => {
|
2253
|
-
return Err(wasm_unsupported!(
|
2254
|
-
"proposed memory-control operator {:?}",
|
2255
|
-
op
|
2256
|
-
));
|
2257
|
-
}
|
2258
|
-
|
2259
|
-
Operator::F32x4RelaxedMax | Operator::F64x2RelaxedMax => {
|
2260
|
-
let ty = type_of(op);
|
2261
|
-
let (a, b) = pop2_with_bitcast(state, ty, builder);
|
2262
|
-
state.push1(
|
2263
|
-
if environ.relaxed_simd_deterministic() || !environ.is_x86() {
|
2264
|
-
// Deterministic semantics match the `fmax` instruction, or
|
2265
|
-
// the `fAAxBB.max` wasm instruction.
|
2266
|
-
builder.ins().fmax(a, b)
|
2267
|
-
} else {
|
2268
|
-
// Note that this matches the `pmax` translation which has
|
2269
|
-
// careful ordering of its operands to trigger
|
2270
|
-
// pattern-matches in the x86 backend.
|
2271
|
-
let cmp = builder.ins().fcmp(FloatCC::LessThan, a, b);
|
2272
|
-
let cmp = optionally_bitcast_vector(cmp, ty, builder);
|
2273
|
-
builder.ins().bitselect(cmp, b, a)
|
2274
|
-
},
|
2275
|
-
)
|
2276
|
-
}
|
2277
|
-
|
2278
|
-
Operator::F32x4RelaxedMin | Operator::F64x2RelaxedMin => {
|
2279
|
-
let ty = type_of(op);
|
2280
|
-
let (a, b) = pop2_with_bitcast(state, ty, builder);
|
2281
|
-
state.push1(
|
2282
|
-
if environ.relaxed_simd_deterministic() || !environ.is_x86() {
|
2283
|
-
// Deterministic semantics match the `fmin` instruction, or
|
2284
|
-
// the `fAAxBB.min` wasm instruction.
|
2285
|
-
builder.ins().fmin(a, b)
|
2286
|
-
} else {
|
2287
|
-
// Note that this matches the `pmin` translation which has
|
2288
|
-
// careful ordering of its operands to trigger
|
2289
|
-
// pattern-matches in the x86 backend.
|
2290
|
-
let cmp = builder.ins().fcmp(FloatCC::LessThan, b, a);
|
2291
|
-
let cmp = optionally_bitcast_vector(cmp, ty, builder);
|
2292
|
-
builder.ins().bitselect(cmp, b, a)
|
2293
|
-
},
|
2294
|
-
);
|
2295
|
-
}
|
2296
|
-
|
2297
|
-
Operator::I8x16RelaxedSwizzle => {
|
2298
|
-
let (a, b) = pop2_with_bitcast(state, I8X16, builder);
|
2299
|
-
state.push1(
|
2300
|
-
if environ.relaxed_simd_deterministic()
|
2301
|
-
|| !environ.use_x86_pshufb_for_relaxed_swizzle()
|
2302
|
-
{
|
2303
|
-
// Deterministic semantics match the `i8x16.swizzle`
|
2304
|
-
// instruction which is the CLIF `swizzle`.
|
2305
|
-
builder.ins().swizzle(a, b)
|
2306
|
-
} else {
|
2307
|
-
builder.ins().x86_pshufb(a, b)
|
2308
|
-
},
|
2309
|
-
);
|
2310
|
-
}
|
2311
|
-
|
2312
|
-
Operator::F32x4RelaxedMadd | Operator::F64x2RelaxedMadd => {
|
2313
|
-
let (a, b, c) = pop3_with_bitcast(state, type_of(op), builder);
|
2314
|
-
state.push1(
|
2315
|
-
if environ.relaxed_simd_deterministic() || environ.has_native_fma() {
|
2316
|
-
// Deterministic semantics are "fused multiply and add"
|
2317
|
-
// which the CLIF `fma` guarantees.
|
2318
|
-
builder.ins().fma(a, b, c)
|
2319
|
-
} else {
|
2320
|
-
let mul = builder.ins().fmul(a, b);
|
2321
|
-
builder.ins().fadd(mul, c)
|
2322
|
-
},
|
2323
|
-
);
|
2324
|
-
}
|
2325
|
-
Operator::F32x4RelaxedNmadd | Operator::F64x2RelaxedNmadd => {
|
2326
|
-
let (a, b, c) = pop3_with_bitcast(state, type_of(op), builder);
|
2327
|
-
let a = builder.ins().fneg(a);
|
2328
|
-
state.push1(
|
2329
|
-
if environ.relaxed_simd_deterministic() || environ.has_native_fma() {
|
2330
|
-
// Deterministic semantics are "fused multiply and add"
|
2331
|
-
// which the CLIF `fma` guarantees.
|
2332
|
-
builder.ins().fma(a, b, c)
|
2333
|
-
} else {
|
2334
|
-
let mul = builder.ins().fmul(a, b);
|
2335
|
-
builder.ins().fadd(mul, c)
|
2336
|
-
},
|
2337
|
-
);
|
2338
|
-
}
|
2339
|
-
|
2340
|
-
Operator::I8x16RelaxedLaneselect
|
2341
|
-
| Operator::I16x8RelaxedLaneselect
|
2342
|
-
| Operator::I32x4RelaxedLaneselect
|
2343
|
-
| Operator::I64x2RelaxedLaneselect => {
|
2344
|
-
let ty = type_of(op);
|
2345
|
-
let (a, b, c) = pop3_with_bitcast(state, ty, builder);
|
2346
|
-
// Note that the variable swaps here are intentional due to
|
2347
|
-
// the difference of the order of the wasm op and the clif
|
2348
|
-
// op.
|
2349
|
-
state.push1(
|
2350
|
-
if environ.relaxed_simd_deterministic()
|
2351
|
-
|| !environ.use_x86_blendv_for_relaxed_laneselect(ty)
|
2352
|
-
{
|
2353
|
-
// Deterministic semantics are a `bitselect` along the lines
|
2354
|
-
// of the wasm `v128.bitselect` instruction.
|
2355
|
-
builder.ins().bitselect(c, a, b)
|
2356
|
-
} else {
|
2357
|
-
builder.ins().x86_blendv(c, a, b)
|
2358
|
-
},
|
2359
|
-
);
|
2360
|
-
}
|
2361
|
-
|
2362
|
-
Operator::I32x4RelaxedTruncF32x4S => {
|
2363
|
-
let a = pop1_with_bitcast(state, F32X4, builder);
|
2364
|
-
state.push1(
|
2365
|
-
if environ.relaxed_simd_deterministic() || !environ.is_x86() {
|
2366
|
-
// Deterministic semantics are to match the
|
2367
|
-
// `i32x4.trunc_sat_f32x4_s` instruction.
|
2368
|
-
builder.ins().fcvt_to_sint_sat(I32X4, a)
|
2369
|
-
} else {
|
2370
|
-
builder.ins().x86_cvtt2dq(I32X4, a)
|
2371
|
-
},
|
2372
|
-
)
|
2373
|
-
}
|
2374
|
-
Operator::I32x4RelaxedTruncF64x2SZero => {
|
2375
|
-
let a = pop1_with_bitcast(state, F64X2, builder);
|
2376
|
-
let converted_a = if environ.relaxed_simd_deterministic() || !environ.is_x86() {
|
2377
|
-
// Deterministic semantics are to match the
|
2378
|
-
// `i32x4.trunc_sat_f64x2_s_zero` instruction.
|
2379
|
-
builder.ins().fcvt_to_sint_sat(I64X2, a)
|
2380
|
-
} else {
|
2381
|
-
builder.ins().x86_cvtt2dq(I64X2, a)
|
2382
|
-
};
|
2383
|
-
let handle = builder.func.dfg.constants.insert(vec![0u8; 16].into());
|
2384
|
-
let zero = builder.ins().vconst(I64X2, handle);
|
2385
|
-
|
2386
|
-
state.push1(builder.ins().snarrow(converted_a, zero));
|
2387
|
-
}
|
2388
|
-
Operator::I16x8RelaxedQ15mulrS => {
|
2389
|
-
let (a, b) = pop2_with_bitcast(state, I16X8, builder);
|
2390
|
-
state.push1(
|
2391
|
-
if environ.relaxed_simd_deterministic()
|
2392
|
-
|| !environ.use_x86_pmulhrsw_for_relaxed_q15mul()
|
2393
|
-
{
|
2394
|
-
// Deterministic semantics are to match the
|
2395
|
-
// `i16x8.q15mulr_sat_s` instruction.
|
2396
|
-
builder.ins().sqmul_round_sat(a, b)
|
2397
|
-
} else {
|
2398
|
-
builder.ins().x86_pmulhrsw(a, b)
|
2399
|
-
},
|
2400
|
-
);
|
2401
|
-
}
|
2402
|
-
Operator::I16x8RelaxedDotI8x16I7x16S => {
|
2403
|
-
let (a, b) = pop2_with_bitcast(state, I8X16, builder);
|
2404
|
-
state.push1(
|
2405
|
-
if environ.relaxed_simd_deterministic() || !environ.use_x86_pmaddubsw_for_dot() {
|
2406
|
-
// Deterministic semantics are to treat both operands as
|
2407
|
-
// signed integers and perform the dot product.
|
2408
|
-
let alo = builder.ins().swiden_low(a);
|
2409
|
-
let blo = builder.ins().swiden_low(b);
|
2410
|
-
let lo = builder.ins().imul(alo, blo);
|
2411
|
-
let ahi = builder.ins().swiden_high(a);
|
2412
|
-
let bhi = builder.ins().swiden_high(b);
|
2413
|
-
let hi = builder.ins().imul(ahi, bhi);
|
2414
|
-
builder.ins().iadd_pairwise(lo, hi)
|
2415
|
-
} else {
|
2416
|
-
builder.ins().x86_pmaddubsw(a, b)
|
2417
|
-
},
|
2418
|
-
);
|
2419
|
-
}
|
2420
|
-
|
2421
|
-
Operator::I32x4RelaxedDotI8x16I7x16AddS => {
|
2422
|
-
let c = pop1_with_bitcast(state, I32X4, builder);
|
2423
|
-
let (a, b) = pop2_with_bitcast(state, I8X16, builder);
|
2424
|
-
let dot =
|
2425
|
-
if environ.relaxed_simd_deterministic() || !environ.use_x86_pmaddubsw_for_dot() {
|
2426
|
-
// Deterministic semantics are to treat both operands as
|
2427
|
-
// signed integers and perform the dot product.
|
2428
|
-
let alo = builder.ins().swiden_low(a);
|
2429
|
-
let blo = builder.ins().swiden_low(b);
|
2430
|
-
let lo = builder.ins().imul(alo, blo);
|
2431
|
-
let ahi = builder.ins().swiden_high(a);
|
2432
|
-
let bhi = builder.ins().swiden_high(b);
|
2433
|
-
let hi = builder.ins().imul(ahi, bhi);
|
2434
|
-
builder.ins().iadd_pairwise(lo, hi)
|
2435
|
-
} else {
|
2436
|
-
builder.ins().x86_pmaddubsw(a, b)
|
2437
|
-
};
|
2438
|
-
let dotlo = builder.ins().swiden_low(dot);
|
2439
|
-
let dothi = builder.ins().swiden_high(dot);
|
2440
|
-
let dot32 = builder.ins().iadd_pairwise(dotlo, dothi);
|
2441
|
-
state.push1(builder.ins().iadd(dot32, c));
|
2442
|
-
}
|
2443
|
-
|
2444
|
-
Operator::BrOnNull { relative_depth } => {
|
2445
|
-
let r = state.pop1();
|
2446
|
-
let (br_destination, inputs) = translate_br_if_args(*relative_depth, state);
|
2447
|
-
let is_null = environ.translate_ref_is_null(builder.cursor(), r)?;
|
2448
|
-
let else_block = builder.create_block();
|
2449
|
-
canonicalise_brif(builder, is_null, br_destination, inputs, else_block, &[]);
|
2450
|
-
|
2451
|
-
builder.seal_block(else_block); // The only predecessor is the current block.
|
2452
|
-
builder.switch_to_block(else_block);
|
2453
|
-
state.push1(r);
|
2454
|
-
}
|
2455
|
-
Operator::BrOnNonNull { relative_depth } => {
|
2456
|
-
// We write this a bit differently from the spec to avoid an extra
|
2457
|
-
// block/branch and the typed accounting thereof. Instead of the
|
2458
|
-
// spec's approach, it's described as such:
|
2459
|
-
// Peek the value val from the stack.
|
2460
|
-
// If val is ref.null ht, then: pop the value val from the stack.
|
2461
|
-
// Else: Execute the instruction (br relative_depth).
|
2462
|
-
let is_null = environ.translate_ref_is_null(builder.cursor(), state.peek1())?;
|
2463
|
-
let (br_destination, inputs) = translate_br_if_args(*relative_depth, state);
|
2464
|
-
let else_block = builder.create_block();
|
2465
|
-
canonicalise_brif(builder, is_null, else_block, &[], br_destination, inputs);
|
2466
|
-
|
2467
|
-
// In the null case, pop the ref
|
2468
|
-
state.pop1();
|
2469
|
-
|
2470
|
-
builder.seal_block(else_block); // The only predecessor is the current block.
|
2471
|
-
|
2472
|
-
// The rest of the translation operates on our is null case, which is
|
2473
|
-
// currently an empty block
|
2474
|
-
builder.switch_to_block(else_block);
|
2475
|
-
}
|
2476
|
-
Operator::CallRef { type_index } => {
|
2477
|
-
// Get function signature
|
2478
|
-
// `index` is the index of the function's signature and `table_index` is the index of
|
2479
|
-
// the table to search the function in.
|
2480
|
-
let (sigref, num_args) = state.get_indirect_sig(builder.func, *type_index, environ)?;
|
2481
|
-
let callee = state.pop1();
|
2482
|
-
|
2483
|
-
// Bitcast any vector arguments to their default type, I8X16, before calling.
|
2484
|
-
let args = state.peekn_mut(num_args);
|
2485
|
-
bitcast_wasm_params(environ, sigref, args, builder);
|
2486
|
-
|
2487
|
-
let call =
|
2488
|
-
environ.translate_call_ref(builder, sigref, callee, state.peekn(num_args))?;
|
2489
|
-
|
2490
|
-
let inst_results = builder.inst_results(call);
|
2491
|
-
debug_assert_eq!(
|
2492
|
-
inst_results.len(),
|
2493
|
-
builder.func.dfg.signatures[sigref].returns.len(),
|
2494
|
-
"translate_call_ref results should match the call signature"
|
2495
|
-
);
|
2496
|
-
state.popn(num_args);
|
2497
|
-
state.pushn(inst_results);
|
2498
|
-
}
|
2499
|
-
Operator::RefAsNonNull => {
|
2500
|
-
let r = state.pop1();
|
2501
|
-
let is_null = environ.translate_ref_is_null(builder.cursor(), r)?;
|
2502
|
-
builder.ins().trapnz(is_null, ir::TrapCode::NullReference);
|
2503
|
-
state.push1(r);
|
2504
|
-
}
|
2505
|
-
|
2506
|
-
Operator::RefI31 | Operator::I31GetS | Operator::I31GetU => {
|
2507
|
-
unimplemented!("GC operators not yet implemented")
|
2508
|
-
}
|
2509
|
-
};
|
2510
|
-
Ok(())
|
2511
|
-
}
|
2512
|
-
|
2513
|
-
/// Deals with a Wasm instruction located in an unreachable portion of the code. Most of them
|
2514
|
-
/// are dropped but special ones like `End` or `Else` signal the potential end of the unreachable
|
2515
|
-
/// portion so the translation state must be updated accordingly.
|
2516
|
-
fn translate_unreachable_operator<FE: FuncEnvironment + ?Sized>(
|
2517
|
-
validator: &FuncValidator<impl WasmModuleResources>,
|
2518
|
-
op: &Operator,
|
2519
|
-
builder: &mut FunctionBuilder,
|
2520
|
-
state: &mut FuncTranslationState,
|
2521
|
-
environ: &mut FE,
|
2522
|
-
) -> WasmResult<()> {
|
2523
|
-
debug_assert!(!state.reachable);
|
2524
|
-
match *op {
|
2525
|
-
Operator::If { blockty } => {
|
2526
|
-
// Push a placeholder control stack entry. The if isn't reachable,
|
2527
|
-
// so we don't have any branches anywhere.
|
2528
|
-
state.push_if(
|
2529
|
-
ir::Block::reserved_value(),
|
2530
|
-
ElseData::NoElse {
|
2531
|
-
branch_inst: ir::Inst::reserved_value(),
|
2532
|
-
placeholder: ir::Block::reserved_value(),
|
2533
|
-
},
|
2534
|
-
0,
|
2535
|
-
0,
|
2536
|
-
blockty,
|
2537
|
-
);
|
2538
|
-
}
|
2539
|
-
Operator::Loop { blockty: _ } | Operator::Block { blockty: _ } => {
|
2540
|
-
state.push_block(ir::Block::reserved_value(), 0, 0);
|
2541
|
-
}
|
2542
|
-
Operator::Else => {
|
2543
|
-
let i = state.control_stack.len() - 1;
|
2544
|
-
match state.control_stack[i] {
|
2545
|
-
ControlStackFrame::If {
|
2546
|
-
ref else_data,
|
2547
|
-
head_is_reachable,
|
2548
|
-
ref mut consequent_ends_reachable,
|
2549
|
-
blocktype,
|
2550
|
-
..
|
2551
|
-
} => {
|
2552
|
-
debug_assert!(consequent_ends_reachable.is_none());
|
2553
|
-
*consequent_ends_reachable = Some(state.reachable);
|
2554
|
-
|
2555
|
-
if head_is_reachable {
|
2556
|
-
// We have a branch from the head of the `if` to the `else`.
|
2557
|
-
state.reachable = true;
|
2558
|
-
|
2559
|
-
let else_block = match *else_data {
|
2560
|
-
ElseData::NoElse {
|
2561
|
-
branch_inst,
|
2562
|
-
placeholder,
|
2563
|
-
} => {
|
2564
|
-
let (params, _results) =
|
2565
|
-
blocktype_params_results(validator, blocktype)?;
|
2566
|
-
let else_block = block_with_params(builder, params, environ)?;
|
2567
|
-
let frame = state.control_stack.last().unwrap();
|
2568
|
-
frame.truncate_value_stack_to_else_params(&mut state.stack);
|
2569
|
-
|
2570
|
-
// We change the target of the branch instruction.
|
2571
|
-
builder.change_jump_destination(
|
2572
|
-
branch_inst,
|
2573
|
-
placeholder,
|
2574
|
-
else_block,
|
2575
|
-
);
|
2576
|
-
builder.seal_block(else_block);
|
2577
|
-
else_block
|
2578
|
-
}
|
2579
|
-
ElseData::WithElse { else_block } => {
|
2580
|
-
let frame = state.control_stack.last().unwrap();
|
2581
|
-
frame.truncate_value_stack_to_else_params(&mut state.stack);
|
2582
|
-
else_block
|
2583
|
-
}
|
2584
|
-
};
|
2585
|
-
|
2586
|
-
builder.switch_to_block(else_block);
|
2587
|
-
|
2588
|
-
// Again, no need to push the parameters for the `else`,
|
2589
|
-
// since we already did when we saw the original `if`. See
|
2590
|
-
// the comment for translating `Operator::Else` in
|
2591
|
-
// `translate_operator` for details.
|
2592
|
-
}
|
2593
|
-
}
|
2594
|
-
_ => unreachable!(),
|
2595
|
-
}
|
2596
|
-
}
|
2597
|
-
Operator::End => {
|
2598
|
-
let stack = &mut state.stack;
|
2599
|
-
let control_stack = &mut state.control_stack;
|
2600
|
-
let frame = control_stack.pop().unwrap();
|
2601
|
-
|
2602
|
-
// Pop unused parameters from stack.
|
2603
|
-
frame.truncate_value_stack_to_original_size(stack);
|
2604
|
-
|
2605
|
-
let reachable_anyway = match frame {
|
2606
|
-
// If it is a loop we also have to seal the body loop block
|
2607
|
-
ControlStackFrame::Loop { header, .. } => {
|
2608
|
-
builder.seal_block(header);
|
2609
|
-
// And loops can't have branches to the end.
|
2610
|
-
false
|
2611
|
-
}
|
2612
|
-
// If we never set `consequent_ends_reachable` then that means
|
2613
|
-
// we are finishing the consequent now, and there was no
|
2614
|
-
// `else`. Whether the following block is reachable depends only
|
2615
|
-
// on if the head was reachable.
|
2616
|
-
ControlStackFrame::If {
|
2617
|
-
head_is_reachable,
|
2618
|
-
consequent_ends_reachable: None,
|
2619
|
-
..
|
2620
|
-
} => head_is_reachable,
|
2621
|
-
// Since we are only in this function when in unreachable code,
|
2622
|
-
// we know that the alternative just ended unreachable. Whether
|
2623
|
-
// the following block is reachable depends on if the consequent
|
2624
|
-
// ended reachable or not.
|
2625
|
-
ControlStackFrame::If {
|
2626
|
-
head_is_reachable,
|
2627
|
-
consequent_ends_reachable: Some(consequent_ends_reachable),
|
2628
|
-
..
|
2629
|
-
} => head_is_reachable && consequent_ends_reachable,
|
2630
|
-
// All other control constructs are already handled.
|
2631
|
-
_ => false,
|
2632
|
-
};
|
2633
|
-
|
2634
|
-
if frame.exit_is_branched_to() || reachable_anyway {
|
2635
|
-
builder.switch_to_block(frame.following_code());
|
2636
|
-
builder.seal_block(frame.following_code());
|
2637
|
-
|
2638
|
-
// And add the return values of the block but only if the next block is reachable
|
2639
|
-
// (which corresponds to testing if the stack depth is 1)
|
2640
|
-
stack.extend_from_slice(builder.block_params(frame.following_code()));
|
2641
|
-
state.reachable = true;
|
2642
|
-
}
|
2643
|
-
}
|
2644
|
-
_ => {
|
2645
|
-
// We don't translate because this is unreachable code
|
2646
|
-
}
|
2647
|
-
}
|
2648
|
-
|
2649
|
-
Ok(())
|
2650
|
-
}
|
2651
|
-
|
2652
|
-
/// This function is a generalized helper for validating that a wasm-supplied
|
2653
|
-
/// heap address is in-bounds.
|
2654
|
-
///
|
2655
|
-
/// This function takes a litany of parameters and requires that the *Wasm*
|
2656
|
-
/// address to be verified is at the top of the stack in `state`. This will
|
2657
|
-
/// generate necessary IR to validate that the heap address is correctly
|
2658
|
-
/// in-bounds, and various parameters are returned describing the valid *native*
|
2659
|
-
/// heap address if execution reaches that point.
|
2660
|
-
///
|
2661
|
-
/// Returns `None` when the Wasm access will unconditionally trap.
|
2662
|
-
///
|
2663
|
-
/// Returns `(flags, wasm_addr, native_addr)`.
|
2664
|
-
fn prepare_addr<FE>(
|
2665
|
-
memarg: &MemArg,
|
2666
|
-
access_size: u8,
|
2667
|
-
builder: &mut FunctionBuilder,
|
2668
|
-
state: &mut FuncTranslationState,
|
2669
|
-
environ: &mut FE,
|
2670
|
-
) -> WasmResult<Reachability<(MemFlags, Value, Value)>>
|
2671
|
-
where
|
2672
|
-
FE: FuncEnvironment + ?Sized,
|
2673
|
-
{
|
2674
|
-
let index = state.pop1();
|
2675
|
-
let heap = state.get_heap(builder.func, memarg.memory, environ)?;
|
2676
|
-
|
2677
|
-
// How exactly the bounds check is performed here and what it's performed
|
2678
|
-
// on is a bit tricky. Generally we want to rely on access violations (e.g.
|
2679
|
-
// segfaults) to generate traps since that means we don't have to bounds
|
2680
|
-
// check anything explicitly.
|
2681
|
-
//
|
2682
|
-
// (1) If we don't have a guard page of unmapped memory, though, then we
|
2683
|
-
// can't rely on this trapping behavior through segfaults. Instead we need
|
2684
|
-
// to bounds-check the entire memory access here which is everything from
|
2685
|
-
// `addr32 + offset` to `addr32 + offset + width` (not inclusive). In this
|
2686
|
-
// scenario our adjusted offset that we're checking is `memarg.offset +
|
2687
|
-
// access_size`. Note that we do saturating arithmetic here to avoid
|
2688
|
-
// overflow. THe addition here is in the 64-bit space, which means that
|
2689
|
-
// we'll never overflow for 32-bit wasm but for 64-bit this is an issue. If
|
2690
|
-
// our effective offset is u64::MAX though then it's impossible for for
|
2691
|
-
// that to actually be a valid offset because otherwise the wasm linear
|
2692
|
-
// memory would take all of the host memory!
|
2693
|
-
//
|
2694
|
-
// (2) If we have a guard page, however, then we can perform a further
|
2695
|
-
// optimization of the generated code by only checking multiples of the
|
2696
|
-
// offset-guard size to be more CSE-friendly. Knowing that we have at least
|
2697
|
-
// 1 page of a guard page we're then able to disregard the `width` since we
|
2698
|
-
// know it's always less than one page. Our bounds check will be for the
|
2699
|
-
// first byte which will either succeed and be guaranteed to fault if it's
|
2700
|
-
// actually out of bounds, or the bounds check itself will fail. In any case
|
2701
|
-
// we assert that the width is reasonably small for now so this assumption
|
2702
|
-
// can be adjusted in the future if we get larger widths.
|
2703
|
-
//
|
2704
|
-
// Put another way we can say, where `y < offset_guard_size`:
|
2705
|
-
//
|
2706
|
-
// n * offset_guard_size + y = offset
|
2707
|
-
//
|
2708
|
-
// We'll then pass `n * offset_guard_size` as the bounds check value. If
|
2709
|
-
// this traps then our `offset` would have trapped anyway. If this check
|
2710
|
-
// passes we know
|
2711
|
-
//
|
2712
|
-
// addr32 + n * offset_guard_size < bound
|
2713
|
-
//
|
2714
|
-
// which means
|
2715
|
-
//
|
2716
|
-
// addr32 + n * offset_guard_size + y < bound + offset_guard_size
|
2717
|
-
//
|
2718
|
-
// because `y < offset_guard_size`, which then means:
|
2719
|
-
//
|
2720
|
-
// addr32 + offset < bound + offset_guard_size
|
2721
|
-
//
|
2722
|
-
// Since we know that that guard size bytes are all unmapped we're
|
2723
|
-
// guaranteed that `offset` and the `width` bytes after it are either
|
2724
|
-
// in-bounds or will hit the guard page, meaning we'll get the desired
|
2725
|
-
// semantics we want.
|
2726
|
-
//
|
2727
|
-
// ---
|
2728
|
-
//
|
2729
|
-
// With all that in mind remember that the goal is to bounds check as few
|
2730
|
-
// things as possible. To facilitate this the "fast path" is expected to be
|
2731
|
-
// hit like so:
|
2732
|
-
//
|
2733
|
-
// * For wasm32, wasmtime defaults to 4gb "static" memories with 2gb guard
|
2734
|
-
// regions. This means that for all offsets <=2gb, we hit the optimized
|
2735
|
-
// case for `heap_addr` on static memories 4gb in size in cranelift's
|
2736
|
-
// legalization of `heap_addr`, eliding the bounds check entirely.
|
2737
|
-
//
|
2738
|
-
// * For wasm64 offsets <=2gb will generate a single `heap_addr`
|
2739
|
-
// instruction, but at this time all heaps are "dyanmic" which means that
|
2740
|
-
// a single bounds check is forced. Ideally we'd do better here, but
|
2741
|
-
// that's the current state of affairs.
|
2742
|
-
//
|
2743
|
-
// Basically we assume that most configurations have a guard page and most
|
2744
|
-
// offsets in `memarg` are <=2gb, which means we get the fast path of one
|
2745
|
-
// `heap_addr` instruction plus a hardcoded i32-offset in memory-related
|
2746
|
-
// instructions.
|
2747
|
-
let heap = environ.heaps()[heap].clone();
|
2748
|
-
let addr = match u32::try_from(memarg.offset) {
|
2749
|
-
// If our offset fits within a u32, then we can place the it into the
|
2750
|
-
// offset immediate of the `heap_addr` instruction.
|
2751
|
-
Ok(offset) => bounds_checks::bounds_check_and_compute_addr(
|
2752
|
-
builder,
|
2753
|
-
environ,
|
2754
|
-
&heap,
|
2755
|
-
index,
|
2756
|
-
offset,
|
2757
|
-
access_size,
|
2758
|
-
)?,
|
2759
|
-
|
2760
|
-
// If the offset doesn't fit within a u32, then we can't pass it
|
2761
|
-
// directly into `heap_addr`.
|
2762
|
-
//
|
2763
|
-
// One reasonable question you might ask is "why not?". There's no
|
2764
|
-
// fundamental reason why `heap_addr` *must* take a 32-bit offset. The
|
2765
|
-
// reason this isn't done, though, is that blindly changing the offset
|
2766
|
-
// to a 64-bit offset increases the size of the `InstructionData` enum
|
2767
|
-
// in cranelift by 8 bytes (16 to 24). This can have significant
|
2768
|
-
// performance implications so the conclusion when this was written was
|
2769
|
-
// that we shouldn't do that.
|
2770
|
-
//
|
2771
|
-
// Without the ability to put the whole offset into the `heap_addr`
|
2772
|
-
// instruction we need to fold the offset into the address itself with
|
2773
|
-
// an unsigned addition. In doing so though we need to check for
|
2774
|
-
// overflow because that would mean the address is out-of-bounds (wasm
|
2775
|
-
// bounds checks happen on the effective 33 or 65 bit address once the
|
2776
|
-
// offset is factored in).
|
2777
|
-
//
|
2778
|
-
// Once we have the effective address, offset already folded in, then
|
2779
|
-
// `heap_addr` is used to verify that the address is indeed in-bounds.
|
2780
|
-
//
|
2781
|
-
// Note that this is generating what's likely to be at least two
|
2782
|
-
// branches, one for the overflow and one for the bounds check itself.
|
2783
|
-
// For now though that should hopefully be ok since 4gb+ offsets are
|
2784
|
-
// relatively odd/rare. In the future if needed we can look into
|
2785
|
-
// optimizing this more.
|
2786
|
-
Err(_) => {
|
2787
|
-
let offset = builder.ins().iconst(heap.index_type, memarg.offset as i64);
|
2788
|
-
let adjusted_index =
|
2789
|
-
builder
|
2790
|
-
.ins()
|
2791
|
-
.uadd_overflow_trap(index, offset, ir::TrapCode::HeapOutOfBounds);
|
2792
|
-
bounds_checks::bounds_check_and_compute_addr(
|
2793
|
-
builder,
|
2794
|
-
environ,
|
2795
|
-
&heap,
|
2796
|
-
adjusted_index,
|
2797
|
-
0,
|
2798
|
-
access_size,
|
2799
|
-
)?
|
2800
|
-
}
|
2801
|
-
};
|
2802
|
-
let addr = match addr {
|
2803
|
-
Reachability::Unreachable => return Ok(Reachability::Unreachable),
|
2804
|
-
Reachability::Reachable(a) => a,
|
2805
|
-
};
|
2806
|
-
|
2807
|
-
// Note that we don't set `is_aligned` here, even if the load instruction's
|
2808
|
-
// alignment immediate may says it's aligned, because WebAssembly's
|
2809
|
-
// immediate field is just a hint, while Cranelift's aligned flag needs a
|
2810
|
-
// guarantee. WebAssembly memory accesses are always little-endian.
|
2811
|
-
let mut flags = MemFlags::new();
|
2812
|
-
flags.set_endianness(ir::Endianness::Little);
|
2813
|
-
|
2814
|
-
if heap.memory_type.is_some() {
|
2815
|
-
// Proof-carrying code is enabled; check this memory access.
|
2816
|
-
flags.set_checked();
|
2817
|
-
}
|
2818
|
-
|
2819
|
-
// The access occurs to the `heap` disjoint category of abstract
|
2820
|
-
// state. This may allow alias analysis to merge redundant loads,
|
2821
|
-
// etc. when heap accesses occur interleaved with other (table,
|
2822
|
-
// vmctx, stack) accesses.
|
2823
|
-
flags.set_heap();
|
2824
|
-
|
2825
|
-
Ok(Reachability::Reachable((flags, index, addr)))
|
2826
|
-
}
|
2827
|
-
|
2828
|
-
fn align_atomic_addr(
|
2829
|
-
memarg: &MemArg,
|
2830
|
-
loaded_bytes: u8,
|
2831
|
-
builder: &mut FunctionBuilder,
|
2832
|
-
state: &mut FuncTranslationState,
|
2833
|
-
) {
|
2834
|
-
// Atomic addresses must all be aligned correctly, and for now we check
|
2835
|
-
// alignment before we check out-of-bounds-ness. The order of this check may
|
2836
|
-
// need to be updated depending on the outcome of the official threads
|
2837
|
-
// proposal itself.
|
2838
|
-
//
|
2839
|
-
// Note that with an offset>0 we generate an `iadd_imm` where the result is
|
2840
|
-
// thrown away after the offset check. This may truncate the offset and the
|
2841
|
-
// result may overflow as well, but those conditions won't affect the
|
2842
|
-
// alignment check itself. This can probably be optimized better and we
|
2843
|
-
// should do so in the future as well.
|
2844
|
-
if loaded_bytes > 1 {
|
2845
|
-
let addr = state.pop1(); // "peek" via pop then push
|
2846
|
-
state.push1(addr);
|
2847
|
-
let effective_addr = if memarg.offset == 0 {
|
2848
|
-
addr
|
2849
|
-
} else {
|
2850
|
-
builder
|
2851
|
-
.ins()
|
2852
|
-
.iadd_imm(addr, i64::from(memarg.offset as i32))
|
2853
|
-
};
|
2854
|
-
debug_assert!(loaded_bytes.is_power_of_two());
|
2855
|
-
let misalignment = builder
|
2856
|
-
.ins()
|
2857
|
-
.band_imm(effective_addr, i64::from(loaded_bytes - 1));
|
2858
|
-
let f = builder.ins().icmp_imm(IntCC::NotEqual, misalignment, 0);
|
2859
|
-
builder.ins().trapnz(f, ir::TrapCode::HeapMisaligned);
|
2860
|
-
}
|
2861
|
-
}
|
2862
|
-
|
2863
|
-
/// Like `prepare_addr` but for atomic accesses.
|
2864
|
-
///
|
2865
|
-
/// Returns `None` when the Wasm access will unconditionally trap.
|
2866
|
-
fn prepare_atomic_addr<FE: FuncEnvironment + ?Sized>(
|
2867
|
-
memarg: &MemArg,
|
2868
|
-
loaded_bytes: u8,
|
2869
|
-
builder: &mut FunctionBuilder,
|
2870
|
-
state: &mut FuncTranslationState,
|
2871
|
-
environ: &mut FE,
|
2872
|
-
) -> WasmResult<Reachability<(MemFlags, Value, Value)>> {
|
2873
|
-
align_atomic_addr(memarg, loaded_bytes, builder, state);
|
2874
|
-
prepare_addr(memarg, loaded_bytes, builder, state, environ)
|
2875
|
-
}
|
2876
|
-
|
2877
|
-
/// Like `Option<T>` but specifically for passing information about transitions
|
2878
|
-
/// from reachable to unreachable state and the like from callees to callers.
|
2879
|
-
///
|
2880
|
-
/// Marked `must_use` to force callers to update
|
2881
|
-
/// `FuncTranslationState::reachable` as necessary.
|
2882
|
-
#[derive(PartialEq, Eq)]
|
2883
|
-
#[must_use]
|
2884
|
-
pub enum Reachability<T> {
|
2885
|
-
/// The Wasm execution state is reachable, here is a `T`.
|
2886
|
-
Reachable(T),
|
2887
|
-
/// The Wasm execution state has been determined to be statically
|
2888
|
-
/// unreachable. It is the receiver of this value's responsibility to update
|
2889
|
-
/// `FuncTranslationState::reachable` as necessary.
|
2890
|
-
Unreachable,
|
2891
|
-
}
|
2892
|
-
|
2893
|
-
/// Translate a load instruction.
|
2894
|
-
///
|
2895
|
-
/// Returns the execution state's reachability after the load is translated.
|
2896
|
-
fn translate_load<FE: FuncEnvironment + ?Sized>(
|
2897
|
-
memarg: &MemArg,
|
2898
|
-
opcode: ir::Opcode,
|
2899
|
-
result_ty: Type,
|
2900
|
-
builder: &mut FunctionBuilder,
|
2901
|
-
state: &mut FuncTranslationState,
|
2902
|
-
environ: &mut FE,
|
2903
|
-
) -> WasmResult<Reachability<()>> {
|
2904
|
-
let mem_op_size = mem_op_size(opcode, result_ty);
|
2905
|
-
let (flags, wasm_index, base) =
|
2906
|
-
match prepare_addr(memarg, mem_op_size, builder, state, environ)? {
|
2907
|
-
Reachability::Unreachable => return Ok(Reachability::Unreachable),
|
2908
|
-
Reachability::Reachable((f, i, b)) => (f, i, b),
|
2909
|
-
};
|
2910
|
-
|
2911
|
-
environ.before_load(builder, mem_op_size, wasm_index, memarg.offset);
|
2912
|
-
|
2913
|
-
let (load, dfg) = builder
|
2914
|
-
.ins()
|
2915
|
-
.Load(opcode, result_ty, flags, Offset32::new(0), base);
|
2916
|
-
state.push1(dfg.first_result(load));
|
2917
|
-
Ok(Reachability::Reachable(()))
|
2918
|
-
}
|
2919
|
-
|
2920
|
-
/// Translate a store instruction.
|
2921
|
-
fn translate_store<FE: FuncEnvironment + ?Sized>(
|
2922
|
-
memarg: &MemArg,
|
2923
|
-
opcode: ir::Opcode,
|
2924
|
-
builder: &mut FunctionBuilder,
|
2925
|
-
state: &mut FuncTranslationState,
|
2926
|
-
environ: &mut FE,
|
2927
|
-
) -> WasmResult<()> {
|
2928
|
-
let val = state.pop1();
|
2929
|
-
let val_ty = builder.func.dfg.value_type(val);
|
2930
|
-
let mem_op_size = mem_op_size(opcode, val_ty);
|
2931
|
-
|
2932
|
-
let (flags, wasm_index, base) = unwrap_or_return_unreachable_state!(
|
2933
|
-
state,
|
2934
|
-
prepare_addr(memarg, mem_op_size, builder, state, environ)?
|
2935
|
-
);
|
2936
|
-
|
2937
|
-
environ.before_store(builder, mem_op_size, wasm_index, memarg.offset);
|
2938
|
-
|
2939
|
-
builder
|
2940
|
-
.ins()
|
2941
|
-
.Store(opcode, val_ty, flags, Offset32::new(0), val, base);
|
2942
|
-
Ok(())
|
2943
|
-
}
|
2944
|
-
|
2945
|
-
fn mem_op_size(opcode: ir::Opcode, ty: Type) -> u8 {
|
2946
|
-
match opcode {
|
2947
|
-
ir::Opcode::Istore8 | ir::Opcode::Sload8 | ir::Opcode::Uload8 => 1,
|
2948
|
-
ir::Opcode::Istore16 | ir::Opcode::Sload16 | ir::Opcode::Uload16 => 2,
|
2949
|
-
ir::Opcode::Istore32 | ir::Opcode::Sload32 | ir::Opcode::Uload32 => 4,
|
2950
|
-
ir::Opcode::Store | ir::Opcode::Load => u8::try_from(ty.bytes()).unwrap(),
|
2951
|
-
_ => panic!("unknown size of mem op for {:?}", opcode),
|
2952
|
-
}
|
2953
|
-
}
|
2954
|
-
|
2955
|
-
fn translate_icmp(cc: IntCC, builder: &mut FunctionBuilder, state: &mut FuncTranslationState) {
|
2956
|
-
let (arg0, arg1) = state.pop2();
|
2957
|
-
let val = builder.ins().icmp(cc, arg0, arg1);
|
2958
|
-
state.push1(builder.ins().uextend(I32, val));
|
2959
|
-
}
|
2960
|
-
|
2961
|
-
fn translate_atomic_rmw<FE: FuncEnvironment + ?Sized>(
|
2962
|
-
widened_ty: Type,
|
2963
|
-
access_ty: Type,
|
2964
|
-
op: AtomicRmwOp,
|
2965
|
-
memarg: &MemArg,
|
2966
|
-
builder: &mut FunctionBuilder,
|
2967
|
-
state: &mut FuncTranslationState,
|
2968
|
-
environ: &mut FE,
|
2969
|
-
) -> WasmResult<()> {
|
2970
|
-
let mut arg2 = state.pop1();
|
2971
|
-
let arg2_ty = builder.func.dfg.value_type(arg2);
|
2972
|
-
|
2973
|
-
// The operation is performed at type `access_ty`, and the old value is zero-extended
|
2974
|
-
// to type `widened_ty`.
|
2975
|
-
match access_ty {
|
2976
|
-
I8 | I16 | I32 | I64 => {}
|
2977
|
-
_ => {
|
2978
|
-
return Err(wasm_unsupported!(
|
2979
|
-
"atomic_rmw: unsupported access type {:?}",
|
2980
|
-
access_ty
|
2981
|
-
))
|
2982
|
-
}
|
2983
|
-
};
|
2984
|
-
let w_ty_ok = match widened_ty {
|
2985
|
-
I32 | I64 => true,
|
2986
|
-
_ => false,
|
2987
|
-
};
|
2988
|
-
assert!(w_ty_ok && widened_ty.bytes() >= access_ty.bytes());
|
2989
|
-
|
2990
|
-
assert!(arg2_ty.bytes() >= access_ty.bytes());
|
2991
|
-
if arg2_ty.bytes() > access_ty.bytes() {
|
2992
|
-
arg2 = builder.ins().ireduce(access_ty, arg2);
|
2993
|
-
}
|
2994
|
-
|
2995
|
-
let (flags, _, addr) = unwrap_or_return_unreachable_state!(
|
2996
|
-
state,
|
2997
|
-
prepare_atomic_addr(
|
2998
|
-
memarg,
|
2999
|
-
u8::try_from(access_ty.bytes()).unwrap(),
|
3000
|
-
builder,
|
3001
|
-
state,
|
3002
|
-
environ,
|
3003
|
-
)?
|
3004
|
-
);
|
3005
|
-
|
3006
|
-
let mut res = builder.ins().atomic_rmw(access_ty, flags, op, addr, arg2);
|
3007
|
-
if access_ty != widened_ty {
|
3008
|
-
res = builder.ins().uextend(widened_ty, res);
|
3009
|
-
}
|
3010
|
-
state.push1(res);
|
3011
|
-
Ok(())
|
3012
|
-
}
|
3013
|
-
|
3014
|
-
fn translate_atomic_cas<FE: FuncEnvironment + ?Sized>(
|
3015
|
-
widened_ty: Type,
|
3016
|
-
access_ty: Type,
|
3017
|
-
memarg: &MemArg,
|
3018
|
-
builder: &mut FunctionBuilder,
|
3019
|
-
state: &mut FuncTranslationState,
|
3020
|
-
environ: &mut FE,
|
3021
|
-
) -> WasmResult<()> {
|
3022
|
-
let (mut expected, mut replacement) = state.pop2();
|
3023
|
-
let expected_ty = builder.func.dfg.value_type(expected);
|
3024
|
-
let replacement_ty = builder.func.dfg.value_type(replacement);
|
3025
|
-
|
3026
|
-
// The compare-and-swap is performed at type `access_ty`, and the old value is zero-extended
|
3027
|
-
// to type `widened_ty`.
|
3028
|
-
match access_ty {
|
3029
|
-
I8 | I16 | I32 | I64 => {}
|
3030
|
-
_ => {
|
3031
|
-
return Err(wasm_unsupported!(
|
3032
|
-
"atomic_cas: unsupported access type {:?}",
|
3033
|
-
access_ty
|
3034
|
-
))
|
3035
|
-
}
|
3036
|
-
};
|
3037
|
-
let w_ty_ok = match widened_ty {
|
3038
|
-
I32 | I64 => true,
|
3039
|
-
_ => false,
|
3040
|
-
};
|
3041
|
-
assert!(w_ty_ok && widened_ty.bytes() >= access_ty.bytes());
|
3042
|
-
|
3043
|
-
assert!(expected_ty.bytes() >= access_ty.bytes());
|
3044
|
-
if expected_ty.bytes() > access_ty.bytes() {
|
3045
|
-
expected = builder.ins().ireduce(access_ty, expected);
|
3046
|
-
}
|
3047
|
-
assert!(replacement_ty.bytes() >= access_ty.bytes());
|
3048
|
-
if replacement_ty.bytes() > access_ty.bytes() {
|
3049
|
-
replacement = builder.ins().ireduce(access_ty, replacement);
|
3050
|
-
}
|
3051
|
-
|
3052
|
-
let (flags, _, addr) = unwrap_or_return_unreachable_state!(
|
3053
|
-
state,
|
3054
|
-
prepare_atomic_addr(
|
3055
|
-
memarg,
|
3056
|
-
u8::try_from(access_ty.bytes()).unwrap(),
|
3057
|
-
builder,
|
3058
|
-
state,
|
3059
|
-
environ,
|
3060
|
-
)?
|
3061
|
-
);
|
3062
|
-
let mut res = builder.ins().atomic_cas(flags, addr, expected, replacement);
|
3063
|
-
if access_ty != widened_ty {
|
3064
|
-
res = builder.ins().uextend(widened_ty, res);
|
3065
|
-
}
|
3066
|
-
state.push1(res);
|
3067
|
-
Ok(())
|
3068
|
-
}
|
3069
|
-
|
3070
|
-
fn translate_atomic_load<FE: FuncEnvironment + ?Sized>(
|
3071
|
-
widened_ty: Type,
|
3072
|
-
access_ty: Type,
|
3073
|
-
memarg: &MemArg,
|
3074
|
-
builder: &mut FunctionBuilder,
|
3075
|
-
state: &mut FuncTranslationState,
|
3076
|
-
environ: &mut FE,
|
3077
|
-
) -> WasmResult<()> {
|
3078
|
-
// The load is performed at type `access_ty`, and the loaded value is zero extended
|
3079
|
-
// to `widened_ty`.
|
3080
|
-
match access_ty {
|
3081
|
-
I8 | I16 | I32 | I64 => {}
|
3082
|
-
_ => {
|
3083
|
-
return Err(wasm_unsupported!(
|
3084
|
-
"atomic_load: unsupported access type {:?}",
|
3085
|
-
access_ty
|
3086
|
-
))
|
3087
|
-
}
|
3088
|
-
};
|
3089
|
-
let w_ty_ok = match widened_ty {
|
3090
|
-
I32 | I64 => true,
|
3091
|
-
_ => false,
|
3092
|
-
};
|
3093
|
-
assert!(w_ty_ok && widened_ty.bytes() >= access_ty.bytes());
|
3094
|
-
|
3095
|
-
let (flags, _, addr) = unwrap_or_return_unreachable_state!(
|
3096
|
-
state,
|
3097
|
-
prepare_atomic_addr(
|
3098
|
-
memarg,
|
3099
|
-
u8::try_from(access_ty.bytes()).unwrap(),
|
3100
|
-
builder,
|
3101
|
-
state,
|
3102
|
-
environ,
|
3103
|
-
)?
|
3104
|
-
);
|
3105
|
-
let mut res = builder.ins().atomic_load(access_ty, flags, addr);
|
3106
|
-
if access_ty != widened_ty {
|
3107
|
-
res = builder.ins().uextend(widened_ty, res);
|
3108
|
-
}
|
3109
|
-
state.push1(res);
|
3110
|
-
Ok(())
|
3111
|
-
}
|
3112
|
-
|
3113
|
-
fn translate_atomic_store<FE: FuncEnvironment + ?Sized>(
|
3114
|
-
access_ty: Type,
|
3115
|
-
memarg: &MemArg,
|
3116
|
-
builder: &mut FunctionBuilder,
|
3117
|
-
state: &mut FuncTranslationState,
|
3118
|
-
environ: &mut FE,
|
3119
|
-
) -> WasmResult<()> {
|
3120
|
-
let mut data = state.pop1();
|
3121
|
-
let data_ty = builder.func.dfg.value_type(data);
|
3122
|
-
|
3123
|
-
// The operation is performed at type `access_ty`, and the data to be stored may first
|
3124
|
-
// need to be narrowed accordingly.
|
3125
|
-
match access_ty {
|
3126
|
-
I8 | I16 | I32 | I64 => {}
|
3127
|
-
_ => {
|
3128
|
-
return Err(wasm_unsupported!(
|
3129
|
-
"atomic_store: unsupported access type {:?}",
|
3130
|
-
access_ty
|
3131
|
-
))
|
3132
|
-
}
|
3133
|
-
};
|
3134
|
-
let d_ty_ok = match data_ty {
|
3135
|
-
I32 | I64 => true,
|
3136
|
-
_ => false,
|
3137
|
-
};
|
3138
|
-
assert!(d_ty_ok && data_ty.bytes() >= access_ty.bytes());
|
3139
|
-
|
3140
|
-
if data_ty.bytes() > access_ty.bytes() {
|
3141
|
-
data = builder.ins().ireduce(access_ty, data);
|
3142
|
-
}
|
3143
|
-
|
3144
|
-
let (flags, _, addr) = unwrap_or_return_unreachable_state!(
|
3145
|
-
state,
|
3146
|
-
prepare_atomic_addr(
|
3147
|
-
memarg,
|
3148
|
-
u8::try_from(access_ty.bytes()).unwrap(),
|
3149
|
-
builder,
|
3150
|
-
state,
|
3151
|
-
environ,
|
3152
|
-
)?
|
3153
|
-
);
|
3154
|
-
builder.ins().atomic_store(flags, data, addr);
|
3155
|
-
Ok(())
|
3156
|
-
}
|
3157
|
-
|
3158
|
-
fn translate_vector_icmp(
|
3159
|
-
cc: IntCC,
|
3160
|
-
needed_type: Type,
|
3161
|
-
builder: &mut FunctionBuilder,
|
3162
|
-
state: &mut FuncTranslationState,
|
3163
|
-
) {
|
3164
|
-
let (a, b) = state.pop2();
|
3165
|
-
let bitcast_a = optionally_bitcast_vector(a, needed_type, builder);
|
3166
|
-
let bitcast_b = optionally_bitcast_vector(b, needed_type, builder);
|
3167
|
-
state.push1(builder.ins().icmp(cc, bitcast_a, bitcast_b))
|
3168
|
-
}
|
3169
|
-
|
3170
|
-
fn translate_fcmp(cc: FloatCC, builder: &mut FunctionBuilder, state: &mut FuncTranslationState) {
|
3171
|
-
let (arg0, arg1) = state.pop2();
|
3172
|
-
let val = builder.ins().fcmp(cc, arg0, arg1);
|
3173
|
-
state.push1(builder.ins().uextend(I32, val));
|
3174
|
-
}
|
3175
|
-
|
3176
|
-
fn translate_vector_fcmp(
|
3177
|
-
cc: FloatCC,
|
3178
|
-
needed_type: Type,
|
3179
|
-
builder: &mut FunctionBuilder,
|
3180
|
-
state: &mut FuncTranslationState,
|
3181
|
-
) {
|
3182
|
-
let (a, b) = state.pop2();
|
3183
|
-
let bitcast_a = optionally_bitcast_vector(a, needed_type, builder);
|
3184
|
-
let bitcast_b = optionally_bitcast_vector(b, needed_type, builder);
|
3185
|
-
state.push1(builder.ins().fcmp(cc, bitcast_a, bitcast_b))
|
3186
|
-
}
|
3187
|
-
|
3188
|
-
fn translate_br_if(
|
3189
|
-
relative_depth: u32,
|
3190
|
-
builder: &mut FunctionBuilder,
|
3191
|
-
state: &mut FuncTranslationState,
|
3192
|
-
) {
|
3193
|
-
let val = state.pop1();
|
3194
|
-
let (br_destination, inputs) = translate_br_if_args(relative_depth, state);
|
3195
|
-
let next_block = builder.create_block();
|
3196
|
-
canonicalise_brif(builder, val, br_destination, inputs, next_block, &[]);
|
3197
|
-
|
3198
|
-
builder.seal_block(next_block); // The only predecessor is the current block.
|
3199
|
-
builder.switch_to_block(next_block);
|
3200
|
-
}
|
3201
|
-
|
3202
|
-
fn translate_br_if_args(
|
3203
|
-
relative_depth: u32,
|
3204
|
-
state: &mut FuncTranslationState,
|
3205
|
-
) -> (ir::Block, &mut [ir::Value]) {
|
3206
|
-
let i = state.control_stack.len() - 1 - (relative_depth as usize);
|
3207
|
-
let (return_count, br_destination) = {
|
3208
|
-
let frame = &mut state.control_stack[i];
|
3209
|
-
// The values returned by the branch are still available for the reachable
|
3210
|
-
// code that comes after it
|
3211
|
-
frame.set_branched_to_exit();
|
3212
|
-
let return_count = if frame.is_loop() {
|
3213
|
-
frame.num_param_values()
|
3214
|
-
} else {
|
3215
|
-
frame.num_return_values()
|
3216
|
-
};
|
3217
|
-
(return_count, frame.br_destination())
|
3218
|
-
};
|
3219
|
-
let inputs = state.peekn_mut(return_count);
|
3220
|
-
(br_destination, inputs)
|
3221
|
-
}
|
3222
|
-
|
3223
|
-
/// Determine the returned value type of a WebAssembly operator
|
3224
|
-
fn type_of(operator: &Operator) -> Type {
|
3225
|
-
match operator {
|
3226
|
-
Operator::V128Load { .. }
|
3227
|
-
| Operator::V128Store { .. }
|
3228
|
-
| Operator::V128Const { .. }
|
3229
|
-
| Operator::V128Not
|
3230
|
-
| Operator::V128And
|
3231
|
-
| Operator::V128AndNot
|
3232
|
-
| Operator::V128Or
|
3233
|
-
| Operator::V128Xor
|
3234
|
-
| Operator::V128AnyTrue
|
3235
|
-
| Operator::V128Bitselect => I8X16, // default type representing V128
|
3236
|
-
|
3237
|
-
Operator::I8x16Shuffle { .. }
|
3238
|
-
| Operator::I8x16Splat
|
3239
|
-
| Operator::V128Load8Splat { .. }
|
3240
|
-
| Operator::V128Load8Lane { .. }
|
3241
|
-
| Operator::V128Store8Lane { .. }
|
3242
|
-
| Operator::I8x16ExtractLaneS { .. }
|
3243
|
-
| Operator::I8x16ExtractLaneU { .. }
|
3244
|
-
| Operator::I8x16ReplaceLane { .. }
|
3245
|
-
| Operator::I8x16Eq
|
3246
|
-
| Operator::I8x16Ne
|
3247
|
-
| Operator::I8x16LtS
|
3248
|
-
| Operator::I8x16LtU
|
3249
|
-
| Operator::I8x16GtS
|
3250
|
-
| Operator::I8x16GtU
|
3251
|
-
| Operator::I8x16LeS
|
3252
|
-
| Operator::I8x16LeU
|
3253
|
-
| Operator::I8x16GeS
|
3254
|
-
| Operator::I8x16GeU
|
3255
|
-
| Operator::I8x16Neg
|
3256
|
-
| Operator::I8x16Abs
|
3257
|
-
| Operator::I8x16AllTrue
|
3258
|
-
| Operator::I8x16Shl
|
3259
|
-
| Operator::I8x16ShrS
|
3260
|
-
| Operator::I8x16ShrU
|
3261
|
-
| Operator::I8x16Add
|
3262
|
-
| Operator::I8x16AddSatS
|
3263
|
-
| Operator::I8x16AddSatU
|
3264
|
-
| Operator::I8x16Sub
|
3265
|
-
| Operator::I8x16SubSatS
|
3266
|
-
| Operator::I8x16SubSatU
|
3267
|
-
| Operator::I8x16MinS
|
3268
|
-
| Operator::I8x16MinU
|
3269
|
-
| Operator::I8x16MaxS
|
3270
|
-
| Operator::I8x16MaxU
|
3271
|
-
| Operator::I8x16AvgrU
|
3272
|
-
| Operator::I8x16Bitmask
|
3273
|
-
| Operator::I8x16Popcnt
|
3274
|
-
| Operator::I8x16RelaxedLaneselect => I8X16,
|
3275
|
-
|
3276
|
-
Operator::I16x8Splat
|
3277
|
-
| Operator::V128Load16Splat { .. }
|
3278
|
-
| Operator::V128Load16Lane { .. }
|
3279
|
-
| Operator::V128Store16Lane { .. }
|
3280
|
-
| Operator::I16x8ExtractLaneS { .. }
|
3281
|
-
| Operator::I16x8ExtractLaneU { .. }
|
3282
|
-
| Operator::I16x8ReplaceLane { .. }
|
3283
|
-
| Operator::I16x8Eq
|
3284
|
-
| Operator::I16x8Ne
|
3285
|
-
| Operator::I16x8LtS
|
3286
|
-
| Operator::I16x8LtU
|
3287
|
-
| Operator::I16x8GtS
|
3288
|
-
| Operator::I16x8GtU
|
3289
|
-
| Operator::I16x8LeS
|
3290
|
-
| Operator::I16x8LeU
|
3291
|
-
| Operator::I16x8GeS
|
3292
|
-
| Operator::I16x8GeU
|
3293
|
-
| Operator::I16x8Neg
|
3294
|
-
| Operator::I16x8Abs
|
3295
|
-
| Operator::I16x8AllTrue
|
3296
|
-
| Operator::I16x8Shl
|
3297
|
-
| Operator::I16x8ShrS
|
3298
|
-
| Operator::I16x8ShrU
|
3299
|
-
| Operator::I16x8Add
|
3300
|
-
| Operator::I16x8AddSatS
|
3301
|
-
| Operator::I16x8AddSatU
|
3302
|
-
| Operator::I16x8Sub
|
3303
|
-
| Operator::I16x8SubSatS
|
3304
|
-
| Operator::I16x8SubSatU
|
3305
|
-
| Operator::I16x8MinS
|
3306
|
-
| Operator::I16x8MinU
|
3307
|
-
| Operator::I16x8MaxS
|
3308
|
-
| Operator::I16x8MaxU
|
3309
|
-
| Operator::I16x8AvgrU
|
3310
|
-
| Operator::I16x8Mul
|
3311
|
-
| Operator::I16x8Bitmask
|
3312
|
-
| Operator::I16x8RelaxedLaneselect => I16X8,
|
3313
|
-
|
3314
|
-
Operator::I32x4Splat
|
3315
|
-
| Operator::V128Load32Splat { .. }
|
3316
|
-
| Operator::V128Load32Lane { .. }
|
3317
|
-
| Operator::V128Store32Lane { .. }
|
3318
|
-
| Operator::I32x4ExtractLane { .. }
|
3319
|
-
| Operator::I32x4ReplaceLane { .. }
|
3320
|
-
| Operator::I32x4Eq
|
3321
|
-
| Operator::I32x4Ne
|
3322
|
-
| Operator::I32x4LtS
|
3323
|
-
| Operator::I32x4LtU
|
3324
|
-
| Operator::I32x4GtS
|
3325
|
-
| Operator::I32x4GtU
|
3326
|
-
| Operator::I32x4LeS
|
3327
|
-
| Operator::I32x4LeU
|
3328
|
-
| Operator::I32x4GeS
|
3329
|
-
| Operator::I32x4GeU
|
3330
|
-
| Operator::I32x4Neg
|
3331
|
-
| Operator::I32x4Abs
|
3332
|
-
| Operator::I32x4AllTrue
|
3333
|
-
| Operator::I32x4Shl
|
3334
|
-
| Operator::I32x4ShrS
|
3335
|
-
| Operator::I32x4ShrU
|
3336
|
-
| Operator::I32x4Add
|
3337
|
-
| Operator::I32x4Sub
|
3338
|
-
| Operator::I32x4Mul
|
3339
|
-
| Operator::I32x4MinS
|
3340
|
-
| Operator::I32x4MinU
|
3341
|
-
| Operator::I32x4MaxS
|
3342
|
-
| Operator::I32x4MaxU
|
3343
|
-
| Operator::I32x4Bitmask
|
3344
|
-
| Operator::I32x4TruncSatF32x4S
|
3345
|
-
| Operator::I32x4TruncSatF32x4U
|
3346
|
-
| Operator::I32x4RelaxedLaneselect
|
3347
|
-
| Operator::V128Load32Zero { .. } => I32X4,
|
3348
|
-
|
3349
|
-
Operator::I64x2Splat
|
3350
|
-
| Operator::V128Load64Splat { .. }
|
3351
|
-
| Operator::V128Load64Lane { .. }
|
3352
|
-
| Operator::V128Store64Lane { .. }
|
3353
|
-
| Operator::I64x2ExtractLane { .. }
|
3354
|
-
| Operator::I64x2ReplaceLane { .. }
|
3355
|
-
| Operator::I64x2Eq
|
3356
|
-
| Operator::I64x2Ne
|
3357
|
-
| Operator::I64x2LtS
|
3358
|
-
| Operator::I64x2GtS
|
3359
|
-
| Operator::I64x2LeS
|
3360
|
-
| Operator::I64x2GeS
|
3361
|
-
| Operator::I64x2Neg
|
3362
|
-
| Operator::I64x2Abs
|
3363
|
-
| Operator::I64x2AllTrue
|
3364
|
-
| Operator::I64x2Shl
|
3365
|
-
| Operator::I64x2ShrS
|
3366
|
-
| Operator::I64x2ShrU
|
3367
|
-
| Operator::I64x2Add
|
3368
|
-
| Operator::I64x2Sub
|
3369
|
-
| Operator::I64x2Mul
|
3370
|
-
| Operator::I64x2Bitmask
|
3371
|
-
| Operator::I64x2RelaxedLaneselect
|
3372
|
-
| Operator::V128Load64Zero { .. } => I64X2,
|
3373
|
-
|
3374
|
-
Operator::F32x4Splat
|
3375
|
-
| Operator::F32x4ExtractLane { .. }
|
3376
|
-
| Operator::F32x4ReplaceLane { .. }
|
3377
|
-
| Operator::F32x4Eq
|
3378
|
-
| Operator::F32x4Ne
|
3379
|
-
| Operator::F32x4Lt
|
3380
|
-
| Operator::F32x4Gt
|
3381
|
-
| Operator::F32x4Le
|
3382
|
-
| Operator::F32x4Ge
|
3383
|
-
| Operator::F32x4Abs
|
3384
|
-
| Operator::F32x4Neg
|
3385
|
-
| Operator::F32x4Sqrt
|
3386
|
-
| Operator::F32x4Add
|
3387
|
-
| Operator::F32x4Sub
|
3388
|
-
| Operator::F32x4Mul
|
3389
|
-
| Operator::F32x4Div
|
3390
|
-
| Operator::F32x4Min
|
3391
|
-
| Operator::F32x4Max
|
3392
|
-
| Operator::F32x4PMin
|
3393
|
-
| Operator::F32x4PMax
|
3394
|
-
| Operator::F32x4ConvertI32x4S
|
3395
|
-
| Operator::F32x4ConvertI32x4U
|
3396
|
-
| Operator::F32x4Ceil
|
3397
|
-
| Operator::F32x4Floor
|
3398
|
-
| Operator::F32x4Trunc
|
3399
|
-
| Operator::F32x4Nearest
|
3400
|
-
| Operator::F32x4RelaxedMax
|
3401
|
-
| Operator::F32x4RelaxedMin
|
3402
|
-
| Operator::F32x4RelaxedMadd
|
3403
|
-
| Operator::F32x4RelaxedNmadd => F32X4,
|
3404
|
-
|
3405
|
-
Operator::F64x2Splat
|
3406
|
-
| Operator::F64x2ExtractLane { .. }
|
3407
|
-
| Operator::F64x2ReplaceLane { .. }
|
3408
|
-
| Operator::F64x2Eq
|
3409
|
-
| Operator::F64x2Ne
|
3410
|
-
| Operator::F64x2Lt
|
3411
|
-
| Operator::F64x2Gt
|
3412
|
-
| Operator::F64x2Le
|
3413
|
-
| Operator::F64x2Ge
|
3414
|
-
| Operator::F64x2Abs
|
3415
|
-
| Operator::F64x2Neg
|
3416
|
-
| Operator::F64x2Sqrt
|
3417
|
-
| Operator::F64x2Add
|
3418
|
-
| Operator::F64x2Sub
|
3419
|
-
| Operator::F64x2Mul
|
3420
|
-
| Operator::F64x2Div
|
3421
|
-
| Operator::F64x2Min
|
3422
|
-
| Operator::F64x2Max
|
3423
|
-
| Operator::F64x2PMin
|
3424
|
-
| Operator::F64x2PMax
|
3425
|
-
| Operator::F64x2Ceil
|
3426
|
-
| Operator::F64x2Floor
|
3427
|
-
| Operator::F64x2Trunc
|
3428
|
-
| Operator::F64x2Nearest
|
3429
|
-
| Operator::F64x2RelaxedMax
|
3430
|
-
| Operator::F64x2RelaxedMin
|
3431
|
-
| Operator::F64x2RelaxedMadd
|
3432
|
-
| Operator::F64x2RelaxedNmadd => F64X2,
|
3433
|
-
|
3434
|
-
_ => unimplemented!(
|
3435
|
-
"Currently only SIMD instructions are mapped to their return type; the \
|
3436
|
-
following instruction is not mapped: {:?}",
|
3437
|
-
operator
|
3438
|
-
),
|
3439
|
-
}
|
3440
|
-
}
|
3441
|
-
|
3442
|
-
/// Some SIMD operations only operate on I8X16 in CLIF; this will convert them to that type by
|
3443
|
-
/// adding a bitcast if necessary.
|
3444
|
-
fn optionally_bitcast_vector(
|
3445
|
-
value: Value,
|
3446
|
-
needed_type: Type,
|
3447
|
-
builder: &mut FunctionBuilder,
|
3448
|
-
) -> Value {
|
3449
|
-
if builder.func.dfg.value_type(value) != needed_type {
|
3450
|
-
let mut flags = MemFlags::new();
|
3451
|
-
flags.set_endianness(ir::Endianness::Little);
|
3452
|
-
builder.ins().bitcast(needed_type, flags, value)
|
3453
|
-
} else {
|
3454
|
-
value
|
3455
|
-
}
|
3456
|
-
}
|
3457
|
-
|
3458
|
-
#[inline(always)]
|
3459
|
-
fn is_non_canonical_v128(ty: ir::Type) -> bool {
|
3460
|
-
match ty {
|
3461
|
-
I64X2 | I32X4 | I16X8 | F32X4 | F64X2 => true,
|
3462
|
-
_ => false,
|
3463
|
-
}
|
3464
|
-
}
|
3465
|
-
|
3466
|
-
/// Cast to I8X16, any vector values in `values` that are of "non-canonical" type (meaning, not
|
3467
|
-
/// I8X16), and return them in a slice. A pre-scan is made to determine whether any casts are
|
3468
|
-
/// actually necessary, and if not, the original slice is returned. Otherwise the cast values
|
3469
|
-
/// are returned in a slice that belongs to the caller-supplied `SmallVec`.
|
3470
|
-
fn canonicalise_v128_values<'a>(
|
3471
|
-
tmp_canonicalised: &'a mut SmallVec<[ir::Value; 16]>,
|
3472
|
-
builder: &mut FunctionBuilder,
|
3473
|
-
values: &'a [ir::Value],
|
3474
|
-
) -> &'a [ir::Value] {
|
3475
|
-
debug_assert!(tmp_canonicalised.is_empty());
|
3476
|
-
// First figure out if any of the parameters need to be cast. Mostly they don't need to be.
|
3477
|
-
let any_non_canonical = values
|
3478
|
-
.iter()
|
3479
|
-
.any(|v| is_non_canonical_v128(builder.func.dfg.value_type(*v)));
|
3480
|
-
// Hopefully we take this exit most of the time, hence doing no heap allocation.
|
3481
|
-
if !any_non_canonical {
|
3482
|
-
return values;
|
3483
|
-
}
|
3484
|
-
// Otherwise we'll have to cast, and push the resulting `Value`s into `canonicalised`.
|
3485
|
-
for v in values {
|
3486
|
-
tmp_canonicalised.push(if is_non_canonical_v128(builder.func.dfg.value_type(*v)) {
|
3487
|
-
let mut flags = MemFlags::new();
|
3488
|
-
flags.set_endianness(ir::Endianness::Little);
|
3489
|
-
builder.ins().bitcast(I8X16, flags, *v)
|
3490
|
-
} else {
|
3491
|
-
*v
|
3492
|
-
});
|
3493
|
-
}
|
3494
|
-
tmp_canonicalised.as_slice()
|
3495
|
-
}
|
3496
|
-
|
3497
|
-
/// Generate a `jump` instruction, but first cast all 128-bit vector values to I8X16 if they
|
3498
|
-
/// don't have that type. This is done in somewhat roundabout way so as to ensure that we
|
3499
|
-
/// almost never have to do any heap allocation.
|
3500
|
-
fn canonicalise_then_jump(
|
3501
|
-
builder: &mut FunctionBuilder,
|
3502
|
-
destination: ir::Block,
|
3503
|
-
params: &[ir::Value],
|
3504
|
-
) -> ir::Inst {
|
3505
|
-
let mut tmp_canonicalised = SmallVec::<[ir::Value; 16]>::new();
|
3506
|
-
let canonicalised = canonicalise_v128_values(&mut tmp_canonicalised, builder, params);
|
3507
|
-
builder.ins().jump(destination, canonicalised)
|
3508
|
-
}
|
3509
|
-
|
3510
|
-
/// The same but for a `brif` instruction.
|
3511
|
-
fn canonicalise_brif(
|
3512
|
-
builder: &mut FunctionBuilder,
|
3513
|
-
cond: ir::Value,
|
3514
|
-
block_then: ir::Block,
|
3515
|
-
params_then: &[ir::Value],
|
3516
|
-
block_else: ir::Block,
|
3517
|
-
params_else: &[ir::Value],
|
3518
|
-
) -> ir::Inst {
|
3519
|
-
let mut tmp_canonicalised_then = SmallVec::<[ir::Value; 16]>::new();
|
3520
|
-
let canonicalised_then =
|
3521
|
-
canonicalise_v128_values(&mut tmp_canonicalised_then, builder, params_then);
|
3522
|
-
let mut tmp_canonicalised_else = SmallVec::<[ir::Value; 16]>::new();
|
3523
|
-
let canonicalised_else =
|
3524
|
-
canonicalise_v128_values(&mut tmp_canonicalised_else, builder, params_else);
|
3525
|
-
builder.ins().brif(
|
3526
|
-
cond,
|
3527
|
-
block_then,
|
3528
|
-
canonicalised_then,
|
3529
|
-
block_else,
|
3530
|
-
canonicalised_else,
|
3531
|
-
)
|
3532
|
-
}
|
3533
|
-
|
3534
|
-
/// A helper for popping and bitcasting a single value; since SIMD values can lose their type by
|
3535
|
-
/// using v128 (i.e. CLIF's I8x16) we must re-type the values using a bitcast to avoid CLIF
|
3536
|
-
/// typing issues.
|
3537
|
-
fn pop1_with_bitcast(
|
3538
|
-
state: &mut FuncTranslationState,
|
3539
|
-
needed_type: Type,
|
3540
|
-
builder: &mut FunctionBuilder,
|
3541
|
-
) -> Value {
|
3542
|
-
optionally_bitcast_vector(state.pop1(), needed_type, builder)
|
3543
|
-
}
|
3544
|
-
|
3545
|
-
/// A helper for popping and bitcasting two values; since SIMD values can lose their type by
|
3546
|
-
/// using v128 (i.e. CLIF's I8x16) we must re-type the values using a bitcast to avoid CLIF
|
3547
|
-
/// typing issues.
|
3548
|
-
fn pop2_with_bitcast(
|
3549
|
-
state: &mut FuncTranslationState,
|
3550
|
-
needed_type: Type,
|
3551
|
-
builder: &mut FunctionBuilder,
|
3552
|
-
) -> (Value, Value) {
|
3553
|
-
let (a, b) = state.pop2();
|
3554
|
-
let bitcast_a = optionally_bitcast_vector(a, needed_type, builder);
|
3555
|
-
let bitcast_b = optionally_bitcast_vector(b, needed_type, builder);
|
3556
|
-
(bitcast_a, bitcast_b)
|
3557
|
-
}
|
3558
|
-
|
3559
|
-
fn pop3_with_bitcast(
|
3560
|
-
state: &mut FuncTranslationState,
|
3561
|
-
needed_type: Type,
|
3562
|
-
builder: &mut FunctionBuilder,
|
3563
|
-
) -> (Value, Value, Value) {
|
3564
|
-
let (a, b, c) = state.pop3();
|
3565
|
-
let bitcast_a = optionally_bitcast_vector(a, needed_type, builder);
|
3566
|
-
let bitcast_b = optionally_bitcast_vector(b, needed_type, builder);
|
3567
|
-
let bitcast_c = optionally_bitcast_vector(c, needed_type, builder);
|
3568
|
-
(bitcast_a, bitcast_b, bitcast_c)
|
3569
|
-
}
|
3570
|
-
|
3571
|
-
fn bitcast_arguments<'a>(
|
3572
|
-
builder: &FunctionBuilder,
|
3573
|
-
arguments: &'a mut [Value],
|
3574
|
-
params: &[ir::AbiParam],
|
3575
|
-
param_predicate: impl Fn(usize) -> bool,
|
3576
|
-
) -> Vec<(Type, &'a mut Value)> {
|
3577
|
-
let filtered_param_types = params
|
3578
|
-
.iter()
|
3579
|
-
.enumerate()
|
3580
|
-
.filter(|(i, _)| param_predicate(*i))
|
3581
|
-
.map(|(_, param)| param.value_type);
|
3582
|
-
|
3583
|
-
// zip_eq, from the itertools::Itertools trait, is like Iterator::zip but panics if one
|
3584
|
-
// iterator ends before the other. The `param_predicate` is required to select exactly as many
|
3585
|
-
// elements of `params` as there are elements in `arguments`.
|
3586
|
-
let pairs = filtered_param_types.zip_eq(arguments.iter_mut());
|
3587
|
-
|
3588
|
-
// The arguments which need to be bitcasted are those which have some vector type but the type
|
3589
|
-
// expected by the parameter is not the same vector type as that of the provided argument.
|
3590
|
-
pairs
|
3591
|
-
.filter(|(param_type, _)| param_type.is_vector())
|
3592
|
-
.filter(|(param_type, arg)| {
|
3593
|
-
let arg_type = builder.func.dfg.value_type(**arg);
|
3594
|
-
assert!(
|
3595
|
-
arg_type.is_vector(),
|
3596
|
-
"unexpected type mismatch: expected {}, argument {} was actually of type {}",
|
3597
|
-
param_type,
|
3598
|
-
*arg,
|
3599
|
-
arg_type
|
3600
|
-
);
|
3601
|
-
|
3602
|
-
// This is the same check that would be done by `optionally_bitcast_vector`, except we
|
3603
|
-
// can't take a mutable borrow of the FunctionBuilder here, so we defer inserting the
|
3604
|
-
// bitcast instruction to the caller.
|
3605
|
-
arg_type != *param_type
|
3606
|
-
})
|
3607
|
-
.collect()
|
3608
|
-
}
|
3609
|
-
|
3610
|
-
/// A helper for bitcasting a sequence of return values for the function currently being built. If
|
3611
|
-
/// a value is a vector type that does not match its expected type, this will modify the value in
|
3612
|
-
/// place to point to the result of a `bitcast`. This conversion is necessary to translate Wasm
|
3613
|
-
/// code that uses `V128` as function parameters (or implicitly in block parameters) and still use
|
3614
|
-
/// specific CLIF types (e.g. `I32X4`) in the function body.
|
3615
|
-
pub fn bitcast_wasm_returns<FE: FuncEnvironment + ?Sized>(
|
3616
|
-
environ: &mut FE,
|
3617
|
-
arguments: &mut [Value],
|
3618
|
-
builder: &mut FunctionBuilder,
|
3619
|
-
) {
|
3620
|
-
let changes = bitcast_arguments(builder, arguments, &builder.func.signature.returns, |i| {
|
3621
|
-
environ.is_wasm_return(&builder.func.signature, i)
|
3622
|
-
});
|
3623
|
-
for (t, arg) in changes {
|
3624
|
-
let mut flags = MemFlags::new();
|
3625
|
-
flags.set_endianness(ir::Endianness::Little);
|
3626
|
-
*arg = builder.ins().bitcast(t, flags, *arg);
|
3627
|
-
}
|
3628
|
-
}
|
3629
|
-
|
3630
|
-
/// Like `bitcast_wasm_returns`, but for the parameters being passed to a specified callee.
|
3631
|
-
fn bitcast_wasm_params<FE: FuncEnvironment + ?Sized>(
|
3632
|
-
environ: &mut FE,
|
3633
|
-
callee_signature: ir::SigRef,
|
3634
|
-
arguments: &mut [Value],
|
3635
|
-
builder: &mut FunctionBuilder,
|
3636
|
-
) {
|
3637
|
-
let callee_signature = &builder.func.dfg.signatures[callee_signature];
|
3638
|
-
let changes = bitcast_arguments(builder, arguments, &callee_signature.params, |i| {
|
3639
|
-
environ.is_wasm_parameter(&callee_signature, i)
|
3640
|
-
});
|
3641
|
-
for (t, arg) in changes {
|
3642
|
-
let mut flags = MemFlags::new();
|
3643
|
-
flags.set_endianness(ir::Endianness::Little);
|
3644
|
-
*arg = builder.ins().bitcast(t, flags, *arg);
|
3645
|
-
}
|
3646
|
-
}
|