wasmtime 15.0.1 → 16.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1212) hide show
  1. checksums.yaml +4 -4
  2. data/Cargo.lock +83 -103
  3. data/ext/Cargo.toml +6 -6
  4. data/ext/cargo-vendor/cranelift-bforest-0.103.0/.cargo-checksum.json +1 -0
  5. data/ext/cargo-vendor/cranelift-bforest-0.103.0/Cargo.toml +40 -0
  6. data/ext/cargo-vendor/cranelift-bforest-0.103.0/src/lib.rs +183 -0
  7. data/ext/cargo-vendor/cranelift-codegen-0.103.0/.cargo-checksum.json +1 -0
  8. data/ext/cargo-vendor/cranelift-codegen-0.103.0/Cargo.toml +175 -0
  9. data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/binemit/mod.rs +171 -0
  10. data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/egraph/cost.rs +171 -0
  11. data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/egraph/elaborate.rs +750 -0
  12. data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/egraph.rs +703 -0
  13. data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/ir/dfg.rs +1735 -0
  14. data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/ir/pcc.rs +1682 -0
  15. data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/isa/aarch64/lower/isle.rs +874 -0
  16. data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/isa/riscv64/inst/mod.rs +2041 -0
  17. data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/isa/riscv64/inst.isle +2928 -0
  18. data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/isa/riscv64/lower.isle +2864 -0
  19. data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/isa/s390x/lower/isle.rs +1029 -0
  20. data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/isa/x64/lower/isle.rs +1064 -0
  21. data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/isa/x64/pcc.rs +916 -0
  22. data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/isle_prelude.rs +977 -0
  23. data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/lib.rs +106 -0
  24. data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/machinst/isle.rs +896 -0
  25. data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/opts/arithmetic.isle +152 -0
  26. data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/opts/cprop.isle +237 -0
  27. data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/opts/icmp.isle +199 -0
  28. data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/opts/selects.isle +76 -0
  29. data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/opts.rs +172 -0
  30. data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/prelude.isle +649 -0
  31. data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/timing.rs +297 -0
  32. data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/unionfind.rs +75 -0
  33. data/ext/cargo-vendor/cranelift-codegen-meta-0.103.0/.cargo-checksum.json +1 -0
  34. data/ext/cargo-vendor/cranelift-codegen-meta-0.103.0/Cargo.toml +35 -0
  35. data/ext/cargo-vendor/cranelift-codegen-shared-0.103.0/.cargo-checksum.json +1 -0
  36. data/ext/cargo-vendor/cranelift-codegen-shared-0.103.0/Cargo.toml +22 -0
  37. data/ext/cargo-vendor/cranelift-codegen-shared-0.103.0/src/lib.rs +10 -0
  38. data/ext/cargo-vendor/cranelift-control-0.103.0/.cargo-checksum.json +1 -0
  39. data/ext/cargo-vendor/cranelift-control-0.103.0/Cargo.toml +30 -0
  40. data/ext/cargo-vendor/cranelift-entity-0.103.0/.cargo-checksum.json +1 -0
  41. data/ext/cargo-vendor/cranelift-entity-0.103.0/Cargo.toml +50 -0
  42. data/ext/cargo-vendor/cranelift-entity-0.103.0/src/lib.rs +317 -0
  43. data/ext/cargo-vendor/cranelift-entity-0.103.0/src/primary.rs +516 -0
  44. data/ext/cargo-vendor/cranelift-entity-0.103.0/src/unsigned.rs +71 -0
  45. data/ext/cargo-vendor/cranelift-frontend-0.103.0/.cargo-checksum.json +1 -0
  46. data/ext/cargo-vendor/cranelift-frontend-0.103.0/Cargo.toml +68 -0
  47. data/ext/cargo-vendor/cranelift-frontend-0.103.0/src/lib.rs +189 -0
  48. data/ext/cargo-vendor/cranelift-isle-0.103.0/.cargo-checksum.json +1 -0
  49. data/ext/cargo-vendor/cranelift-isle-0.103.0/Cargo.toml +46 -0
  50. data/ext/cargo-vendor/cranelift-isle-0.103.0/isle_examples/link/multi_constructor_main.rs +88 -0
  51. data/ext/cargo-vendor/cranelift-isle-0.103.0/isle_examples/link/multi_extractor_main.rs +63 -0
  52. data/ext/cargo-vendor/cranelift-isle-0.103.0/src/codegen.rs +886 -0
  53. data/ext/cargo-vendor/cranelift-native-0.103.0/.cargo-checksum.json +1 -0
  54. data/ext/cargo-vendor/cranelift-native-0.103.0/Cargo.toml +43 -0
  55. data/ext/cargo-vendor/cranelift-native-0.103.0/src/lib.rs +184 -0
  56. data/ext/cargo-vendor/cranelift-wasm-0.103.0/.cargo-checksum.json +1 -0
  57. data/ext/cargo-vendor/cranelift-wasm-0.103.0/Cargo.toml +106 -0
  58. data/ext/cargo-vendor/cranelift-wasm-0.103.0/src/environ/dummy.rs +953 -0
  59. data/ext/cargo-vendor/cranelift-wasm-0.103.0/src/lib.rs +62 -0
  60. data/ext/cargo-vendor/cranelift-wasm-0.103.0/src/translation_utils.rs +89 -0
  61. data/ext/cargo-vendor/wasi-cap-std-sync-16.0.0/.cargo-checksum.json +1 -0
  62. data/ext/cargo-vendor/wasi-cap-std-sync-16.0.0/Cargo.toml +102 -0
  63. data/ext/cargo-vendor/wasi-common-16.0.0/.cargo-checksum.json +1 -0
  64. data/ext/cargo-vendor/wasi-common-16.0.0/Cargo.toml +131 -0
  65. data/ext/cargo-vendor/wasi-common-16.0.0/src/lib.rs +76 -0
  66. data/ext/cargo-vendor/wasi-common-16.0.0/src/snapshots/preview_1.rs +1492 -0
  67. data/ext/cargo-vendor/wasmtime-16.0.0/.cargo-checksum.json +1 -0
  68. data/ext/cargo-vendor/wasmtime-16.0.0/Cargo.toml +211 -0
  69. data/ext/cargo-vendor/wasmtime-16.0.0/src/compiler.rs +682 -0
  70. data/ext/cargo-vendor/wasmtime-16.0.0/src/component/component.rs +505 -0
  71. data/ext/cargo-vendor/wasmtime-16.0.0/src/component/func/typed.rs +2400 -0
  72. data/ext/cargo-vendor/wasmtime-16.0.0/src/config.rs +2422 -0
  73. data/ext/cargo-vendor/wasmtime-16.0.0/src/func.rs +2391 -0
  74. data/ext/cargo-vendor/wasmtime-16.0.0/src/lib.rs +520 -0
  75. data/ext/cargo-vendor/wasmtime-16.0.0/src/memory.rs +998 -0
  76. data/ext/cargo-vendor/wasmtime-16.0.0/src/module.rs +1370 -0
  77. data/ext/cargo-vendor/wasmtime-16.0.0/src/stack.rs +73 -0
  78. data/ext/cargo-vendor/wasmtime-16.0.0/src/v128.rs +122 -0
  79. data/ext/cargo-vendor/wasmtime-asm-macros-16.0.0/.cargo-checksum.json +1 -0
  80. data/ext/cargo-vendor/wasmtime-asm-macros-16.0.0/Cargo.toml +22 -0
  81. data/ext/cargo-vendor/wasmtime-cache-16.0.0/.cargo-checksum.json +1 -0
  82. data/ext/cargo-vendor/wasmtime-cache-16.0.0/Cargo.toml +81 -0
  83. data/ext/cargo-vendor/wasmtime-cache-16.0.0/src/lib.rs +235 -0
  84. data/ext/cargo-vendor/wasmtime-cache-16.0.0/src/worker.rs +890 -0
  85. data/ext/cargo-vendor/wasmtime-component-macro-16.0.0/.cargo-checksum.json +1 -0
  86. data/ext/cargo-vendor/wasmtime-component-macro-16.0.0/Cargo.toml +67 -0
  87. data/ext/cargo-vendor/wasmtime-component-util-16.0.0/.cargo-checksum.json +1 -0
  88. data/ext/cargo-vendor/wasmtime-component-util-16.0.0/Cargo.toml +25 -0
  89. data/ext/cargo-vendor/wasmtime-cranelift-16.0.0/.cargo-checksum.json +1 -0
  90. data/ext/cargo-vendor/wasmtime-cranelift-16.0.0/Cargo.toml +112 -0
  91. data/ext/cargo-vendor/wasmtime-cranelift-16.0.0/src/compiler/component.rs +959 -0
  92. data/ext/cargo-vendor/wasmtime-cranelift-16.0.0/src/compiler.rs +1317 -0
  93. data/ext/cargo-vendor/wasmtime-cranelift-16.0.0/src/debug/transform/expression.rs +1252 -0
  94. data/ext/cargo-vendor/wasmtime-cranelift-16.0.0/src/debug/transform/simulate.rs +410 -0
  95. data/ext/cargo-vendor/wasmtime-cranelift-16.0.0/src/debug.rs +18 -0
  96. data/ext/cargo-vendor/wasmtime-cranelift-16.0.0/src/func_environ.rs +2750 -0
  97. data/ext/cargo-vendor/wasmtime-cranelift-shared-16.0.0/.cargo-checksum.json +1 -0
  98. data/ext/cargo-vendor/wasmtime-cranelift-shared-16.0.0/Cargo.toml +71 -0
  99. data/ext/cargo-vendor/wasmtime-environ-16.0.0/.cargo-checksum.json +1 -0
  100. data/ext/cargo-vendor/wasmtime-environ-16.0.0/Cargo.lock +660 -0
  101. data/ext/cargo-vendor/wasmtime-environ-16.0.0/Cargo.toml +125 -0
  102. data/ext/cargo-vendor/wasmtime-environ-16.0.0/src/compilation.rs +402 -0
  103. data/ext/cargo-vendor/wasmtime-environ-16.0.0/src/component/compiler.rs +47 -0
  104. data/ext/cargo-vendor/wasmtime-environ-16.0.0/src/component/translate.rs +951 -0
  105. data/ext/cargo-vendor/wasmtime-environ-16.0.0/src/component/types.rs +1876 -0
  106. data/ext/cargo-vendor/wasmtime-environ-16.0.0/src/lib.rs +59 -0
  107. data/ext/cargo-vendor/wasmtime-environ-16.0.0/src/module.rs +1075 -0
  108. data/ext/cargo-vendor/wasmtime-environ-16.0.0/src/module_environ.rs +892 -0
  109. data/ext/cargo-vendor/wasmtime-environ-16.0.0/src/module_types.rs +120 -0
  110. data/ext/cargo-vendor/wasmtime-environ-16.0.0/src/scopevec.rs +78 -0
  111. data/ext/cargo-vendor/wasmtime-fiber-16.0.0/.cargo-checksum.json +1 -0
  112. data/ext/cargo-vendor/wasmtime-fiber-16.0.0/Cargo.toml +63 -0
  113. data/ext/cargo-vendor/wasmtime-fiber-16.0.0/src/lib.rs +328 -0
  114. data/ext/cargo-vendor/wasmtime-fiber-16.0.0/src/unix.rs +265 -0
  115. data/ext/cargo-vendor/wasmtime-fiber-16.0.0/src/windows.c +9 -0
  116. data/ext/cargo-vendor/wasmtime-jit-16.0.0/.cargo-checksum.json +1 -0
  117. data/ext/cargo-vendor/wasmtime-jit-16.0.0/Cargo.toml +125 -0
  118. data/ext/cargo-vendor/wasmtime-jit-16.0.0/src/code_memory.rs +319 -0
  119. data/ext/cargo-vendor/wasmtime-jit-16.0.0/src/instantiate.rs +772 -0
  120. data/ext/cargo-vendor/wasmtime-jit-16.0.0/src/lib.rs +21 -0
  121. data/ext/cargo-vendor/wasmtime-jit-debug-16.0.0/.cargo-checksum.json +1 -0
  122. data/ext/cargo-vendor/wasmtime-jit-debug-16.0.0/Cargo.toml +67 -0
  123. data/ext/cargo-vendor/wasmtime-jit-icache-coherence-16.0.0/.cargo-checksum.json +1 -0
  124. data/ext/cargo-vendor/wasmtime-jit-icache-coherence-16.0.0/Cargo.toml +46 -0
  125. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/.cargo-checksum.json +1 -0
  126. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/Cargo.toml +139 -0
  127. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/build.rs +28 -0
  128. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/proptest-regressions/instance/allocator/pooling/memory_pool.txt +9 -0
  129. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/arch/aarch64.rs +120 -0
  130. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/arch/mod.rs +32 -0
  131. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/arch/riscv64.rs +88 -0
  132. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/arch/s390x.rs +61 -0
  133. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/arch/x86_64.rs +106 -0
  134. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/cow.rs +888 -0
  135. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/helpers.c +113 -0
  136. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/instance/allocator/pooling/memory_pool.rs +1005 -0
  137. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/instance/allocator/pooling/stack_pool.rs +242 -0
  138. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/instance/allocator/pooling/table_pool.rs +227 -0
  139. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/instance/allocator/pooling.rs +698 -0
  140. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/lib.rs +264 -0
  141. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/libcalls.rs +776 -0
  142. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/mmap.rs +214 -0
  143. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/mpk/enabled.rs +204 -0
  144. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/mpk/pkru.rs +102 -0
  145. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/sys/miri/mod.rs +10 -0
  146. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/sys/miri/traphandlers.rs +42 -0
  147. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/sys/miri/unwind.rs +17 -0
  148. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/sys/miri/vm.rs +63 -0
  149. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/sys/mod.rs +30 -0
  150. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/sys/unix/machports.rs +487 -0
  151. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/sys/unix/macos_traphandlers.rs +28 -0
  152. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/sys/unix/mod.rs +21 -0
  153. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/sys/unix/signals.rs +402 -0
  154. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/sys/unix/unwind.rs +91 -0
  155. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/sys/unix/vm.rs +208 -0
  156. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/sys/windows/mod.rs +6 -0
  157. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/sys/windows/traphandlers.rs +105 -0
  158. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/sys/windows/unwind.rs +46 -0
  159. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/sys/windows/vm.rs +79 -0
  160. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/traphandlers/backtrace.rs +265 -0
  161. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/traphandlers.rs +733 -0
  162. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/vmcontext.rs +1197 -0
  163. data/ext/cargo-vendor/wasmtime-types-16.0.0/.cargo-checksum.json +1 -0
  164. data/ext/cargo-vendor/wasmtime-types-16.0.0/Cargo.toml +36 -0
  165. data/ext/cargo-vendor/wasmtime-types-16.0.0/src/lib.rs +504 -0
  166. data/ext/cargo-vendor/wasmtime-versioned-export-macros-16.0.0/.cargo-checksum.json +1 -0
  167. data/ext/cargo-vendor/wasmtime-versioned-export-macros-16.0.0/Cargo.toml +32 -0
  168. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/.cargo-checksum.json +1 -0
  169. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/Cargo.toml +261 -0
  170. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/src/lib.rs +137 -0
  171. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/src/preview2/host/io.rs +368 -0
  172. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/src/preview2/host/network.rs +570 -0
  173. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/src/preview2/host/tcp.rs +632 -0
  174. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/src/preview2/host/udp.rs +550 -0
  175. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/src/preview2/mod.rs +328 -0
  176. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/src/preview2/preview0.rs +870 -0
  177. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/src/preview2/preview1.rs +2348 -0
  178. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/src/preview2/stdio.rs +259 -0
  179. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/src/preview2/stream.rs +182 -0
  180. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/src/preview2/table.rs +337 -0
  181. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/tests/all/api.rs +218 -0
  182. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/tests/all/async_.rs +360 -0
  183. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/tests/all/main.rs +113 -0
  184. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/tests/all/preview1.rs +239 -0
  185. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/tests/all/sync.rs +299 -0
  186. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/tests/process_stdin.rs +165 -0
  187. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/wit/command-extended.wit +6 -0
  188. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/wit/deps/cli/command.wit +7 -0
  189. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/wit/deps/cli/imports.wit +20 -0
  190. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/wit/deps/http/proxy.wit +32 -0
  191. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/wit/deps/http/types.wit +570 -0
  192. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/wit/test.wit +22 -0
  193. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/witx/preview0/typenames.witx +746 -0
  194. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/witx/preview0/wasi_unstable.witx +513 -0
  195. data/ext/cargo-vendor/wasmtime-winch-16.0.0/.cargo-checksum.json +1 -0
  196. data/ext/cargo-vendor/wasmtime-winch-16.0.0/Cargo.toml +77 -0
  197. data/ext/cargo-vendor/wasmtime-winch-16.0.0/src/compiler.rs +243 -0
  198. data/ext/cargo-vendor/wasmtime-wit-bindgen-16.0.0/.cargo-checksum.json +1 -0
  199. data/ext/cargo-vendor/wasmtime-wit-bindgen-16.0.0/Cargo.toml +41 -0
  200. data/ext/cargo-vendor/wasmtime-wmemcheck-16.0.0/.cargo-checksum.json +1 -0
  201. data/ext/cargo-vendor/wasmtime-wmemcheck-16.0.0/Cargo.toml +29 -0
  202. data/ext/cargo-vendor/wiggle-16.0.0/.cargo-checksum.json +1 -0
  203. data/ext/cargo-vendor/wiggle-16.0.0/Cargo.toml +115 -0
  204. data/ext/cargo-vendor/wiggle-16.0.0/src/lib.rs +1198 -0
  205. data/ext/cargo-vendor/wiggle-generate-16.0.0/.cargo-checksum.json +1 -0
  206. data/ext/cargo-vendor/wiggle-generate-16.0.0/Cargo.toml +65 -0
  207. data/ext/cargo-vendor/wiggle-generate-16.0.0/src/types/handle.rs +84 -0
  208. data/ext/cargo-vendor/wiggle-generate-16.0.0/src/types/record.rs +132 -0
  209. data/ext/cargo-vendor/wiggle-generate-16.0.0/src/types/variant.rs +191 -0
  210. data/ext/cargo-vendor/wiggle-macro-16.0.0/.cargo-checksum.json +1 -0
  211. data/ext/cargo-vendor/wiggle-macro-16.0.0/Cargo.toml +55 -0
  212. data/ext/cargo-vendor/winch-codegen-0.14.0/.cargo-checksum.json +1 -0
  213. data/ext/cargo-vendor/winch-codegen-0.14.0/Cargo.toml +76 -0
  214. data/ext/cargo-vendor/winch-codegen-0.14.0/src/abi/local.rs +81 -0
  215. data/ext/cargo-vendor/winch-codegen-0.14.0/src/abi/mod.rs +614 -0
  216. data/ext/cargo-vendor/winch-codegen-0.14.0/src/codegen/call.rs +345 -0
  217. data/ext/cargo-vendor/winch-codegen-0.14.0/src/codegen/context.rs +545 -0
  218. data/ext/cargo-vendor/winch-codegen-0.14.0/src/codegen/control.rs +497 -0
  219. data/ext/cargo-vendor/winch-codegen-0.14.0/src/codegen/env.rs +251 -0
  220. data/ext/cargo-vendor/winch-codegen-0.14.0/src/codegen/mod.rs +428 -0
  221. data/ext/cargo-vendor/winch-codegen-0.14.0/src/frame/mod.rs +221 -0
  222. data/ext/cargo-vendor/winch-codegen-0.14.0/src/isa/aarch64/abi.rs +313 -0
  223. data/ext/cargo-vendor/winch-codegen-0.14.0/src/isa/aarch64/masm.rs +444 -0
  224. data/ext/cargo-vendor/winch-codegen-0.14.0/src/isa/aarch64/mod.rs +137 -0
  225. data/ext/cargo-vendor/winch-codegen-0.14.0/src/isa/mod.rs +225 -0
  226. data/ext/cargo-vendor/winch-codegen-0.14.0/src/isa/x64/abi.rs +524 -0
  227. data/ext/cargo-vendor/winch-codegen-0.14.0/src/isa/x64/asm.rs +1117 -0
  228. data/ext/cargo-vendor/winch-codegen-0.14.0/src/isa/x64/masm.rs +994 -0
  229. data/ext/cargo-vendor/winch-codegen-0.14.0/src/isa/x64/mod.rs +172 -0
  230. data/ext/cargo-vendor/winch-codegen-0.14.0/src/isa/x64/regs.rs +247 -0
  231. data/ext/cargo-vendor/winch-codegen-0.14.0/src/masm.rs +679 -0
  232. data/ext/cargo-vendor/winch-codegen-0.14.0/src/stack.rs +436 -0
  233. data/ext/cargo-vendor/winch-codegen-0.14.0/src/trampoline.rs +734 -0
  234. data/ext/cargo-vendor/winch-codegen-0.14.0/src/visitor.rs +1383 -0
  235. data/lib/wasmtime/version.rb +1 -1
  236. metadata +903 -977
  237. data/ext/cargo-vendor/cranelift-bforest-0.102.1/.cargo-checksum.json +0 -1
  238. data/ext/cargo-vendor/cranelift-bforest-0.102.1/Cargo.toml +0 -31
  239. data/ext/cargo-vendor/cranelift-bforest-0.102.1/src/lib.rs +0 -184
  240. data/ext/cargo-vendor/cranelift-codegen-0.102.1/.cargo-checksum.json +0 -1
  241. data/ext/cargo-vendor/cranelift-codegen-0.102.1/Cargo.toml +0 -164
  242. data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/binemit/mod.rs +0 -171
  243. data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/egraph/cost.rs +0 -91
  244. data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/egraph/elaborate.rs +0 -731
  245. data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/egraph.rs +0 -678
  246. data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/ir/dfg.rs +0 -1730
  247. data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/ir/pcc.rs +0 -1682
  248. data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/isa/aarch64/lower/isle.rs +0 -875
  249. data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/isa/riscv64/inst/mod.rs +0 -2041
  250. data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/isa/riscv64/inst.isle +0 -2909
  251. data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/isa/riscv64/lower.isle +0 -2860
  252. data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/isa/s390x/lower/isle.rs +0 -1029
  253. data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/isa/x64/lower/isle.rs +0 -1070
  254. data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/isa/x64/pcc.rs +0 -884
  255. data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/isle_prelude.rs +0 -972
  256. data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/lib.rs +0 -108
  257. data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/machinst/isle.rs +0 -897
  258. data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/opts/arithmetic.isle +0 -128
  259. data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/opts/cprop.isle +0 -210
  260. data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/opts/icmp.isle +0 -177
  261. data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/opts/selects.isle +0 -59
  262. data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/opts.rs +0 -138
  263. data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/prelude.isle +0 -646
  264. data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/timing.rs +0 -271
  265. data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/unionfind.rs +0 -74
  266. data/ext/cargo-vendor/cranelift-codegen-meta-0.102.1/.cargo-checksum.json +0 -1
  267. data/ext/cargo-vendor/cranelift-codegen-meta-0.102.1/Cargo.toml +0 -26
  268. data/ext/cargo-vendor/cranelift-codegen-shared-0.102.1/.cargo-checksum.json +0 -1
  269. data/ext/cargo-vendor/cranelift-codegen-shared-0.102.1/Cargo.toml +0 -22
  270. data/ext/cargo-vendor/cranelift-codegen-shared-0.102.1/src/lib.rs +0 -12
  271. data/ext/cargo-vendor/cranelift-control-0.102.1/.cargo-checksum.json +0 -1
  272. data/ext/cargo-vendor/cranelift-control-0.102.1/Cargo.toml +0 -30
  273. data/ext/cargo-vendor/cranelift-entity-0.102.1/.cargo-checksum.json +0 -1
  274. data/ext/cargo-vendor/cranelift-entity-0.102.1/Cargo.toml +0 -41
  275. data/ext/cargo-vendor/cranelift-entity-0.102.1/src/lib.rs +0 -316
  276. data/ext/cargo-vendor/cranelift-entity-0.102.1/src/primary.rs +0 -456
  277. data/ext/cargo-vendor/cranelift-frontend-0.102.1/.cargo-checksum.json +0 -1
  278. data/ext/cargo-vendor/cranelift-frontend-0.102.1/Cargo.toml +0 -59
  279. data/ext/cargo-vendor/cranelift-frontend-0.102.1/src/lib.rs +0 -191
  280. data/ext/cargo-vendor/cranelift-isle-0.102.1/.cargo-checksum.json +0 -1
  281. data/ext/cargo-vendor/cranelift-isle-0.102.1/Cargo.toml +0 -37
  282. data/ext/cargo-vendor/cranelift-isle-0.102.1/isle_examples/link/multi_constructor_main.rs +0 -71
  283. data/ext/cargo-vendor/cranelift-isle-0.102.1/isle_examples/link/multi_extractor_main.rs +0 -50
  284. data/ext/cargo-vendor/cranelift-isle-0.102.1/src/codegen.rs +0 -763
  285. data/ext/cargo-vendor/cranelift-native-0.102.1/.cargo-checksum.json +0 -1
  286. data/ext/cargo-vendor/cranelift-native-0.102.1/Cargo.toml +0 -43
  287. data/ext/cargo-vendor/cranelift-native-0.102.1/src/lib.rs +0 -190
  288. data/ext/cargo-vendor/cranelift-wasm-0.102.1/.cargo-checksum.json +0 -1
  289. data/ext/cargo-vendor/cranelift-wasm-0.102.1/Cargo.toml +0 -97
  290. data/ext/cargo-vendor/cranelift-wasm-0.102.1/src/environ/dummy.rs +0 -953
  291. data/ext/cargo-vendor/cranelift-wasm-0.102.1/src/lib.rs +0 -64
  292. data/ext/cargo-vendor/cranelift-wasm-0.102.1/src/translation_utils.rs +0 -97
  293. data/ext/cargo-vendor/wasi-cap-std-sync-15.0.1/.cargo-checksum.json +0 -1
  294. data/ext/cargo-vendor/wasi-cap-std-sync-15.0.1/Cargo.toml +0 -93
  295. data/ext/cargo-vendor/wasi-common-15.0.1/.cargo-checksum.json +0 -1
  296. data/ext/cargo-vendor/wasi-common-15.0.1/Cargo.toml +0 -122
  297. data/ext/cargo-vendor/wasi-common-15.0.1/src/lib.rs +0 -73
  298. data/ext/cargo-vendor/wasi-common-15.0.1/src/snapshots/preview_1.rs +0 -1490
  299. data/ext/cargo-vendor/wasm-encoder-0.36.2/.cargo-checksum.json +0 -1
  300. data/ext/cargo-vendor/wasm-encoder-0.36.2/Cargo.toml +0 -37
  301. data/ext/cargo-vendor/wasm-encoder-0.36.2/README.md +0 -80
  302. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/component/aliases.rs +0 -160
  303. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/component/builder.rs +0 -455
  304. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/component/canonicals.rs +0 -159
  305. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/component/components.rs +0 -29
  306. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/component/exports.rs +0 -124
  307. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/component/imports.rs +0 -175
  308. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/component/instances.rs +0 -200
  309. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/component/modules.rs +0 -29
  310. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/component/names.rs +0 -149
  311. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/component/start.rs +0 -52
  312. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/component/types.rs +0 -771
  313. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/component.rs +0 -168
  314. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/core/code.rs +0 -2989
  315. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/core/custom.rs +0 -73
  316. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/core/data.rs +0 -185
  317. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/core/dump.rs +0 -627
  318. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/core/elements.rs +0 -220
  319. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/core/exports.rs +0 -98
  320. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/core/functions.rs +0 -63
  321. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/core/globals.rs +0 -100
  322. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/core/imports.rs +0 -155
  323. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/core/linking.rs +0 -263
  324. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/core/memories.rs +0 -111
  325. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/core/names.rs +0 -265
  326. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/core/producers.rs +0 -180
  327. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/core/start.rs +0 -39
  328. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/core/tables.rs +0 -115
  329. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/core/tags.rs +0 -104
  330. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/core/types.rs +0 -584
  331. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/core.rs +0 -168
  332. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/lib.rs +0 -215
  333. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/raw.rs +0 -30
  334. data/ext/cargo-vendor/wasmparser-0.116.1/.cargo-checksum.json +0 -1
  335. data/ext/cargo-vendor/wasmparser-0.116.1/Cargo.lock +0 -674
  336. data/ext/cargo-vendor/wasmparser-0.116.1/Cargo.toml +0 -60
  337. data/ext/cargo-vendor/wasmparser-0.116.1/README.md +0 -36
  338. data/ext/cargo-vendor/wasmparser-0.116.1/benches/benchmark.rs +0 -370
  339. data/ext/cargo-vendor/wasmparser-0.116.1/examples/simple.rs +0 -37
  340. data/ext/cargo-vendor/wasmparser-0.116.1/src/binary_reader.rs +0 -1706
  341. data/ext/cargo-vendor/wasmparser-0.116.1/src/define_types.rs +0 -782
  342. data/ext/cargo-vendor/wasmparser-0.116.1/src/lib.rs +0 -729
  343. data/ext/cargo-vendor/wasmparser-0.116.1/src/limits.rs +0 -58
  344. data/ext/cargo-vendor/wasmparser-0.116.1/src/parser.rs +0 -1612
  345. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/component/aliases.rs +0 -119
  346. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/component/canonicals.rs +0 -120
  347. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/component/exports.rs +0 -135
  348. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/component/imports.rs +0 -129
  349. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/component/instances.rs +0 -163
  350. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/component/names.rs +0 -102
  351. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/component/start.rs +0 -30
  352. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/component/types.rs +0 -549
  353. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/component.rs +0 -17
  354. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core/code.rs +0 -146
  355. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core/coredumps.rs +0 -243
  356. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core/custom.rs +0 -63
  357. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core/data.rs +0 -96
  358. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core/dylink0.rs +0 -132
  359. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core/elements.rs +0 -152
  360. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core/exports.rs +0 -65
  361. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core/functions.rs +0 -17
  362. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core/globals.rs +0 -49
  363. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core/imports.rs +0 -76
  364. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core/init.rs +0 -51
  365. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core/memories.rs +0 -56
  366. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core/names.rs +0 -153
  367. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core/operators.rs +0 -354
  368. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core/producers.rs +0 -83
  369. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core/tables.rs +0 -87
  370. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core/tags.rs +0 -32
  371. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core/types.rs +0 -544
  372. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core.rs +0 -37
  373. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers.rs +0 -316
  374. data/ext/cargo-vendor/wasmparser-0.116.1/src/resources.rs +0 -398
  375. data/ext/cargo-vendor/wasmparser-0.116.1/src/validator/component.rs +0 -3203
  376. data/ext/cargo-vendor/wasmparser-0.116.1/src/validator/core.rs +0 -1341
  377. data/ext/cargo-vendor/wasmparser-0.116.1/src/validator/func.rs +0 -348
  378. data/ext/cargo-vendor/wasmparser-0.116.1/src/validator/names.rs +0 -859
  379. data/ext/cargo-vendor/wasmparser-0.116.1/src/validator/operators.rs +0 -3466
  380. data/ext/cargo-vendor/wasmparser-0.116.1/src/validator/types.rs +0 -4011
  381. data/ext/cargo-vendor/wasmparser-0.116.1/src/validator.rs +0 -1603
  382. data/ext/cargo-vendor/wasmparser-0.116.1/tests/big-module.rs +0 -33
  383. data/ext/cargo-vendor/wasmtime-15.0.1/.cargo-checksum.json +0 -1
  384. data/ext/cargo-vendor/wasmtime-15.0.1/Cargo.toml +0 -202
  385. data/ext/cargo-vendor/wasmtime-15.0.1/src/compiler.rs +0 -682
  386. data/ext/cargo-vendor/wasmtime-15.0.1/src/component/component.rs +0 -505
  387. data/ext/cargo-vendor/wasmtime-15.0.1/src/component/func/typed.rs +0 -2398
  388. data/ext/cargo-vendor/wasmtime-15.0.1/src/config.rs +0 -2422
  389. data/ext/cargo-vendor/wasmtime-15.0.1/src/func.rs +0 -2428
  390. data/ext/cargo-vendor/wasmtime-15.0.1/src/lib.rs +0 -518
  391. data/ext/cargo-vendor/wasmtime-15.0.1/src/memory.rs +0 -996
  392. data/ext/cargo-vendor/wasmtime-15.0.1/src/module.rs +0 -1370
  393. data/ext/cargo-vendor/wasmtime-15.0.1/src/stack.rs +0 -73
  394. data/ext/cargo-vendor/wasmtime-15.0.1/src/v128.rs +0 -151
  395. data/ext/cargo-vendor/wasmtime-asm-macros-15.0.1/.cargo-checksum.json +0 -1
  396. data/ext/cargo-vendor/wasmtime-asm-macros-15.0.1/Cargo.toml +0 -22
  397. data/ext/cargo-vendor/wasmtime-cache-15.0.1/.cargo-checksum.json +0 -1
  398. data/ext/cargo-vendor/wasmtime-cache-15.0.1/Cargo.toml +0 -72
  399. data/ext/cargo-vendor/wasmtime-cache-15.0.1/src/lib.rs +0 -238
  400. data/ext/cargo-vendor/wasmtime-cache-15.0.1/src/worker.rs +0 -894
  401. data/ext/cargo-vendor/wasmtime-component-macro-15.0.1/.cargo-checksum.json +0 -1
  402. data/ext/cargo-vendor/wasmtime-component-macro-15.0.1/Cargo.toml +0 -58
  403. data/ext/cargo-vendor/wasmtime-component-util-15.0.1/.cargo-checksum.json +0 -1
  404. data/ext/cargo-vendor/wasmtime-component-util-15.0.1/Cargo.toml +0 -25
  405. data/ext/cargo-vendor/wasmtime-cranelift-15.0.1/.cargo-checksum.json +0 -1
  406. data/ext/cargo-vendor/wasmtime-cranelift-15.0.1/Cargo.toml +0 -103
  407. data/ext/cargo-vendor/wasmtime-cranelift-15.0.1/src/compiler/component.rs +0 -959
  408. data/ext/cargo-vendor/wasmtime-cranelift-15.0.1/src/compiler.rs +0 -1317
  409. data/ext/cargo-vendor/wasmtime-cranelift-15.0.1/src/debug/transform/expression.rs +0 -1250
  410. data/ext/cargo-vendor/wasmtime-cranelift-15.0.1/src/debug/transform/simulate.rs +0 -410
  411. data/ext/cargo-vendor/wasmtime-cranelift-15.0.1/src/debug.rs +0 -18
  412. data/ext/cargo-vendor/wasmtime-cranelift-15.0.1/src/func_environ.rs +0 -2746
  413. data/ext/cargo-vendor/wasmtime-cranelift-shared-15.0.1/.cargo-checksum.json +0 -1
  414. data/ext/cargo-vendor/wasmtime-cranelift-shared-15.0.1/Cargo.toml +0 -62
  415. data/ext/cargo-vendor/wasmtime-environ-15.0.1/.cargo-checksum.json +0 -1
  416. data/ext/cargo-vendor/wasmtime-environ-15.0.1/Cargo.lock +0 -677
  417. data/ext/cargo-vendor/wasmtime-environ-15.0.1/Cargo.toml +0 -116
  418. data/ext/cargo-vendor/wasmtime-environ-15.0.1/src/compilation.rs +0 -402
  419. data/ext/cargo-vendor/wasmtime-environ-15.0.1/src/component/compiler.rs +0 -47
  420. data/ext/cargo-vendor/wasmtime-environ-15.0.1/src/component/translate.rs +0 -951
  421. data/ext/cargo-vendor/wasmtime-environ-15.0.1/src/component/types.rs +0 -1870
  422. data/ext/cargo-vendor/wasmtime-environ-15.0.1/src/lib.rs +0 -59
  423. data/ext/cargo-vendor/wasmtime-environ-15.0.1/src/module.rs +0 -1083
  424. data/ext/cargo-vendor/wasmtime-environ-15.0.1/src/module_environ.rs +0 -876
  425. data/ext/cargo-vendor/wasmtime-environ-15.0.1/src/module_types.rs +0 -78
  426. data/ext/cargo-vendor/wasmtime-environ-15.0.1/src/scopevec.rs +0 -57
  427. data/ext/cargo-vendor/wasmtime-fiber-15.0.1/.cargo-checksum.json +0 -1
  428. data/ext/cargo-vendor/wasmtime-fiber-15.0.1/Cargo.toml +0 -54
  429. data/ext/cargo-vendor/wasmtime-fiber-15.0.1/src/lib.rs +0 -327
  430. data/ext/cargo-vendor/wasmtime-fiber-15.0.1/src/unix.rs +0 -265
  431. data/ext/cargo-vendor/wasmtime-fiber-15.0.1/src/windows.c +0 -9
  432. data/ext/cargo-vendor/wasmtime-jit-15.0.1/.cargo-checksum.json +0 -1
  433. data/ext/cargo-vendor/wasmtime-jit-15.0.1/Cargo.toml +0 -115
  434. data/ext/cargo-vendor/wasmtime-jit-15.0.1/src/code_memory.rs +0 -321
  435. data/ext/cargo-vendor/wasmtime-jit-15.0.1/src/instantiate.rs +0 -766
  436. data/ext/cargo-vendor/wasmtime-jit-15.0.1/src/lib.rs +0 -22
  437. data/ext/cargo-vendor/wasmtime-jit-15.0.1/src/unwind/miri.rs +0 -15
  438. data/ext/cargo-vendor/wasmtime-jit-15.0.1/src/unwind/systemv.rs +0 -90
  439. data/ext/cargo-vendor/wasmtime-jit-15.0.1/src/unwind/winx64.rs +0 -44
  440. data/ext/cargo-vendor/wasmtime-jit-15.0.1/src/unwind.rs +0 -14
  441. data/ext/cargo-vendor/wasmtime-jit-debug-15.0.1/.cargo-checksum.json +0 -1
  442. data/ext/cargo-vendor/wasmtime-jit-debug-15.0.1/Cargo.toml +0 -58
  443. data/ext/cargo-vendor/wasmtime-jit-icache-coherence-15.0.1/.cargo-checksum.json +0 -1
  444. data/ext/cargo-vendor/wasmtime-jit-icache-coherence-15.0.1/Cargo.toml +0 -37
  445. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/.cargo-checksum.json +0 -1
  446. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/Cargo.toml +0 -126
  447. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/build.rs +0 -19
  448. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/proptest-regressions/instance/allocator/pooling/memory_pool.txt +0 -8
  449. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/cow.rs +0 -1060
  450. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/helpers.c +0 -108
  451. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/instance/allocator/pooling/memory_pool.rs +0 -999
  452. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/instance/allocator/pooling/stack_pool.rs +0 -242
  453. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/instance/allocator/pooling/table_pool.rs +0 -225
  454. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/instance/allocator/pooling/unix.rs +0 -56
  455. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/instance/allocator/pooling/windows.rs +0 -38
  456. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/instance/allocator/pooling.rs +0 -708
  457. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/lib.rs +0 -279
  458. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/libcalls.rs +0 -775
  459. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/mmap.rs +0 -226
  460. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/mpk/enabled.rs +0 -201
  461. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/mpk/pkru.rs +0 -93
  462. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/trampolines/aarch64.rs +0 -42
  463. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/trampolines/riscv64.rs +0 -45
  464. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/trampolines/s390x.rs +0 -25
  465. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/trampolines/x86_64.rs +0 -64
  466. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/trampolines.rs +0 -19
  467. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/traphandlers/backtrace/aarch64.rs +0 -55
  468. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/traphandlers/backtrace/riscv64.rs +0 -18
  469. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/traphandlers/backtrace/s390x.rs +0 -22
  470. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/traphandlers/backtrace/x86_64.rs +0 -20
  471. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/traphandlers/backtrace.rs +0 -291
  472. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/traphandlers/macos.rs +0 -492
  473. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/traphandlers/unix.rs +0 -402
  474. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/traphandlers/windows.rs +0 -89
  475. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/traphandlers.rs +0 -815
  476. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/vmcontext.rs +0 -1197
  477. data/ext/cargo-vendor/wasmtime-types-15.0.1/.cargo-checksum.json +0 -1
  478. data/ext/cargo-vendor/wasmtime-types-15.0.1/Cargo.toml +0 -36
  479. data/ext/cargo-vendor/wasmtime-types-15.0.1/src/lib.rs +0 -504
  480. data/ext/cargo-vendor/wasmtime-versioned-export-macros-15.0.1/.cargo-checksum.json +0 -1
  481. data/ext/cargo-vendor/wasmtime-versioned-export-macros-15.0.1/Cargo.toml +0 -32
  482. data/ext/cargo-vendor/wasmtime-wasi-15.0.1/.cargo-checksum.json +0 -1
  483. data/ext/cargo-vendor/wasmtime-wasi-15.0.1/Cargo.toml +0 -248
  484. data/ext/cargo-vendor/wasmtime-wasi-15.0.1/src/lib.rs +0 -135
  485. data/ext/cargo-vendor/wasmtime-wasi-15.0.1/src/preview2/host/io.rs +0 -368
  486. data/ext/cargo-vendor/wasmtime-wasi-15.0.1/src/preview2/host/network.rs +0 -515
  487. data/ext/cargo-vendor/wasmtime-wasi-15.0.1/src/preview2/host/tcp.rs +0 -630
  488. data/ext/cargo-vendor/wasmtime-wasi-15.0.1/src/preview2/host/udp.rs +0 -543
  489. data/ext/cargo-vendor/wasmtime-wasi-15.0.1/src/preview2/mod.rs +0 -326
  490. data/ext/cargo-vendor/wasmtime-wasi-15.0.1/src/preview2/preview1.rs +0 -2342
  491. data/ext/cargo-vendor/wasmtime-wasi-15.0.1/src/preview2/stdio.rs +0 -450
  492. data/ext/cargo-vendor/wasmtime-wasi-15.0.1/src/preview2/stream.rs +0 -182
  493. data/ext/cargo-vendor/wasmtime-wasi-15.0.1/src/preview2/table.rs +0 -258
  494. data/ext/cargo-vendor/wasmtime-wasi-15.0.1/wit/command-extended.wit +0 -6
  495. data/ext/cargo-vendor/wasmtime-wasi-15.0.1/wit/deps/cli/command.wit +0 -7
  496. data/ext/cargo-vendor/wasmtime-wasi-15.0.1/wit/deps/cli/reactor.wit +0 -31
  497. data/ext/cargo-vendor/wasmtime-wasi-15.0.1/wit/deps/http/proxy.wit +0 -33
  498. data/ext/cargo-vendor/wasmtime-wasi-15.0.1/wit/deps/http/types.wit +0 -559
  499. data/ext/cargo-vendor/wasmtime-wasi-15.0.1/wit/test.wit +0 -22
  500. data/ext/cargo-vendor/wasmtime-winch-15.0.1/.cargo-checksum.json +0 -1
  501. data/ext/cargo-vendor/wasmtime-winch-15.0.1/Cargo.toml +0 -68
  502. data/ext/cargo-vendor/wasmtime-winch-15.0.1/src/compiler.rs +0 -242
  503. data/ext/cargo-vendor/wasmtime-wit-bindgen-15.0.1/.cargo-checksum.json +0 -1
  504. data/ext/cargo-vendor/wasmtime-wit-bindgen-15.0.1/Cargo.toml +0 -32
  505. data/ext/cargo-vendor/wasmtime-wmemcheck-15.0.1/.cargo-checksum.json +0 -1
  506. data/ext/cargo-vendor/wasmtime-wmemcheck-15.0.1/Cargo.toml +0 -22
  507. data/ext/cargo-vendor/wiggle-15.0.1/.cargo-checksum.json +0 -1
  508. data/ext/cargo-vendor/wiggle-15.0.1/Cargo.toml +0 -106
  509. data/ext/cargo-vendor/wiggle-15.0.1/src/lib.rs +0 -1198
  510. data/ext/cargo-vendor/wiggle-generate-15.0.1/.cargo-checksum.json +0 -1
  511. data/ext/cargo-vendor/wiggle-generate-15.0.1/Cargo.toml +0 -58
  512. data/ext/cargo-vendor/wiggle-generate-15.0.1/LICENSE +0 -220
  513. data/ext/cargo-vendor/wiggle-generate-15.0.1/src/types/handle.rs +0 -84
  514. data/ext/cargo-vendor/wiggle-generate-15.0.1/src/types/record.rs +0 -132
  515. data/ext/cargo-vendor/wiggle-generate-15.0.1/src/types/variant.rs +0 -191
  516. data/ext/cargo-vendor/wiggle-macro-15.0.1/.cargo-checksum.json +0 -1
  517. data/ext/cargo-vendor/wiggle-macro-15.0.1/Cargo.toml +0 -55
  518. data/ext/cargo-vendor/wiggle-macro-15.0.1/LICENSE +0 -220
  519. data/ext/cargo-vendor/winch-codegen-0.13.1/.cargo-checksum.json +0 -1
  520. data/ext/cargo-vendor/winch-codegen-0.13.1/Cargo.toml +0 -67
  521. data/ext/cargo-vendor/winch-codegen-0.13.1/src/abi/local.rs +0 -70
  522. data/ext/cargo-vendor/winch-codegen-0.13.1/src/abi/mod.rs +0 -304
  523. data/ext/cargo-vendor/winch-codegen-0.13.1/src/codegen/call.rs +0 -353
  524. data/ext/cargo-vendor/winch-codegen-0.13.1/src/codegen/context.rs +0 -465
  525. data/ext/cargo-vendor/winch-codegen-0.13.1/src/codegen/control.rs +0 -456
  526. data/ext/cargo-vendor/winch-codegen-0.13.1/src/codegen/env.rs +0 -181
  527. data/ext/cargo-vendor/winch-codegen-0.13.1/src/codegen/mod.rs +0 -436
  528. data/ext/cargo-vendor/winch-codegen-0.13.1/src/frame/mod.rs +0 -189
  529. data/ext/cargo-vendor/winch-codegen-0.13.1/src/isa/aarch64/abi.rs +0 -267
  530. data/ext/cargo-vendor/winch-codegen-0.13.1/src/isa/aarch64/masm.rs +0 -436
  531. data/ext/cargo-vendor/winch-codegen-0.13.1/src/isa/aarch64/mod.rs +0 -136
  532. data/ext/cargo-vendor/winch-codegen-0.13.1/src/isa/mod.rs +0 -218
  533. data/ext/cargo-vendor/winch-codegen-0.13.1/src/isa/x64/abi.rs +0 -410
  534. data/ext/cargo-vendor/winch-codegen-0.13.1/src/isa/x64/asm.rs +0 -1106
  535. data/ext/cargo-vendor/winch-codegen-0.13.1/src/isa/x64/masm.rs +0 -953
  536. data/ext/cargo-vendor/winch-codegen-0.13.1/src/isa/x64/mod.rs +0 -172
  537. data/ext/cargo-vendor/winch-codegen-0.13.1/src/isa/x64/regs.rs +0 -247
  538. data/ext/cargo-vendor/winch-codegen-0.13.1/src/masm.rs +0 -592
  539. data/ext/cargo-vendor/winch-codegen-0.13.1/src/stack.rs +0 -366
  540. data/ext/cargo-vendor/winch-codegen-0.13.1/src/trampoline.rs +0 -489
  541. data/ext/cargo-vendor/winch-codegen-0.13.1/src/visitor.rs +0 -1339
  542. /data/ext/cargo-vendor/{cranelift-bforest-0.102.1 → cranelift-bforest-0.103.0}/LICENSE +0 -0
  543. /data/ext/cargo-vendor/{cranelift-bforest-0.102.1 → cranelift-bforest-0.103.0}/README.md +0 -0
  544. /data/ext/cargo-vendor/{cranelift-bforest-0.102.1 → cranelift-bforest-0.103.0}/src/map.rs +0 -0
  545. /data/ext/cargo-vendor/{cranelift-bforest-0.102.1 → cranelift-bforest-0.103.0}/src/node.rs +0 -0
  546. /data/ext/cargo-vendor/{cranelift-bforest-0.102.1 → cranelift-bforest-0.103.0}/src/path.rs +0 -0
  547. /data/ext/cargo-vendor/{cranelift-bforest-0.102.1 → cranelift-bforest-0.103.0}/src/pool.rs +0 -0
  548. /data/ext/cargo-vendor/{cranelift-bforest-0.102.1 → cranelift-bforest-0.103.0}/src/set.rs +0 -0
  549. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/LICENSE +0 -0
  550. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/README.md +0 -0
  551. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/benches/x64-evex-encoding.rs +0 -0
  552. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/build.rs +0 -0
  553. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/alias_analysis.rs +0 -0
  554. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/binemit/stack_map.rs +0 -0
  555. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/bitset.rs +0 -0
  556. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/cfg_printer.rs +0 -0
  557. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/constant_hash.rs +0 -0
  558. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/context.rs +0 -0
  559. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ctxhash.rs +0 -0
  560. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/cursor.rs +0 -0
  561. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/data_value.rs +0 -0
  562. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/dbg.rs +0 -0
  563. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/dce.rs +0 -0
  564. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/dominator_tree.rs +0 -0
  565. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/egraph/domtree.rs +0 -0
  566. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/flowgraph.rs +0 -0
  567. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/fx.rs +0 -0
  568. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/incremental_cache.rs +0 -0
  569. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/inst_predicates.rs +0 -0
  570. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/atomic_rmw_op.rs +0 -0
  571. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/builder.rs +0 -0
  572. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/condcodes.rs +0 -0
  573. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/constant.rs +0 -0
  574. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/dynamic_type.rs +0 -0
  575. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/entities.rs +0 -0
  576. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/extfunc.rs +0 -0
  577. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/extname.rs +0 -0
  578. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/function.rs +0 -0
  579. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/globalvalue.rs +0 -0
  580. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/immediates.rs +0 -0
  581. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/instructions.rs +0 -0
  582. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/jumptable.rs +0 -0
  583. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/known_symbol.rs +0 -0
  584. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/layout.rs +0 -0
  585. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/libcall.rs +0 -0
  586. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/memflags.rs +0 -0
  587. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/memtype.rs +0 -0
  588. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/mod.rs +0 -0
  589. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/progpoint.rs +0 -0
  590. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/sourceloc.rs +0 -0
  591. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/stackslot.rs +0 -0
  592. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/table.rs +0 -0
  593. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/trapcode.rs +0 -0
  594. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/types.rs +0 -0
  595. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/aarch64/abi.rs +0 -0
  596. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/aarch64/inst/args.rs +0 -0
  597. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/aarch64/inst/emit.rs +0 -0
  598. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/aarch64/inst/emit_tests.rs +0 -0
  599. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/aarch64/inst/imms.rs +0 -0
  600. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/aarch64/inst/mod.rs +0 -0
  601. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/aarch64/inst/regs.rs +0 -0
  602. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/aarch64/inst/unwind/systemv.rs +0 -0
  603. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/aarch64/inst/unwind.rs +0 -0
  604. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/aarch64/inst.isle +0 -0
  605. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/aarch64/inst_neon.isle +0 -0
  606. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/aarch64/lower/isle/generated_code.rs +0 -0
  607. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/aarch64/lower.isle +0 -0
  608. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/aarch64/lower.rs +0 -0
  609. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/aarch64/lower_dynamic_neon.isle +0 -0
  610. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/aarch64/mod.rs +0 -0
  611. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/aarch64/pcc.rs +0 -0
  612. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/aarch64/settings.rs +0 -0
  613. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/call_conv.rs +0 -0
  614. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/mod.rs +0 -0
  615. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/riscv64/abi.rs +0 -0
  616. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/riscv64/inst/args.rs +0 -0
  617. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/riscv64/inst/emit.rs +0 -0
  618. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/riscv64/inst/emit_tests.rs +0 -0
  619. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/riscv64/inst/encode.rs +0 -0
  620. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/riscv64/inst/imms.rs +0 -0
  621. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/riscv64/inst/regs.rs +0 -0
  622. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/riscv64/inst/unwind/systemv.rs +0 -0
  623. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/riscv64/inst/unwind.rs +0 -0
  624. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/riscv64/inst/vector.rs +0 -0
  625. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/riscv64/inst_vector.isle +0 -0
  626. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/riscv64/lower/isle/generated_code.rs +0 -0
  627. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/riscv64/lower/isle.rs +0 -0
  628. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/riscv64/lower.rs +0 -0
  629. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/riscv64/mod.rs +0 -0
  630. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/riscv64/settings.rs +0 -0
  631. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/s390x/abi.rs +0 -0
  632. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/s390x/inst/args.rs +0 -0
  633. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/s390x/inst/emit.rs +0 -0
  634. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/s390x/inst/emit_tests.rs +0 -0
  635. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/s390x/inst/imms.rs +0 -0
  636. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/s390x/inst/mod.rs +0 -0
  637. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/s390x/inst/regs.rs +0 -0
  638. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/s390x/inst/unwind/systemv.rs +0 -0
  639. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/s390x/inst/unwind.rs +0 -0
  640. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/s390x/inst.isle +0 -0
  641. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/s390x/lower/isle/generated_code.rs +0 -0
  642. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/s390x/lower.isle +0 -0
  643. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/s390x/lower.rs +0 -0
  644. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/s390x/mod.rs +0 -0
  645. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/s390x/settings.rs +0 -0
  646. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/unwind/systemv.rs +0 -0
  647. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/unwind/winx64.rs +0 -0
  648. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/unwind.rs +0 -0
  649. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/abi.rs +0 -0
  650. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/encoding/evex.rs +0 -0
  651. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/encoding/mod.rs +0 -0
  652. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/encoding/rex.rs +0 -0
  653. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/encoding/vex.rs +0 -0
  654. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/inst/args.rs +0 -0
  655. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/inst/emit.rs +0 -0
  656. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/inst/emit_state.rs +0 -0
  657. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/inst/emit_tests.rs +0 -0
  658. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/inst/mod.rs +0 -0
  659. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/inst/regs.rs +0 -0
  660. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/inst/unwind/systemv.rs +0 -0
  661. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/inst/unwind/winx64.rs +0 -0
  662. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/inst/unwind.rs +0 -0
  663. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/inst.isle +0 -0
  664. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/lower/isle/generated_code.rs +0 -0
  665. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/lower.isle +0 -0
  666. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/lower.rs +0 -0
  667. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/mod.rs +0 -0
  668. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/settings.rs +0 -0
  669. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/iterators.rs +0 -0
  670. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/legalizer/globalvalue.rs +0 -0
  671. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/legalizer/mod.rs +0 -0
  672. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/legalizer/table.rs +0 -0
  673. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/loop_analysis.rs +0 -0
  674. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/machinst/abi.rs +0 -0
  675. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/machinst/blockorder.rs +0 -0
  676. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/machinst/buffer.rs +0 -0
  677. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/machinst/compile.rs +0 -0
  678. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/machinst/helpers.rs +0 -0
  679. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/machinst/inst_common.rs +0 -0
  680. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/machinst/lower.rs +0 -0
  681. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/machinst/mod.rs +0 -0
  682. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/machinst/pcc.rs +0 -0
  683. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/machinst/reg.rs +0 -0
  684. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/machinst/valueregs.rs +0 -0
  685. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/machinst/vcode.rs +0 -0
  686. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/nan_canonicalization.rs +0 -0
  687. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/opts/README.md +0 -0
  688. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/opts/bitops.isle +0 -0
  689. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/opts/extends.isle +0 -0
  690. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/opts/generated_code.rs +0 -0
  691. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/opts/remat.isle +0 -0
  692. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/opts/shifts.isle +0 -0
  693. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/opts/vector.isle +0 -0
  694. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/prelude_lower.isle +0 -0
  695. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/prelude_opt.isle +0 -0
  696. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/print_errors.rs +0 -0
  697. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/remove_constant_phis.rs +0 -0
  698. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/result.rs +0 -0
  699. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/scoped_hash_map.rs +0 -0
  700. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/settings.rs +0 -0
  701. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/souper_harvest.rs +0 -0
  702. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/unreachable_code.rs +0 -0
  703. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/value_label.rs +0 -0
  704. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/verifier/mod.rs +0 -0
  705. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/write.rs +0 -0
  706. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/LICENSE +0 -0
  707. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/README.md +0 -0
  708. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/cdsl/formats.rs +0 -0
  709. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/cdsl/instructions.rs +0 -0
  710. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/cdsl/isa.rs +0 -0
  711. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/cdsl/mod.rs +0 -0
  712. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/cdsl/operands.rs +0 -0
  713. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/cdsl/settings.rs +0 -0
  714. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/cdsl/types.rs +0 -0
  715. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/cdsl/typevar.rs +0 -0
  716. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/constant_hash.rs +0 -0
  717. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/error.rs +0 -0
  718. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/gen_inst.rs +0 -0
  719. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/gen_settings.rs +0 -0
  720. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/gen_types.rs +0 -0
  721. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/isa/arm64.rs +0 -0
  722. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/isa/mod.rs +0 -0
  723. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/isa/riscv64.rs +0 -0
  724. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/isa/s390x.rs +0 -0
  725. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/isa/x86.rs +0 -0
  726. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/lib.rs +0 -0
  727. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/shared/entities.rs +0 -0
  728. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/shared/formats.rs +0 -0
  729. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/shared/immediates.rs +0 -0
  730. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/shared/instructions.rs +0 -0
  731. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/shared/mod.rs +0 -0
  732. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/shared/settings.rs +0 -0
  733. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/shared/types.rs +0 -0
  734. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/srcgen.rs +0 -0
  735. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/unique_table.rs +0 -0
  736. /data/ext/cargo-vendor/{cranelift-codegen-shared-0.102.1 → cranelift-codegen-shared-0.103.0}/LICENSE +0 -0
  737. /data/ext/cargo-vendor/{cranelift-codegen-shared-0.102.1 → cranelift-codegen-shared-0.103.0}/README.md +0 -0
  738. /data/ext/cargo-vendor/{cranelift-codegen-shared-0.102.1 → cranelift-codegen-shared-0.103.0}/src/constant_hash.rs +0 -0
  739. /data/ext/cargo-vendor/{cranelift-codegen-shared-0.102.1 → cranelift-codegen-shared-0.103.0}/src/constants.rs +0 -0
  740. /data/ext/cargo-vendor/{cranelift-control-0.102.1 → cranelift-control-0.103.0}/LICENSE +0 -0
  741. /data/ext/cargo-vendor/{cranelift-control-0.102.1 → cranelift-control-0.103.0}/README.md +0 -0
  742. /data/ext/cargo-vendor/{cranelift-control-0.102.1 → cranelift-control-0.103.0}/src/chaos.rs +0 -0
  743. /data/ext/cargo-vendor/{cranelift-control-0.102.1 → cranelift-control-0.103.0}/src/lib.rs +0 -0
  744. /data/ext/cargo-vendor/{cranelift-control-0.102.1 → cranelift-control-0.103.0}/src/zero_sized.rs +0 -0
  745. /data/ext/cargo-vendor/{cranelift-entity-0.102.1 → cranelift-entity-0.103.0}/LICENSE +0 -0
  746. /data/ext/cargo-vendor/{cranelift-entity-0.102.1 → cranelift-entity-0.103.0}/README.md +0 -0
  747. /data/ext/cargo-vendor/{cranelift-entity-0.102.1 → cranelift-entity-0.103.0}/src/boxed_slice.rs +0 -0
  748. /data/ext/cargo-vendor/{cranelift-entity-0.102.1 → cranelift-entity-0.103.0}/src/iter.rs +0 -0
  749. /data/ext/cargo-vendor/{cranelift-entity-0.102.1 → cranelift-entity-0.103.0}/src/keys.rs +0 -0
  750. /data/ext/cargo-vendor/{cranelift-entity-0.102.1 → cranelift-entity-0.103.0}/src/list.rs +0 -0
  751. /data/ext/cargo-vendor/{cranelift-entity-0.102.1 → cranelift-entity-0.103.0}/src/map.rs +0 -0
  752. /data/ext/cargo-vendor/{cranelift-entity-0.102.1 → cranelift-entity-0.103.0}/src/packed_option.rs +0 -0
  753. /data/ext/cargo-vendor/{cranelift-entity-0.102.1 → cranelift-entity-0.103.0}/src/set.rs +0 -0
  754. /data/ext/cargo-vendor/{cranelift-entity-0.102.1 → cranelift-entity-0.103.0}/src/sparse.rs +0 -0
  755. /data/ext/cargo-vendor/{cranelift-frontend-0.102.1 → cranelift-frontend-0.103.0}/LICENSE +0 -0
  756. /data/ext/cargo-vendor/{cranelift-frontend-0.102.1 → cranelift-frontend-0.103.0}/README.md +0 -0
  757. /data/ext/cargo-vendor/{cranelift-frontend-0.102.1 → cranelift-frontend-0.103.0}/src/frontend.rs +0 -0
  758. /data/ext/cargo-vendor/{cranelift-frontend-0.102.1 → cranelift-frontend-0.103.0}/src/ssa.rs +0 -0
  759. /data/ext/cargo-vendor/{cranelift-frontend-0.102.1 → cranelift-frontend-0.103.0}/src/switch.rs +0 -0
  760. /data/ext/cargo-vendor/{cranelift-frontend-0.102.1 → cranelift-frontend-0.103.0}/src/variable.rs +0 -0
  761. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/README.md +0 -0
  762. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/build.rs +0 -0
  763. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/fail/bad_converters.isle +0 -0
  764. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/fail/bound_var_type_mismatch.isle +0 -0
  765. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/fail/converter_extractor_constructor.isle +0 -0
  766. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/fail/error1.isle +0 -0
  767. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/fail/extra_parens.isle +0 -0
  768. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/fail/impure_expression.isle +0 -0
  769. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/fail/impure_rhs.isle +0 -0
  770. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/fail/multi_internal_etor.isle +0 -0
  771. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/fail/multi_prio.isle +0 -0
  772. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/link/borrows.isle +0 -0
  773. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/link/borrows_main.rs +0 -0
  774. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/link/iflets.isle +0 -0
  775. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/link/iflets_main.rs +0 -0
  776. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/link/multi_constructor.isle +0 -0
  777. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/link/multi_extractor.isle +0 -0
  778. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/link/test.isle +0 -0
  779. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/link/test_main.rs +0 -0
  780. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/pass/bound_var.isle +0 -0
  781. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/pass/construct_and_extract.isle +0 -0
  782. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/pass/conversions.isle +0 -0
  783. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/pass/conversions_extern.isle +0 -0
  784. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/pass/let.isle +0 -0
  785. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/pass/nodebug.isle +0 -0
  786. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/pass/prio_trie_bug.isle +0 -0
  787. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/pass/test2.isle +0 -0
  788. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/pass/test3.isle +0 -0
  789. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/pass/test4.isle +0 -0
  790. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/pass/tutorial.isle +0 -0
  791. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/run/iconst.isle +0 -0
  792. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/run/iconst_main.rs +0 -0
  793. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/run/let_shadowing.isle +0 -0
  794. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/run/let_shadowing_main.rs +0 -0
  795. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/src/ast.rs +0 -0
  796. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/src/compile.rs +0 -0
  797. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/src/error.rs +0 -0
  798. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/src/lexer.rs +0 -0
  799. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/src/lib.rs +0 -0
  800. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/src/log.rs +0 -0
  801. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/src/overlap.rs +0 -0
  802. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/src/parser.rs +0 -0
  803. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/src/sema.rs +0 -0
  804. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/src/serialize.rs +0 -0
  805. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/src/trie_again.rs +0 -0
  806. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/tests/run_tests.rs +0 -0
  807. /data/ext/cargo-vendor/{cranelift-native-0.102.1 → cranelift-native-0.103.0}/LICENSE +0 -0
  808. /data/ext/cargo-vendor/{cranelift-native-0.102.1 → cranelift-native-0.103.0}/README.md +0 -0
  809. /data/ext/cargo-vendor/{cranelift-native-0.102.1 → cranelift-native-0.103.0}/src/riscv.rs +0 -0
  810. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/LICENSE +0 -0
  811. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/README.md +0 -0
  812. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/src/code_translator/bounds_checks.rs +0 -0
  813. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/src/code_translator.rs +0 -0
  814. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/src/environ/mod.rs +0 -0
  815. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/src/environ/spec.rs +0 -0
  816. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/src/func_translator.rs +0 -0
  817. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/src/heap.rs +0 -0
  818. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/src/module_translator.rs +0 -0
  819. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/src/sections_translator.rs +0 -0
  820. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/src/state.rs +0 -0
  821. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/tests/wasm_testsuite.rs +0 -0
  822. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/arith.wat +0 -0
  823. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/br_table.wat +0 -0
  824. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/call-simd.wat +0 -0
  825. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/call.wat +0 -0
  826. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/embenchen_fannkuch.wat +0 -0
  827. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/embenchen_fasta.wat +0 -0
  828. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/embenchen_ifs.wat +0 -0
  829. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/embenchen_primes.wat +0 -0
  830. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/fac-multi-value.wat +0 -0
  831. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/fibonacci.wat +0 -0
  832. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/globals.wat +0 -0
  833. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/icall-simd.wat +0 -0
  834. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/icall.wat +0 -0
  835. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/if-reachability-translation-0.wat +0 -0
  836. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/if-reachability-translation-1.wat +0 -0
  837. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/if-reachability-translation-2.wat +0 -0
  838. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/if-reachability-translation-3.wat +0 -0
  839. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/if-reachability-translation-4.wat +0 -0
  840. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/if-reachability-translation-5.wat +0 -0
  841. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/if-reachability-translation-6.wat +0 -0
  842. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/if-unreachable-else-params-2.wat +0 -0
  843. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/if-unreachable-else-params.wat +0 -0
  844. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/issue-1306-name-section-with-u32-max-function-index.wasm +0 -0
  845. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/memory.wat +0 -0
  846. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/multi-0.wat +0 -0
  847. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/multi-1.wat +0 -0
  848. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/multi-10.wat +0 -0
  849. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/multi-11.wat +0 -0
  850. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/multi-12.wat +0 -0
  851. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/multi-13.wat +0 -0
  852. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/multi-14.wat +0 -0
  853. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/multi-15.wat +0 -0
  854. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/multi-16.wat +0 -0
  855. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/multi-17.wat +0 -0
  856. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/multi-2.wat +0 -0
  857. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/multi-3.wat +0 -0
  858. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/multi-4.wat +0 -0
  859. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/multi-5.wat +0 -0
  860. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/multi-6.wat +0 -0
  861. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/multi-7.wat +0 -0
  862. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/multi-8.wat +0 -0
  863. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/multi-9.wat +0 -0
  864. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/nullref.wat +0 -0
  865. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/passive-data.wat +0 -0
  866. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/pr2303.wat +0 -0
  867. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/pr2559.wat +0 -0
  868. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/ref-func-0.wat +0 -0
  869. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/rust_fannkuch.wat +0 -0
  870. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/select.wat +0 -0
  871. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/simd-store.wat +0 -0
  872. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/simd.wat +0 -0
  873. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/table-copy.wat +0 -0
  874. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/unreachable_code.wat +0 -0
  875. /data/ext/cargo-vendor/{wasi-cap-std-sync-15.0.1 → wasi-cap-std-sync-16.0.0}/LICENSE +0 -0
  876. /data/ext/cargo-vendor/{wasi-cap-std-sync-15.0.1 → wasi-cap-std-sync-16.0.0}/README.md +0 -0
  877. /data/ext/cargo-vendor/{wasi-cap-std-sync-15.0.1 → wasi-cap-std-sync-16.0.0}/src/clocks.rs +0 -0
  878. /data/ext/cargo-vendor/{wasi-cap-std-sync-15.0.1 → wasi-cap-std-sync-16.0.0}/src/dir.rs +0 -0
  879. /data/ext/cargo-vendor/{wasi-cap-std-sync-15.0.1 → wasi-cap-std-sync-16.0.0}/src/file.rs +0 -0
  880. /data/ext/cargo-vendor/{wasi-cap-std-sync-15.0.1 → wasi-cap-std-sync-16.0.0}/src/lib.rs +0 -0
  881. /data/ext/cargo-vendor/{wasi-cap-std-sync-15.0.1 → wasi-cap-std-sync-16.0.0}/src/net.rs +0 -0
  882. /data/ext/cargo-vendor/{wasi-cap-std-sync-15.0.1 → wasi-cap-std-sync-16.0.0}/src/sched/unix.rs +0 -0
  883. /data/ext/cargo-vendor/{wasi-cap-std-sync-15.0.1 → wasi-cap-std-sync-16.0.0}/src/sched/windows.rs +0 -0
  884. /data/ext/cargo-vendor/{wasi-cap-std-sync-15.0.1 → wasi-cap-std-sync-16.0.0}/src/sched.rs +0 -0
  885. /data/ext/cargo-vendor/{wasi-cap-std-sync-15.0.1 → wasi-cap-std-sync-16.0.0}/src/stdio.rs +0 -0
  886. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/LICENSE +0 -0
  887. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/README.md +0 -0
  888. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/README.md +0 -0
  889. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/docs/README.md +0 -0
  890. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/README.md +0 -0
  891. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/ephemeral/docs.md +0 -0
  892. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/ephemeral/witx/typenames.witx +0 -0
  893. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/ephemeral/witx/wasi_ephemeral_args.witx +0 -0
  894. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/ephemeral/witx/wasi_ephemeral_clock.witx +0 -0
  895. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/ephemeral/witx/wasi_ephemeral_environ.witx +0 -0
  896. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/ephemeral/witx/wasi_ephemeral_fd.witx +0 -0
  897. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/ephemeral/witx/wasi_ephemeral_path.witx +0 -0
  898. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/ephemeral/witx/wasi_ephemeral_poll.witx +0 -0
  899. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/ephemeral/witx/wasi_ephemeral_proc.witx +0 -0
  900. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/ephemeral/witx/wasi_ephemeral_random.witx +0 -0
  901. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/ephemeral/witx/wasi_ephemeral_sched.witx +0 -0
  902. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/ephemeral/witx/wasi_ephemeral_sock.witx +0 -0
  903. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/old/snapshot_0/docs.md +0 -0
  904. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/old/snapshot_0/witx/typenames.witx +0 -0
  905. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/old/snapshot_0/witx/wasi_unstable.witx +0 -0
  906. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/snapshot/docs.html +0 -0
  907. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/snapshot/docs.md +0 -0
  908. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/snapshot/witx/typenames.witx +0 -0
  909. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/snapshot/witx/wasi_snapshot_preview1.witx +0 -0
  910. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/proposal-template/README.md +0 -0
  911. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/proposals/README.md +0 -0
  912. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/snapshots/README.md +0 -0
  913. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/standard/README.md +0 -0
  914. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/build.rs +0 -0
  915. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/src/clocks.rs +0 -0
  916. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/src/ctx.rs +0 -0
  917. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/src/dir.rs +0 -0
  918. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/src/error.rs +0 -0
  919. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/src/file.rs +0 -0
  920. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/src/pipe.rs +0 -0
  921. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/src/random.rs +0 -0
  922. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/src/sched/subscription.rs +0 -0
  923. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/src/sched.rs +0 -0
  924. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/src/snapshots/mod.rs +0 -0
  925. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/src/snapshots/preview_0.rs +0 -0
  926. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/src/snapshots/preview_1/error.rs +0 -0
  927. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/src/string_array.rs +0 -0
  928. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/src/table.rs +0 -0
  929. /data/ext/cargo-vendor/{wasm-encoder-0.36.2 → wasmtime-16.0.0}/LICENSE +0 -0
  930. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/README.md +0 -0
  931. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/code.rs +0 -0
  932. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/component/func/host.rs +0 -0
  933. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/component/func/options.rs +0 -0
  934. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/component/func.rs +0 -0
  935. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/component/instance.rs +0 -0
  936. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/component/linker.rs +0 -0
  937. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/component/matching.rs +0 -0
  938. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/component/mod.rs +0 -0
  939. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/component/resources.rs +0 -0
  940. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/component/storage.rs +0 -0
  941. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/component/store.rs +0 -0
  942. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/component/types.rs +0 -0
  943. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/component/values.rs +0 -0
  944. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/coredump.rs +0 -0
  945. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/engine/serialization.rs +0 -0
  946. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/engine.rs +0 -0
  947. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/externals/global.rs +0 -0
  948. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/externals/table.rs +0 -0
  949. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/externals.rs +0 -0
  950. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/func/typed.rs +0 -0
  951. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/instance.rs +0 -0
  952. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/limits.rs +0 -0
  953. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/linker.rs +0 -0
  954. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/module/registry.rs +0 -0
  955. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/profiling.rs +0 -0
  956. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/ref.rs +0 -0
  957. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/resources.rs +0 -0
  958. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/signatures.rs +0 -0
  959. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/store/context.rs +0 -0
  960. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/store/data.rs +0 -0
  961. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/store/func_refs.rs +0 -0
  962. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/store.rs +0 -0
  963. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/trampoline/func.rs +0 -0
  964. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/trampoline/global.rs +0 -0
  965. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/trampoline/memory.rs +0 -0
  966. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/trampoline/table.rs +0 -0
  967. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/trampoline.rs +0 -0
  968. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/trap.rs +0 -0
  969. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/types/matching.rs +0 -0
  970. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/types.rs +0 -0
  971. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/unix.rs +0 -0
  972. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/values.rs +0 -0
  973. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/windows.rs +0 -0
  974. /data/ext/cargo-vendor/{wasmtime-asm-macros-15.0.1 → wasmtime-asm-macros-16.0.0}/src/lib.rs +0 -0
  975. /data/ext/cargo-vendor/{wasmparser-0.116.1 → wasmtime-cache-16.0.0}/LICENSE +0 -0
  976. /data/ext/cargo-vendor/{wasmtime-cache-15.0.1 → wasmtime-cache-16.0.0}/build.rs +0 -0
  977. /data/ext/cargo-vendor/{wasmtime-cache-15.0.1 → wasmtime-cache-16.0.0}/src/config/tests.rs +0 -0
  978. /data/ext/cargo-vendor/{wasmtime-cache-15.0.1 → wasmtime-cache-16.0.0}/src/config.rs +0 -0
  979. /data/ext/cargo-vendor/{wasmtime-cache-15.0.1 → wasmtime-cache-16.0.0}/src/tests.rs +0 -0
  980. /data/ext/cargo-vendor/{wasmtime-cache-15.0.1 → wasmtime-cache-16.0.0}/src/worker/tests/system_time_stub.rs +0 -0
  981. /data/ext/cargo-vendor/{wasmtime-cache-15.0.1 → wasmtime-cache-16.0.0}/src/worker/tests.rs +0 -0
  982. /data/ext/cargo-vendor/{wasmtime-cache-15.0.1 → wasmtime-cache-16.0.0}/tests/cache_write_default_config.rs +0 -0
  983. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/src/bindgen.rs +0 -0
  984. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/src/component.rs +0 -0
  985. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/src/lib.rs +0 -0
  986. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/char.wit +0 -0
  987. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/conventions.wit +0 -0
  988. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/direct-import.wit +0 -0
  989. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/empty.wit +0 -0
  990. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/flags.wit +0 -0
  991. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/floats.wit +0 -0
  992. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/function-new.wit +0 -0
  993. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/integers.wit +0 -0
  994. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/lists.wit +0 -0
  995. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/many-arguments.wit +0 -0
  996. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/multi-return.wit +0 -0
  997. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/multiversion/deps/v1/root.wit +0 -0
  998. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/multiversion/deps/v2/root.wit +0 -0
  999. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/multiversion/root.wit +0 -0
  1000. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/records.wit +0 -0
  1001. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/rename.wit +0 -0
  1002. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/resources-export.wit +0 -0
  1003. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/resources-import.wit +0 -0
  1004. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/share-types.wit +0 -0
  1005. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/simple-functions.wit +0 -0
  1006. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/simple-lists.wit +0 -0
  1007. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/simple-wasi.wit +0 -0
  1008. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/small-anonymous.wit +0 -0
  1009. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/smoke-default.wit +0 -0
  1010. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/smoke-export.wit +0 -0
  1011. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/smoke.wit +0 -0
  1012. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/strings.wit +0 -0
  1013. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/use-paths.wit +0 -0
  1014. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/variants.wit +0 -0
  1015. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/worlds-with-types.wit +0 -0
  1016. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen.rs +0 -0
  1017. /data/ext/cargo-vendor/{wasmtime-component-util-15.0.1 → wasmtime-component-util-16.0.0}/src/lib.rs +0 -0
  1018. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-cranelift-16.0.0}/LICENSE +0 -0
  1019. /data/ext/cargo-vendor/{wasmtime-cranelift-15.0.1 → wasmtime-cranelift-16.0.0}/SECURITY.md +0 -0
  1020. /data/ext/cargo-vendor/{wasmtime-cranelift-15.0.1 → wasmtime-cranelift-16.0.0}/src/builder.rs +0 -0
  1021. /data/ext/cargo-vendor/{wasmtime-cranelift-15.0.1 → wasmtime-cranelift-16.0.0}/src/debug/gc.rs +0 -0
  1022. /data/ext/cargo-vendor/{wasmtime-cranelift-15.0.1 → wasmtime-cranelift-16.0.0}/src/debug/transform/address_transform.rs +0 -0
  1023. /data/ext/cargo-vendor/{wasmtime-cranelift-15.0.1 → wasmtime-cranelift-16.0.0}/src/debug/transform/attr.rs +0 -0
  1024. /data/ext/cargo-vendor/{wasmtime-cranelift-15.0.1 → wasmtime-cranelift-16.0.0}/src/debug/transform/line_program.rs +0 -0
  1025. /data/ext/cargo-vendor/{wasmtime-cranelift-15.0.1 → wasmtime-cranelift-16.0.0}/src/debug/transform/mod.rs +0 -0
  1026. /data/ext/cargo-vendor/{wasmtime-cranelift-15.0.1 → wasmtime-cranelift-16.0.0}/src/debug/transform/range_info_builder.rs +0 -0
  1027. /data/ext/cargo-vendor/{wasmtime-cranelift-15.0.1 → wasmtime-cranelift-16.0.0}/src/debug/transform/refs.rs +0 -0
  1028. /data/ext/cargo-vendor/{wasmtime-cranelift-15.0.1 → wasmtime-cranelift-16.0.0}/src/debug/transform/unit.rs +0 -0
  1029. /data/ext/cargo-vendor/{wasmtime-cranelift-15.0.1 → wasmtime-cranelift-16.0.0}/src/debug/transform/utils.rs +0 -0
  1030. /data/ext/cargo-vendor/{wasmtime-cranelift-15.0.1 → wasmtime-cranelift-16.0.0}/src/debug/write_debuginfo.rs +0 -0
  1031. /data/ext/cargo-vendor/{wasmtime-cranelift-15.0.1 → wasmtime-cranelift-16.0.0}/src/lib.rs +0 -0
  1032. /data/ext/cargo-vendor/{wasmtime-cranelift-shared-15.0.1 → wasmtime-cranelift-shared-16.0.0}/src/compiled_function.rs +0 -0
  1033. /data/ext/cargo-vendor/{wasmtime-cranelift-shared-15.0.1 → wasmtime-cranelift-shared-16.0.0}/src/isa_builder.rs +0 -0
  1034. /data/ext/cargo-vendor/{wasmtime-cranelift-shared-15.0.1 → wasmtime-cranelift-shared-16.0.0}/src/lib.rs +0 -0
  1035. /data/ext/cargo-vendor/{wasmtime-cranelift-shared-15.0.1 → wasmtime-cranelift-shared-16.0.0}/src/obj.rs +0 -0
  1036. /data/ext/cargo-vendor/{wasmtime-cache-15.0.1 → wasmtime-environ-16.0.0}/LICENSE +0 -0
  1037. /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/examples/factc.rs +0 -0
  1038. /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/address_map.rs +0 -0
  1039. /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/builtin.rs +0 -0
  1040. /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/component/dfg.rs +0 -0
  1041. /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/component/info.rs +0 -0
  1042. /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/component/translate/adapt.rs +0 -0
  1043. /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/component/translate/inline.rs +0 -0
  1044. /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/component/types/resources.rs +0 -0
  1045. /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/component/vmcomponent_offsets.rs +0 -0
  1046. /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/component.rs +0 -0
  1047. /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/fact/core_types.rs +0 -0
  1048. /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/fact/signature.rs +0 -0
  1049. /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/fact/trampoline.rs +0 -0
  1050. /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/fact/transcode.rs +0 -0
  1051. /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/fact/traps.rs +0 -0
  1052. /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/fact.rs +0 -0
  1053. /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/obj.rs +0 -0
  1054. /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/ref_bits.rs +0 -0
  1055. /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/stack_map.rs +0 -0
  1056. /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/trap_encoding.rs +0 -0
  1057. /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/tunables.rs +0 -0
  1058. /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/vmoffsets.rs +0 -0
  1059. /data/ext/cargo-vendor/{wasmtime-cranelift-15.0.1 → wasmtime-fiber-16.0.0}/LICENSE +0 -0
  1060. /data/ext/cargo-vendor/{wasmtime-fiber-15.0.1 → wasmtime-fiber-16.0.0}/build.rs +0 -0
  1061. /data/ext/cargo-vendor/{wasmtime-fiber-15.0.1 → wasmtime-fiber-16.0.0}/src/unix/aarch64.rs +0 -0
  1062. /data/ext/cargo-vendor/{wasmtime-fiber-15.0.1 → wasmtime-fiber-16.0.0}/src/unix/arm.rs +0 -0
  1063. /data/ext/cargo-vendor/{wasmtime-fiber-15.0.1 → wasmtime-fiber-16.0.0}/src/unix/riscv64.rs +0 -0
  1064. /data/ext/cargo-vendor/{wasmtime-fiber-15.0.1 → wasmtime-fiber-16.0.0}/src/unix/s390x.S +0 -0
  1065. /data/ext/cargo-vendor/{wasmtime-fiber-15.0.1 → wasmtime-fiber-16.0.0}/src/unix/x86.rs +0 -0
  1066. /data/ext/cargo-vendor/{wasmtime-fiber-15.0.1 → wasmtime-fiber-16.0.0}/src/unix/x86_64.rs +0 -0
  1067. /data/ext/cargo-vendor/{wasmtime-fiber-15.0.1 → wasmtime-fiber-16.0.0}/src/windows.rs +0 -0
  1068. /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-jit-16.0.0}/LICENSE +0 -0
  1069. /data/ext/cargo-vendor/{wasmtime-jit-15.0.1 → wasmtime-jit-16.0.0}/src/debug.rs +0 -0
  1070. /data/ext/cargo-vendor/{wasmtime-jit-15.0.1 → wasmtime-jit-16.0.0}/src/demangling.rs +0 -0
  1071. /data/ext/cargo-vendor/{wasmtime-jit-15.0.1 → wasmtime-jit-16.0.0}/src/profiling/jitdump.rs +0 -0
  1072. /data/ext/cargo-vendor/{wasmtime-jit-15.0.1 → wasmtime-jit-16.0.0}/src/profiling/perfmap.rs +0 -0
  1073. /data/ext/cargo-vendor/{wasmtime-jit-15.0.1 → wasmtime-jit-16.0.0}/src/profiling/vtune.rs +0 -0
  1074. /data/ext/cargo-vendor/{wasmtime-jit-15.0.1 → wasmtime-jit-16.0.0}/src/profiling.rs +0 -0
  1075. /data/ext/cargo-vendor/{wasmtime-jit-debug-15.0.1 → wasmtime-jit-debug-16.0.0}/README.md +0 -0
  1076. /data/ext/cargo-vendor/{wasmtime-jit-debug-15.0.1 → wasmtime-jit-debug-16.0.0}/src/gdb_jit_int.rs +0 -0
  1077. /data/ext/cargo-vendor/{wasmtime-jit-debug-15.0.1 → wasmtime-jit-debug-16.0.0}/src/lib.rs +0 -0
  1078. /data/ext/cargo-vendor/{wasmtime-jit-debug-15.0.1 → wasmtime-jit-debug-16.0.0}/src/perf_jitdump.rs +0 -0
  1079. /data/ext/cargo-vendor/{wasmtime-jit-icache-coherence-15.0.1 → wasmtime-jit-icache-coherence-16.0.0}/src/lib.rs +0 -0
  1080. /data/ext/cargo-vendor/{wasmtime-jit-icache-coherence-15.0.1 → wasmtime-jit-icache-coherence-16.0.0}/src/libc.rs +0 -0
  1081. /data/ext/cargo-vendor/{wasmtime-jit-icache-coherence-15.0.1 → wasmtime-jit-icache-coherence-16.0.0}/src/miri.rs +0 -0
  1082. /data/ext/cargo-vendor/{wasmtime-jit-icache-coherence-15.0.1 → wasmtime-jit-icache-coherence-16.0.0}/src/win.rs +0 -0
  1083. /data/ext/cargo-vendor/{wasmtime-fiber-15.0.1 → wasmtime-runtime-16.0.0}/LICENSE +0 -0
  1084. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1/src/trampolines → wasmtime-runtime-16.0.0/src/arch}/s390x.S +0 -0
  1085. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/component/libcalls.rs +0 -0
  1086. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/component/resources.rs +0 -0
  1087. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/component.rs +0 -0
  1088. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/debug_builtins.rs +0 -0
  1089. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/export.rs +0 -0
  1090. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/externref.rs +0 -0
  1091. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/imports.rs +0 -0
  1092. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/instance/allocator/on_demand.rs +0 -0
  1093. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/instance/allocator/pooling/index_allocator.rs +0 -0
  1094. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/instance/allocator.rs +0 -0
  1095. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/instance.rs +0 -0
  1096. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/memory.rs +0 -0
  1097. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/mmap_vec.rs +0 -0
  1098. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/module_id.rs +0 -0
  1099. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/mpk/disabled.rs +0 -0
  1100. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/mpk/mod.rs +0 -0
  1101. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/mpk/sys.rs +0 -0
  1102. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/parking_spot.rs +0 -0
  1103. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/send_sync_ptr.rs +0 -0
  1104. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/store_box.rs +0 -0
  1105. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1/src/mmap/miri.rs → wasmtime-runtime-16.0.0/src/sys/miri/mmap.rs} +0 -0
  1106. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1/src/mmap/unix.rs → wasmtime-runtime-16.0.0/src/sys/unix/mmap.rs} +0 -0
  1107. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1/src/mmap/windows.rs → wasmtime-runtime-16.0.0/src/sys/windows/mmap.rs} +0 -0
  1108. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/table.rs +0 -0
  1109. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/traphandlers/coredump.rs +0 -0
  1110. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/vmcontext/vm_host_func_context.rs +0 -0
  1111. /data/ext/cargo-vendor/{wasmtime-jit-15.0.1 → wasmtime-types-16.0.0}/LICENSE +0 -0
  1112. /data/ext/cargo-vendor/{wasmtime-types-15.0.1 → wasmtime-types-16.0.0}/src/error.rs +0 -0
  1113. /data/ext/cargo-vendor/{wasmtime-versioned-export-macros-15.0.1 → wasmtime-versioned-export-macros-16.0.0}/src/lib.rs +0 -0
  1114. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-wasi-16.0.0}/LICENSE +0 -0
  1115. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/README.md +0 -0
  1116. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/build.rs +0 -0
  1117. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/clocks/host.rs +0 -0
  1118. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/clocks.rs +0 -0
  1119. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/command.rs +0 -0
  1120. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/ctx.rs +0 -0
  1121. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/error.rs +0 -0
  1122. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/filesystem.rs +0 -0
  1123. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/host/clocks.rs +0 -0
  1124. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/host/env.rs +0 -0
  1125. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/host/exit.rs +0 -0
  1126. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/host/filesystem/sync.rs +0 -0
  1127. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/host/filesystem.rs +0 -0
  1128. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/host/instance_network.rs +0 -0
  1129. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/host/mod.rs +0 -0
  1130. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/host/random.rs +0 -0
  1131. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/host/tcp_create_socket.rs +0 -0
  1132. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/host/udp_create_socket.rs +0 -0
  1133. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/ip_name_lookup.rs +0 -0
  1134. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/network.rs +0 -0
  1135. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/pipe.rs +0 -0
  1136. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/poll.rs +0 -0
  1137. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/random.rs +0 -0
  1138. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/stdio/worker_thread_stdin.rs +0 -0
  1139. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/tcp.rs +0 -0
  1140. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/udp.rs +0 -0
  1141. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/write_stream.rs +0 -0
  1142. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/cli/environment.wit +0 -0
  1143. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/cli/exit.wit +0 -0
  1144. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/cli/run.wit +0 -0
  1145. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/cli/stdio.wit +0 -0
  1146. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/cli/terminal.wit +0 -0
  1147. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/clocks/monotonic-clock.wit +0 -0
  1148. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/clocks/wall-clock.wit +0 -0
  1149. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/clocks/world.wit +0 -0
  1150. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/filesystem/preopens.wit +0 -0
  1151. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/filesystem/types.wit +0 -0
  1152. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/filesystem/world.wit +0 -0
  1153. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/http/handler.wit +0 -0
  1154. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/io/error.wit +0 -0
  1155. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/io/poll.wit +0 -0
  1156. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/io/streams.wit +0 -0
  1157. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/io/world.wit +0 -0
  1158. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/random/insecure-seed.wit +0 -0
  1159. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/random/insecure.wit +0 -0
  1160. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/random/random.wit +0 -0
  1161. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/random/world.wit +0 -0
  1162. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/sockets/instance-network.wit +0 -0
  1163. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/sockets/ip-name-lookup.wit +0 -0
  1164. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/sockets/network.wit +0 -0
  1165. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/sockets/tcp-create-socket.wit +0 -0
  1166. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/sockets/tcp.wit +0 -0
  1167. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/sockets/udp-create-socket.wit +0 -0
  1168. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/sockets/udp.wit +0 -0
  1169. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/sockets/world.wit +0 -0
  1170. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1/witx → wasmtime-wasi-16.0.0/witx/preview1}/typenames.witx +0 -0
  1171. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1/witx → wasmtime-wasi-16.0.0/witx/preview1}/wasi_snapshot_preview1.witx +0 -0
  1172. /data/ext/cargo-vendor/{wasmtime-winch-15.0.1 → wasmtime-winch-16.0.0}/LICENSE +0 -0
  1173. /data/ext/cargo-vendor/{wasmtime-winch-15.0.1 → wasmtime-winch-16.0.0}/src/builder.rs +0 -0
  1174. /data/ext/cargo-vendor/{wasmtime-winch-15.0.1 → wasmtime-winch-16.0.0}/src/lib.rs +0 -0
  1175. /data/ext/cargo-vendor/{wasmtime-wit-bindgen-15.0.1 → wasmtime-wit-bindgen-16.0.0}/src/lib.rs +0 -0
  1176. /data/ext/cargo-vendor/{wasmtime-wit-bindgen-15.0.1 → wasmtime-wit-bindgen-16.0.0}/src/rust.rs +0 -0
  1177. /data/ext/cargo-vendor/{wasmtime-wit-bindgen-15.0.1 → wasmtime-wit-bindgen-16.0.0}/src/source.rs +0 -0
  1178. /data/ext/cargo-vendor/{wasmtime-wit-bindgen-15.0.1 → wasmtime-wit-bindgen-16.0.0}/src/types.rs +0 -0
  1179. /data/ext/cargo-vendor/{wasmtime-wmemcheck-15.0.1 → wasmtime-wmemcheck-16.0.0}/src/lib.rs +0 -0
  1180. /data/ext/cargo-vendor/{wasmtime-types-15.0.1 → wiggle-16.0.0}/LICENSE +0 -0
  1181. /data/ext/cargo-vendor/{wiggle-15.0.1 → wiggle-16.0.0}/README.md +0 -0
  1182. /data/ext/cargo-vendor/{wiggle-15.0.1 → wiggle-16.0.0}/src/borrow.rs +0 -0
  1183. /data/ext/cargo-vendor/{wiggle-15.0.1 → wiggle-16.0.0}/src/error.rs +0 -0
  1184. /data/ext/cargo-vendor/{wiggle-15.0.1 → wiggle-16.0.0}/src/guest_type.rs +0 -0
  1185. /data/ext/cargo-vendor/{wiggle-15.0.1 → wiggle-16.0.0}/src/region.rs +0 -0
  1186. /data/ext/cargo-vendor/{wiggle-15.0.1 → wiggle-16.0.0}/src/wasmtime.rs +0 -0
  1187. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wiggle-generate-16.0.0}/LICENSE +0 -0
  1188. /data/ext/cargo-vendor/{wiggle-generate-15.0.1 → wiggle-generate-16.0.0}/README.md +0 -0
  1189. /data/ext/cargo-vendor/{wiggle-generate-15.0.1 → wiggle-generate-16.0.0}/src/codegen_settings.rs +0 -0
  1190. /data/ext/cargo-vendor/{wiggle-generate-15.0.1 → wiggle-generate-16.0.0}/src/config.rs +0 -0
  1191. /data/ext/cargo-vendor/{wiggle-generate-15.0.1 → wiggle-generate-16.0.0}/src/funcs.rs +0 -0
  1192. /data/ext/cargo-vendor/{wiggle-generate-15.0.1 → wiggle-generate-16.0.0}/src/lib.rs +0 -0
  1193. /data/ext/cargo-vendor/{wiggle-generate-15.0.1 → wiggle-generate-16.0.0}/src/lifetimes.rs +0 -0
  1194. /data/ext/cargo-vendor/{wiggle-generate-15.0.1 → wiggle-generate-16.0.0}/src/module_trait.rs +0 -0
  1195. /data/ext/cargo-vendor/{wiggle-generate-15.0.1 → wiggle-generate-16.0.0}/src/names.rs +0 -0
  1196. /data/ext/cargo-vendor/{wiggle-generate-15.0.1 → wiggle-generate-16.0.0}/src/types/error.rs +0 -0
  1197. /data/ext/cargo-vendor/{wiggle-generate-15.0.1 → wiggle-generate-16.0.0}/src/types/flags.rs +0 -0
  1198. /data/ext/cargo-vendor/{wiggle-generate-15.0.1 → wiggle-generate-16.0.0}/src/types/mod.rs +0 -0
  1199. /data/ext/cargo-vendor/{wiggle-generate-15.0.1 → wiggle-generate-16.0.0}/src/wasmtime.rs +0 -0
  1200. /data/ext/cargo-vendor/{wiggle-15.0.1 → wiggle-macro-16.0.0}/LICENSE +0 -0
  1201. /data/ext/cargo-vendor/{wiggle-macro-15.0.1 → wiggle-macro-16.0.0}/src/lib.rs +0 -0
  1202. /data/ext/cargo-vendor/{winch-codegen-0.13.1 → winch-codegen-0.14.0}/LICENSE +0 -0
  1203. /data/ext/cargo-vendor/{winch-codegen-0.13.1 → winch-codegen-0.14.0}/build.rs +0 -0
  1204. /data/ext/cargo-vendor/{winch-codegen-0.13.1 → winch-codegen-0.14.0}/src/codegen/builtin.rs +0 -0
  1205. /data/ext/cargo-vendor/{winch-codegen-0.13.1 → winch-codegen-0.14.0}/src/isa/aarch64/address.rs +0 -0
  1206. /data/ext/cargo-vendor/{winch-codegen-0.13.1 → winch-codegen-0.14.0}/src/isa/aarch64/asm.rs +0 -0
  1207. /data/ext/cargo-vendor/{winch-codegen-0.13.1 → winch-codegen-0.14.0}/src/isa/aarch64/regs.rs +0 -0
  1208. /data/ext/cargo-vendor/{winch-codegen-0.13.1 → winch-codegen-0.14.0}/src/isa/reg.rs +0 -0
  1209. /data/ext/cargo-vendor/{winch-codegen-0.13.1 → winch-codegen-0.14.0}/src/isa/x64/address.rs +0 -0
  1210. /data/ext/cargo-vendor/{winch-codegen-0.13.1 → winch-codegen-0.14.0}/src/lib.rs +0 -0
  1211. /data/ext/cargo-vendor/{winch-codegen-0.13.1 → winch-codegen-0.14.0}/src/regalloc.rs +0 -0
  1212. /data/ext/cargo-vendor/{winch-codegen-0.13.1 → winch-codegen-0.14.0}/src/regset.rs +0 -0
@@ -1,3466 +0,0 @@
1
- /* Copyright 2019 Mozilla Foundation
2
- *
3
- * Licensed under the Apache License, Version 2.0 (the "License");
4
- * you may not use this file except in compliance with the License.
5
- * You may obtain a copy of the License at
6
- *
7
- * http://www.apache.org/licenses/LICENSE-2.0
8
- *
9
- * Unless required by applicable law or agreed to in writing, software
10
- * distributed under the License is distributed on an "AS IS" BASIS,
11
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- * See the License for the specific language governing permissions and
13
- * limitations under the License.
14
- */
15
-
16
- // The basic validation algorithm here is copied from the "Validation
17
- // Algorithm" section of the WebAssembly specification -
18
- // https://webassembly.github.io/spec/core/appendix/algorithm.html.
19
- //
20
- // That algorithm is followed pretty closely here, namely `push_operand`,
21
- // `pop_operand`, `push_ctrl`, and `pop_ctrl`. If anything here is a bit
22
- // confusing it's recommended to read over that section to see how it maps to
23
- // the various methods here.
24
-
25
- use crate::{
26
- limits::MAX_WASM_FUNCTION_LOCALS, BinaryReaderError, BlockType, BrTable, HeapType, Ieee32,
27
- Ieee64, MemArg, RefType, Result, ValType, VisitOperator, WasmFeatures, WasmFuncType,
28
- WasmModuleResources, V128,
29
- };
30
- use std::ops::{Deref, DerefMut};
31
-
32
- pub(crate) struct OperatorValidator {
33
- pub(super) locals: Locals,
34
- pub(super) local_inits: Vec<bool>,
35
-
36
- // This is a list of flags for wasm features which are used to gate various
37
- // instructions.
38
- pub(crate) features: WasmFeatures,
39
-
40
- // Temporary storage used during the validation of `br_table`.
41
- br_table_tmp: Vec<MaybeType>,
42
-
43
- /// The `control` list is the list of blocks that we're currently in.
44
- control: Vec<Frame>,
45
- /// The `operands` is the current type stack.
46
- operands: Vec<MaybeType>,
47
- /// When local_inits is modified, the relevant index is recorded here to be
48
- /// undone when control pops
49
- inits: Vec<u32>,
50
-
51
- /// Offset of the `end` instruction which emptied the `control` stack, which
52
- /// must be the end of the function.
53
- end_which_emptied_control: Option<usize>,
54
- }
55
-
56
- // No science was performed in the creation of this number, feel free to change
57
- // it if you so like.
58
- const MAX_LOCALS_TO_TRACK: usize = 50;
59
-
60
- pub(super) struct Locals {
61
- // Total number of locals in the function.
62
- num_locals: u32,
63
-
64
- // The first MAX_LOCALS_TO_TRACK locals in a function. This is used to
65
- // optimize the theoretically common case where most functions don't have
66
- // many locals and don't need a full binary search in the entire local space
67
- // below.
68
- first: Vec<ValType>,
69
-
70
- // This is a "compressed" list of locals for this function. The list of
71
- // locals are represented as a list of tuples. The second element is the
72
- // type of the local, and the first element is monotonically increasing as
73
- // you visit elements of this list. The first element is the maximum index
74
- // of the local, after the previous index, of the type specified.
75
- //
76
- // This allows us to do a binary search on the list for a local's index for
77
- // `local.{get,set,tee}`. We do a binary search for the index desired, and
78
- // it either lies in a "hole" where the maximum index is specified later,
79
- // or it's at the end of the list meaning it's out of bounds.
80
- all: Vec<(u32, ValType)>,
81
- }
82
-
83
- /// A Wasm control flow block on the control flow stack during Wasm validation.
84
- //
85
- // # Dev. Note
86
- //
87
- // This structure corresponds to `ctrl_frame` as specified at in the validation
88
- // appendix of the wasm spec
89
- #[derive(Debug, Copy, Clone)]
90
- pub struct Frame {
91
- /// Indicator for what kind of instruction pushed this frame.
92
- pub kind: FrameKind,
93
- /// The type signature of this frame, represented as a singular return type
94
- /// or a type index pointing into the module's types.
95
- pub block_type: BlockType,
96
- /// The index, below which, this frame cannot modify the operand stack.
97
- pub height: usize,
98
- /// Whether this frame is unreachable so far.
99
- pub unreachable: bool,
100
- /// The number of initializations in the stack at the time of its creation
101
- pub init_height: usize,
102
- }
103
-
104
- /// The kind of a control flow [`Frame`].
105
- #[derive(Copy, Clone, Debug, PartialEq, Eq)]
106
- pub enum FrameKind {
107
- /// A Wasm `block` control block.
108
- Block,
109
- /// A Wasm `if` control block.
110
- If,
111
- /// A Wasm `else` control block.
112
- Else,
113
- /// A Wasm `loop` control block.
114
- Loop,
115
- /// A Wasm `try` control block.
116
- ///
117
- /// # Note
118
- ///
119
- /// This belongs to the Wasm exception handling proposal.
120
- Try,
121
- /// A Wasm `catch` control block.
122
- ///
123
- /// # Note
124
- ///
125
- /// This belongs to the Wasm exception handling proposal.
126
- Catch,
127
- /// A Wasm `catch_all` control block.
128
- ///
129
- /// # Note
130
- ///
131
- /// This belongs to the Wasm exception handling proposal.
132
- CatchAll,
133
- }
134
-
135
- struct OperatorValidatorTemp<'validator, 'resources, T> {
136
- offset: usize,
137
- inner: &'validator mut OperatorValidator,
138
- resources: &'resources T,
139
- }
140
-
141
- #[derive(Default)]
142
- pub struct OperatorValidatorAllocations {
143
- br_table_tmp: Vec<MaybeType>,
144
- control: Vec<Frame>,
145
- operands: Vec<MaybeType>,
146
- local_inits: Vec<bool>,
147
- inits: Vec<u32>,
148
- locals_first: Vec<ValType>,
149
- locals_all: Vec<(u32, ValType)>,
150
- }
151
-
152
- /// Type storage within the validator.
153
- ///
154
- /// This is used to manage the operand stack and notably isn't just `ValType` to
155
- /// handle unreachable code and the "bottom" type.
156
- #[derive(Debug, Copy, Clone)]
157
- enum MaybeType {
158
- Bot,
159
- HeapBot,
160
- Type(ValType),
161
- }
162
-
163
- // The validator is pretty performance-sensitive and `MaybeType` is the main
164
- // unit of storage, so assert that it doesn't exceed 4 bytes which is the
165
- // current expected size.
166
- const _: () = {
167
- assert!(std::mem::size_of::<MaybeType>() == 4);
168
- };
169
-
170
- impl From<ValType> for MaybeType {
171
- fn from(ty: ValType) -> MaybeType {
172
- MaybeType::Type(ty)
173
- }
174
- }
175
-
176
- impl From<RefType> for MaybeType {
177
- fn from(ty: RefType) -> MaybeType {
178
- let ty: ValType = ty.into();
179
- ty.into()
180
- }
181
- }
182
-
183
- impl OperatorValidator {
184
- fn new(features: &WasmFeatures, allocs: OperatorValidatorAllocations) -> Self {
185
- let OperatorValidatorAllocations {
186
- br_table_tmp,
187
- control,
188
- operands,
189
- local_inits,
190
- inits,
191
- locals_first,
192
- locals_all,
193
- } = allocs;
194
- debug_assert!(br_table_tmp.is_empty());
195
- debug_assert!(control.is_empty());
196
- debug_assert!(operands.is_empty());
197
- debug_assert!(local_inits.is_empty());
198
- debug_assert!(inits.is_empty());
199
- debug_assert!(locals_first.is_empty());
200
- debug_assert!(locals_all.is_empty());
201
- OperatorValidator {
202
- locals: Locals {
203
- num_locals: 0,
204
- first: locals_first,
205
- all: locals_all,
206
- },
207
- local_inits,
208
- inits,
209
- features: *features,
210
- br_table_tmp,
211
- operands,
212
- control,
213
- end_which_emptied_control: None,
214
- }
215
- }
216
-
217
- /// Creates a new operator validator which will be used to validate a
218
- /// function whose type is the `ty` index specified.
219
- ///
220
- /// The `resources` are used to learn about the function type underlying
221
- /// `ty`.
222
- pub fn new_func<T>(
223
- ty: u32,
224
- offset: usize,
225
- features: &WasmFeatures,
226
- resources: &T,
227
- allocs: OperatorValidatorAllocations,
228
- ) -> Result<Self>
229
- where
230
- T: WasmModuleResources,
231
- {
232
- let mut ret = OperatorValidator::new(features, allocs);
233
- ret.control.push(Frame {
234
- kind: FrameKind::Block,
235
- block_type: BlockType::FuncType(ty),
236
- height: 0,
237
- unreachable: false,
238
- init_height: 0,
239
- });
240
- let params = OperatorValidatorTemp {
241
- // This offset is used by the `func_type_at` and `inputs`.
242
- offset,
243
- inner: &mut ret,
244
- resources,
245
- }
246
- .func_type_at(ty)?
247
- .inputs();
248
- for ty in params {
249
- ret.locals.define(1, ty);
250
- ret.local_inits.push(true);
251
- }
252
- Ok(ret)
253
- }
254
-
255
- /// Creates a new operator validator which will be used to validate an
256
- /// `init_expr` constant expression which should result in the `ty`
257
- /// specified.
258
- pub fn new_const_expr(
259
- features: &WasmFeatures,
260
- ty: ValType,
261
- allocs: OperatorValidatorAllocations,
262
- ) -> Self {
263
- let mut ret = OperatorValidator::new(features, allocs);
264
- ret.control.push(Frame {
265
- kind: FrameKind::Block,
266
- block_type: BlockType::Type(ty),
267
- height: 0,
268
- unreachable: false,
269
- init_height: 0,
270
- });
271
- ret
272
- }
273
-
274
- pub fn define_locals(
275
- &mut self,
276
- offset: usize,
277
- count: u32,
278
- ty: ValType,
279
- resources: &impl WasmModuleResources,
280
- ) -> Result<()> {
281
- resources.check_value_type(ty, &self.features, offset)?;
282
- if count == 0 {
283
- return Ok(());
284
- }
285
- if !self.locals.define(count, ty) {
286
- return Err(BinaryReaderError::new(
287
- "too many locals: locals exceed maximum",
288
- offset,
289
- ));
290
- }
291
- self.local_inits
292
- .resize(self.local_inits.len() + count as usize, ty.is_defaultable());
293
- Ok(())
294
- }
295
-
296
- /// Returns the current operands stack height.
297
- pub fn operand_stack_height(&self) -> usize {
298
- self.operands.len()
299
- }
300
-
301
- /// Returns the optional value type of the value operand at the given
302
- /// `depth` from the top of the operand stack.
303
- ///
304
- /// - Returns `None` if the `depth` is out of bounds.
305
- /// - Returns `Some(None)` if there is a value with unknown type
306
- /// at the given `depth`.
307
- ///
308
- /// # Note
309
- ///
310
- /// A `depth` of 0 will refer to the last operand on the stack.
311
- pub fn peek_operand_at(&self, depth: usize) -> Option<Option<ValType>> {
312
- Some(match self.operands.iter().rev().nth(depth)? {
313
- MaybeType::Type(t) => Some(*t),
314
- MaybeType::Bot | MaybeType::HeapBot => None,
315
- })
316
- }
317
-
318
- /// Returns the number of frames on the control flow stack.
319
- pub fn control_stack_height(&self) -> usize {
320
- self.control.len()
321
- }
322
-
323
- pub fn get_frame(&self, depth: usize) -> Option<&Frame> {
324
- self.control.iter().rev().nth(depth)
325
- }
326
-
327
- /// Create a temporary [`OperatorValidatorTemp`] for validation.
328
- pub fn with_resources<'a, 'validator, 'resources, T>(
329
- &'validator mut self,
330
- resources: &'resources T,
331
- offset: usize,
332
- ) -> impl VisitOperator<'a, Output = Result<()>> + 'validator
333
- where
334
- T: WasmModuleResources,
335
- 'resources: 'validator,
336
- {
337
- WasmProposalValidator(OperatorValidatorTemp {
338
- offset,
339
- inner: self,
340
- resources,
341
- })
342
- }
343
-
344
- pub fn finish(&mut self, offset: usize) -> Result<()> {
345
- if self.control.last().is_some() {
346
- bail!(
347
- offset,
348
- "control frames remain at end of function: END opcode expected"
349
- );
350
- }
351
-
352
- // The `end` opcode is one byte which means that the `offset` here
353
- // should point just beyond the `end` opcode which emptied the control
354
- // stack. If not that means more instructions were present after the
355
- // control stack was emptied.
356
- if offset != self.end_which_emptied_control.unwrap() + 1 {
357
- return Err(self.err_beyond_end(offset));
358
- }
359
- Ok(())
360
- }
361
-
362
- fn err_beyond_end(&self, offset: usize) -> BinaryReaderError {
363
- format_err!(offset, "operators remaining after end of function")
364
- }
365
-
366
- pub fn into_allocations(self) -> OperatorValidatorAllocations {
367
- fn truncate<T>(mut tmp: Vec<T>) -> Vec<T> {
368
- tmp.truncate(0);
369
- tmp
370
- }
371
- OperatorValidatorAllocations {
372
- br_table_tmp: truncate(self.br_table_tmp),
373
- control: truncate(self.control),
374
- operands: truncate(self.operands),
375
- local_inits: truncate(self.local_inits),
376
- inits: truncate(self.inits),
377
- locals_first: truncate(self.locals.first),
378
- locals_all: truncate(self.locals.all),
379
- }
380
- }
381
- }
382
-
383
- impl<R> Deref for OperatorValidatorTemp<'_, '_, R> {
384
- type Target = OperatorValidator;
385
- fn deref(&self) -> &OperatorValidator {
386
- self.inner
387
- }
388
- }
389
-
390
- impl<R> DerefMut for OperatorValidatorTemp<'_, '_, R> {
391
- fn deref_mut(&mut self) -> &mut OperatorValidator {
392
- self.inner
393
- }
394
- }
395
-
396
- impl<'resources, R: WasmModuleResources> OperatorValidatorTemp<'_, 'resources, R> {
397
- /// Pushes a type onto the operand stack.
398
- ///
399
- /// This is used by instructions to represent a value that is pushed to the
400
- /// operand stack. This can fail, but only if `Type` is feature gated.
401
- /// Otherwise the push operation always succeeds.
402
- fn push_operand<T>(&mut self, ty: T) -> Result<()>
403
- where
404
- T: Into<MaybeType>,
405
- {
406
- let maybe_ty = ty.into();
407
- self.operands.push(maybe_ty);
408
- Ok(())
409
- }
410
-
411
- /// Attempts to pop a type from the operand stack.
412
- ///
413
- /// This function is used to remove types from the operand stack. The
414
- /// `expected` argument can be used to indicate that a type is required, or
415
- /// simply that something is needed to be popped.
416
- ///
417
- /// If `expected` is `Some(T)` then this will be guaranteed to return
418
- /// `T`, and it will only return success if the current block is
419
- /// unreachable or if `T` was found at the top of the operand stack.
420
- ///
421
- /// If `expected` is `None` then it indicates that something must be on the
422
- /// operand stack, but it doesn't matter what's on the operand stack. This
423
- /// is useful for polymorphic instructions like `select`.
424
- ///
425
- /// If `Some(T)` is returned then `T` was popped from the operand stack and
426
- /// matches `expected`. If `None` is returned then it means that `None` was
427
- /// expected and a type was successfully popped, but its exact type is
428
- /// indeterminate because the current block is unreachable.
429
- fn pop_operand(&mut self, expected: Option<ValType>) -> Result<MaybeType> {
430
- // This method is one of the hottest methods in the validator so to
431
- // improve codegen this method contains a fast-path success case where
432
- // if the top operand on the stack is as expected it's returned
433
- // immediately. This is the most common case where the stack will indeed
434
- // have the expected type and all we need to do is pop it off.
435
- //
436
- // Note that this still has to be careful to be correct, though. For
437
- // efficiency an operand is unconditionally popped and on success it is
438
- // matched against the state of the world to see if we could actually
439
- // pop it. If we shouldn't have popped it then it's passed to the slow
440
- // path to get pushed back onto the stack.
441
- let popped = match self.operands.pop() {
442
- Some(MaybeType::Type(actual_ty)) => {
443
- if Some(actual_ty) == expected {
444
- if let Some(control) = self.control.last() {
445
- if self.operands.len() >= control.height {
446
- return Ok(MaybeType::Type(actual_ty));
447
- }
448
- }
449
- }
450
- Some(MaybeType::Type(actual_ty))
451
- }
452
- other => other,
453
- };
454
-
455
- self._pop_operand(expected, popped)
456
- }
457
-
458
- // This is the "real" implementation of `pop_operand` which is 100%
459
- // spec-compliant with little attention paid to efficiency since this is the
460
- // slow-path from the actual `pop_operand` function above.
461
- #[cold]
462
- fn _pop_operand(
463
- &mut self,
464
- expected: Option<ValType>,
465
- popped: Option<MaybeType>,
466
- ) -> Result<MaybeType> {
467
- self.operands.extend(popped);
468
- let control = match self.control.last() {
469
- Some(c) => c,
470
- None => return Err(self.err_beyond_end(self.offset)),
471
- };
472
- let actual = if self.operands.len() == control.height && control.unreachable {
473
- MaybeType::Bot
474
- } else {
475
- if self.operands.len() == control.height {
476
- let desc = match expected {
477
- Some(ty) => ty_to_str(ty),
478
- None => "a type".into(),
479
- };
480
- bail!(
481
- self.offset,
482
- "type mismatch: expected {desc} but nothing on stack"
483
- )
484
- } else {
485
- self.operands.pop().unwrap()
486
- }
487
- };
488
- if let Some(expected) = expected {
489
- match (actual, expected) {
490
- // The bottom type matches all expectations
491
- (MaybeType::Bot, _)
492
- // The "heap bottom" type only matches other references types,
493
- // but not any integer types.
494
- | (MaybeType::HeapBot, ValType::Ref(_)) => {}
495
-
496
- // Use the `matches` predicate to test if a found type matches
497
- // the expectation.
498
- (MaybeType::Type(actual), expected) => {
499
- if !self.resources.matches(actual, expected) {
500
- bail!(
501
- self.offset,
502
- "type mismatch: expected {}, found {}",
503
- ty_to_str(expected),
504
- ty_to_str(actual)
505
- );
506
- }
507
- }
508
-
509
- // A "heap bottom" type cannot match any numeric types.
510
- (
511
- MaybeType::HeapBot,
512
- ValType::I32 | ValType::I64 | ValType::F32 | ValType::F64 | ValType::V128,
513
- ) => {
514
- bail!(
515
- self.offset,
516
- "type mismatch: expected {}, found heap type",
517
- ty_to_str(expected)
518
- )
519
- }
520
- }
521
- }
522
- Ok(actual)
523
- }
524
-
525
- fn pop_ref(&mut self) -> Result<Option<RefType>> {
526
- match self.pop_operand(None)? {
527
- MaybeType::Bot | MaybeType::HeapBot => Ok(None),
528
- MaybeType::Type(ValType::Ref(rt)) => Ok(Some(rt)),
529
- MaybeType::Type(ty) => bail!(
530
- self.offset,
531
- "type mismatch: expected ref but found {}",
532
- ty_to_str(ty)
533
- ),
534
- }
535
- }
536
-
537
- /// Fetches the type for the local at `idx`, returning an error if it's out
538
- /// of bounds.
539
- fn local(&self, idx: u32) -> Result<ValType> {
540
- match self.locals.get(idx) {
541
- Some(ty) => Ok(ty),
542
- None => bail!(
543
- self.offset,
544
- "unknown local {}: local index out of bounds",
545
- idx
546
- ),
547
- }
548
- }
549
-
550
- /// Flags the current control frame as unreachable, additionally truncating
551
- /// the currently active operand stack.
552
- fn unreachable(&mut self) -> Result<()> {
553
- let control = match self.control.last_mut() {
554
- Some(frame) => frame,
555
- None => return Err(self.err_beyond_end(self.offset)),
556
- };
557
- control.unreachable = true;
558
- let new_height = control.height;
559
- self.operands.truncate(new_height);
560
- Ok(())
561
- }
562
-
563
- /// Pushes a new frame onto the control stack.
564
- ///
565
- /// This operation is used when entering a new block such as an if, loop,
566
- /// or block itself. The `kind` of block is specified which indicates how
567
- /// breaks interact with this block's type. Additionally the type signature
568
- /// of the block is specified by `ty`.
569
- fn push_ctrl(&mut self, kind: FrameKind, ty: BlockType) -> Result<()> {
570
- // Push a new frame which has a snapshot of the height of the current
571
- // operand stack.
572
- let height = self.operands.len();
573
- let init_height = self.inits.len();
574
- self.control.push(Frame {
575
- kind,
576
- block_type: ty,
577
- height,
578
- unreachable: false,
579
- init_height,
580
- });
581
- // All of the parameters are now also available in this control frame,
582
- // so we push them here in order.
583
- for ty in self.params(ty)? {
584
- self.push_operand(ty)?;
585
- }
586
- Ok(())
587
- }
588
-
589
- /// Pops a frame from the control stack.
590
- ///
591
- /// This function is used when exiting a block and leaves a block scope.
592
- /// Internally this will validate that blocks have the correct result type.
593
- fn pop_ctrl(&mut self) -> Result<Frame> {
594
- // Read the expected type and expected height of the operand stack the
595
- // end of the frame.
596
- let frame = match self.control.last() {
597
- Some(f) => f,
598
- None => return Err(self.err_beyond_end(self.offset)),
599
- };
600
- let ty = frame.block_type;
601
- let height = frame.height;
602
- let init_height = frame.init_height;
603
-
604
- // reset_locals in the spec
605
- for init in self.inits.split_off(init_height) {
606
- self.local_inits[init as usize] = false;
607
- }
608
-
609
- // Pop all the result types, in reverse order, from the operand stack.
610
- // These types will, possibly, be transferred to the next frame.
611
- for ty in self.results(ty)?.rev() {
612
- self.pop_operand(Some(ty))?;
613
- }
614
-
615
- // Make sure that the operand stack has returned to is original
616
- // height...
617
- if self.operands.len() != height {
618
- bail!(
619
- self.offset,
620
- "type mismatch: values remaining on stack at end of block"
621
- );
622
- }
623
-
624
- // And then we can remove it!
625
- Ok(self.control.pop().unwrap())
626
- }
627
-
628
- /// Validates a relative jump to the `depth` specified.
629
- ///
630
- /// Returns the type signature of the block that we're jumping to as well
631
- /// as the kind of block if the jump is valid. Otherwise returns an error.
632
- fn jump(&self, depth: u32) -> Result<(BlockType, FrameKind)> {
633
- if self.control.is_empty() {
634
- return Err(self.err_beyond_end(self.offset));
635
- }
636
- match (self.control.len() - 1).checked_sub(depth as usize) {
637
- Some(i) => {
638
- let frame = &self.control[i];
639
- Ok((frame.block_type, frame.kind))
640
- }
641
- None => bail!(self.offset, "unknown label: branch depth too large"),
642
- }
643
- }
644
-
645
- /// Validates that `memory_index` is valid in this module, and returns the
646
- /// type of address used to index the memory specified.
647
- fn check_memory_index(&self, memory_index: u32) -> Result<ValType> {
648
- match self.resources.memory_at(memory_index) {
649
- Some(mem) => Ok(mem.index_type()),
650
- None => bail!(self.offset, "unknown memory {}", memory_index),
651
- }
652
- }
653
-
654
- /// Validates a `memarg for alignment and such (also the memory it
655
- /// references), and returns the type of index used to address the memory.
656
- fn check_memarg(&self, memarg: MemArg) -> Result<ValType> {
657
- let index_ty = self.check_memory_index(memarg.memory)?;
658
- if memarg.align > memarg.max_align {
659
- bail!(self.offset, "alignment must not be larger than natural");
660
- }
661
- if index_ty == ValType::I32 && memarg.offset > u64::from(u32::MAX) {
662
- bail!(self.offset, "offset out of range: must be <= 2**32");
663
- }
664
- Ok(index_ty)
665
- }
666
-
667
- fn check_floats_enabled(&self) -> Result<()> {
668
- if !self.features.floats {
669
- bail!(self.offset, "floating-point instruction disallowed");
670
- }
671
- Ok(())
672
- }
673
-
674
- fn check_shared_memarg(&self, memarg: MemArg) -> Result<ValType> {
675
- if memarg.align != memarg.max_align {
676
- bail!(
677
- self.offset,
678
- "atomic instructions must always specify maximum alignment"
679
- );
680
- }
681
- self.check_memory_index(memarg.memory)
682
- }
683
-
684
- fn check_simd_lane_index(&self, index: u8, max: u8) -> Result<()> {
685
- if index >= max {
686
- bail!(self.offset, "SIMD index out of bounds");
687
- }
688
- Ok(())
689
- }
690
-
691
- /// Validates a block type, primarily with various in-flight proposals.
692
- fn check_block_type(&self, ty: BlockType) -> Result<()> {
693
- match ty {
694
- BlockType::Empty => Ok(()),
695
- BlockType::Type(t) => self
696
- .resources
697
- .check_value_type(t, &self.features, self.offset),
698
- BlockType::FuncType(idx) => {
699
- if !self.features.multi_value {
700
- bail!(
701
- self.offset,
702
- "blocks, loops, and ifs may only produce a resulttype \
703
- when multi-value is not enabled",
704
- );
705
- }
706
- self.func_type_at(idx)?;
707
- Ok(())
708
- }
709
- }
710
- }
711
-
712
- /// Validates a `call` instruction, ensuring that the function index is
713
- /// in-bounds and the right types are on the stack to call the function.
714
- fn check_call(&mut self, function_index: u32) -> Result<()> {
715
- let ty = match self.resources.type_index_of_function(function_index) {
716
- Some(i) => i,
717
- None => {
718
- bail!(
719
- self.offset,
720
- "unknown function {function_index}: function index out of bounds",
721
- );
722
- }
723
- };
724
- self.check_call_ty(ty)
725
- }
726
-
727
- fn check_call_ty(&mut self, type_index: u32) -> Result<()> {
728
- let ty = match self.resources.func_type_at(type_index) {
729
- Some(i) => i,
730
- None => {
731
- bail!(
732
- self.offset,
733
- "unknown type {type_index}: type index out of bounds",
734
- );
735
- }
736
- };
737
- for ty in ty.inputs().rev() {
738
- self.pop_operand(Some(ty))?;
739
- }
740
- for ty in ty.outputs() {
741
- self.push_operand(ty)?;
742
- }
743
- Ok(())
744
- }
745
-
746
- /// Validates a call to an indirect function, very similar to `check_call`.
747
- fn check_call_indirect(&mut self, index: u32, table_index: u32) -> Result<()> {
748
- match self.resources.table_at(table_index) {
749
- None => {
750
- bail!(self.offset, "unknown table: table index out of bounds");
751
- }
752
- Some(tab) => {
753
- if !self
754
- .resources
755
- .matches(ValType::Ref(tab.element_type), ValType::FUNCREF)
756
- {
757
- bail!(
758
- self.offset,
759
- "indirect calls must go through a table with type <= funcref",
760
- );
761
- }
762
- }
763
- }
764
- let ty = self.func_type_at(index)?;
765
- self.pop_operand(Some(ValType::I32))?;
766
- for ty in ty.inputs().rev() {
767
- self.pop_operand(Some(ty))?;
768
- }
769
- for ty in ty.outputs() {
770
- self.push_operand(ty)?;
771
- }
772
- Ok(())
773
- }
774
-
775
- /// Validates a `return` instruction, popping types from the operand
776
- /// stack that the function needs.
777
- fn check_return(&mut self) -> Result<()> {
778
- if self.control.is_empty() {
779
- return Err(self.err_beyond_end(self.offset));
780
- }
781
- for ty in self.results(self.control[0].block_type)?.rev() {
782
- self.pop_operand(Some(ty))?;
783
- }
784
- self.unreachable()?;
785
- Ok(())
786
- }
787
-
788
- /// Checks the validity of a common comparison operator.
789
- fn check_cmp_op(&mut self, ty: ValType) -> Result<()> {
790
- self.pop_operand(Some(ty))?;
791
- self.pop_operand(Some(ty))?;
792
- self.push_operand(ValType::I32)?;
793
- Ok(())
794
- }
795
-
796
- /// Checks the validity of a common float comparison operator.
797
- fn check_fcmp_op(&mut self, ty: ValType) -> Result<()> {
798
- debug_assert!(matches!(ty, ValType::F32 | ValType::F64));
799
- self.check_floats_enabled()?;
800
- self.check_cmp_op(ty)
801
- }
802
-
803
- /// Checks the validity of a common unary operator.
804
- fn check_unary_op(&mut self, ty: ValType) -> Result<()> {
805
- self.pop_operand(Some(ty))?;
806
- self.push_operand(ty)?;
807
- Ok(())
808
- }
809
-
810
- /// Checks the validity of a common unary float operator.
811
- fn check_funary_op(&mut self, ty: ValType) -> Result<()> {
812
- debug_assert!(matches!(ty, ValType::F32 | ValType::F64));
813
- self.check_floats_enabled()?;
814
- self.check_unary_op(ty)
815
- }
816
-
817
- /// Checks the validity of a common conversion operator.
818
- fn check_conversion_op(&mut self, into: ValType, from: ValType) -> Result<()> {
819
- self.pop_operand(Some(from))?;
820
- self.push_operand(into)?;
821
- Ok(())
822
- }
823
-
824
- /// Checks the validity of a common conversion operator.
825
- fn check_fconversion_op(&mut self, into: ValType, from: ValType) -> Result<()> {
826
- debug_assert!(matches!(into, ValType::F32 | ValType::F64));
827
- self.check_floats_enabled()?;
828
- self.check_conversion_op(into, from)
829
- }
830
-
831
- /// Checks the validity of a common binary operator.
832
- fn check_binary_op(&mut self, ty: ValType) -> Result<()> {
833
- self.pop_operand(Some(ty))?;
834
- self.pop_operand(Some(ty))?;
835
- self.push_operand(ty)?;
836
- Ok(())
837
- }
838
-
839
- /// Checks the validity of a common binary float operator.
840
- fn check_fbinary_op(&mut self, ty: ValType) -> Result<()> {
841
- debug_assert!(matches!(ty, ValType::F32 | ValType::F64));
842
- self.check_floats_enabled()?;
843
- self.check_binary_op(ty)
844
- }
845
-
846
- /// Checks the validity of an atomic load operator.
847
- fn check_atomic_load(&mut self, memarg: MemArg, load_ty: ValType) -> Result<()> {
848
- let ty = self.check_shared_memarg(memarg)?;
849
- self.pop_operand(Some(ty))?;
850
- self.push_operand(load_ty)?;
851
- Ok(())
852
- }
853
-
854
- /// Checks the validity of an atomic store operator.
855
- fn check_atomic_store(&mut self, memarg: MemArg, store_ty: ValType) -> Result<()> {
856
- let ty = self.check_shared_memarg(memarg)?;
857
- self.pop_operand(Some(store_ty))?;
858
- self.pop_operand(Some(ty))?;
859
- Ok(())
860
- }
861
-
862
- /// Checks the validity of a common atomic binary operator.
863
- fn check_atomic_binary_op(&mut self, memarg: MemArg, op_ty: ValType) -> Result<()> {
864
- let ty = self.check_shared_memarg(memarg)?;
865
- self.pop_operand(Some(op_ty))?;
866
- self.pop_operand(Some(ty))?;
867
- self.push_operand(op_ty)?;
868
- Ok(())
869
- }
870
-
871
- /// Checks the validity of an atomic compare exchange operator.
872
- fn check_atomic_binary_cmpxchg(&mut self, memarg: MemArg, op_ty: ValType) -> Result<()> {
873
- let ty = self.check_shared_memarg(memarg)?;
874
- self.pop_operand(Some(op_ty))?;
875
- self.pop_operand(Some(op_ty))?;
876
- self.pop_operand(Some(ty))?;
877
- self.push_operand(op_ty)?;
878
- Ok(())
879
- }
880
-
881
- /// Checks a [`V128`] splat operator.
882
- fn check_v128_splat(&mut self, src_ty: ValType) -> Result<()> {
883
- self.pop_operand(Some(src_ty))?;
884
- self.push_operand(ValType::V128)?;
885
- Ok(())
886
- }
887
-
888
- /// Checks a [`V128`] binary operator.
889
- fn check_v128_binary_op(&mut self) -> Result<()> {
890
- self.pop_operand(Some(ValType::V128))?;
891
- self.pop_operand(Some(ValType::V128))?;
892
- self.push_operand(ValType::V128)?;
893
- Ok(())
894
- }
895
-
896
- /// Checks a [`V128`] binary float operator.
897
- fn check_v128_fbinary_op(&mut self) -> Result<()> {
898
- self.check_floats_enabled()?;
899
- self.check_v128_binary_op()
900
- }
901
-
902
- /// Checks a [`V128`] binary operator.
903
- fn check_v128_unary_op(&mut self) -> Result<()> {
904
- self.pop_operand(Some(ValType::V128))?;
905
- self.push_operand(ValType::V128)?;
906
- Ok(())
907
- }
908
-
909
- /// Checks a [`V128`] binary operator.
910
- fn check_v128_funary_op(&mut self) -> Result<()> {
911
- self.check_floats_enabled()?;
912
- self.check_v128_unary_op()
913
- }
914
-
915
- /// Checks a [`V128`] relaxed ternary operator.
916
- fn check_v128_ternary_op(&mut self) -> Result<()> {
917
- self.pop_operand(Some(ValType::V128))?;
918
- self.pop_operand(Some(ValType::V128))?;
919
- self.pop_operand(Some(ValType::V128))?;
920
- self.push_operand(ValType::V128)?;
921
- Ok(())
922
- }
923
-
924
- /// Checks a [`V128`] relaxed ternary operator.
925
- fn check_v128_bitmask_op(&mut self) -> Result<()> {
926
- self.pop_operand(Some(ValType::V128))?;
927
- self.push_operand(ValType::I32)?;
928
- Ok(())
929
- }
930
-
931
- /// Checks a [`V128`] relaxed ternary operator.
932
- fn check_v128_shift_op(&mut self) -> Result<()> {
933
- self.pop_operand(Some(ValType::I32))?;
934
- self.pop_operand(Some(ValType::V128))?;
935
- self.push_operand(ValType::V128)?;
936
- Ok(())
937
- }
938
-
939
- /// Checks a [`V128`] common load operator.
940
- fn check_v128_load_op(&mut self, memarg: MemArg) -> Result<()> {
941
- let idx = self.check_memarg(memarg)?;
942
- self.pop_operand(Some(idx))?;
943
- self.push_operand(ValType::V128)?;
944
- Ok(())
945
- }
946
-
947
- fn func_type_at(&self, at: u32) -> Result<&'resources R::FuncType> {
948
- self.resources
949
- .func_type_at(at)
950
- .ok_or_else(|| format_err!(self.offset, "unknown type: type index out of bounds"))
951
- }
952
-
953
- fn tag_at(&self, at: u32) -> Result<&'resources R::FuncType> {
954
- self.resources
955
- .tag_at(at)
956
- .ok_or_else(|| format_err!(self.offset, "unknown tag {}: tag index out of bounds", at))
957
- }
958
-
959
- fn params(&self, ty: BlockType) -> Result<impl PreciseIterator<Item = ValType> + 'resources> {
960
- Ok(match ty {
961
- BlockType::Empty | BlockType::Type(_) => Either::B(None.into_iter()),
962
- BlockType::FuncType(t) => Either::A(self.func_type_at(t)?.inputs()),
963
- })
964
- }
965
-
966
- fn results(&self, ty: BlockType) -> Result<impl PreciseIterator<Item = ValType> + 'resources> {
967
- Ok(match ty {
968
- BlockType::Empty => Either::B(None.into_iter()),
969
- BlockType::Type(t) => Either::B(Some(t).into_iter()),
970
- BlockType::FuncType(t) => Either::A(self.func_type_at(t)?.outputs()),
971
- })
972
- }
973
-
974
- fn label_types(
975
- &self,
976
- ty: BlockType,
977
- kind: FrameKind,
978
- ) -> Result<impl PreciseIterator<Item = ValType> + 'resources> {
979
- Ok(match kind {
980
- FrameKind::Loop => Either::A(self.params(ty)?),
981
- _ => Either::B(self.results(ty)?),
982
- })
983
- }
984
- }
985
-
986
- pub fn ty_to_str(ty: ValType) -> &'static str {
987
- match ty {
988
- ValType::I32 => "i32",
989
- ValType::I64 => "i64",
990
- ValType::F32 => "f32",
991
- ValType::F64 => "f64",
992
- ValType::V128 => "v128",
993
- ValType::Ref(r) => r.wat(),
994
- }
995
- }
996
-
997
- /// A wrapper "visitor" around the real operator validator internally which
998
- /// exists to check that the required wasm feature is enabled to proceed with
999
- /// validation.
1000
- ///
1001
- /// This validator is macro-generated to ensure that the proposal listed in this
1002
- /// crate's macro matches the one that's validated here. Each instruction's
1003
- /// visit method validates the specified proposal is enabled and then delegates
1004
- /// to `OperatorValidatorTemp` to perform the actual opcode validation.
1005
- struct WasmProposalValidator<'validator, 'resources, T>(
1006
- OperatorValidatorTemp<'validator, 'resources, T>,
1007
- );
1008
-
1009
- impl<T> WasmProposalValidator<'_, '_, T> {
1010
- fn check_enabled(&self, flag: bool, desc: &str) -> Result<()> {
1011
- if flag {
1012
- return Ok(());
1013
- }
1014
- bail!(self.0.offset, "{desc} support is not enabled");
1015
- }
1016
- }
1017
-
1018
- macro_rules! validate_proposal {
1019
- ($( @$proposal:ident $op:ident $({ $($arg:ident: $argty:ty),* })? => $visit:ident)*) => {
1020
- $(
1021
- fn $visit(&mut self $($(,$arg: $argty)*)?) -> Result<()> {
1022
- validate_proposal!(validate self $proposal);
1023
- self.0.$visit($( $($arg),* )?)
1024
- }
1025
- )*
1026
- };
1027
-
1028
- (validate self mvp) => {};
1029
- (validate $self:ident $proposal:ident) => {
1030
- $self.check_enabled($self.0.features.$proposal, validate_proposal!(desc $proposal))?
1031
- };
1032
-
1033
- (desc simd) => ("SIMD");
1034
- (desc relaxed_simd) => ("relaxed SIMD");
1035
- (desc threads) => ("threads");
1036
- (desc saturating_float_to_int) => ("saturating float to int conversions");
1037
- (desc reference_types) => ("reference types");
1038
- (desc bulk_memory) => ("bulk memory");
1039
- (desc sign_extension) => ("sign extension operations");
1040
- (desc exceptions) => ("exceptions");
1041
- (desc tail_call) => ("tail calls");
1042
- (desc function_references) => ("function references");
1043
- (desc memory_control) => ("memory control");
1044
- (desc gc) => ("gc");
1045
- }
1046
-
1047
- impl<'a, T> VisitOperator<'a> for WasmProposalValidator<'_, '_, T>
1048
- where
1049
- T: WasmModuleResources,
1050
- {
1051
- type Output = Result<()>;
1052
-
1053
- for_each_operator!(validate_proposal);
1054
- }
1055
-
1056
- impl<'a, T> VisitOperator<'a> for OperatorValidatorTemp<'_, '_, T>
1057
- where
1058
- T: WasmModuleResources,
1059
- {
1060
- type Output = Result<()>;
1061
-
1062
- fn visit_nop(&mut self) -> Self::Output {
1063
- Ok(())
1064
- }
1065
- fn visit_unreachable(&mut self) -> Self::Output {
1066
- self.unreachable()?;
1067
- Ok(())
1068
- }
1069
- fn visit_block(&mut self, ty: BlockType) -> Self::Output {
1070
- self.check_block_type(ty)?;
1071
- for ty in self.params(ty)?.rev() {
1072
- self.pop_operand(Some(ty))?;
1073
- }
1074
- self.push_ctrl(FrameKind::Block, ty)?;
1075
- Ok(())
1076
- }
1077
- fn visit_loop(&mut self, ty: BlockType) -> Self::Output {
1078
- self.check_block_type(ty)?;
1079
- for ty in self.params(ty)?.rev() {
1080
- self.pop_operand(Some(ty))?;
1081
- }
1082
- self.push_ctrl(FrameKind::Loop, ty)?;
1083
- Ok(())
1084
- }
1085
- fn visit_if(&mut self, ty: BlockType) -> Self::Output {
1086
- self.check_block_type(ty)?;
1087
- self.pop_operand(Some(ValType::I32))?;
1088
- for ty in self.params(ty)?.rev() {
1089
- self.pop_operand(Some(ty))?;
1090
- }
1091
- self.push_ctrl(FrameKind::If, ty)?;
1092
- Ok(())
1093
- }
1094
- fn visit_else(&mut self) -> Self::Output {
1095
- let frame = self.pop_ctrl()?;
1096
- if frame.kind != FrameKind::If {
1097
- bail!(self.offset, "else found outside of an `if` block");
1098
- }
1099
- self.push_ctrl(FrameKind::Else, frame.block_type)?;
1100
- Ok(())
1101
- }
1102
- fn visit_try(&mut self, ty: BlockType) -> Self::Output {
1103
- self.check_block_type(ty)?;
1104
- for ty in self.params(ty)?.rev() {
1105
- self.pop_operand(Some(ty))?;
1106
- }
1107
- self.push_ctrl(FrameKind::Try, ty)?;
1108
- Ok(())
1109
- }
1110
- fn visit_catch(&mut self, index: u32) -> Self::Output {
1111
- let frame = self.pop_ctrl()?;
1112
- if frame.kind != FrameKind::Try && frame.kind != FrameKind::Catch {
1113
- bail!(self.offset, "catch found outside of an `try` block");
1114
- }
1115
- // Start a new frame and push `exnref` value.
1116
- let height = self.operands.len();
1117
- let init_height = self.inits.len();
1118
- self.control.push(Frame {
1119
- kind: FrameKind::Catch,
1120
- block_type: frame.block_type,
1121
- height,
1122
- unreachable: false,
1123
- init_height,
1124
- });
1125
- // Push exception argument types.
1126
- let ty = self.tag_at(index)?;
1127
- for ty in ty.inputs() {
1128
- self.push_operand(ty)?;
1129
- }
1130
- Ok(())
1131
- }
1132
- fn visit_throw(&mut self, index: u32) -> Self::Output {
1133
- // Check values associated with the exception.
1134
- let ty = self.tag_at(index)?;
1135
- for ty in ty.inputs().rev() {
1136
- self.pop_operand(Some(ty))?;
1137
- }
1138
- if ty.outputs().len() > 0 {
1139
- bail!(
1140
- self.offset,
1141
- "result type expected to be empty for exception"
1142
- );
1143
- }
1144
- self.unreachable()?;
1145
- Ok(())
1146
- }
1147
- fn visit_rethrow(&mut self, relative_depth: u32) -> Self::Output {
1148
- // This is not a jump, but we need to check that the `rethrow`
1149
- // targets an actual `catch` to get the exception.
1150
- let (_, kind) = self.jump(relative_depth)?;
1151
- if kind != FrameKind::Catch && kind != FrameKind::CatchAll {
1152
- bail!(
1153
- self.offset,
1154
- "invalid rethrow label: target was not a `catch` block"
1155
- );
1156
- }
1157
- self.unreachable()?;
1158
- Ok(())
1159
- }
1160
- fn visit_delegate(&mut self, relative_depth: u32) -> Self::Output {
1161
- let frame = self.pop_ctrl()?;
1162
- if frame.kind != FrameKind::Try {
1163
- bail!(self.offset, "delegate found outside of an `try` block");
1164
- }
1165
- // This operation is not a jump, but we need to check the
1166
- // depth for validity
1167
- let _ = self.jump(relative_depth)?;
1168
- for ty in self.results(frame.block_type)? {
1169
- self.push_operand(ty)?;
1170
- }
1171
- Ok(())
1172
- }
1173
- fn visit_catch_all(&mut self) -> Self::Output {
1174
- let frame = self.pop_ctrl()?;
1175
- if frame.kind == FrameKind::CatchAll {
1176
- bail!(self.offset, "only one catch_all allowed per `try` block");
1177
- } else if frame.kind != FrameKind::Try && frame.kind != FrameKind::Catch {
1178
- bail!(self.offset, "catch_all found outside of a `try` block");
1179
- }
1180
- let height = self.operands.len();
1181
- let init_height = self.inits.len();
1182
- self.control.push(Frame {
1183
- kind: FrameKind::CatchAll,
1184
- block_type: frame.block_type,
1185
- height,
1186
- unreachable: false,
1187
- init_height,
1188
- });
1189
- Ok(())
1190
- }
1191
- fn visit_end(&mut self) -> Self::Output {
1192
- let mut frame = self.pop_ctrl()?;
1193
-
1194
- // Note that this `if` isn't included in the appendix right
1195
- // now, but it's used to allow for `if` statements that are
1196
- // missing an `else` block which have the same parameter/return
1197
- // types on the block (since that's valid).
1198
- if frame.kind == FrameKind::If {
1199
- self.push_ctrl(FrameKind::Else, frame.block_type)?;
1200
- frame = self.pop_ctrl()?;
1201
- }
1202
- for ty in self.results(frame.block_type)? {
1203
- self.push_operand(ty)?;
1204
- }
1205
-
1206
- if self.control.is_empty() && self.end_which_emptied_control.is_none() {
1207
- assert_ne!(self.offset, 0);
1208
- self.end_which_emptied_control = Some(self.offset);
1209
- }
1210
- Ok(())
1211
- }
1212
- fn visit_br(&mut self, relative_depth: u32) -> Self::Output {
1213
- let (ty, kind) = self.jump(relative_depth)?;
1214
- for ty in self.label_types(ty, kind)?.rev() {
1215
- self.pop_operand(Some(ty))?;
1216
- }
1217
- self.unreachable()?;
1218
- Ok(())
1219
- }
1220
- fn visit_br_if(&mut self, relative_depth: u32) -> Self::Output {
1221
- self.pop_operand(Some(ValType::I32))?;
1222
- let (ty, kind) = self.jump(relative_depth)?;
1223
- let types = self.label_types(ty, kind)?;
1224
- for ty in types.clone().rev() {
1225
- self.pop_operand(Some(ty))?;
1226
- }
1227
- for ty in types {
1228
- self.push_operand(ty)?;
1229
- }
1230
- Ok(())
1231
- }
1232
- fn visit_br_table(&mut self, table: BrTable) -> Self::Output {
1233
- self.pop_operand(Some(ValType::I32))?;
1234
- let default = self.jump(table.default())?;
1235
- let default_types = self.label_types(default.0, default.1)?;
1236
- for element in table.targets() {
1237
- let relative_depth = element?;
1238
- let block = self.jump(relative_depth)?;
1239
- let tys = self.label_types(block.0, block.1)?;
1240
- if tys.len() != default_types.len() {
1241
- bail!(
1242
- self.offset,
1243
- "type mismatch: br_table target labels have different number of types"
1244
- );
1245
- }
1246
- debug_assert!(self.br_table_tmp.is_empty());
1247
- for ty in tys.rev() {
1248
- let ty = self.pop_operand(Some(ty))?;
1249
- self.br_table_tmp.push(ty);
1250
- }
1251
- for ty in self.inner.br_table_tmp.drain(..).rev() {
1252
- self.inner.operands.push(ty);
1253
- }
1254
- }
1255
- for ty in default_types.rev() {
1256
- self.pop_operand(Some(ty))?;
1257
- }
1258
- self.unreachable()?;
1259
- Ok(())
1260
- }
1261
- fn visit_return(&mut self) -> Self::Output {
1262
- self.check_return()?;
1263
- Ok(())
1264
- }
1265
- fn visit_call(&mut self, function_index: u32) -> Self::Output {
1266
- self.check_call(function_index)?;
1267
- Ok(())
1268
- }
1269
- fn visit_return_call(&mut self, function_index: u32) -> Self::Output {
1270
- self.check_call(function_index)?;
1271
- self.check_return()?;
1272
- Ok(())
1273
- }
1274
- fn visit_call_ref(&mut self, type_index: u32) -> Self::Output {
1275
- let hty = HeapType::Concrete(type_index);
1276
- self.resources
1277
- .check_heap_type(hty, &self.features, self.offset)?;
1278
- // If `None` is popped then that means a "bottom" type was popped which
1279
- // is always considered equivalent to the `hty` tag.
1280
- if let Some(rt) = self.pop_ref()? {
1281
- let expected = RefType::concrete(true, type_index)
1282
- .expect("existing heap types should be within our limits");
1283
- if !self
1284
- .resources
1285
- .matches(ValType::Ref(rt), ValType::Ref(expected))
1286
- {
1287
- bail!(
1288
- self.offset,
1289
- "type mismatch: funcref on stack does not match specified type",
1290
- );
1291
- }
1292
- }
1293
- self.check_call_ty(type_index)
1294
- }
1295
- fn visit_return_call_ref(&mut self, type_index: u32) -> Self::Output {
1296
- self.visit_call_ref(type_index)?;
1297
- self.check_return()
1298
- }
1299
- fn visit_call_indirect(
1300
- &mut self,
1301
- index: u32,
1302
- table_index: u32,
1303
- table_byte: u8,
1304
- ) -> Self::Output {
1305
- if table_byte != 0 && !self.features.reference_types {
1306
- bail!(
1307
- self.offset,
1308
- "reference-types not enabled: zero byte expected"
1309
- );
1310
- }
1311
- self.check_call_indirect(index, table_index)?;
1312
- Ok(())
1313
- }
1314
- fn visit_return_call_indirect(&mut self, index: u32, table_index: u32) -> Self::Output {
1315
- self.check_call_indirect(index, table_index)?;
1316
- self.check_return()?;
1317
- Ok(())
1318
- }
1319
- fn visit_drop(&mut self) -> Self::Output {
1320
- self.pop_operand(None)?;
1321
- Ok(())
1322
- }
1323
- fn visit_select(&mut self) -> Self::Output {
1324
- self.pop_operand(Some(ValType::I32))?;
1325
- let ty1 = self.pop_operand(None)?;
1326
- let ty2 = self.pop_operand(None)?;
1327
-
1328
- let ty = match (ty1, ty2) {
1329
- // All heap-related types aren't allowed with the `select`
1330
- // instruction
1331
- (MaybeType::HeapBot, _)
1332
- | (_, MaybeType::HeapBot)
1333
- | (MaybeType::Type(ValType::Ref(_)), _)
1334
- | (_, MaybeType::Type(ValType::Ref(_))) => {
1335
- bail!(
1336
- self.offset,
1337
- "type mismatch: select only takes integral types"
1338
- )
1339
- }
1340
-
1341
- // If one operand is the "bottom" type then whatever the other
1342
- // operand is is the result of the `select`
1343
- (MaybeType::Bot, t) | (t, MaybeType::Bot) => t,
1344
-
1345
- // Otherwise these are two integral types and they must match for
1346
- // `select` to typecheck.
1347
- (t @ MaybeType::Type(t1), MaybeType::Type(t2)) => {
1348
- if t1 != t2 {
1349
- bail!(
1350
- self.offset,
1351
- "type mismatch: select operands have different types"
1352
- );
1353
- }
1354
- t
1355
- }
1356
- };
1357
- self.push_operand(ty)?;
1358
- Ok(())
1359
- }
1360
- fn visit_typed_select(&mut self, ty: ValType) -> Self::Output {
1361
- self.resources
1362
- .check_value_type(ty, &self.features, self.offset)?;
1363
- self.pop_operand(Some(ValType::I32))?;
1364
- self.pop_operand(Some(ty))?;
1365
- self.pop_operand(Some(ty))?;
1366
- self.push_operand(ty)?;
1367
- Ok(())
1368
- }
1369
- fn visit_local_get(&mut self, local_index: u32) -> Self::Output {
1370
- let ty = self.local(local_index)?;
1371
- if !self.local_inits[local_index as usize] {
1372
- bail!(self.offset, "uninitialized local: {}", local_index);
1373
- }
1374
- self.push_operand(ty)?;
1375
- Ok(())
1376
- }
1377
- fn visit_local_set(&mut self, local_index: u32) -> Self::Output {
1378
- let ty = self.local(local_index)?;
1379
- self.pop_operand(Some(ty))?;
1380
- if !self.local_inits[local_index as usize] {
1381
- self.local_inits[local_index as usize] = true;
1382
- self.inits.push(local_index);
1383
- }
1384
- Ok(())
1385
- }
1386
- fn visit_local_tee(&mut self, local_index: u32) -> Self::Output {
1387
- let ty = self.local(local_index)?;
1388
- self.pop_operand(Some(ty))?;
1389
- if !self.local_inits[local_index as usize] {
1390
- self.local_inits[local_index as usize] = true;
1391
- self.inits.push(local_index);
1392
- }
1393
-
1394
- self.push_operand(ty)?;
1395
- Ok(())
1396
- }
1397
- fn visit_global_get(&mut self, global_index: u32) -> Self::Output {
1398
- if let Some(ty) = self.resources.global_at(global_index) {
1399
- self.push_operand(ty.content_type)?;
1400
- } else {
1401
- bail!(self.offset, "unknown global: global index out of bounds");
1402
- };
1403
- Ok(())
1404
- }
1405
- fn visit_global_set(&mut self, global_index: u32) -> Self::Output {
1406
- if let Some(ty) = self.resources.global_at(global_index) {
1407
- if !ty.mutable {
1408
- bail!(
1409
- self.offset,
1410
- "global is immutable: cannot modify it with `global.set`"
1411
- );
1412
- }
1413
- self.pop_operand(Some(ty.content_type))?;
1414
- } else {
1415
- bail!(self.offset, "unknown global: global index out of bounds");
1416
- };
1417
- Ok(())
1418
- }
1419
- fn visit_i32_load(&mut self, memarg: MemArg) -> Self::Output {
1420
- let ty = self.check_memarg(memarg)?;
1421
- self.pop_operand(Some(ty))?;
1422
- self.push_operand(ValType::I32)?;
1423
- Ok(())
1424
- }
1425
- fn visit_i64_load(&mut self, memarg: MemArg) -> Self::Output {
1426
- let ty = self.check_memarg(memarg)?;
1427
- self.pop_operand(Some(ty))?;
1428
- self.push_operand(ValType::I64)?;
1429
- Ok(())
1430
- }
1431
- fn visit_f32_load(&mut self, memarg: MemArg) -> Self::Output {
1432
- self.check_floats_enabled()?;
1433
- let ty = self.check_memarg(memarg)?;
1434
- self.pop_operand(Some(ty))?;
1435
- self.push_operand(ValType::F32)?;
1436
- Ok(())
1437
- }
1438
- fn visit_f64_load(&mut self, memarg: MemArg) -> Self::Output {
1439
- self.check_floats_enabled()?;
1440
- let ty = self.check_memarg(memarg)?;
1441
- self.pop_operand(Some(ty))?;
1442
- self.push_operand(ValType::F64)?;
1443
- Ok(())
1444
- }
1445
- fn visit_i32_load8_s(&mut self, memarg: MemArg) -> Self::Output {
1446
- let ty = self.check_memarg(memarg)?;
1447
- self.pop_operand(Some(ty))?;
1448
- self.push_operand(ValType::I32)?;
1449
- Ok(())
1450
- }
1451
- fn visit_i32_load8_u(&mut self, memarg: MemArg) -> Self::Output {
1452
- self.visit_i32_load8_s(memarg)
1453
- }
1454
- fn visit_i32_load16_s(&mut self, memarg: MemArg) -> Self::Output {
1455
- let ty = self.check_memarg(memarg)?;
1456
- self.pop_operand(Some(ty))?;
1457
- self.push_operand(ValType::I32)?;
1458
- Ok(())
1459
- }
1460
- fn visit_i32_load16_u(&mut self, memarg: MemArg) -> Self::Output {
1461
- self.visit_i32_load16_s(memarg)
1462
- }
1463
- fn visit_i64_load8_s(&mut self, memarg: MemArg) -> Self::Output {
1464
- let ty = self.check_memarg(memarg)?;
1465
- self.pop_operand(Some(ty))?;
1466
- self.push_operand(ValType::I64)?;
1467
- Ok(())
1468
- }
1469
- fn visit_i64_load8_u(&mut self, memarg: MemArg) -> Self::Output {
1470
- self.visit_i64_load8_s(memarg)
1471
- }
1472
- fn visit_i64_load16_s(&mut self, memarg: MemArg) -> Self::Output {
1473
- let ty = self.check_memarg(memarg)?;
1474
- self.pop_operand(Some(ty))?;
1475
- self.push_operand(ValType::I64)?;
1476
- Ok(())
1477
- }
1478
- fn visit_i64_load16_u(&mut self, memarg: MemArg) -> Self::Output {
1479
- self.visit_i64_load16_s(memarg)
1480
- }
1481
- fn visit_i64_load32_s(&mut self, memarg: MemArg) -> Self::Output {
1482
- let ty = self.check_memarg(memarg)?;
1483
- self.pop_operand(Some(ty))?;
1484
- self.push_operand(ValType::I64)?;
1485
- Ok(())
1486
- }
1487
- fn visit_i64_load32_u(&mut self, memarg: MemArg) -> Self::Output {
1488
- self.visit_i64_load32_s(memarg)
1489
- }
1490
- fn visit_i32_store(&mut self, memarg: MemArg) -> Self::Output {
1491
- let ty = self.check_memarg(memarg)?;
1492
- self.pop_operand(Some(ValType::I32))?;
1493
- self.pop_operand(Some(ty))?;
1494
- Ok(())
1495
- }
1496
- fn visit_i64_store(&mut self, memarg: MemArg) -> Self::Output {
1497
- let ty = self.check_memarg(memarg)?;
1498
- self.pop_operand(Some(ValType::I64))?;
1499
- self.pop_operand(Some(ty))?;
1500
- Ok(())
1501
- }
1502
- fn visit_f32_store(&mut self, memarg: MemArg) -> Self::Output {
1503
- self.check_floats_enabled()?;
1504
- let ty = self.check_memarg(memarg)?;
1505
- self.pop_operand(Some(ValType::F32))?;
1506
- self.pop_operand(Some(ty))?;
1507
- Ok(())
1508
- }
1509
- fn visit_f64_store(&mut self, memarg: MemArg) -> Self::Output {
1510
- self.check_floats_enabled()?;
1511
- let ty = self.check_memarg(memarg)?;
1512
- self.pop_operand(Some(ValType::F64))?;
1513
- self.pop_operand(Some(ty))?;
1514
- Ok(())
1515
- }
1516
- fn visit_i32_store8(&mut self, memarg: MemArg) -> Self::Output {
1517
- let ty = self.check_memarg(memarg)?;
1518
- self.pop_operand(Some(ValType::I32))?;
1519
- self.pop_operand(Some(ty))?;
1520
- Ok(())
1521
- }
1522
- fn visit_i32_store16(&mut self, memarg: MemArg) -> Self::Output {
1523
- let ty = self.check_memarg(memarg)?;
1524
- self.pop_operand(Some(ValType::I32))?;
1525
- self.pop_operand(Some(ty))?;
1526
- Ok(())
1527
- }
1528
- fn visit_i64_store8(&mut self, memarg: MemArg) -> Self::Output {
1529
- let ty = self.check_memarg(memarg)?;
1530
- self.pop_operand(Some(ValType::I64))?;
1531
- self.pop_operand(Some(ty))?;
1532
- Ok(())
1533
- }
1534
- fn visit_i64_store16(&mut self, memarg: MemArg) -> Self::Output {
1535
- let ty = self.check_memarg(memarg)?;
1536
- self.pop_operand(Some(ValType::I64))?;
1537
- self.pop_operand(Some(ty))?;
1538
- Ok(())
1539
- }
1540
- fn visit_i64_store32(&mut self, memarg: MemArg) -> Self::Output {
1541
- let ty = self.check_memarg(memarg)?;
1542
- self.pop_operand(Some(ValType::I64))?;
1543
- self.pop_operand(Some(ty))?;
1544
- Ok(())
1545
- }
1546
- fn visit_memory_size(&mut self, mem: u32, mem_byte: u8) -> Self::Output {
1547
- if mem_byte != 0 && !self.features.multi_memory {
1548
- bail!(self.offset, "multi-memory not enabled: zero byte expected");
1549
- }
1550
- let index_ty = self.check_memory_index(mem)?;
1551
- self.push_operand(index_ty)?;
1552
- Ok(())
1553
- }
1554
- fn visit_memory_grow(&mut self, mem: u32, mem_byte: u8) -> Self::Output {
1555
- if mem_byte != 0 && !self.features.multi_memory {
1556
- bail!(self.offset, "multi-memory not enabled: zero byte expected");
1557
- }
1558
- let index_ty = self.check_memory_index(mem)?;
1559
- self.pop_operand(Some(index_ty))?;
1560
- self.push_operand(index_ty)?;
1561
- Ok(())
1562
- }
1563
- fn visit_i32_const(&mut self, _value: i32) -> Self::Output {
1564
- self.push_operand(ValType::I32)?;
1565
- Ok(())
1566
- }
1567
- fn visit_i64_const(&mut self, _value: i64) -> Self::Output {
1568
- self.push_operand(ValType::I64)?;
1569
- Ok(())
1570
- }
1571
- fn visit_f32_const(&mut self, _value: Ieee32) -> Self::Output {
1572
- self.check_floats_enabled()?;
1573
- self.push_operand(ValType::F32)?;
1574
- Ok(())
1575
- }
1576
- fn visit_f64_const(&mut self, _value: Ieee64) -> Self::Output {
1577
- self.check_floats_enabled()?;
1578
- self.push_operand(ValType::F64)?;
1579
- Ok(())
1580
- }
1581
- fn visit_i32_eqz(&mut self) -> Self::Output {
1582
- self.pop_operand(Some(ValType::I32))?;
1583
- self.push_operand(ValType::I32)?;
1584
- Ok(())
1585
- }
1586
- fn visit_i32_eq(&mut self) -> Self::Output {
1587
- self.check_cmp_op(ValType::I32)
1588
- }
1589
- fn visit_i32_ne(&mut self) -> Self::Output {
1590
- self.check_cmp_op(ValType::I32)
1591
- }
1592
- fn visit_i32_lt_s(&mut self) -> Self::Output {
1593
- self.check_cmp_op(ValType::I32)
1594
- }
1595
- fn visit_i32_lt_u(&mut self) -> Self::Output {
1596
- self.check_cmp_op(ValType::I32)
1597
- }
1598
- fn visit_i32_gt_s(&mut self) -> Self::Output {
1599
- self.check_cmp_op(ValType::I32)
1600
- }
1601
- fn visit_i32_gt_u(&mut self) -> Self::Output {
1602
- self.check_cmp_op(ValType::I32)
1603
- }
1604
- fn visit_i32_le_s(&mut self) -> Self::Output {
1605
- self.check_cmp_op(ValType::I32)
1606
- }
1607
- fn visit_i32_le_u(&mut self) -> Self::Output {
1608
- self.check_cmp_op(ValType::I32)
1609
- }
1610
- fn visit_i32_ge_s(&mut self) -> Self::Output {
1611
- self.check_cmp_op(ValType::I32)
1612
- }
1613
- fn visit_i32_ge_u(&mut self) -> Self::Output {
1614
- self.check_cmp_op(ValType::I32)
1615
- }
1616
- fn visit_i64_eqz(&mut self) -> Self::Output {
1617
- self.pop_operand(Some(ValType::I64))?;
1618
- self.push_operand(ValType::I32)?;
1619
- Ok(())
1620
- }
1621
- fn visit_i64_eq(&mut self) -> Self::Output {
1622
- self.check_cmp_op(ValType::I64)
1623
- }
1624
- fn visit_i64_ne(&mut self) -> Self::Output {
1625
- self.check_cmp_op(ValType::I64)
1626
- }
1627
- fn visit_i64_lt_s(&mut self) -> Self::Output {
1628
- self.check_cmp_op(ValType::I64)
1629
- }
1630
- fn visit_i64_lt_u(&mut self) -> Self::Output {
1631
- self.check_cmp_op(ValType::I64)
1632
- }
1633
- fn visit_i64_gt_s(&mut self) -> Self::Output {
1634
- self.check_cmp_op(ValType::I64)
1635
- }
1636
- fn visit_i64_gt_u(&mut self) -> Self::Output {
1637
- self.check_cmp_op(ValType::I64)
1638
- }
1639
- fn visit_i64_le_s(&mut self) -> Self::Output {
1640
- self.check_cmp_op(ValType::I64)
1641
- }
1642
- fn visit_i64_le_u(&mut self) -> Self::Output {
1643
- self.check_cmp_op(ValType::I64)
1644
- }
1645
- fn visit_i64_ge_s(&mut self) -> Self::Output {
1646
- self.check_cmp_op(ValType::I64)
1647
- }
1648
- fn visit_i64_ge_u(&mut self) -> Self::Output {
1649
- self.check_cmp_op(ValType::I64)
1650
- }
1651
- fn visit_f32_eq(&mut self) -> Self::Output {
1652
- self.check_fcmp_op(ValType::F32)
1653
- }
1654
- fn visit_f32_ne(&mut self) -> Self::Output {
1655
- self.check_fcmp_op(ValType::F32)
1656
- }
1657
- fn visit_f32_lt(&mut self) -> Self::Output {
1658
- self.check_fcmp_op(ValType::F32)
1659
- }
1660
- fn visit_f32_gt(&mut self) -> Self::Output {
1661
- self.check_fcmp_op(ValType::F32)
1662
- }
1663
- fn visit_f32_le(&mut self) -> Self::Output {
1664
- self.check_fcmp_op(ValType::F32)
1665
- }
1666
- fn visit_f32_ge(&mut self) -> Self::Output {
1667
- self.check_fcmp_op(ValType::F32)
1668
- }
1669
- fn visit_f64_eq(&mut self) -> Self::Output {
1670
- self.check_fcmp_op(ValType::F64)
1671
- }
1672
- fn visit_f64_ne(&mut self) -> Self::Output {
1673
- self.check_fcmp_op(ValType::F64)
1674
- }
1675
- fn visit_f64_lt(&mut self) -> Self::Output {
1676
- self.check_fcmp_op(ValType::F64)
1677
- }
1678
- fn visit_f64_gt(&mut self) -> Self::Output {
1679
- self.check_fcmp_op(ValType::F64)
1680
- }
1681
- fn visit_f64_le(&mut self) -> Self::Output {
1682
- self.check_fcmp_op(ValType::F64)
1683
- }
1684
- fn visit_f64_ge(&mut self) -> Self::Output {
1685
- self.check_fcmp_op(ValType::F64)
1686
- }
1687
- fn visit_i32_clz(&mut self) -> Self::Output {
1688
- self.check_unary_op(ValType::I32)
1689
- }
1690
- fn visit_i32_ctz(&mut self) -> Self::Output {
1691
- self.check_unary_op(ValType::I32)
1692
- }
1693
- fn visit_i32_popcnt(&mut self) -> Self::Output {
1694
- self.check_unary_op(ValType::I32)
1695
- }
1696
- fn visit_i32_add(&mut self) -> Self::Output {
1697
- self.check_binary_op(ValType::I32)
1698
- }
1699
- fn visit_i32_sub(&mut self) -> Self::Output {
1700
- self.check_binary_op(ValType::I32)
1701
- }
1702
- fn visit_i32_mul(&mut self) -> Self::Output {
1703
- self.check_binary_op(ValType::I32)
1704
- }
1705
- fn visit_i32_div_s(&mut self) -> Self::Output {
1706
- self.check_binary_op(ValType::I32)
1707
- }
1708
- fn visit_i32_div_u(&mut self) -> Self::Output {
1709
- self.check_binary_op(ValType::I32)
1710
- }
1711
- fn visit_i32_rem_s(&mut self) -> Self::Output {
1712
- self.check_binary_op(ValType::I32)
1713
- }
1714
- fn visit_i32_rem_u(&mut self) -> Self::Output {
1715
- self.check_binary_op(ValType::I32)
1716
- }
1717
- fn visit_i32_and(&mut self) -> Self::Output {
1718
- self.check_binary_op(ValType::I32)
1719
- }
1720
- fn visit_i32_or(&mut self) -> Self::Output {
1721
- self.check_binary_op(ValType::I32)
1722
- }
1723
- fn visit_i32_xor(&mut self) -> Self::Output {
1724
- self.check_binary_op(ValType::I32)
1725
- }
1726
- fn visit_i32_shl(&mut self) -> Self::Output {
1727
- self.check_binary_op(ValType::I32)
1728
- }
1729
- fn visit_i32_shr_s(&mut self) -> Self::Output {
1730
- self.check_binary_op(ValType::I32)
1731
- }
1732
- fn visit_i32_shr_u(&mut self) -> Self::Output {
1733
- self.check_binary_op(ValType::I32)
1734
- }
1735
- fn visit_i32_rotl(&mut self) -> Self::Output {
1736
- self.check_binary_op(ValType::I32)
1737
- }
1738
- fn visit_i32_rotr(&mut self) -> Self::Output {
1739
- self.check_binary_op(ValType::I32)
1740
- }
1741
- fn visit_i64_clz(&mut self) -> Self::Output {
1742
- self.check_unary_op(ValType::I64)
1743
- }
1744
- fn visit_i64_ctz(&mut self) -> Self::Output {
1745
- self.check_unary_op(ValType::I64)
1746
- }
1747
- fn visit_i64_popcnt(&mut self) -> Self::Output {
1748
- self.check_unary_op(ValType::I64)
1749
- }
1750
- fn visit_i64_add(&mut self) -> Self::Output {
1751
- self.check_binary_op(ValType::I64)
1752
- }
1753
- fn visit_i64_sub(&mut self) -> Self::Output {
1754
- self.check_binary_op(ValType::I64)
1755
- }
1756
- fn visit_i64_mul(&mut self) -> Self::Output {
1757
- self.check_binary_op(ValType::I64)
1758
- }
1759
- fn visit_i64_div_s(&mut self) -> Self::Output {
1760
- self.check_binary_op(ValType::I64)
1761
- }
1762
- fn visit_i64_div_u(&mut self) -> Self::Output {
1763
- self.check_binary_op(ValType::I64)
1764
- }
1765
- fn visit_i64_rem_s(&mut self) -> Self::Output {
1766
- self.check_binary_op(ValType::I64)
1767
- }
1768
- fn visit_i64_rem_u(&mut self) -> Self::Output {
1769
- self.check_binary_op(ValType::I64)
1770
- }
1771
- fn visit_i64_and(&mut self) -> Self::Output {
1772
- self.check_binary_op(ValType::I64)
1773
- }
1774
- fn visit_i64_or(&mut self) -> Self::Output {
1775
- self.check_binary_op(ValType::I64)
1776
- }
1777
- fn visit_i64_xor(&mut self) -> Self::Output {
1778
- self.check_binary_op(ValType::I64)
1779
- }
1780
- fn visit_i64_shl(&mut self) -> Self::Output {
1781
- self.check_binary_op(ValType::I64)
1782
- }
1783
- fn visit_i64_shr_s(&mut self) -> Self::Output {
1784
- self.check_binary_op(ValType::I64)
1785
- }
1786
- fn visit_i64_shr_u(&mut self) -> Self::Output {
1787
- self.check_binary_op(ValType::I64)
1788
- }
1789
- fn visit_i64_rotl(&mut self) -> Self::Output {
1790
- self.check_binary_op(ValType::I64)
1791
- }
1792
- fn visit_i64_rotr(&mut self) -> Self::Output {
1793
- self.check_binary_op(ValType::I64)
1794
- }
1795
- fn visit_f32_abs(&mut self) -> Self::Output {
1796
- self.check_funary_op(ValType::F32)
1797
- }
1798
- fn visit_f32_neg(&mut self) -> Self::Output {
1799
- self.check_funary_op(ValType::F32)
1800
- }
1801
- fn visit_f32_ceil(&mut self) -> Self::Output {
1802
- self.check_funary_op(ValType::F32)
1803
- }
1804
- fn visit_f32_floor(&mut self) -> Self::Output {
1805
- self.check_funary_op(ValType::F32)
1806
- }
1807
- fn visit_f32_trunc(&mut self) -> Self::Output {
1808
- self.check_funary_op(ValType::F32)
1809
- }
1810
- fn visit_f32_nearest(&mut self) -> Self::Output {
1811
- self.check_funary_op(ValType::F32)
1812
- }
1813
- fn visit_f32_sqrt(&mut self) -> Self::Output {
1814
- self.check_funary_op(ValType::F32)
1815
- }
1816
- fn visit_f32_add(&mut self) -> Self::Output {
1817
- self.check_fbinary_op(ValType::F32)
1818
- }
1819
- fn visit_f32_sub(&mut self) -> Self::Output {
1820
- self.check_fbinary_op(ValType::F32)
1821
- }
1822
- fn visit_f32_mul(&mut self) -> Self::Output {
1823
- self.check_fbinary_op(ValType::F32)
1824
- }
1825
- fn visit_f32_div(&mut self) -> Self::Output {
1826
- self.check_fbinary_op(ValType::F32)
1827
- }
1828
- fn visit_f32_min(&mut self) -> Self::Output {
1829
- self.check_fbinary_op(ValType::F32)
1830
- }
1831
- fn visit_f32_max(&mut self) -> Self::Output {
1832
- self.check_fbinary_op(ValType::F32)
1833
- }
1834
- fn visit_f32_copysign(&mut self) -> Self::Output {
1835
- self.check_fbinary_op(ValType::F32)
1836
- }
1837
- fn visit_f64_abs(&mut self) -> Self::Output {
1838
- self.check_funary_op(ValType::F64)
1839
- }
1840
- fn visit_f64_neg(&mut self) -> Self::Output {
1841
- self.check_funary_op(ValType::F64)
1842
- }
1843
- fn visit_f64_ceil(&mut self) -> Self::Output {
1844
- self.check_funary_op(ValType::F64)
1845
- }
1846
- fn visit_f64_floor(&mut self) -> Self::Output {
1847
- self.check_funary_op(ValType::F64)
1848
- }
1849
- fn visit_f64_trunc(&mut self) -> Self::Output {
1850
- self.check_funary_op(ValType::F64)
1851
- }
1852
- fn visit_f64_nearest(&mut self) -> Self::Output {
1853
- self.check_funary_op(ValType::F64)
1854
- }
1855
- fn visit_f64_sqrt(&mut self) -> Self::Output {
1856
- self.check_funary_op(ValType::F64)
1857
- }
1858
- fn visit_f64_add(&mut self) -> Self::Output {
1859
- self.check_fbinary_op(ValType::F64)
1860
- }
1861
- fn visit_f64_sub(&mut self) -> Self::Output {
1862
- self.check_fbinary_op(ValType::F64)
1863
- }
1864
- fn visit_f64_mul(&mut self) -> Self::Output {
1865
- self.check_fbinary_op(ValType::F64)
1866
- }
1867
- fn visit_f64_div(&mut self) -> Self::Output {
1868
- self.check_fbinary_op(ValType::F64)
1869
- }
1870
- fn visit_f64_min(&mut self) -> Self::Output {
1871
- self.check_fbinary_op(ValType::F64)
1872
- }
1873
- fn visit_f64_max(&mut self) -> Self::Output {
1874
- self.check_fbinary_op(ValType::F64)
1875
- }
1876
- fn visit_f64_copysign(&mut self) -> Self::Output {
1877
- self.check_fbinary_op(ValType::F64)
1878
- }
1879
- fn visit_i32_wrap_i64(&mut self) -> Self::Output {
1880
- self.check_conversion_op(ValType::I32, ValType::I64)
1881
- }
1882
- fn visit_i32_trunc_f32_s(&mut self) -> Self::Output {
1883
- self.check_conversion_op(ValType::I32, ValType::F32)
1884
- }
1885
- fn visit_i32_trunc_f32_u(&mut self) -> Self::Output {
1886
- self.check_conversion_op(ValType::I32, ValType::F32)
1887
- }
1888
- fn visit_i32_trunc_f64_s(&mut self) -> Self::Output {
1889
- self.check_conversion_op(ValType::I32, ValType::F64)
1890
- }
1891
- fn visit_i32_trunc_f64_u(&mut self) -> Self::Output {
1892
- self.check_conversion_op(ValType::I32, ValType::F64)
1893
- }
1894
- fn visit_i64_extend_i32_s(&mut self) -> Self::Output {
1895
- self.check_conversion_op(ValType::I64, ValType::I32)
1896
- }
1897
- fn visit_i64_extend_i32_u(&mut self) -> Self::Output {
1898
- self.check_conversion_op(ValType::I64, ValType::I32)
1899
- }
1900
- fn visit_i64_trunc_f32_s(&mut self) -> Self::Output {
1901
- self.check_conversion_op(ValType::I64, ValType::F32)
1902
- }
1903
- fn visit_i64_trunc_f32_u(&mut self) -> Self::Output {
1904
- self.check_conversion_op(ValType::I64, ValType::F32)
1905
- }
1906
- fn visit_i64_trunc_f64_s(&mut self) -> Self::Output {
1907
- self.check_conversion_op(ValType::I64, ValType::F64)
1908
- }
1909
- fn visit_i64_trunc_f64_u(&mut self) -> Self::Output {
1910
- self.check_conversion_op(ValType::I64, ValType::F64)
1911
- }
1912
- fn visit_f32_convert_i32_s(&mut self) -> Self::Output {
1913
- self.check_fconversion_op(ValType::F32, ValType::I32)
1914
- }
1915
- fn visit_f32_convert_i32_u(&mut self) -> Self::Output {
1916
- self.check_fconversion_op(ValType::F32, ValType::I32)
1917
- }
1918
- fn visit_f32_convert_i64_s(&mut self) -> Self::Output {
1919
- self.check_fconversion_op(ValType::F32, ValType::I64)
1920
- }
1921
- fn visit_f32_convert_i64_u(&mut self) -> Self::Output {
1922
- self.check_fconversion_op(ValType::F32, ValType::I64)
1923
- }
1924
- fn visit_f32_demote_f64(&mut self) -> Self::Output {
1925
- self.check_fconversion_op(ValType::F32, ValType::F64)
1926
- }
1927
- fn visit_f64_convert_i32_s(&mut self) -> Self::Output {
1928
- self.check_fconversion_op(ValType::F64, ValType::I32)
1929
- }
1930
- fn visit_f64_convert_i32_u(&mut self) -> Self::Output {
1931
- self.check_fconversion_op(ValType::F64, ValType::I32)
1932
- }
1933
- fn visit_f64_convert_i64_s(&mut self) -> Self::Output {
1934
- self.check_fconversion_op(ValType::F64, ValType::I64)
1935
- }
1936
- fn visit_f64_convert_i64_u(&mut self) -> Self::Output {
1937
- self.check_fconversion_op(ValType::F64, ValType::I64)
1938
- }
1939
- fn visit_f64_promote_f32(&mut self) -> Self::Output {
1940
- self.check_fconversion_op(ValType::F64, ValType::F32)
1941
- }
1942
- fn visit_i32_reinterpret_f32(&mut self) -> Self::Output {
1943
- self.check_conversion_op(ValType::I32, ValType::F32)
1944
- }
1945
- fn visit_i64_reinterpret_f64(&mut self) -> Self::Output {
1946
- self.check_conversion_op(ValType::I64, ValType::F64)
1947
- }
1948
- fn visit_f32_reinterpret_i32(&mut self) -> Self::Output {
1949
- self.check_fconversion_op(ValType::F32, ValType::I32)
1950
- }
1951
- fn visit_f64_reinterpret_i64(&mut self) -> Self::Output {
1952
- self.check_fconversion_op(ValType::F64, ValType::I64)
1953
- }
1954
- fn visit_i32_trunc_sat_f32_s(&mut self) -> Self::Output {
1955
- self.check_conversion_op(ValType::I32, ValType::F32)
1956
- }
1957
- fn visit_i32_trunc_sat_f32_u(&mut self) -> Self::Output {
1958
- self.check_conversion_op(ValType::I32, ValType::F32)
1959
- }
1960
- fn visit_i32_trunc_sat_f64_s(&mut self) -> Self::Output {
1961
- self.check_conversion_op(ValType::I32, ValType::F64)
1962
- }
1963
- fn visit_i32_trunc_sat_f64_u(&mut self) -> Self::Output {
1964
- self.check_conversion_op(ValType::I32, ValType::F64)
1965
- }
1966
- fn visit_i64_trunc_sat_f32_s(&mut self) -> Self::Output {
1967
- self.check_conversion_op(ValType::I64, ValType::F32)
1968
- }
1969
- fn visit_i64_trunc_sat_f32_u(&mut self) -> Self::Output {
1970
- self.check_conversion_op(ValType::I64, ValType::F32)
1971
- }
1972
- fn visit_i64_trunc_sat_f64_s(&mut self) -> Self::Output {
1973
- self.check_conversion_op(ValType::I64, ValType::F64)
1974
- }
1975
- fn visit_i64_trunc_sat_f64_u(&mut self) -> Self::Output {
1976
- self.check_conversion_op(ValType::I64, ValType::F64)
1977
- }
1978
- fn visit_i32_extend8_s(&mut self) -> Self::Output {
1979
- self.check_unary_op(ValType::I32)
1980
- }
1981
- fn visit_i32_extend16_s(&mut self) -> Self::Output {
1982
- self.check_unary_op(ValType::I32)
1983
- }
1984
- fn visit_i64_extend8_s(&mut self) -> Self::Output {
1985
- self.check_unary_op(ValType::I64)
1986
- }
1987
- fn visit_i64_extend16_s(&mut self) -> Self::Output {
1988
- self.check_unary_op(ValType::I64)
1989
- }
1990
- fn visit_i64_extend32_s(&mut self) -> Self::Output {
1991
- self.check_unary_op(ValType::I64)
1992
- }
1993
- fn visit_i32_atomic_load(&mut self, memarg: MemArg) -> Self::Output {
1994
- self.check_atomic_load(memarg, ValType::I32)
1995
- }
1996
- fn visit_i32_atomic_load16_u(&mut self, memarg: MemArg) -> Self::Output {
1997
- self.check_atomic_load(memarg, ValType::I32)
1998
- }
1999
- fn visit_i32_atomic_load8_u(&mut self, memarg: MemArg) -> Self::Output {
2000
- self.check_atomic_load(memarg, ValType::I32)
2001
- }
2002
- fn visit_i64_atomic_load(&mut self, memarg: MemArg) -> Self::Output {
2003
- self.check_atomic_load(memarg, ValType::I64)
2004
- }
2005
- fn visit_i64_atomic_load32_u(&mut self, memarg: MemArg) -> Self::Output {
2006
- self.check_atomic_load(memarg, ValType::I64)
2007
- }
2008
- fn visit_i64_atomic_load16_u(&mut self, memarg: MemArg) -> Self::Output {
2009
- self.check_atomic_load(memarg, ValType::I64)
2010
- }
2011
- fn visit_i64_atomic_load8_u(&mut self, memarg: MemArg) -> Self::Output {
2012
- self.check_atomic_load(memarg, ValType::I64)
2013
- }
2014
- fn visit_i32_atomic_store(&mut self, memarg: MemArg) -> Self::Output {
2015
- self.check_atomic_store(memarg, ValType::I32)
2016
- }
2017
- fn visit_i32_atomic_store16(&mut self, memarg: MemArg) -> Self::Output {
2018
- self.check_atomic_store(memarg, ValType::I32)
2019
- }
2020
- fn visit_i32_atomic_store8(&mut self, memarg: MemArg) -> Self::Output {
2021
- self.check_atomic_store(memarg, ValType::I32)
2022
- }
2023
- fn visit_i64_atomic_store(&mut self, memarg: MemArg) -> Self::Output {
2024
- self.check_atomic_store(memarg, ValType::I64)
2025
- }
2026
- fn visit_i64_atomic_store32(&mut self, memarg: MemArg) -> Self::Output {
2027
- self.check_atomic_store(memarg, ValType::I64)
2028
- }
2029
- fn visit_i64_atomic_store16(&mut self, memarg: MemArg) -> Self::Output {
2030
- self.check_atomic_store(memarg, ValType::I64)
2031
- }
2032
- fn visit_i64_atomic_store8(&mut self, memarg: MemArg) -> Self::Output {
2033
- self.check_atomic_store(memarg, ValType::I64)
2034
- }
2035
- fn visit_i32_atomic_rmw_add(&mut self, memarg: MemArg) -> Self::Output {
2036
- self.check_atomic_binary_op(memarg, ValType::I32)
2037
- }
2038
- fn visit_i32_atomic_rmw_sub(&mut self, memarg: MemArg) -> Self::Output {
2039
- self.check_atomic_binary_op(memarg, ValType::I32)
2040
- }
2041
- fn visit_i32_atomic_rmw_and(&mut self, memarg: MemArg) -> Self::Output {
2042
- self.check_atomic_binary_op(memarg, ValType::I32)
2043
- }
2044
- fn visit_i32_atomic_rmw_or(&mut self, memarg: MemArg) -> Self::Output {
2045
- self.check_atomic_binary_op(memarg, ValType::I32)
2046
- }
2047
- fn visit_i32_atomic_rmw_xor(&mut self, memarg: MemArg) -> Self::Output {
2048
- self.check_atomic_binary_op(memarg, ValType::I32)
2049
- }
2050
- fn visit_i32_atomic_rmw16_add_u(&mut self, memarg: MemArg) -> Self::Output {
2051
- self.check_atomic_binary_op(memarg, ValType::I32)
2052
- }
2053
- fn visit_i32_atomic_rmw16_sub_u(&mut self, memarg: MemArg) -> Self::Output {
2054
- self.check_atomic_binary_op(memarg, ValType::I32)
2055
- }
2056
- fn visit_i32_atomic_rmw16_and_u(&mut self, memarg: MemArg) -> Self::Output {
2057
- self.check_atomic_binary_op(memarg, ValType::I32)
2058
- }
2059
- fn visit_i32_atomic_rmw16_or_u(&mut self, memarg: MemArg) -> Self::Output {
2060
- self.check_atomic_binary_op(memarg, ValType::I32)
2061
- }
2062
- fn visit_i32_atomic_rmw16_xor_u(&mut self, memarg: MemArg) -> Self::Output {
2063
- self.check_atomic_binary_op(memarg, ValType::I32)
2064
- }
2065
- fn visit_i32_atomic_rmw8_add_u(&mut self, memarg: MemArg) -> Self::Output {
2066
- self.check_atomic_binary_op(memarg, ValType::I32)
2067
- }
2068
- fn visit_i32_atomic_rmw8_sub_u(&mut self, memarg: MemArg) -> Self::Output {
2069
- self.check_atomic_binary_op(memarg, ValType::I32)
2070
- }
2071
- fn visit_i32_atomic_rmw8_and_u(&mut self, memarg: MemArg) -> Self::Output {
2072
- self.check_atomic_binary_op(memarg, ValType::I32)
2073
- }
2074
- fn visit_i32_atomic_rmw8_or_u(&mut self, memarg: MemArg) -> Self::Output {
2075
- self.check_atomic_binary_op(memarg, ValType::I32)
2076
- }
2077
- fn visit_i32_atomic_rmw8_xor_u(&mut self, memarg: MemArg) -> Self::Output {
2078
- self.check_atomic_binary_op(memarg, ValType::I32)
2079
- }
2080
- fn visit_i64_atomic_rmw_add(&mut self, memarg: MemArg) -> Self::Output {
2081
- self.check_atomic_binary_op(memarg, ValType::I64)
2082
- }
2083
- fn visit_i64_atomic_rmw_sub(&mut self, memarg: MemArg) -> Self::Output {
2084
- self.check_atomic_binary_op(memarg, ValType::I64)
2085
- }
2086
- fn visit_i64_atomic_rmw_and(&mut self, memarg: MemArg) -> Self::Output {
2087
- self.check_atomic_binary_op(memarg, ValType::I64)
2088
- }
2089
- fn visit_i64_atomic_rmw_or(&mut self, memarg: MemArg) -> Self::Output {
2090
- self.check_atomic_binary_op(memarg, ValType::I64)
2091
- }
2092
- fn visit_i64_atomic_rmw_xor(&mut self, memarg: MemArg) -> Self::Output {
2093
- self.check_atomic_binary_op(memarg, ValType::I64)
2094
- }
2095
- fn visit_i64_atomic_rmw32_add_u(&mut self, memarg: MemArg) -> Self::Output {
2096
- self.check_atomic_binary_op(memarg, ValType::I64)
2097
- }
2098
- fn visit_i64_atomic_rmw32_sub_u(&mut self, memarg: MemArg) -> Self::Output {
2099
- self.check_atomic_binary_op(memarg, ValType::I64)
2100
- }
2101
- fn visit_i64_atomic_rmw32_and_u(&mut self, memarg: MemArg) -> Self::Output {
2102
- self.check_atomic_binary_op(memarg, ValType::I64)
2103
- }
2104
- fn visit_i64_atomic_rmw32_or_u(&mut self, memarg: MemArg) -> Self::Output {
2105
- self.check_atomic_binary_op(memarg, ValType::I64)
2106
- }
2107
- fn visit_i64_atomic_rmw32_xor_u(&mut self, memarg: MemArg) -> Self::Output {
2108
- self.check_atomic_binary_op(memarg, ValType::I64)
2109
- }
2110
- fn visit_i64_atomic_rmw16_add_u(&mut self, memarg: MemArg) -> Self::Output {
2111
- self.check_atomic_binary_op(memarg, ValType::I64)
2112
- }
2113
- fn visit_i64_atomic_rmw16_sub_u(&mut self, memarg: MemArg) -> Self::Output {
2114
- self.check_atomic_binary_op(memarg, ValType::I64)
2115
- }
2116
- fn visit_i64_atomic_rmw16_and_u(&mut self, memarg: MemArg) -> Self::Output {
2117
- self.check_atomic_binary_op(memarg, ValType::I64)
2118
- }
2119
- fn visit_i64_atomic_rmw16_or_u(&mut self, memarg: MemArg) -> Self::Output {
2120
- self.check_atomic_binary_op(memarg, ValType::I64)
2121
- }
2122
- fn visit_i64_atomic_rmw16_xor_u(&mut self, memarg: MemArg) -> Self::Output {
2123
- self.check_atomic_binary_op(memarg, ValType::I64)
2124
- }
2125
- fn visit_i64_atomic_rmw8_add_u(&mut self, memarg: MemArg) -> Self::Output {
2126
- self.check_atomic_binary_op(memarg, ValType::I64)
2127
- }
2128
- fn visit_i64_atomic_rmw8_sub_u(&mut self, memarg: MemArg) -> Self::Output {
2129
- self.check_atomic_binary_op(memarg, ValType::I64)
2130
- }
2131
- fn visit_i64_atomic_rmw8_and_u(&mut self, memarg: MemArg) -> Self::Output {
2132
- self.check_atomic_binary_op(memarg, ValType::I64)
2133
- }
2134
- fn visit_i64_atomic_rmw8_or_u(&mut self, memarg: MemArg) -> Self::Output {
2135
- self.check_atomic_binary_op(memarg, ValType::I64)
2136
- }
2137
- fn visit_i64_atomic_rmw8_xor_u(&mut self, memarg: MemArg) -> Self::Output {
2138
- self.check_atomic_binary_op(memarg, ValType::I64)
2139
- }
2140
- fn visit_i32_atomic_rmw_xchg(&mut self, memarg: MemArg) -> Self::Output {
2141
- self.check_atomic_binary_op(memarg, ValType::I32)
2142
- }
2143
- fn visit_i32_atomic_rmw16_xchg_u(&mut self, memarg: MemArg) -> Self::Output {
2144
- self.check_atomic_binary_op(memarg, ValType::I32)
2145
- }
2146
- fn visit_i32_atomic_rmw8_xchg_u(&mut self, memarg: MemArg) -> Self::Output {
2147
- self.check_atomic_binary_op(memarg, ValType::I32)
2148
- }
2149
- fn visit_i32_atomic_rmw_cmpxchg(&mut self, memarg: MemArg) -> Self::Output {
2150
- self.check_atomic_binary_cmpxchg(memarg, ValType::I32)
2151
- }
2152
- fn visit_i32_atomic_rmw16_cmpxchg_u(&mut self, memarg: MemArg) -> Self::Output {
2153
- self.check_atomic_binary_cmpxchg(memarg, ValType::I32)
2154
- }
2155
- fn visit_i32_atomic_rmw8_cmpxchg_u(&mut self, memarg: MemArg) -> Self::Output {
2156
- self.check_atomic_binary_cmpxchg(memarg, ValType::I32)
2157
- }
2158
- fn visit_i64_atomic_rmw_xchg(&mut self, memarg: MemArg) -> Self::Output {
2159
- self.check_atomic_binary_op(memarg, ValType::I64)
2160
- }
2161
- fn visit_i64_atomic_rmw32_xchg_u(&mut self, memarg: MemArg) -> Self::Output {
2162
- self.check_atomic_binary_op(memarg, ValType::I64)
2163
- }
2164
- fn visit_i64_atomic_rmw16_xchg_u(&mut self, memarg: MemArg) -> Self::Output {
2165
- self.check_atomic_binary_op(memarg, ValType::I64)
2166
- }
2167
- fn visit_i64_atomic_rmw8_xchg_u(&mut self, memarg: MemArg) -> Self::Output {
2168
- self.check_atomic_binary_op(memarg, ValType::I64)
2169
- }
2170
- fn visit_i64_atomic_rmw_cmpxchg(&mut self, memarg: MemArg) -> Self::Output {
2171
- self.check_atomic_binary_cmpxchg(memarg, ValType::I64)
2172
- }
2173
- fn visit_i64_atomic_rmw32_cmpxchg_u(&mut self, memarg: MemArg) -> Self::Output {
2174
- self.check_atomic_binary_cmpxchg(memarg, ValType::I64)
2175
- }
2176
- fn visit_i64_atomic_rmw16_cmpxchg_u(&mut self, memarg: MemArg) -> Self::Output {
2177
- self.check_atomic_binary_cmpxchg(memarg, ValType::I64)
2178
- }
2179
- fn visit_i64_atomic_rmw8_cmpxchg_u(&mut self, memarg: MemArg) -> Self::Output {
2180
- self.check_atomic_binary_cmpxchg(memarg, ValType::I64)
2181
- }
2182
- fn visit_memory_atomic_notify(&mut self, memarg: MemArg) -> Self::Output {
2183
- self.check_atomic_binary_op(memarg, ValType::I32)
2184
- }
2185
- fn visit_memory_atomic_wait32(&mut self, memarg: MemArg) -> Self::Output {
2186
- let ty = self.check_shared_memarg(memarg)?;
2187
- self.pop_operand(Some(ValType::I64))?;
2188
- self.pop_operand(Some(ValType::I32))?;
2189
- self.pop_operand(Some(ty))?;
2190
- self.push_operand(ValType::I32)?;
2191
- Ok(())
2192
- }
2193
- fn visit_memory_atomic_wait64(&mut self, memarg: MemArg) -> Self::Output {
2194
- let ty = self.check_shared_memarg(memarg)?;
2195
- self.pop_operand(Some(ValType::I64))?;
2196
- self.pop_operand(Some(ValType::I64))?;
2197
- self.pop_operand(Some(ty))?;
2198
- self.push_operand(ValType::I32)?;
2199
- Ok(())
2200
- }
2201
- fn visit_atomic_fence(&mut self) -> Self::Output {
2202
- Ok(())
2203
- }
2204
- fn visit_ref_null(&mut self, heap_type: HeapType) -> Self::Output {
2205
- self.resources
2206
- .check_heap_type(heap_type, &self.features, self.offset)?;
2207
- self.push_operand(ValType::Ref(
2208
- RefType::new(true, heap_type).expect("existing heap types should be within our limits"),
2209
- ))?;
2210
- Ok(())
2211
- }
2212
-
2213
- fn visit_ref_as_non_null(&mut self) -> Self::Output {
2214
- let ty = match self.pop_ref()? {
2215
- Some(ty) => MaybeType::Type(ValType::Ref(ty.as_non_null())),
2216
- None => MaybeType::HeapBot,
2217
- };
2218
- self.push_operand(ty)?;
2219
- Ok(())
2220
- }
2221
- fn visit_br_on_null(&mut self, relative_depth: u32) -> Self::Output {
2222
- let ty = match self.pop_ref()? {
2223
- None => MaybeType::HeapBot,
2224
- Some(ty) => MaybeType::Type(ValType::Ref(ty.as_non_null())),
2225
- };
2226
- let (ft, kind) = self.jump(relative_depth)?;
2227
- for ty in self.label_types(ft, kind)?.rev() {
2228
- self.pop_operand(Some(ty))?;
2229
- }
2230
- for ty in self.label_types(ft, kind)? {
2231
- self.push_operand(ty)?;
2232
- }
2233
- self.push_operand(ty)?;
2234
- Ok(())
2235
- }
2236
- fn visit_br_on_non_null(&mut self, relative_depth: u32) -> Self::Output {
2237
- let ty = self.pop_ref()?;
2238
- let (ft, kind) = self.jump(relative_depth)?;
2239
- let mut lts = self.label_types(ft, kind)?;
2240
- match (lts.next_back(), ty) {
2241
- (None, _) => bail!(
2242
- self.offset,
2243
- "type mismatch: br_on_non_null target has no label types",
2244
- ),
2245
- (Some(ValType::Ref(_)), None) => {}
2246
- (Some(rt1 @ ValType::Ref(_)), Some(rt0)) => {
2247
- // Switch rt0, our popped type, to a non-nullable type and
2248
- // perform the match because if the branch is taken it's a
2249
- // non-null value.
2250
- let ty = rt0.as_non_null();
2251
- if !self.resources.matches(ty.into(), rt1) {
2252
- bail!(
2253
- self.offset,
2254
- "type mismatch: expected {} but found {}",
2255
- ty_to_str(rt0.into()),
2256
- ty_to_str(rt1)
2257
- )
2258
- }
2259
- }
2260
- (Some(_), _) => bail!(
2261
- self.offset,
2262
- "type mismatch: br_on_non_null target does not end with heap type",
2263
- ),
2264
- }
2265
- for ty in self.label_types(ft, kind)?.rev().skip(1) {
2266
- self.pop_operand(Some(ty))?;
2267
- }
2268
- for ty in lts {
2269
- self.push_operand(ty)?;
2270
- }
2271
- Ok(())
2272
- }
2273
- fn visit_ref_is_null(&mut self) -> Self::Output {
2274
- self.pop_ref()?;
2275
- self.push_operand(ValType::I32)?;
2276
- Ok(())
2277
- }
2278
- fn visit_ref_func(&mut self, function_index: u32) -> Self::Output {
2279
- let type_index = match self.resources.type_index_of_function(function_index) {
2280
- Some(idx) => idx,
2281
- None => bail!(
2282
- self.offset,
2283
- "unknown function {}: function index out of bounds",
2284
- function_index,
2285
- ),
2286
- };
2287
- if !self.resources.is_function_referenced(function_index) {
2288
- bail!(self.offset, "undeclared function reference");
2289
- }
2290
-
2291
- // FIXME(#924) this should not be conditional based on enabled
2292
- // proposals.
2293
- if self.features.function_references {
2294
- self.push_operand(
2295
- RefType::concrete(false, type_index)
2296
- .expect("our limits on number of types should fit into ref type"),
2297
- )?;
2298
- } else {
2299
- self.push_operand(ValType::FUNCREF)?;
2300
- }
2301
- Ok(())
2302
- }
2303
- fn visit_v128_load(&mut self, memarg: MemArg) -> Self::Output {
2304
- let ty = self.check_memarg(memarg)?;
2305
- self.pop_operand(Some(ty))?;
2306
- self.push_operand(ValType::V128)?;
2307
- Ok(())
2308
- }
2309
- fn visit_v128_store(&mut self, memarg: MemArg) -> Self::Output {
2310
- let ty = self.check_memarg(memarg)?;
2311
- self.pop_operand(Some(ValType::V128))?;
2312
- self.pop_operand(Some(ty))?;
2313
- Ok(())
2314
- }
2315
- fn visit_v128_const(&mut self, _value: V128) -> Self::Output {
2316
- self.push_operand(ValType::V128)?;
2317
- Ok(())
2318
- }
2319
- fn visit_i8x16_splat(&mut self) -> Self::Output {
2320
- self.check_v128_splat(ValType::I32)
2321
- }
2322
- fn visit_i16x8_splat(&mut self) -> Self::Output {
2323
- self.check_v128_splat(ValType::I32)
2324
- }
2325
- fn visit_i32x4_splat(&mut self) -> Self::Output {
2326
- self.check_v128_splat(ValType::I32)
2327
- }
2328
- fn visit_i64x2_splat(&mut self) -> Self::Output {
2329
- self.check_v128_splat(ValType::I64)
2330
- }
2331
- fn visit_f32x4_splat(&mut self) -> Self::Output {
2332
- self.check_floats_enabled()?;
2333
- self.check_v128_splat(ValType::F32)
2334
- }
2335
- fn visit_f64x2_splat(&mut self) -> Self::Output {
2336
- self.check_floats_enabled()?;
2337
- self.check_v128_splat(ValType::F64)
2338
- }
2339
- fn visit_i8x16_extract_lane_s(&mut self, lane: u8) -> Self::Output {
2340
- self.check_simd_lane_index(lane, 16)?;
2341
- self.pop_operand(Some(ValType::V128))?;
2342
- self.push_operand(ValType::I32)?;
2343
- Ok(())
2344
- }
2345
- fn visit_i8x16_extract_lane_u(&mut self, lane: u8) -> Self::Output {
2346
- self.visit_i8x16_extract_lane_s(lane)
2347
- }
2348
- fn visit_i16x8_extract_lane_s(&mut self, lane: u8) -> Self::Output {
2349
- self.check_simd_lane_index(lane, 8)?;
2350
- self.pop_operand(Some(ValType::V128))?;
2351
- self.push_operand(ValType::I32)?;
2352
- Ok(())
2353
- }
2354
- fn visit_i16x8_extract_lane_u(&mut self, lane: u8) -> Self::Output {
2355
- self.visit_i16x8_extract_lane_s(lane)
2356
- }
2357
- fn visit_i32x4_extract_lane(&mut self, lane: u8) -> Self::Output {
2358
- self.check_simd_lane_index(lane, 4)?;
2359
- self.pop_operand(Some(ValType::V128))?;
2360
- self.push_operand(ValType::I32)?;
2361
- Ok(())
2362
- }
2363
- fn visit_i8x16_replace_lane(&mut self, lane: u8) -> Self::Output {
2364
- self.check_simd_lane_index(lane, 16)?;
2365
- self.pop_operand(Some(ValType::I32))?;
2366
- self.pop_operand(Some(ValType::V128))?;
2367
- self.push_operand(ValType::V128)?;
2368
- Ok(())
2369
- }
2370
- fn visit_i16x8_replace_lane(&mut self, lane: u8) -> Self::Output {
2371
- self.check_simd_lane_index(lane, 8)?;
2372
- self.pop_operand(Some(ValType::I32))?;
2373
- self.pop_operand(Some(ValType::V128))?;
2374
- self.push_operand(ValType::V128)?;
2375
- Ok(())
2376
- }
2377
- fn visit_i32x4_replace_lane(&mut self, lane: u8) -> Self::Output {
2378
- self.check_simd_lane_index(lane, 4)?;
2379
- self.pop_operand(Some(ValType::I32))?;
2380
- self.pop_operand(Some(ValType::V128))?;
2381
- self.push_operand(ValType::V128)?;
2382
- Ok(())
2383
- }
2384
- fn visit_i64x2_extract_lane(&mut self, lane: u8) -> Self::Output {
2385
- self.check_simd_lane_index(lane, 2)?;
2386
- self.pop_operand(Some(ValType::V128))?;
2387
- self.push_operand(ValType::I64)?;
2388
- Ok(())
2389
- }
2390
- fn visit_i64x2_replace_lane(&mut self, lane: u8) -> Self::Output {
2391
- self.check_simd_lane_index(lane, 2)?;
2392
- self.pop_operand(Some(ValType::I64))?;
2393
- self.pop_operand(Some(ValType::V128))?;
2394
- self.push_operand(ValType::V128)?;
2395
- Ok(())
2396
- }
2397
- fn visit_f32x4_extract_lane(&mut self, lane: u8) -> Self::Output {
2398
- self.check_floats_enabled()?;
2399
- self.check_simd_lane_index(lane, 4)?;
2400
- self.pop_operand(Some(ValType::V128))?;
2401
- self.push_operand(ValType::F32)?;
2402
- Ok(())
2403
- }
2404
- fn visit_f32x4_replace_lane(&mut self, lane: u8) -> Self::Output {
2405
- self.check_floats_enabled()?;
2406
- self.check_simd_lane_index(lane, 4)?;
2407
- self.pop_operand(Some(ValType::F32))?;
2408
- self.pop_operand(Some(ValType::V128))?;
2409
- self.push_operand(ValType::V128)?;
2410
- Ok(())
2411
- }
2412
- fn visit_f64x2_extract_lane(&mut self, lane: u8) -> Self::Output {
2413
- self.check_floats_enabled()?;
2414
- self.check_simd_lane_index(lane, 2)?;
2415
- self.pop_operand(Some(ValType::V128))?;
2416
- self.push_operand(ValType::F64)?;
2417
- Ok(())
2418
- }
2419
- fn visit_f64x2_replace_lane(&mut self, lane: u8) -> Self::Output {
2420
- self.check_floats_enabled()?;
2421
- self.check_simd_lane_index(lane, 2)?;
2422
- self.pop_operand(Some(ValType::F64))?;
2423
- self.pop_operand(Some(ValType::V128))?;
2424
- self.push_operand(ValType::V128)?;
2425
- Ok(())
2426
- }
2427
- fn visit_f32x4_eq(&mut self) -> Self::Output {
2428
- self.check_v128_fbinary_op()
2429
- }
2430
- fn visit_f32x4_ne(&mut self) -> Self::Output {
2431
- self.check_v128_fbinary_op()
2432
- }
2433
- fn visit_f32x4_lt(&mut self) -> Self::Output {
2434
- self.check_v128_fbinary_op()
2435
- }
2436
- fn visit_f32x4_gt(&mut self) -> Self::Output {
2437
- self.check_v128_fbinary_op()
2438
- }
2439
- fn visit_f32x4_le(&mut self) -> Self::Output {
2440
- self.check_v128_fbinary_op()
2441
- }
2442
- fn visit_f32x4_ge(&mut self) -> Self::Output {
2443
- self.check_v128_fbinary_op()
2444
- }
2445
- fn visit_f64x2_eq(&mut self) -> Self::Output {
2446
- self.check_v128_fbinary_op()
2447
- }
2448
- fn visit_f64x2_ne(&mut self) -> Self::Output {
2449
- self.check_v128_fbinary_op()
2450
- }
2451
- fn visit_f64x2_lt(&mut self) -> Self::Output {
2452
- self.check_v128_fbinary_op()
2453
- }
2454
- fn visit_f64x2_gt(&mut self) -> Self::Output {
2455
- self.check_v128_fbinary_op()
2456
- }
2457
- fn visit_f64x2_le(&mut self) -> Self::Output {
2458
- self.check_v128_fbinary_op()
2459
- }
2460
- fn visit_f64x2_ge(&mut self) -> Self::Output {
2461
- self.check_v128_fbinary_op()
2462
- }
2463
- fn visit_f32x4_add(&mut self) -> Self::Output {
2464
- self.check_v128_fbinary_op()
2465
- }
2466
- fn visit_f32x4_sub(&mut self) -> Self::Output {
2467
- self.check_v128_fbinary_op()
2468
- }
2469
- fn visit_f32x4_mul(&mut self) -> Self::Output {
2470
- self.check_v128_fbinary_op()
2471
- }
2472
- fn visit_f32x4_div(&mut self) -> Self::Output {
2473
- self.check_v128_fbinary_op()
2474
- }
2475
- fn visit_f32x4_min(&mut self) -> Self::Output {
2476
- self.check_v128_fbinary_op()
2477
- }
2478
- fn visit_f32x4_max(&mut self) -> Self::Output {
2479
- self.check_v128_fbinary_op()
2480
- }
2481
- fn visit_f32x4_pmin(&mut self) -> Self::Output {
2482
- self.check_v128_fbinary_op()
2483
- }
2484
- fn visit_f32x4_pmax(&mut self) -> Self::Output {
2485
- self.check_v128_fbinary_op()
2486
- }
2487
- fn visit_f64x2_add(&mut self) -> Self::Output {
2488
- self.check_v128_fbinary_op()
2489
- }
2490
- fn visit_f64x2_sub(&mut self) -> Self::Output {
2491
- self.check_v128_fbinary_op()
2492
- }
2493
- fn visit_f64x2_mul(&mut self) -> Self::Output {
2494
- self.check_v128_fbinary_op()
2495
- }
2496
- fn visit_f64x2_div(&mut self) -> Self::Output {
2497
- self.check_v128_fbinary_op()
2498
- }
2499
- fn visit_f64x2_min(&mut self) -> Self::Output {
2500
- self.check_v128_fbinary_op()
2501
- }
2502
- fn visit_f64x2_max(&mut self) -> Self::Output {
2503
- self.check_v128_fbinary_op()
2504
- }
2505
- fn visit_f64x2_pmin(&mut self) -> Self::Output {
2506
- self.check_v128_fbinary_op()
2507
- }
2508
- fn visit_f64x2_pmax(&mut self) -> Self::Output {
2509
- self.check_v128_fbinary_op()
2510
- }
2511
- fn visit_i8x16_eq(&mut self) -> Self::Output {
2512
- self.check_v128_binary_op()
2513
- }
2514
- fn visit_i8x16_ne(&mut self) -> Self::Output {
2515
- self.check_v128_binary_op()
2516
- }
2517
- fn visit_i8x16_lt_s(&mut self) -> Self::Output {
2518
- self.check_v128_binary_op()
2519
- }
2520
- fn visit_i8x16_lt_u(&mut self) -> Self::Output {
2521
- self.check_v128_binary_op()
2522
- }
2523
- fn visit_i8x16_gt_s(&mut self) -> Self::Output {
2524
- self.check_v128_binary_op()
2525
- }
2526
- fn visit_i8x16_gt_u(&mut self) -> Self::Output {
2527
- self.check_v128_binary_op()
2528
- }
2529
- fn visit_i8x16_le_s(&mut self) -> Self::Output {
2530
- self.check_v128_binary_op()
2531
- }
2532
- fn visit_i8x16_le_u(&mut self) -> Self::Output {
2533
- self.check_v128_binary_op()
2534
- }
2535
- fn visit_i8x16_ge_s(&mut self) -> Self::Output {
2536
- self.check_v128_binary_op()
2537
- }
2538
- fn visit_i8x16_ge_u(&mut self) -> Self::Output {
2539
- self.check_v128_binary_op()
2540
- }
2541
- fn visit_i16x8_eq(&mut self) -> Self::Output {
2542
- self.check_v128_binary_op()
2543
- }
2544
- fn visit_i16x8_ne(&mut self) -> Self::Output {
2545
- self.check_v128_binary_op()
2546
- }
2547
- fn visit_i16x8_lt_s(&mut self) -> Self::Output {
2548
- self.check_v128_binary_op()
2549
- }
2550
- fn visit_i16x8_lt_u(&mut self) -> Self::Output {
2551
- self.check_v128_binary_op()
2552
- }
2553
- fn visit_i16x8_gt_s(&mut self) -> Self::Output {
2554
- self.check_v128_binary_op()
2555
- }
2556
- fn visit_i16x8_gt_u(&mut self) -> Self::Output {
2557
- self.check_v128_binary_op()
2558
- }
2559
- fn visit_i16x8_le_s(&mut self) -> Self::Output {
2560
- self.check_v128_binary_op()
2561
- }
2562
- fn visit_i16x8_le_u(&mut self) -> Self::Output {
2563
- self.check_v128_binary_op()
2564
- }
2565
- fn visit_i16x8_ge_s(&mut self) -> Self::Output {
2566
- self.check_v128_binary_op()
2567
- }
2568
- fn visit_i16x8_ge_u(&mut self) -> Self::Output {
2569
- self.check_v128_binary_op()
2570
- }
2571
- fn visit_i32x4_eq(&mut self) -> Self::Output {
2572
- self.check_v128_binary_op()
2573
- }
2574
- fn visit_i32x4_ne(&mut self) -> Self::Output {
2575
- self.check_v128_binary_op()
2576
- }
2577
- fn visit_i32x4_lt_s(&mut self) -> Self::Output {
2578
- self.check_v128_binary_op()
2579
- }
2580
- fn visit_i32x4_lt_u(&mut self) -> Self::Output {
2581
- self.check_v128_binary_op()
2582
- }
2583
- fn visit_i32x4_gt_s(&mut self) -> Self::Output {
2584
- self.check_v128_binary_op()
2585
- }
2586
- fn visit_i32x4_gt_u(&mut self) -> Self::Output {
2587
- self.check_v128_binary_op()
2588
- }
2589
- fn visit_i32x4_le_s(&mut self) -> Self::Output {
2590
- self.check_v128_binary_op()
2591
- }
2592
- fn visit_i32x4_le_u(&mut self) -> Self::Output {
2593
- self.check_v128_binary_op()
2594
- }
2595
- fn visit_i32x4_ge_s(&mut self) -> Self::Output {
2596
- self.check_v128_binary_op()
2597
- }
2598
- fn visit_i32x4_ge_u(&mut self) -> Self::Output {
2599
- self.check_v128_binary_op()
2600
- }
2601
- fn visit_i64x2_eq(&mut self) -> Self::Output {
2602
- self.check_v128_binary_op()
2603
- }
2604
- fn visit_i64x2_ne(&mut self) -> Self::Output {
2605
- self.check_v128_binary_op()
2606
- }
2607
- fn visit_i64x2_lt_s(&mut self) -> Self::Output {
2608
- self.check_v128_binary_op()
2609
- }
2610
- fn visit_i64x2_gt_s(&mut self) -> Self::Output {
2611
- self.check_v128_binary_op()
2612
- }
2613
- fn visit_i64x2_le_s(&mut self) -> Self::Output {
2614
- self.check_v128_binary_op()
2615
- }
2616
- fn visit_i64x2_ge_s(&mut self) -> Self::Output {
2617
- self.check_v128_binary_op()
2618
- }
2619
- fn visit_v128_and(&mut self) -> Self::Output {
2620
- self.check_v128_binary_op()
2621
- }
2622
- fn visit_v128_andnot(&mut self) -> Self::Output {
2623
- self.check_v128_binary_op()
2624
- }
2625
- fn visit_v128_or(&mut self) -> Self::Output {
2626
- self.check_v128_binary_op()
2627
- }
2628
- fn visit_v128_xor(&mut self) -> Self::Output {
2629
- self.check_v128_binary_op()
2630
- }
2631
- fn visit_i8x16_add(&mut self) -> Self::Output {
2632
- self.check_v128_binary_op()
2633
- }
2634
- fn visit_i8x16_add_sat_s(&mut self) -> Self::Output {
2635
- self.check_v128_binary_op()
2636
- }
2637
- fn visit_i8x16_add_sat_u(&mut self) -> Self::Output {
2638
- self.check_v128_binary_op()
2639
- }
2640
- fn visit_i8x16_sub(&mut self) -> Self::Output {
2641
- self.check_v128_binary_op()
2642
- }
2643
- fn visit_i8x16_sub_sat_s(&mut self) -> Self::Output {
2644
- self.check_v128_binary_op()
2645
- }
2646
- fn visit_i8x16_sub_sat_u(&mut self) -> Self::Output {
2647
- self.check_v128_binary_op()
2648
- }
2649
- fn visit_i8x16_min_s(&mut self) -> Self::Output {
2650
- self.check_v128_binary_op()
2651
- }
2652
- fn visit_i8x16_min_u(&mut self) -> Self::Output {
2653
- self.check_v128_binary_op()
2654
- }
2655
- fn visit_i8x16_max_s(&mut self) -> Self::Output {
2656
- self.check_v128_binary_op()
2657
- }
2658
- fn visit_i8x16_max_u(&mut self) -> Self::Output {
2659
- self.check_v128_binary_op()
2660
- }
2661
- fn visit_i16x8_add(&mut self) -> Self::Output {
2662
- self.check_v128_binary_op()
2663
- }
2664
- fn visit_i16x8_add_sat_s(&mut self) -> Self::Output {
2665
- self.check_v128_binary_op()
2666
- }
2667
- fn visit_i16x8_add_sat_u(&mut self) -> Self::Output {
2668
- self.check_v128_binary_op()
2669
- }
2670
- fn visit_i16x8_sub(&mut self) -> Self::Output {
2671
- self.check_v128_binary_op()
2672
- }
2673
- fn visit_i16x8_sub_sat_s(&mut self) -> Self::Output {
2674
- self.check_v128_binary_op()
2675
- }
2676
- fn visit_i16x8_sub_sat_u(&mut self) -> Self::Output {
2677
- self.check_v128_binary_op()
2678
- }
2679
- fn visit_i16x8_mul(&mut self) -> Self::Output {
2680
- self.check_v128_binary_op()
2681
- }
2682
- fn visit_i16x8_min_s(&mut self) -> Self::Output {
2683
- self.check_v128_binary_op()
2684
- }
2685
- fn visit_i16x8_min_u(&mut self) -> Self::Output {
2686
- self.check_v128_binary_op()
2687
- }
2688
- fn visit_i16x8_max_s(&mut self) -> Self::Output {
2689
- self.check_v128_binary_op()
2690
- }
2691
- fn visit_i16x8_max_u(&mut self) -> Self::Output {
2692
- self.check_v128_binary_op()
2693
- }
2694
- fn visit_i32x4_add(&mut self) -> Self::Output {
2695
- self.check_v128_binary_op()
2696
- }
2697
- fn visit_i32x4_sub(&mut self) -> Self::Output {
2698
- self.check_v128_binary_op()
2699
- }
2700
- fn visit_i32x4_mul(&mut self) -> Self::Output {
2701
- self.check_v128_binary_op()
2702
- }
2703
- fn visit_i32x4_min_s(&mut self) -> Self::Output {
2704
- self.check_v128_binary_op()
2705
- }
2706
- fn visit_i32x4_min_u(&mut self) -> Self::Output {
2707
- self.check_v128_binary_op()
2708
- }
2709
- fn visit_i32x4_max_s(&mut self) -> Self::Output {
2710
- self.check_v128_binary_op()
2711
- }
2712
- fn visit_i32x4_max_u(&mut self) -> Self::Output {
2713
- self.check_v128_binary_op()
2714
- }
2715
- fn visit_i32x4_dot_i16x8_s(&mut self) -> Self::Output {
2716
- self.check_v128_binary_op()
2717
- }
2718
- fn visit_i64x2_add(&mut self) -> Self::Output {
2719
- self.check_v128_binary_op()
2720
- }
2721
- fn visit_i64x2_sub(&mut self) -> Self::Output {
2722
- self.check_v128_binary_op()
2723
- }
2724
- fn visit_i64x2_mul(&mut self) -> Self::Output {
2725
- self.check_v128_binary_op()
2726
- }
2727
- fn visit_i8x16_avgr_u(&mut self) -> Self::Output {
2728
- self.check_v128_binary_op()
2729
- }
2730
- fn visit_i16x8_avgr_u(&mut self) -> Self::Output {
2731
- self.check_v128_binary_op()
2732
- }
2733
- fn visit_i8x16_narrow_i16x8_s(&mut self) -> Self::Output {
2734
- self.check_v128_binary_op()
2735
- }
2736
- fn visit_i8x16_narrow_i16x8_u(&mut self) -> Self::Output {
2737
- self.check_v128_binary_op()
2738
- }
2739
- fn visit_i16x8_narrow_i32x4_s(&mut self) -> Self::Output {
2740
- self.check_v128_binary_op()
2741
- }
2742
- fn visit_i16x8_narrow_i32x4_u(&mut self) -> Self::Output {
2743
- self.check_v128_binary_op()
2744
- }
2745
- fn visit_i16x8_extmul_low_i8x16_s(&mut self) -> Self::Output {
2746
- self.check_v128_binary_op()
2747
- }
2748
- fn visit_i16x8_extmul_high_i8x16_s(&mut self) -> Self::Output {
2749
- self.check_v128_binary_op()
2750
- }
2751
- fn visit_i16x8_extmul_low_i8x16_u(&mut self) -> Self::Output {
2752
- self.check_v128_binary_op()
2753
- }
2754
- fn visit_i16x8_extmul_high_i8x16_u(&mut self) -> Self::Output {
2755
- self.check_v128_binary_op()
2756
- }
2757
- fn visit_i32x4_extmul_low_i16x8_s(&mut self) -> Self::Output {
2758
- self.check_v128_binary_op()
2759
- }
2760
- fn visit_i32x4_extmul_high_i16x8_s(&mut self) -> Self::Output {
2761
- self.check_v128_binary_op()
2762
- }
2763
- fn visit_i32x4_extmul_low_i16x8_u(&mut self) -> Self::Output {
2764
- self.check_v128_binary_op()
2765
- }
2766
- fn visit_i32x4_extmul_high_i16x8_u(&mut self) -> Self::Output {
2767
- self.check_v128_binary_op()
2768
- }
2769
- fn visit_i64x2_extmul_low_i32x4_s(&mut self) -> Self::Output {
2770
- self.check_v128_binary_op()
2771
- }
2772
- fn visit_i64x2_extmul_high_i32x4_s(&mut self) -> Self::Output {
2773
- self.check_v128_binary_op()
2774
- }
2775
- fn visit_i64x2_extmul_low_i32x4_u(&mut self) -> Self::Output {
2776
- self.check_v128_binary_op()
2777
- }
2778
- fn visit_i64x2_extmul_high_i32x4_u(&mut self) -> Self::Output {
2779
- self.check_v128_binary_op()
2780
- }
2781
- fn visit_i16x8_q15mulr_sat_s(&mut self) -> Self::Output {
2782
- self.check_v128_binary_op()
2783
- }
2784
- fn visit_f32x4_ceil(&mut self) -> Self::Output {
2785
- self.check_v128_funary_op()
2786
- }
2787
- fn visit_f32x4_floor(&mut self) -> Self::Output {
2788
- self.check_v128_funary_op()
2789
- }
2790
- fn visit_f32x4_trunc(&mut self) -> Self::Output {
2791
- self.check_v128_funary_op()
2792
- }
2793
- fn visit_f32x4_nearest(&mut self) -> Self::Output {
2794
- self.check_v128_funary_op()
2795
- }
2796
- fn visit_f64x2_ceil(&mut self) -> Self::Output {
2797
- self.check_v128_funary_op()
2798
- }
2799
- fn visit_f64x2_floor(&mut self) -> Self::Output {
2800
- self.check_v128_funary_op()
2801
- }
2802
- fn visit_f64x2_trunc(&mut self) -> Self::Output {
2803
- self.check_v128_funary_op()
2804
- }
2805
- fn visit_f64x2_nearest(&mut self) -> Self::Output {
2806
- self.check_v128_funary_op()
2807
- }
2808
- fn visit_f32x4_abs(&mut self) -> Self::Output {
2809
- self.check_v128_funary_op()
2810
- }
2811
- fn visit_f32x4_neg(&mut self) -> Self::Output {
2812
- self.check_v128_funary_op()
2813
- }
2814
- fn visit_f32x4_sqrt(&mut self) -> Self::Output {
2815
- self.check_v128_funary_op()
2816
- }
2817
- fn visit_f64x2_abs(&mut self) -> Self::Output {
2818
- self.check_v128_funary_op()
2819
- }
2820
- fn visit_f64x2_neg(&mut self) -> Self::Output {
2821
- self.check_v128_funary_op()
2822
- }
2823
- fn visit_f64x2_sqrt(&mut self) -> Self::Output {
2824
- self.check_v128_funary_op()
2825
- }
2826
- fn visit_f32x4_demote_f64x2_zero(&mut self) -> Self::Output {
2827
- self.check_v128_funary_op()
2828
- }
2829
- fn visit_f64x2_promote_low_f32x4(&mut self) -> Self::Output {
2830
- self.check_v128_funary_op()
2831
- }
2832
- fn visit_f64x2_convert_low_i32x4_s(&mut self) -> Self::Output {
2833
- self.check_v128_funary_op()
2834
- }
2835
- fn visit_f64x2_convert_low_i32x4_u(&mut self) -> Self::Output {
2836
- self.check_v128_funary_op()
2837
- }
2838
- fn visit_i32x4_trunc_sat_f32x4_s(&mut self) -> Self::Output {
2839
- self.check_v128_funary_op()
2840
- }
2841
- fn visit_i32x4_trunc_sat_f32x4_u(&mut self) -> Self::Output {
2842
- self.check_v128_funary_op()
2843
- }
2844
- fn visit_i32x4_trunc_sat_f64x2_s_zero(&mut self) -> Self::Output {
2845
- self.check_v128_funary_op()
2846
- }
2847
- fn visit_i32x4_trunc_sat_f64x2_u_zero(&mut self) -> Self::Output {
2848
- self.check_v128_funary_op()
2849
- }
2850
- fn visit_f32x4_convert_i32x4_s(&mut self) -> Self::Output {
2851
- self.check_v128_funary_op()
2852
- }
2853
- fn visit_f32x4_convert_i32x4_u(&mut self) -> Self::Output {
2854
- self.check_v128_funary_op()
2855
- }
2856
- fn visit_v128_not(&mut self) -> Self::Output {
2857
- self.check_v128_unary_op()
2858
- }
2859
- fn visit_i8x16_abs(&mut self) -> Self::Output {
2860
- self.check_v128_unary_op()
2861
- }
2862
- fn visit_i8x16_neg(&mut self) -> Self::Output {
2863
- self.check_v128_unary_op()
2864
- }
2865
- fn visit_i8x16_popcnt(&mut self) -> Self::Output {
2866
- self.check_v128_unary_op()
2867
- }
2868
- fn visit_i16x8_abs(&mut self) -> Self::Output {
2869
- self.check_v128_unary_op()
2870
- }
2871
- fn visit_i16x8_neg(&mut self) -> Self::Output {
2872
- self.check_v128_unary_op()
2873
- }
2874
- fn visit_i32x4_abs(&mut self) -> Self::Output {
2875
- self.check_v128_unary_op()
2876
- }
2877
- fn visit_i32x4_neg(&mut self) -> Self::Output {
2878
- self.check_v128_unary_op()
2879
- }
2880
- fn visit_i64x2_abs(&mut self) -> Self::Output {
2881
- self.check_v128_unary_op()
2882
- }
2883
- fn visit_i64x2_neg(&mut self) -> Self::Output {
2884
- self.check_v128_unary_op()
2885
- }
2886
- fn visit_i16x8_extend_low_i8x16_s(&mut self) -> Self::Output {
2887
- self.check_v128_unary_op()
2888
- }
2889
- fn visit_i16x8_extend_high_i8x16_s(&mut self) -> Self::Output {
2890
- self.check_v128_unary_op()
2891
- }
2892
- fn visit_i16x8_extend_low_i8x16_u(&mut self) -> Self::Output {
2893
- self.check_v128_unary_op()
2894
- }
2895
- fn visit_i16x8_extend_high_i8x16_u(&mut self) -> Self::Output {
2896
- self.check_v128_unary_op()
2897
- }
2898
- fn visit_i32x4_extend_low_i16x8_s(&mut self) -> Self::Output {
2899
- self.check_v128_unary_op()
2900
- }
2901
- fn visit_i32x4_extend_high_i16x8_s(&mut self) -> Self::Output {
2902
- self.check_v128_unary_op()
2903
- }
2904
- fn visit_i32x4_extend_low_i16x8_u(&mut self) -> Self::Output {
2905
- self.check_v128_unary_op()
2906
- }
2907
- fn visit_i32x4_extend_high_i16x8_u(&mut self) -> Self::Output {
2908
- self.check_v128_unary_op()
2909
- }
2910
- fn visit_i64x2_extend_low_i32x4_s(&mut self) -> Self::Output {
2911
- self.check_v128_unary_op()
2912
- }
2913
- fn visit_i64x2_extend_high_i32x4_s(&mut self) -> Self::Output {
2914
- self.check_v128_unary_op()
2915
- }
2916
- fn visit_i64x2_extend_low_i32x4_u(&mut self) -> Self::Output {
2917
- self.check_v128_unary_op()
2918
- }
2919
- fn visit_i64x2_extend_high_i32x4_u(&mut self) -> Self::Output {
2920
- self.check_v128_unary_op()
2921
- }
2922
- fn visit_i16x8_extadd_pairwise_i8x16_s(&mut self) -> Self::Output {
2923
- self.check_v128_unary_op()
2924
- }
2925
- fn visit_i16x8_extadd_pairwise_i8x16_u(&mut self) -> Self::Output {
2926
- self.check_v128_unary_op()
2927
- }
2928
- fn visit_i32x4_extadd_pairwise_i16x8_s(&mut self) -> Self::Output {
2929
- self.check_v128_unary_op()
2930
- }
2931
- fn visit_i32x4_extadd_pairwise_i16x8_u(&mut self) -> Self::Output {
2932
- self.check_v128_unary_op()
2933
- }
2934
- fn visit_v128_bitselect(&mut self) -> Self::Output {
2935
- self.pop_operand(Some(ValType::V128))?;
2936
- self.pop_operand(Some(ValType::V128))?;
2937
- self.pop_operand(Some(ValType::V128))?;
2938
- self.push_operand(ValType::V128)?;
2939
- Ok(())
2940
- }
2941
- fn visit_i8x16_relaxed_swizzle(&mut self) -> Self::Output {
2942
- self.pop_operand(Some(ValType::V128))?;
2943
- self.pop_operand(Some(ValType::V128))?;
2944
- self.push_operand(ValType::V128)?;
2945
- Ok(())
2946
- }
2947
- fn visit_i32x4_relaxed_trunc_f32x4_s(&mut self) -> Self::Output {
2948
- self.check_v128_unary_op()
2949
- }
2950
- fn visit_i32x4_relaxed_trunc_f32x4_u(&mut self) -> Self::Output {
2951
- self.check_v128_unary_op()
2952
- }
2953
- fn visit_i32x4_relaxed_trunc_f64x2_s_zero(&mut self) -> Self::Output {
2954
- self.check_v128_unary_op()
2955
- }
2956
- fn visit_i32x4_relaxed_trunc_f64x2_u_zero(&mut self) -> Self::Output {
2957
- self.check_v128_unary_op()
2958
- }
2959
- fn visit_f32x4_relaxed_madd(&mut self) -> Self::Output {
2960
- self.check_v128_ternary_op()
2961
- }
2962
- fn visit_f32x4_relaxed_nmadd(&mut self) -> Self::Output {
2963
- self.check_v128_ternary_op()
2964
- }
2965
- fn visit_f64x2_relaxed_madd(&mut self) -> Self::Output {
2966
- self.check_v128_ternary_op()
2967
- }
2968
- fn visit_f64x2_relaxed_nmadd(&mut self) -> Self::Output {
2969
- self.check_v128_ternary_op()
2970
- }
2971
- fn visit_i8x16_relaxed_laneselect(&mut self) -> Self::Output {
2972
- self.check_v128_ternary_op()
2973
- }
2974
- fn visit_i16x8_relaxed_laneselect(&mut self) -> Self::Output {
2975
- self.check_v128_ternary_op()
2976
- }
2977
- fn visit_i32x4_relaxed_laneselect(&mut self) -> Self::Output {
2978
- self.check_v128_ternary_op()
2979
- }
2980
- fn visit_i64x2_relaxed_laneselect(&mut self) -> Self::Output {
2981
- self.check_v128_ternary_op()
2982
- }
2983
- fn visit_f32x4_relaxed_min(&mut self) -> Self::Output {
2984
- self.check_v128_binary_op()
2985
- }
2986
- fn visit_f32x4_relaxed_max(&mut self) -> Self::Output {
2987
- self.check_v128_binary_op()
2988
- }
2989
- fn visit_f64x2_relaxed_min(&mut self) -> Self::Output {
2990
- self.check_v128_binary_op()
2991
- }
2992
- fn visit_f64x2_relaxed_max(&mut self) -> Self::Output {
2993
- self.check_v128_binary_op()
2994
- }
2995
- fn visit_i16x8_relaxed_q15mulr_s(&mut self) -> Self::Output {
2996
- self.check_v128_binary_op()
2997
- }
2998
- fn visit_i16x8_relaxed_dot_i8x16_i7x16_s(&mut self) -> Self::Output {
2999
- self.check_v128_binary_op()
3000
- }
3001
- fn visit_i32x4_relaxed_dot_i8x16_i7x16_add_s(&mut self) -> Self::Output {
3002
- self.check_v128_ternary_op()
3003
- }
3004
- fn visit_v128_any_true(&mut self) -> Self::Output {
3005
- self.check_v128_bitmask_op()
3006
- }
3007
- fn visit_i8x16_all_true(&mut self) -> Self::Output {
3008
- self.check_v128_bitmask_op()
3009
- }
3010
- fn visit_i8x16_bitmask(&mut self) -> Self::Output {
3011
- self.check_v128_bitmask_op()
3012
- }
3013
- fn visit_i16x8_all_true(&mut self) -> Self::Output {
3014
- self.check_v128_bitmask_op()
3015
- }
3016
- fn visit_i16x8_bitmask(&mut self) -> Self::Output {
3017
- self.check_v128_bitmask_op()
3018
- }
3019
- fn visit_i32x4_all_true(&mut self) -> Self::Output {
3020
- self.check_v128_bitmask_op()
3021
- }
3022
- fn visit_i32x4_bitmask(&mut self) -> Self::Output {
3023
- self.check_v128_bitmask_op()
3024
- }
3025
- fn visit_i64x2_all_true(&mut self) -> Self::Output {
3026
- self.check_v128_bitmask_op()
3027
- }
3028
- fn visit_i64x2_bitmask(&mut self) -> Self::Output {
3029
- self.check_v128_bitmask_op()
3030
- }
3031
- fn visit_i8x16_shl(&mut self) -> Self::Output {
3032
- self.check_v128_shift_op()
3033
- }
3034
- fn visit_i8x16_shr_s(&mut self) -> Self::Output {
3035
- self.check_v128_shift_op()
3036
- }
3037
- fn visit_i8x16_shr_u(&mut self) -> Self::Output {
3038
- self.check_v128_shift_op()
3039
- }
3040
- fn visit_i16x8_shl(&mut self) -> Self::Output {
3041
- self.check_v128_shift_op()
3042
- }
3043
- fn visit_i16x8_shr_s(&mut self) -> Self::Output {
3044
- self.check_v128_shift_op()
3045
- }
3046
- fn visit_i16x8_shr_u(&mut self) -> Self::Output {
3047
- self.check_v128_shift_op()
3048
- }
3049
- fn visit_i32x4_shl(&mut self) -> Self::Output {
3050
- self.check_v128_shift_op()
3051
- }
3052
- fn visit_i32x4_shr_s(&mut self) -> Self::Output {
3053
- self.check_v128_shift_op()
3054
- }
3055
- fn visit_i32x4_shr_u(&mut self) -> Self::Output {
3056
- self.check_v128_shift_op()
3057
- }
3058
- fn visit_i64x2_shl(&mut self) -> Self::Output {
3059
- self.check_v128_shift_op()
3060
- }
3061
- fn visit_i64x2_shr_s(&mut self) -> Self::Output {
3062
- self.check_v128_shift_op()
3063
- }
3064
- fn visit_i64x2_shr_u(&mut self) -> Self::Output {
3065
- self.check_v128_shift_op()
3066
- }
3067
- fn visit_i8x16_swizzle(&mut self) -> Self::Output {
3068
- self.pop_operand(Some(ValType::V128))?;
3069
- self.pop_operand(Some(ValType::V128))?;
3070
- self.push_operand(ValType::V128)?;
3071
- Ok(())
3072
- }
3073
- fn visit_i8x16_shuffle(&mut self, lanes: [u8; 16]) -> Self::Output {
3074
- self.pop_operand(Some(ValType::V128))?;
3075
- self.pop_operand(Some(ValType::V128))?;
3076
- for i in lanes {
3077
- self.check_simd_lane_index(i, 32)?;
3078
- }
3079
- self.push_operand(ValType::V128)?;
3080
- Ok(())
3081
- }
3082
- fn visit_v128_load8_splat(&mut self, memarg: MemArg) -> Self::Output {
3083
- let ty = self.check_memarg(memarg)?;
3084
- self.pop_operand(Some(ty))?;
3085
- self.push_operand(ValType::V128)?;
3086
- Ok(())
3087
- }
3088
- fn visit_v128_load16_splat(&mut self, memarg: MemArg) -> Self::Output {
3089
- let ty = self.check_memarg(memarg)?;
3090
- self.pop_operand(Some(ty))?;
3091
- self.push_operand(ValType::V128)?;
3092
- Ok(())
3093
- }
3094
- fn visit_v128_load32_splat(&mut self, memarg: MemArg) -> Self::Output {
3095
- let ty = self.check_memarg(memarg)?;
3096
- self.pop_operand(Some(ty))?;
3097
- self.push_operand(ValType::V128)?;
3098
- Ok(())
3099
- }
3100
- fn visit_v128_load32_zero(&mut self, memarg: MemArg) -> Self::Output {
3101
- self.visit_v128_load32_splat(memarg)
3102
- }
3103
- fn visit_v128_load64_splat(&mut self, memarg: MemArg) -> Self::Output {
3104
- self.check_v128_load_op(memarg)
3105
- }
3106
- fn visit_v128_load64_zero(&mut self, memarg: MemArg) -> Self::Output {
3107
- self.check_v128_load_op(memarg)
3108
- }
3109
- fn visit_v128_load8x8_s(&mut self, memarg: MemArg) -> Self::Output {
3110
- self.check_v128_load_op(memarg)
3111
- }
3112
- fn visit_v128_load8x8_u(&mut self, memarg: MemArg) -> Self::Output {
3113
- self.check_v128_load_op(memarg)
3114
- }
3115
- fn visit_v128_load16x4_s(&mut self, memarg: MemArg) -> Self::Output {
3116
- self.check_v128_load_op(memarg)
3117
- }
3118
- fn visit_v128_load16x4_u(&mut self, memarg: MemArg) -> Self::Output {
3119
- self.check_v128_load_op(memarg)
3120
- }
3121
- fn visit_v128_load32x2_s(&mut self, memarg: MemArg) -> Self::Output {
3122
- self.check_v128_load_op(memarg)
3123
- }
3124
- fn visit_v128_load32x2_u(&mut self, memarg: MemArg) -> Self::Output {
3125
- self.check_v128_load_op(memarg)
3126
- }
3127
- fn visit_v128_load8_lane(&mut self, memarg: MemArg, lane: u8) -> Self::Output {
3128
- let idx = self.check_memarg(memarg)?;
3129
- self.check_simd_lane_index(lane, 16)?;
3130
- self.pop_operand(Some(ValType::V128))?;
3131
- self.pop_operand(Some(idx))?;
3132
- self.push_operand(ValType::V128)?;
3133
- Ok(())
3134
- }
3135
- fn visit_v128_load16_lane(&mut self, memarg: MemArg, lane: u8) -> Self::Output {
3136
- let idx = self.check_memarg(memarg)?;
3137
- self.check_simd_lane_index(lane, 8)?;
3138
- self.pop_operand(Some(ValType::V128))?;
3139
- self.pop_operand(Some(idx))?;
3140
- self.push_operand(ValType::V128)?;
3141
- Ok(())
3142
- }
3143
- fn visit_v128_load32_lane(&mut self, memarg: MemArg, lane: u8) -> Self::Output {
3144
- let idx = self.check_memarg(memarg)?;
3145
- self.check_simd_lane_index(lane, 4)?;
3146
- self.pop_operand(Some(ValType::V128))?;
3147
- self.pop_operand(Some(idx))?;
3148
- self.push_operand(ValType::V128)?;
3149
- Ok(())
3150
- }
3151
- fn visit_v128_load64_lane(&mut self, memarg: MemArg, lane: u8) -> Self::Output {
3152
- let idx = self.check_memarg(memarg)?;
3153
- self.check_simd_lane_index(lane, 2)?;
3154
- self.pop_operand(Some(ValType::V128))?;
3155
- self.pop_operand(Some(idx))?;
3156
- self.push_operand(ValType::V128)?;
3157
- Ok(())
3158
- }
3159
- fn visit_v128_store8_lane(&mut self, memarg: MemArg, lane: u8) -> Self::Output {
3160
- let idx = self.check_memarg(memarg)?;
3161
- self.check_simd_lane_index(lane, 16)?;
3162
- self.pop_operand(Some(ValType::V128))?;
3163
- self.pop_operand(Some(idx))?;
3164
- Ok(())
3165
- }
3166
- fn visit_v128_store16_lane(&mut self, memarg: MemArg, lane: u8) -> Self::Output {
3167
- let idx = self.check_memarg(memarg)?;
3168
- self.check_simd_lane_index(lane, 8)?;
3169
- self.pop_operand(Some(ValType::V128))?;
3170
- self.pop_operand(Some(idx))?;
3171
- Ok(())
3172
- }
3173
- fn visit_v128_store32_lane(&mut self, memarg: MemArg, lane: u8) -> Self::Output {
3174
- let idx = self.check_memarg(memarg)?;
3175
- self.check_simd_lane_index(lane, 4)?;
3176
- self.pop_operand(Some(ValType::V128))?;
3177
- self.pop_operand(Some(idx))?;
3178
- Ok(())
3179
- }
3180
- fn visit_v128_store64_lane(&mut self, memarg: MemArg, lane: u8) -> Self::Output {
3181
- let idx = self.check_memarg(memarg)?;
3182
- self.check_simd_lane_index(lane, 2)?;
3183
- self.pop_operand(Some(ValType::V128))?;
3184
- self.pop_operand(Some(idx))?;
3185
- Ok(())
3186
- }
3187
- fn visit_memory_init(&mut self, segment: u32, mem: u32) -> Self::Output {
3188
- let ty = self.check_memory_index(mem)?;
3189
- match self.resources.data_count() {
3190
- None => bail!(self.offset, "data count section required"),
3191
- Some(count) if segment < count => {}
3192
- Some(_) => bail!(self.offset, "unknown data segment {}", segment),
3193
- }
3194
- self.pop_operand(Some(ValType::I32))?;
3195
- self.pop_operand(Some(ValType::I32))?;
3196
- self.pop_operand(Some(ty))?;
3197
- Ok(())
3198
- }
3199
- fn visit_data_drop(&mut self, segment: u32) -> Self::Output {
3200
- match self.resources.data_count() {
3201
- None => bail!(self.offset, "data count section required"),
3202
- Some(count) if segment < count => {}
3203
- Some(_) => bail!(self.offset, "unknown data segment {}", segment),
3204
- }
3205
- Ok(())
3206
- }
3207
- fn visit_memory_copy(&mut self, dst: u32, src: u32) -> Self::Output {
3208
- let dst_ty = self.check_memory_index(dst)?;
3209
- let src_ty = self.check_memory_index(src)?;
3210
-
3211
- // The length operand here is the smaller of src/dst, which is
3212
- // i32 if one is i32
3213
- self.pop_operand(Some(match src_ty {
3214
- ValType::I32 => ValType::I32,
3215
- _ => dst_ty,
3216
- }))?;
3217
-
3218
- // ... and the offset into each memory is required to be
3219
- // whatever the indexing type is for that memory
3220
- self.pop_operand(Some(src_ty))?;
3221
- self.pop_operand(Some(dst_ty))?;
3222
- Ok(())
3223
- }
3224
- fn visit_memory_fill(&mut self, mem: u32) -> Self::Output {
3225
- let ty = self.check_memory_index(mem)?;
3226
- self.pop_operand(Some(ty))?;
3227
- self.pop_operand(Some(ValType::I32))?;
3228
- self.pop_operand(Some(ty))?;
3229
- Ok(())
3230
- }
3231
- fn visit_memory_discard(&mut self, mem: u32) -> Self::Output {
3232
- let ty = self.check_memory_index(mem)?;
3233
- self.pop_operand(Some(ty))?;
3234
- self.pop_operand(Some(ty))?;
3235
- Ok(())
3236
- }
3237
- fn visit_table_init(&mut self, segment: u32, table: u32) -> Self::Output {
3238
- if table > 0 {}
3239
- let table = match self.resources.table_at(table) {
3240
- Some(table) => table,
3241
- None => bail!(
3242
- self.offset,
3243
- "unknown table {}: table index out of bounds",
3244
- table
3245
- ),
3246
- };
3247
- let segment_ty = match self.resources.element_type_at(segment) {
3248
- Some(ty) => ty,
3249
- None => bail!(
3250
- self.offset,
3251
- "unknown elem segment {}: segment index out of bounds",
3252
- segment
3253
- ),
3254
- };
3255
- if !self
3256
- .resources
3257
- .matches(ValType::Ref(segment_ty), ValType::Ref(table.element_type))
3258
- {
3259
- bail!(self.offset, "type mismatch");
3260
- }
3261
- self.pop_operand(Some(ValType::I32))?;
3262
- self.pop_operand(Some(ValType::I32))?;
3263
- self.pop_operand(Some(ValType::I32))?;
3264
- Ok(())
3265
- }
3266
- fn visit_elem_drop(&mut self, segment: u32) -> Self::Output {
3267
- if segment >= self.resources.element_count() {
3268
- bail!(
3269
- self.offset,
3270
- "unknown elem segment {}: segment index out of bounds",
3271
- segment
3272
- );
3273
- }
3274
- Ok(())
3275
- }
3276
- fn visit_table_copy(&mut self, dst_table: u32, src_table: u32) -> Self::Output {
3277
- if src_table > 0 || dst_table > 0 {}
3278
- let (src, dst) = match (
3279
- self.resources.table_at(src_table),
3280
- self.resources.table_at(dst_table),
3281
- ) {
3282
- (Some(a), Some(b)) => (a, b),
3283
- _ => bail!(self.offset, "table index out of bounds"),
3284
- };
3285
- if !self.resources.matches(
3286
- ValType::Ref(src.element_type),
3287
- ValType::Ref(dst.element_type),
3288
- ) {
3289
- bail!(self.offset, "type mismatch");
3290
- }
3291
- self.pop_operand(Some(ValType::I32))?;
3292
- self.pop_operand(Some(ValType::I32))?;
3293
- self.pop_operand(Some(ValType::I32))?;
3294
- Ok(())
3295
- }
3296
- fn visit_table_get(&mut self, table: u32) -> Self::Output {
3297
- let ty = match self.resources.table_at(table) {
3298
- Some(ty) => ty.element_type,
3299
- None => bail!(self.offset, "table index out of bounds"),
3300
- };
3301
- self.pop_operand(Some(ValType::I32))?;
3302
- self.push_operand(ValType::Ref(ty))?;
3303
- Ok(())
3304
- }
3305
- fn visit_table_set(&mut self, table: u32) -> Self::Output {
3306
- let ty = match self.resources.table_at(table) {
3307
- Some(ty) => ty.element_type,
3308
- None => bail!(self.offset, "table index out of bounds"),
3309
- };
3310
- self.pop_operand(Some(ValType::Ref(ty)))?;
3311
- self.pop_operand(Some(ValType::I32))?;
3312
- Ok(())
3313
- }
3314
- fn visit_table_grow(&mut self, table: u32) -> Self::Output {
3315
- let ty = match self.resources.table_at(table) {
3316
- Some(ty) => ty.element_type,
3317
- None => bail!(self.offset, "table index out of bounds"),
3318
- };
3319
- self.pop_operand(Some(ValType::I32))?;
3320
- self.pop_operand(Some(ValType::Ref(ty)))?;
3321
- self.push_operand(ValType::I32)?;
3322
- Ok(())
3323
- }
3324
- fn visit_table_size(&mut self, table: u32) -> Self::Output {
3325
- if self.resources.table_at(table).is_none() {
3326
- bail!(self.offset, "table index out of bounds");
3327
- }
3328
- self.push_operand(ValType::I32)?;
3329
- Ok(())
3330
- }
3331
- fn visit_table_fill(&mut self, table: u32) -> Self::Output {
3332
- let ty = match self.resources.table_at(table) {
3333
- Some(ty) => ty.element_type,
3334
- None => bail!(self.offset, "table index out of bounds"),
3335
- };
3336
- self.pop_operand(Some(ValType::I32))?;
3337
- self.pop_operand(Some(ValType::Ref(ty)))?;
3338
- self.pop_operand(Some(ValType::I32))?;
3339
- Ok(())
3340
- }
3341
- fn visit_ref_i31(&mut self) -> Self::Output {
3342
- self.pop_operand(Some(ValType::I32))?;
3343
- self.push_operand(ValType::Ref(RefType::I31))
3344
- }
3345
- fn visit_i31_get_s(&mut self) -> Self::Output {
3346
- match self.pop_ref()? {
3347
- Some(ref_type) => match ref_type.heap_type() {
3348
- HeapType::I31 => self.push_operand(ValType::I32),
3349
- _ => bail!(self.offset, "ref heap type mismatch: expected i31"),
3350
- },
3351
- _ => bail!(self.offset, "type mismatch: expected (ref null? i31)"),
3352
- }
3353
- }
3354
- fn visit_i31_get_u(&mut self) -> Self::Output {
3355
- match self.pop_ref()? {
3356
- Some(ref_type) => match ref_type.heap_type() {
3357
- HeapType::I31 => self.push_operand(ValType::I32),
3358
- _ => bail!(self.offset, "ref heap type mismatch: expected i31"),
3359
- },
3360
- _ => bail!(self.offset, "type mismatch: expected (ref null? i31)"),
3361
- }
3362
- }
3363
- }
3364
-
3365
- #[derive(Clone)]
3366
- enum Either<A, B> {
3367
- A(A),
3368
- B(B),
3369
- }
3370
-
3371
- impl<A, B> Iterator for Either<A, B>
3372
- where
3373
- A: Iterator,
3374
- B: Iterator<Item = A::Item>,
3375
- {
3376
- type Item = A::Item;
3377
- fn next(&mut self) -> Option<A::Item> {
3378
- match self {
3379
- Either::A(a) => a.next(),
3380
- Either::B(b) => b.next(),
3381
- }
3382
- }
3383
- }
3384
-
3385
- impl<A, B> DoubleEndedIterator for Either<A, B>
3386
- where
3387
- A: DoubleEndedIterator,
3388
- B: DoubleEndedIterator<Item = A::Item>,
3389
- {
3390
- fn next_back(&mut self) -> Option<A::Item> {
3391
- match self {
3392
- Either::A(a) => a.next_back(),
3393
- Either::B(b) => b.next_back(),
3394
- }
3395
- }
3396
- }
3397
-
3398
- impl<A, B> ExactSizeIterator for Either<A, B>
3399
- where
3400
- A: ExactSizeIterator,
3401
- B: ExactSizeIterator<Item = A::Item>,
3402
- {
3403
- fn len(&self) -> usize {
3404
- match self {
3405
- Either::A(a) => a.len(),
3406
- Either::B(b) => b.len(),
3407
- }
3408
- }
3409
- }
3410
-
3411
- trait PreciseIterator: ExactSizeIterator + DoubleEndedIterator + Clone {}
3412
- impl<T: ExactSizeIterator + DoubleEndedIterator + Clone> PreciseIterator for T {}
3413
-
3414
- impl Locals {
3415
- /// Defines another group of `count` local variables of type `ty`.
3416
- ///
3417
- /// Returns `true` if the definition was successful. Local variable
3418
- /// definition is unsuccessful in case the amount of total variables
3419
- /// after definition exceeds the allowed maximum number.
3420
- fn define(&mut self, count: u32, ty: ValType) -> bool {
3421
- match self.num_locals.checked_add(count) {
3422
- Some(n) => self.num_locals = n,
3423
- None => return false,
3424
- }
3425
- if self.num_locals > (MAX_WASM_FUNCTION_LOCALS as u32) {
3426
- return false;
3427
- }
3428
- for _ in 0..count {
3429
- if self.first.len() >= MAX_LOCALS_TO_TRACK {
3430
- break;
3431
- }
3432
- self.first.push(ty);
3433
- }
3434
- self.all.push((self.num_locals - 1, ty));
3435
- true
3436
- }
3437
-
3438
- /// Returns the number of defined local variables.
3439
- pub(super) fn len_locals(&self) -> u32 {
3440
- self.num_locals
3441
- }
3442
-
3443
- /// Returns the type of the local variable at the given index if any.
3444
- #[inline]
3445
- pub(super) fn get(&self, idx: u32) -> Option<ValType> {
3446
- match self.first.get(idx as usize) {
3447
- Some(ty) => Some(*ty),
3448
- None => self.get_bsearch(idx),
3449
- }
3450
- }
3451
-
3452
- fn get_bsearch(&self, idx: u32) -> Option<ValType> {
3453
- match self.all.binary_search_by_key(&idx, |(idx, _)| *idx) {
3454
- // If this index would be inserted at the end of the list, then the
3455
- // index is out of bounds and we return an error.
3456
- Err(i) if i == self.all.len() => None,
3457
-
3458
- // If `Ok` is returned we found the index exactly, or if `Err` is
3459
- // returned the position is the one which is the least index
3460
- // greater that `idx`, which is still the type of `idx` according
3461
- // to our "compressed" representation. In both cases we access the
3462
- // list at index `i`.
3463
- Ok(i) | Err(i) => Some(self.all[i].1),
3464
- }
3465
- }
3466
- }