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
@@ -0,0 +1,2750 @@
1
+ use cfg_if::cfg_if;
2
+ use cranelift_codegen::cursor::FuncCursor;
3
+ use cranelift_codegen::ir;
4
+ use cranelift_codegen::ir::condcodes::*;
5
+ use cranelift_codegen::ir::immediates::{Imm64, Offset32, Uimm64};
6
+ use cranelift_codegen::ir::pcc::Fact;
7
+ use cranelift_codegen::ir::types::*;
8
+ use cranelift_codegen::ir::{
9
+ AbiParam, ArgumentPurpose, Function, InstBuilder, MemFlags, Signature, UserFuncName, Value,
10
+ };
11
+ use cranelift_codegen::isa::{self, CallConv, TargetFrontendConfig, TargetIsa};
12
+ use cranelift_entity::{EntityRef, PrimaryMap};
13
+ use cranelift_frontend::FunctionBuilder;
14
+ use cranelift_frontend::Variable;
15
+ use cranelift_wasm::{
16
+ self, FuncIndex, FuncTranslationState, GlobalIndex, GlobalVariable, Heap, HeapData, HeapStyle,
17
+ MemoryIndex, TableIndex, TargetEnvironment, TypeIndex, WasmHeapType, WasmRefType, WasmResult,
18
+ WasmType,
19
+ };
20
+ use std::convert::TryFrom;
21
+ use std::mem;
22
+ use wasmparser::Operator;
23
+ use wasmtime_environ::{
24
+ BuiltinFunctionIndex, MemoryPlan, MemoryStyle, Module, ModuleTranslation, ModuleTypesBuilder,
25
+ PtrSize, TableStyle, Tunables, TypeConvert, VMOffsets, WASM_PAGE_SIZE,
26
+ };
27
+ use wasmtime_environ::{FUNCREF_INIT_BIT, FUNCREF_MASK};
28
+
29
+ macro_rules! declare_function_signatures {
30
+ (
31
+ $(
32
+ $( #[$attr:meta] )*
33
+ $name:ident( $( $pname:ident: $param:ident ),* ) $( -> $result:ident )?;
34
+ )*
35
+ ) => {
36
+ /// A struct with an `Option<ir::SigRef>` member for every builtin
37
+ /// function, to de-duplicate constructing/getting its signature.
38
+ struct BuiltinFunctionSignatures {
39
+ pointer_type: ir::Type,
40
+ reference_type: ir::Type,
41
+ call_conv: isa::CallConv,
42
+ $(
43
+ $name: Option<ir::SigRef>,
44
+ )*
45
+ }
46
+
47
+ impl BuiltinFunctionSignatures {
48
+ fn new(
49
+ pointer_type: ir::Type,
50
+ reference_type: ir::Type,
51
+ call_conv: isa::CallConv,
52
+ ) -> Self {
53
+ Self {
54
+ pointer_type,
55
+ reference_type,
56
+ call_conv,
57
+ $(
58
+ $name: None,
59
+ )*
60
+ }
61
+ }
62
+
63
+ fn vmctx(&self) -> AbiParam {
64
+ AbiParam::special(self.pointer_type, ArgumentPurpose::VMContext)
65
+ }
66
+
67
+ fn reference(&self) -> AbiParam {
68
+ AbiParam::new(self.reference_type)
69
+ }
70
+
71
+ fn pointer(&self) -> AbiParam {
72
+ AbiParam::new(self.pointer_type)
73
+ }
74
+
75
+ fn i32(&self) -> AbiParam {
76
+ // Some platform ABIs require i32 values to be zero- or sign-
77
+ // extended to the full register width. We need to indicate
78
+ // this here by using the appropriate .uext or .sext attribute.
79
+ // The attribute can be added unconditionally; platforms whose
80
+ // ABI does not require such extensions will simply ignore it.
81
+ // Note that currently all i32 arguments or return values used
82
+ // by builtin functions are unsigned, so we always use .uext.
83
+ // If that ever changes, we will have to add a second type
84
+ // marker here.
85
+ AbiParam::new(I32).uext()
86
+ }
87
+
88
+ fn i64(&self) -> AbiParam {
89
+ AbiParam::new(I64)
90
+ }
91
+
92
+ $(
93
+ fn $name(&mut self, func: &mut Function) -> ir::SigRef {
94
+ let sig = self.$name.unwrap_or_else(|| {
95
+ func.import_signature(Signature {
96
+ params: vec![ $( self.$param() ),* ],
97
+ returns: vec![ $( self.$result() )? ],
98
+ call_conv: self.call_conv,
99
+ })
100
+ });
101
+ self.$name = Some(sig);
102
+ sig
103
+ }
104
+ )*
105
+ }
106
+ };
107
+ }
108
+
109
+ wasmtime_environ::foreach_builtin_function!(declare_function_signatures);
110
+
111
+ /// The `FuncEnvironment` implementation for use by the `ModuleEnvironment`.
112
+ pub struct FuncEnvironment<'module_environment> {
113
+ isa: &'module_environment (dyn TargetIsa + 'module_environment),
114
+ module: &'module_environment Module,
115
+ types: &'module_environment ModuleTypesBuilder,
116
+
117
+ translation: &'module_environment ModuleTranslation<'module_environment>,
118
+
119
+ /// Heaps implementing WebAssembly linear memories.
120
+ heaps: PrimaryMap<Heap, HeapData>,
121
+
122
+ /// The Cranelift global holding the vmctx address.
123
+ vmctx: Option<ir::GlobalValue>,
124
+
125
+ /// The PCC memory type describing the vmctx layout, if we're
126
+ /// using PCC.
127
+ pcc_vmctx_memtype: Option<ir::MemoryType>,
128
+
129
+ /// Caches of signatures for builtin functions.
130
+ builtin_function_signatures: BuiltinFunctionSignatures,
131
+
132
+ /// Offsets to struct fields accessed by JIT code.
133
+ pub(crate) offsets: VMOffsets<u8>,
134
+
135
+ tunables: &'module_environment Tunables,
136
+
137
+ /// A function-local variable which stores the cached value of the amount of
138
+ /// fuel remaining to execute. If used this is modified frequently so it's
139
+ /// stored locally as a variable instead of always referenced from the field
140
+ /// in `*const VMRuntimeLimits`
141
+ fuel_var: cranelift_frontend::Variable,
142
+
143
+ /// A function-local variable which caches the value of `*const
144
+ /// VMRuntimeLimits` for this function's vmctx argument. This pointer is stored
145
+ /// in the vmctx itself, but never changes for the lifetime of the function,
146
+ /// so if we load it up front we can continue to use it throughout.
147
+ vmruntime_limits_ptr: cranelift_frontend::Variable,
148
+
149
+ /// A cached epoch deadline value, when performing epoch-based
150
+ /// interruption. Loaded from `VMRuntimeLimits` and reloaded after
151
+ /// any yield.
152
+ epoch_deadline_var: cranelift_frontend::Variable,
153
+
154
+ /// A cached pointer to the per-Engine epoch counter, when
155
+ /// performing epoch-based interruption. Initialized in the
156
+ /// function prologue. We prefer to use a variable here rather
157
+ /// than reload on each check because it's better to let the
158
+ /// regalloc keep it in a register if able; if not, it can always
159
+ /// spill, and this isn't any worse than reloading each time.
160
+ epoch_ptr_var: cranelift_frontend::Variable,
161
+
162
+ fuel_consumed: i64,
163
+
164
+ #[cfg(feature = "wmemcheck")]
165
+ wmemcheck: bool,
166
+ }
167
+
168
+ impl<'module_environment> FuncEnvironment<'module_environment> {
169
+ pub fn new(
170
+ isa: &'module_environment (dyn TargetIsa + 'module_environment),
171
+ translation: &'module_environment ModuleTranslation<'module_environment>,
172
+ types: &'module_environment ModuleTypesBuilder,
173
+ tunables: &'module_environment Tunables,
174
+ wmemcheck: bool,
175
+ ) -> Self {
176
+ let builtin_function_signatures = BuiltinFunctionSignatures::new(
177
+ isa.pointer_type(),
178
+ match isa.pointer_type() {
179
+ ir::types::I32 => ir::types::R32,
180
+ ir::types::I64 => ir::types::R64,
181
+ _ => panic!(),
182
+ },
183
+ CallConv::triple_default(isa.triple()),
184
+ );
185
+
186
+ // Avoid unused warning in default build.
187
+ #[cfg(not(feature = "wmemcheck"))]
188
+ let _ = wmemcheck;
189
+
190
+ Self {
191
+ isa,
192
+ module: &translation.module,
193
+ types,
194
+ heaps: PrimaryMap::default(),
195
+ vmctx: None,
196
+ pcc_vmctx_memtype: None,
197
+ builtin_function_signatures,
198
+ offsets: VMOffsets::new(isa.pointer_bytes(), &translation.module),
199
+ tunables,
200
+ fuel_var: Variable::new(0),
201
+ epoch_deadline_var: Variable::new(0),
202
+ epoch_ptr_var: Variable::new(0),
203
+ vmruntime_limits_ptr: Variable::new(0),
204
+ translation: translation,
205
+
206
+ // Start with at least one fuel being consumed because even empty
207
+ // functions should consume at least some fuel.
208
+ fuel_consumed: 1,
209
+ #[cfg(feature = "wmemcheck")]
210
+ wmemcheck,
211
+ }
212
+ }
213
+
214
+ fn pointer_type(&self) -> ir::Type {
215
+ self.isa.pointer_type()
216
+ }
217
+
218
+ fn vmctx(&mut self, func: &mut Function) -> ir::GlobalValue {
219
+ self.vmctx.unwrap_or_else(|| {
220
+ let vmctx = func.create_global_value(ir::GlobalValueData::VMContext);
221
+ if self.isa.flags().enable_pcc() {
222
+ // Create a placeholder memtype for the vmctx; we'll
223
+ // add fields to it as we lazily create HeapData
224
+ // structs and global values.
225
+ let vmctx_memtype = func.create_memory_type(ir::MemoryTypeData::Struct {
226
+ size: 0,
227
+ fields: vec![],
228
+ });
229
+
230
+ self.pcc_vmctx_memtype = Some(vmctx_memtype);
231
+ func.global_value_facts[vmctx] = Some(Fact::Mem {
232
+ ty: vmctx_memtype,
233
+ min_offset: 0,
234
+ max_offset: 0,
235
+ nullable: false,
236
+ });
237
+ }
238
+
239
+ self.vmctx = Some(vmctx);
240
+ vmctx
241
+ })
242
+ }
243
+
244
+ fn get_table_copy_func(
245
+ &mut self,
246
+ func: &mut Function,
247
+ dst_table_index: TableIndex,
248
+ src_table_index: TableIndex,
249
+ ) -> (ir::SigRef, usize, usize, BuiltinFunctionIndex) {
250
+ let sig = self.builtin_function_signatures.table_copy(func);
251
+ (
252
+ sig,
253
+ dst_table_index.as_u32() as usize,
254
+ src_table_index.as_u32() as usize,
255
+ BuiltinFunctionIndex::table_copy(),
256
+ )
257
+ }
258
+
259
+ fn get_table_init_func(
260
+ &mut self,
261
+ func: &mut Function,
262
+ table_index: TableIndex,
263
+ ) -> (ir::SigRef, usize, BuiltinFunctionIndex) {
264
+ let sig = self.builtin_function_signatures.table_init(func);
265
+ let table_index = table_index.as_u32() as usize;
266
+ (sig, table_index, BuiltinFunctionIndex::table_init())
267
+ }
268
+
269
+ fn get_elem_drop_func(&mut self, func: &mut Function) -> (ir::SigRef, BuiltinFunctionIndex) {
270
+ let sig = self.builtin_function_signatures.elem_drop(func);
271
+ (sig, BuiltinFunctionIndex::elem_drop())
272
+ }
273
+
274
+ fn get_memory_atomic_wait(
275
+ &mut self,
276
+ func: &mut Function,
277
+ memory_index: MemoryIndex,
278
+ ty: ir::Type,
279
+ ) -> (ir::SigRef, usize, BuiltinFunctionIndex) {
280
+ match ty {
281
+ I32 => (
282
+ self.builtin_function_signatures.memory_atomic_wait32(func),
283
+ memory_index.index(),
284
+ BuiltinFunctionIndex::memory_atomic_wait32(),
285
+ ),
286
+ I64 => (
287
+ self.builtin_function_signatures.memory_atomic_wait64(func),
288
+ memory_index.index(),
289
+ BuiltinFunctionIndex::memory_atomic_wait64(),
290
+ ),
291
+ x => panic!("get_memory_atomic_wait unsupported type: {:?}", x),
292
+ }
293
+ }
294
+
295
+ fn get_memory_init_func(&mut self, func: &mut Function) -> (ir::SigRef, BuiltinFunctionIndex) {
296
+ (
297
+ self.builtin_function_signatures.memory_init(func),
298
+ BuiltinFunctionIndex::memory_init(),
299
+ )
300
+ }
301
+
302
+ fn get_data_drop_func(&mut self, func: &mut Function) -> (ir::SigRef, BuiltinFunctionIndex) {
303
+ (
304
+ self.builtin_function_signatures.data_drop(func),
305
+ BuiltinFunctionIndex::data_drop(),
306
+ )
307
+ }
308
+
309
+ /// Translates load of builtin function and returns a pair of values `vmctx`
310
+ /// and address of the loaded function.
311
+ fn translate_load_builtin_function_address(
312
+ &mut self,
313
+ pos: &mut FuncCursor<'_>,
314
+ callee_func_idx: BuiltinFunctionIndex,
315
+ ) -> (ir::Value, ir::Value) {
316
+ // We use an indirect call so that we don't have to patch the code at runtime.
317
+ let pointer_type = self.pointer_type();
318
+ let vmctx = self.vmctx(&mut pos.func);
319
+ let base = pos.ins().global_value(pointer_type, vmctx);
320
+
321
+ let mem_flags = ir::MemFlags::trusted().with_readonly();
322
+
323
+ // Load the base of the array of builtin functions
324
+ let array_offset = i32::try_from(self.offsets.vmctx_builtin_functions()).unwrap();
325
+ let array_addr = pos.ins().load(pointer_type, mem_flags, base, array_offset);
326
+
327
+ // Load the callee address.
328
+ let body_offset = i32::try_from(callee_func_idx.index() * pointer_type.bytes()).unwrap();
329
+ let func_addr = pos
330
+ .ins()
331
+ .load(pointer_type, mem_flags, array_addr, body_offset);
332
+
333
+ (base, func_addr)
334
+ }
335
+
336
+ /// Generate code to increment or decrement the given `externref`'s
337
+ /// reference count.
338
+ ///
339
+ /// The new reference count is returned.
340
+ fn mutate_externref_ref_count(
341
+ &mut self,
342
+ builder: &mut FunctionBuilder,
343
+ externref: ir::Value,
344
+ delta: i64,
345
+ ) -> ir::Value {
346
+ debug_assert!(delta == -1 || delta == 1);
347
+
348
+ let pointer_type = self.pointer_type();
349
+
350
+ // If this changes that's ok, the `atomic_rmw` below just needs to be
351
+ // preceded with an add instruction of `externref` and the offset.
352
+ assert_eq!(self.offsets.vm_extern_data_ref_count(), 0);
353
+ let delta = builder.ins().iconst(pointer_type, delta);
354
+ builder.ins().atomic_rmw(
355
+ pointer_type,
356
+ ir::MemFlags::trusted(),
357
+ ir::AtomicRmwOp::Add,
358
+ externref,
359
+ delta,
360
+ )
361
+ }
362
+
363
+ fn get_global_location(
364
+ &mut self,
365
+ func: &mut ir::Function,
366
+ index: GlobalIndex,
367
+ ) -> (ir::GlobalValue, i32) {
368
+ let pointer_type = self.pointer_type();
369
+ let vmctx = self.vmctx(func);
370
+ if let Some(def_index) = self.module.defined_global_index(index) {
371
+ let offset = i32::try_from(self.offsets.vmctx_vmglobal_definition(def_index)).unwrap();
372
+ (vmctx, offset)
373
+ } else {
374
+ let from_offset = self.offsets.vmctx_vmglobal_import_from(index);
375
+ let global = func.create_global_value(ir::GlobalValueData::Load {
376
+ base: vmctx,
377
+ offset: Offset32::new(i32::try_from(from_offset).unwrap()),
378
+ global_type: pointer_type,
379
+ flags: MemFlags::trusted().with_readonly(),
380
+ });
381
+ (global, 0)
382
+ }
383
+ }
384
+
385
+ fn declare_vmruntime_limits_ptr(&mut self, builder: &mut FunctionBuilder<'_>) {
386
+ // We load the `*const VMRuntimeLimits` value stored within vmctx at the
387
+ // head of the function and reuse the same value across the entire
388
+ // function. This is possible since we know that the pointer never
389
+ // changes for the lifetime of the function.
390
+ let pointer_type = self.pointer_type();
391
+ builder.declare_var(self.vmruntime_limits_ptr, pointer_type);
392
+ let vmctx = self.vmctx(builder.func);
393
+ let base = builder.ins().global_value(pointer_type, vmctx);
394
+ let offset = i32::try_from(self.offsets.vmctx_runtime_limits()).unwrap();
395
+ let interrupt_ptr = builder
396
+ .ins()
397
+ .load(pointer_type, ir::MemFlags::trusted(), base, offset);
398
+ builder.def_var(self.vmruntime_limits_ptr, interrupt_ptr);
399
+ }
400
+
401
+ fn fuel_function_entry(&mut self, builder: &mut FunctionBuilder<'_>) {
402
+ // On function entry we load the amount of fuel into a function-local
403
+ // `self.fuel_var` to make fuel modifications fast locally. This cache
404
+ // is then periodically flushed to the Store-defined location in
405
+ // `VMRuntimeLimits` later.
406
+ builder.declare_var(self.fuel_var, ir::types::I64);
407
+ self.fuel_load_into_var(builder);
408
+ self.fuel_check(builder);
409
+ }
410
+
411
+ fn fuel_function_exit(&mut self, builder: &mut FunctionBuilder<'_>) {
412
+ // On exiting the function we need to be sure to save the fuel we have
413
+ // cached locally in `self.fuel_var` back into the Store-defined
414
+ // location.
415
+ self.fuel_save_from_var(builder);
416
+ }
417
+
418
+ fn fuel_before_op(
419
+ &mut self,
420
+ op: &Operator<'_>,
421
+ builder: &mut FunctionBuilder<'_>,
422
+ reachable: bool,
423
+ ) {
424
+ if !reachable {
425
+ // In unreachable code we shouldn't have any leftover fuel we
426
+ // haven't accounted for since the reason for us to become
427
+ // unreachable should have already added it to `self.fuel_var`.
428
+ debug_assert_eq!(self.fuel_consumed, 0);
429
+ return;
430
+ }
431
+
432
+ self.fuel_consumed += match op {
433
+ // Nop and drop generate no code, so don't consume fuel for them.
434
+ Operator::Nop | Operator::Drop => 0,
435
+
436
+ // Control flow may create branches, but is generally cheap and
437
+ // free, so don't consume fuel. Note the lack of `if` since some
438
+ // cost is incurred with the conditional check.
439
+ Operator::Block { .. }
440
+ | Operator::Loop { .. }
441
+ | Operator::Unreachable
442
+ | Operator::Return
443
+ | Operator::Else
444
+ | Operator::End => 0,
445
+
446
+ // everything else, just call it one operation.
447
+ _ => 1,
448
+ };
449
+
450
+ match op {
451
+ // Exiting a function (via a return or unreachable) or otherwise
452
+ // entering a different function (via a call) means that we need to
453
+ // update the fuel consumption in `VMRuntimeLimits` because we're
454
+ // about to move control out of this function itself and the fuel
455
+ // may need to be read.
456
+ //
457
+ // Before this we need to update the fuel counter from our own cost
458
+ // leading up to this function call, and then we can store
459
+ // `self.fuel_var` into `VMRuntimeLimits`.
460
+ Operator::Unreachable
461
+ | Operator::Return
462
+ | Operator::CallIndirect { .. }
463
+ | Operator::Call { .. }
464
+ | Operator::ReturnCall { .. }
465
+ | Operator::ReturnCallIndirect { .. } => {
466
+ self.fuel_increment_var(builder);
467
+ self.fuel_save_from_var(builder);
468
+ }
469
+
470
+ // To ensure all code preceding a loop is only counted once we
471
+ // update the fuel variable on entry.
472
+ Operator::Loop { .. }
473
+
474
+ // Entering into an `if` block means that the edge we take isn't
475
+ // known until runtime, so we need to update our fuel consumption
476
+ // before we take the branch.
477
+ | Operator::If { .. }
478
+
479
+ // Control-flow instructions mean that we're moving to the end/exit
480
+ // of a block somewhere else. That means we need to update the fuel
481
+ // counter since we're effectively terminating our basic block.
482
+ | Operator::Br { .. }
483
+ | Operator::BrIf { .. }
484
+ | Operator::BrTable { .. }
485
+
486
+ // Exiting a scope means that we need to update the fuel
487
+ // consumption because there are multiple ways to exit a scope and
488
+ // this is the only time we have to account for instructions
489
+ // executed so far.
490
+ | Operator::End
491
+
492
+ // This is similar to `end`, except that it's only the terminator
493
+ // for an `if` block. The same reasoning applies though in that we
494
+ // are terminating a basic block and need to update the fuel
495
+ // variable.
496
+ | Operator::Else => self.fuel_increment_var(builder),
497
+
498
+ // This is a normal instruction where the fuel is buffered to later
499
+ // get added to `self.fuel_var`.
500
+ //
501
+ // Note that we generally ignore instructions which may trap and
502
+ // therefore result in exiting a block early. Current usage of fuel
503
+ // means that it's not too important to account for a precise amount
504
+ // of fuel consumed but rather "close to the actual amount" is good
505
+ // enough. For 100% precise counting, however, we'd probably need to
506
+ // not only increment but also save the fuel amount more often
507
+ // around trapping instructions. (see the `unreachable` instruction
508
+ // case above)
509
+ //
510
+ // Note that `Block` is specifically omitted from incrementing the
511
+ // fuel variable. Control flow entering a `block` is unconditional
512
+ // which means it's effectively executing straight-line code. We'll
513
+ // update the counter when exiting a block, but we shouldn't need to
514
+ // do so upon entering a block.
515
+ _ => {}
516
+ }
517
+ }
518
+
519
+ fn fuel_after_op(&mut self, op: &Operator<'_>, builder: &mut FunctionBuilder<'_>) {
520
+ // After a function call we need to reload our fuel value since the
521
+ // function may have changed it.
522
+ match op {
523
+ Operator::Call { .. } | Operator::CallIndirect { .. } => {
524
+ self.fuel_load_into_var(builder);
525
+ }
526
+ _ => {}
527
+ }
528
+ }
529
+
530
+ /// Adds `self.fuel_consumed` to the `fuel_var`, zero-ing out the amount of
531
+ /// fuel consumed at that point.
532
+ fn fuel_increment_var(&mut self, builder: &mut FunctionBuilder<'_>) {
533
+ let consumption = mem::replace(&mut self.fuel_consumed, 0);
534
+ if consumption == 0 {
535
+ return;
536
+ }
537
+
538
+ let fuel = builder.use_var(self.fuel_var);
539
+ let fuel = builder.ins().iadd_imm(fuel, consumption);
540
+ builder.def_var(self.fuel_var, fuel);
541
+ }
542
+
543
+ /// Loads the fuel consumption value from `VMRuntimeLimits` into `self.fuel_var`
544
+ fn fuel_load_into_var(&mut self, builder: &mut FunctionBuilder<'_>) {
545
+ let (addr, offset) = self.fuel_addr_offset(builder);
546
+ let fuel = builder
547
+ .ins()
548
+ .load(ir::types::I64, ir::MemFlags::trusted(), addr, offset);
549
+ builder.def_var(self.fuel_var, fuel);
550
+ }
551
+
552
+ /// Stores the fuel consumption value from `self.fuel_var` into
553
+ /// `VMRuntimeLimits`.
554
+ fn fuel_save_from_var(&mut self, builder: &mut FunctionBuilder<'_>) {
555
+ let (addr, offset) = self.fuel_addr_offset(builder);
556
+ let fuel_consumed = builder.use_var(self.fuel_var);
557
+ builder
558
+ .ins()
559
+ .store(ir::MemFlags::trusted(), fuel_consumed, addr, offset);
560
+ }
561
+
562
+ /// Returns the `(address, offset)` of the fuel consumption within
563
+ /// `VMRuntimeLimits`, used to perform loads/stores later.
564
+ fn fuel_addr_offset(
565
+ &mut self,
566
+ builder: &mut FunctionBuilder<'_>,
567
+ ) -> (ir::Value, ir::immediates::Offset32) {
568
+ (
569
+ builder.use_var(self.vmruntime_limits_ptr),
570
+ i32::from(self.offsets.ptr.vmruntime_limits_fuel_consumed()).into(),
571
+ )
572
+ }
573
+
574
+ /// Checks the amount of remaining, and if we've run out of fuel we call
575
+ /// the out-of-fuel function.
576
+ fn fuel_check(&mut self, builder: &mut FunctionBuilder) {
577
+ self.fuel_increment_var(builder);
578
+ let out_of_gas_block = builder.create_block();
579
+ let continuation_block = builder.create_block();
580
+
581
+ // Note that our fuel is encoded as adding positive values to a
582
+ // negative number. Whenever the negative number goes positive that
583
+ // means we ran out of fuel.
584
+ //
585
+ // Compare to see if our fuel is positive, and if so we ran out of gas.
586
+ // Otherwise we can continue on like usual.
587
+ let zero = builder.ins().iconst(ir::types::I64, 0);
588
+ let fuel = builder.use_var(self.fuel_var);
589
+ let cmp = builder
590
+ .ins()
591
+ .icmp(IntCC::SignedGreaterThanOrEqual, fuel, zero);
592
+ builder
593
+ .ins()
594
+ .brif(cmp, out_of_gas_block, &[], continuation_block, &[]);
595
+ builder.seal_block(out_of_gas_block);
596
+
597
+ // If we ran out of gas then we call our out-of-gas intrinsic and it
598
+ // figures out what to do. Note that this may raise a trap, or do
599
+ // something like yield to an async runtime. In either case we don't
600
+ // assume what happens and handle the case the intrinsic returns.
601
+ //
602
+ // Note that we save/reload fuel around this since the out-of-gas
603
+ // intrinsic may alter how much fuel is in the system.
604
+ builder.switch_to_block(out_of_gas_block);
605
+ self.fuel_save_from_var(builder);
606
+ let out_of_gas_sig = self.builtin_function_signatures.out_of_gas(builder.func);
607
+ let (vmctx, out_of_gas) = self.translate_load_builtin_function_address(
608
+ &mut builder.cursor(),
609
+ BuiltinFunctionIndex::out_of_gas(),
610
+ );
611
+ builder
612
+ .ins()
613
+ .call_indirect(out_of_gas_sig, out_of_gas, &[vmctx]);
614
+ self.fuel_load_into_var(builder);
615
+ builder.ins().jump(continuation_block, &[]);
616
+ builder.seal_block(continuation_block);
617
+
618
+ builder.switch_to_block(continuation_block);
619
+ }
620
+
621
+ fn epoch_function_entry(&mut self, builder: &mut FunctionBuilder<'_>) {
622
+ builder.declare_var(self.epoch_deadline_var, ir::types::I64);
623
+ self.epoch_load_deadline_into_var(builder);
624
+ builder.declare_var(self.epoch_ptr_var, self.pointer_type());
625
+ let epoch_ptr = self.epoch_ptr(builder);
626
+ builder.def_var(self.epoch_ptr_var, epoch_ptr);
627
+
628
+ // We must check for an epoch change when entering a
629
+ // function. Why? Why aren't checks at loops sufficient to
630
+ // bound runtime to O(|static program size|)?
631
+ //
632
+ // The reason is that one can construct a "zip-bomb-like"
633
+ // program with exponential-in-program-size runtime, with no
634
+ // backedges (loops), by building a tree of function calls: f0
635
+ // calls f1 ten times, f1 calls f2 ten times, etc. E.g., nine
636
+ // levels of this yields a billion function calls with no
637
+ // backedges. So we can't do checks only at backedges.
638
+ //
639
+ // In this "call-tree" scenario, and in fact in any program
640
+ // that uses calls as a sort of control flow to try to evade
641
+ // backedge checks, a check at every function entry is
642
+ // sufficient. Then, combined with checks at every backedge
643
+ // (loop) the longest runtime between checks is bounded by the
644
+ // straightline length of any function body.
645
+ self.epoch_check(builder);
646
+ }
647
+
648
+ #[cfg(feature = "wmemcheck")]
649
+ fn hook_malloc_exit(&mut self, builder: &mut FunctionBuilder, retvals: &[Value]) {
650
+ let check_malloc_sig = self.builtin_function_signatures.check_malloc(builder.func);
651
+ let (vmctx, check_malloc) = self.translate_load_builtin_function_address(
652
+ &mut builder.cursor(),
653
+ BuiltinFunctionIndex::check_malloc(),
654
+ );
655
+ let func_args = builder
656
+ .func
657
+ .dfg
658
+ .block_params(builder.func.layout.entry_block().unwrap());
659
+ let len = if func_args.len() < 3 {
660
+ return;
661
+ } else {
662
+ // If a function named `malloc` has at least one argument, we assume the
663
+ // first argument is the requested allocation size.
664
+ func_args[2]
665
+ };
666
+ let retval = if retvals.len() < 1 {
667
+ return;
668
+ } else {
669
+ retvals[0]
670
+ };
671
+ builder
672
+ .ins()
673
+ .call_indirect(check_malloc_sig, check_malloc, &[vmctx, retval, len]);
674
+ }
675
+
676
+ #[cfg(feature = "wmemcheck")]
677
+ fn hook_free_exit(&mut self, builder: &mut FunctionBuilder) {
678
+ let check_free_sig = self.builtin_function_signatures.check_free(builder.func);
679
+ let (vmctx, check_free) = self.translate_load_builtin_function_address(
680
+ &mut builder.cursor(),
681
+ BuiltinFunctionIndex::check_free(),
682
+ );
683
+ let func_args = builder
684
+ .func
685
+ .dfg
686
+ .block_params(builder.func.layout.entry_block().unwrap());
687
+ let ptr = if func_args.len() < 3 {
688
+ return;
689
+ } else {
690
+ // If a function named `free` has at least one argument, we assume the
691
+ // first argument is a pointer to memory.
692
+ func_args[2]
693
+ };
694
+ builder
695
+ .ins()
696
+ .call_indirect(check_free_sig, check_free, &[vmctx, ptr]);
697
+ }
698
+
699
+ fn epoch_ptr(&mut self, builder: &mut FunctionBuilder<'_>) -> ir::Value {
700
+ let vmctx = self.vmctx(builder.func);
701
+ let pointer_type = self.pointer_type();
702
+ let base = builder.ins().global_value(pointer_type, vmctx);
703
+ let offset = i32::try_from(self.offsets.vmctx_epoch_ptr()).unwrap();
704
+ let epoch_ptr = builder
705
+ .ins()
706
+ .load(pointer_type, ir::MemFlags::trusted(), base, offset);
707
+ epoch_ptr
708
+ }
709
+
710
+ fn epoch_load_current(&mut self, builder: &mut FunctionBuilder<'_>) -> ir::Value {
711
+ let addr = builder.use_var(self.epoch_ptr_var);
712
+ builder.ins().load(
713
+ ir::types::I64,
714
+ ir::MemFlags::trusted(),
715
+ addr,
716
+ ir::immediates::Offset32::new(0),
717
+ )
718
+ }
719
+
720
+ fn epoch_load_deadline_into_var(&mut self, builder: &mut FunctionBuilder<'_>) {
721
+ let interrupts = builder.use_var(self.vmruntime_limits_ptr);
722
+ let deadline =
723
+ builder.ins().load(
724
+ ir::types::I64,
725
+ ir::MemFlags::trusted(),
726
+ interrupts,
727
+ ir::immediates::Offset32::new(
728
+ self.offsets.ptr.vmruntime_limits_epoch_deadline() as i32
729
+ ),
730
+ );
731
+ builder.def_var(self.epoch_deadline_var, deadline);
732
+ }
733
+
734
+ fn epoch_check(&mut self, builder: &mut FunctionBuilder<'_>) {
735
+ let new_epoch_block = builder.create_block();
736
+ let new_epoch_doublecheck_block = builder.create_block();
737
+ let continuation_block = builder.create_block();
738
+ builder.set_cold_block(new_epoch_block);
739
+ builder.set_cold_block(new_epoch_doublecheck_block);
740
+
741
+ let epoch_deadline = builder.use_var(self.epoch_deadline_var);
742
+ // Load new epoch and check against cached deadline. The
743
+ // deadline may be out of date if it was updated (within
744
+ // another yield) during some function that we called; this is
745
+ // fine, as we'll reload it and check again before yielding in
746
+ // the cold path.
747
+ let cur_epoch_value = self.epoch_load_current(builder);
748
+ let cmp = builder.ins().icmp(
749
+ IntCC::UnsignedGreaterThanOrEqual,
750
+ cur_epoch_value,
751
+ epoch_deadline,
752
+ );
753
+ builder
754
+ .ins()
755
+ .brif(cmp, new_epoch_block, &[], continuation_block, &[]);
756
+ builder.seal_block(new_epoch_block);
757
+
758
+ // In the "new epoch block", we've noticed that the epoch has
759
+ // exceeded our cached deadline. However the real deadline may
760
+ // have been moved in the meantime. We keep the cached value
761
+ // in a register to speed the checks in the common case
762
+ // (between epoch ticks) but we want to do a precise check
763
+ // here, on the cold path, by reloading the latest value
764
+ // first.
765
+ builder.switch_to_block(new_epoch_block);
766
+ self.epoch_load_deadline_into_var(builder);
767
+ let fresh_epoch_deadline = builder.use_var(self.epoch_deadline_var);
768
+ let fresh_cmp = builder.ins().icmp(
769
+ IntCC::UnsignedGreaterThanOrEqual,
770
+ cur_epoch_value,
771
+ fresh_epoch_deadline,
772
+ );
773
+ builder.ins().brif(
774
+ fresh_cmp,
775
+ new_epoch_doublecheck_block,
776
+ &[],
777
+ continuation_block,
778
+ &[],
779
+ );
780
+ builder.seal_block(new_epoch_doublecheck_block);
781
+
782
+ builder.switch_to_block(new_epoch_doublecheck_block);
783
+ let new_epoch_sig = self.builtin_function_signatures.new_epoch(builder.func);
784
+ let (vmctx, new_epoch) = self.translate_load_builtin_function_address(
785
+ &mut builder.cursor(),
786
+ BuiltinFunctionIndex::new_epoch(),
787
+ );
788
+ // new_epoch() returns the new deadline, so we don't have to
789
+ // reload it.
790
+ let call = builder
791
+ .ins()
792
+ .call_indirect(new_epoch_sig, new_epoch, &[vmctx]);
793
+ let new_deadline = *builder.func.dfg.inst_results(call).first().unwrap();
794
+ builder.def_var(self.epoch_deadline_var, new_deadline);
795
+ builder.ins().jump(continuation_block, &[]);
796
+ builder.seal_block(continuation_block);
797
+
798
+ builder.switch_to_block(continuation_block);
799
+ }
800
+
801
+ fn memory_index_type(&self, index: MemoryIndex) -> ir::Type {
802
+ if self.module.memory_plans[index].memory.memory64 {
803
+ I64
804
+ } else {
805
+ I32
806
+ }
807
+ }
808
+
809
+ fn cast_pointer_to_memory_index(
810
+ &self,
811
+ mut pos: FuncCursor<'_>,
812
+ val: ir::Value,
813
+ index: MemoryIndex,
814
+ ) -> ir::Value {
815
+ let desired_type = self.memory_index_type(index);
816
+ let pointer_type = self.pointer_type();
817
+ assert_eq!(pos.func.dfg.value_type(val), pointer_type);
818
+
819
+ // The current length is of type `pointer_type` but we need to fit it
820
+ // into `desired_type`. We are guaranteed that the result will always
821
+ // fit, so we just need to do the right ireduce/sextend here.
822
+ if pointer_type == desired_type {
823
+ val
824
+ } else if pointer_type.bits() > desired_type.bits() {
825
+ pos.ins().ireduce(desired_type, val)
826
+ } else {
827
+ // Note that we `sextend` instead of the probably expected
828
+ // `uextend`. This function is only used within the contexts of
829
+ // `memory.size` and `memory.grow` where we're working with units of
830
+ // pages instead of actual bytes, so we know that the upper bit is
831
+ // always cleared for "valid values". The one case we care about
832
+ // sextend would be when the return value of `memory.grow` is `-1`,
833
+ // in which case we want to copy the sign bit.
834
+ //
835
+ // This should only come up on 32-bit hosts running wasm64 modules,
836
+ // which at some point also makes you question various assumptions
837
+ // made along the way...
838
+ pos.ins().sextend(desired_type, val)
839
+ }
840
+ }
841
+
842
+ fn cast_memory_index_to_i64(
843
+ &self,
844
+ pos: &mut FuncCursor<'_>,
845
+ val: ir::Value,
846
+ index: MemoryIndex,
847
+ ) -> ir::Value {
848
+ if self.memory_index_type(index) == I64 {
849
+ val
850
+ } else {
851
+ pos.ins().uextend(I64, val)
852
+ }
853
+ }
854
+
855
+ fn get_or_init_func_ref_table_elem(
856
+ &mut self,
857
+ builder: &mut FunctionBuilder,
858
+ table_index: TableIndex,
859
+ table: ir::Table,
860
+ index: ir::Value,
861
+ ) -> ir::Value {
862
+ let pointer_type = self.pointer_type();
863
+
864
+ // To support lazy initialization of table
865
+ // contents, we check for a null entry here, and
866
+ // if null, we take a slow-path that invokes a
867
+ // libcall.
868
+ let table_entry_addr = builder.ins().table_addr(pointer_type, table, index, 0);
869
+ let flags = ir::MemFlags::trusted().with_table();
870
+ let value = builder.ins().load(pointer_type, flags, table_entry_addr, 0);
871
+ // Mask off the "initialized bit". See documentation on
872
+ // FUNCREF_INIT_BIT in crates/environ/src/ref_bits.rs for more
873
+ // details.
874
+ let value_masked = builder
875
+ .ins()
876
+ .band_imm(value, Imm64::from(FUNCREF_MASK as i64));
877
+
878
+ let null_block = builder.create_block();
879
+ let continuation_block = builder.create_block();
880
+ let result_param = builder.append_block_param(continuation_block, pointer_type);
881
+ builder.set_cold_block(null_block);
882
+
883
+ builder
884
+ .ins()
885
+ .brif(value, continuation_block, &[value_masked], null_block, &[]);
886
+ builder.seal_block(null_block);
887
+
888
+ builder.switch_to_block(null_block);
889
+ let table_index = builder.ins().iconst(I32, table_index.index() as i64);
890
+ let builtin_idx = BuiltinFunctionIndex::table_get_lazy_init_func_ref();
891
+ let builtin_sig = self
892
+ .builtin_function_signatures
893
+ .table_get_lazy_init_func_ref(builder.func);
894
+ let (vmctx, builtin_addr) =
895
+ self.translate_load_builtin_function_address(&mut builder.cursor(), builtin_idx);
896
+ let call_inst =
897
+ builder
898
+ .ins()
899
+ .call_indirect(builtin_sig, builtin_addr, &[vmctx, table_index, index]);
900
+ let returned_entry = builder.func.dfg.inst_results(call_inst)[0];
901
+ builder.ins().jump(continuation_block, &[returned_entry]);
902
+ builder.seal_block(continuation_block);
903
+
904
+ builder.switch_to_block(continuation_block);
905
+ result_param
906
+ }
907
+
908
+ fn check_malloc_start(&mut self, builder: &mut FunctionBuilder) {
909
+ let malloc_start_sig = self.builtin_function_signatures.malloc_start(builder.func);
910
+ let (vmctx, malloc_start) = self.translate_load_builtin_function_address(
911
+ &mut builder.cursor(),
912
+ BuiltinFunctionIndex::malloc_start(),
913
+ );
914
+ builder
915
+ .ins()
916
+ .call_indirect(malloc_start_sig, malloc_start, &[vmctx]);
917
+ }
918
+
919
+ fn check_free_start(&mut self, builder: &mut FunctionBuilder) {
920
+ let free_start_sig = self.builtin_function_signatures.free_start(builder.func);
921
+ let (vmctx, free_start) = self.translate_load_builtin_function_address(
922
+ &mut builder.cursor(),
923
+ BuiltinFunctionIndex::free_start(),
924
+ );
925
+ builder
926
+ .ins()
927
+ .call_indirect(free_start_sig, free_start, &[vmctx]);
928
+ }
929
+
930
+ fn current_func_name(&self, builder: &mut FunctionBuilder) -> Option<&str> {
931
+ let func_index = match &builder.func.name {
932
+ UserFuncName::User(user) => FuncIndex::from_u32(user.index),
933
+ _ => {
934
+ panic!("function name not a UserFuncName::User as expected")
935
+ }
936
+ };
937
+ self.translation
938
+ .debuginfo
939
+ .name_section
940
+ .func_names
941
+ .get(&func_index)
942
+ .map(|s| *s)
943
+ }
944
+ }
945
+
946
+ struct Call<'a, 'func, 'module_env> {
947
+ builder: &'a mut FunctionBuilder<'func>,
948
+ env: &'a mut FuncEnvironment<'module_env>,
949
+ tail: bool,
950
+ }
951
+
952
+ impl<'a, 'func, 'module_env> Call<'a, 'func, 'module_env> {
953
+ /// Create a new `Call` site that will do regular, non-tail calls.
954
+ pub fn new(
955
+ builder: &'a mut FunctionBuilder<'func>,
956
+ env: &'a mut FuncEnvironment<'module_env>,
957
+ ) -> Self {
958
+ Call {
959
+ builder,
960
+ env,
961
+ tail: false,
962
+ }
963
+ }
964
+
965
+ /// Create a new `Call` site that will perform tail calls.
966
+ pub fn new_tail(
967
+ builder: &'a mut FunctionBuilder<'func>,
968
+ env: &'a mut FuncEnvironment<'module_env>,
969
+ ) -> Self {
970
+ Call {
971
+ builder,
972
+ env,
973
+ tail: true,
974
+ }
975
+ }
976
+
977
+ /// Do a direct call to the given callee function.
978
+ pub fn direct_call(
979
+ mut self,
980
+ callee_index: FuncIndex,
981
+ callee: ir::FuncRef,
982
+ call_args: &[ir::Value],
983
+ ) -> WasmResult<ir::Inst> {
984
+ let mut real_call_args = Vec::with_capacity(call_args.len() + 2);
985
+ let caller_vmctx = self
986
+ .builder
987
+ .func
988
+ .special_param(ArgumentPurpose::VMContext)
989
+ .unwrap();
990
+
991
+ // Handle direct calls to locally-defined functions.
992
+ if !self.env.module.is_imported_function(callee_index) {
993
+ // First append the callee vmctx address, which is the same as the caller vmctx in
994
+ // this case.
995
+ real_call_args.push(caller_vmctx);
996
+
997
+ // Then append the caller vmctx address.
998
+ real_call_args.push(caller_vmctx);
999
+
1000
+ // Then append the regular call arguments.
1001
+ real_call_args.extend_from_slice(call_args);
1002
+
1003
+ // Finally, make the direct call!
1004
+ return Ok(self.direct_call_inst(callee, &real_call_args));
1005
+ }
1006
+
1007
+ // Handle direct calls to imported functions. We use an indirect call
1008
+ // so that we don't have to patch the code at runtime.
1009
+ let pointer_type = self.env.pointer_type();
1010
+ let sig_ref = self.builder.func.dfg.ext_funcs[callee].signature;
1011
+ let vmctx = self.env.vmctx(self.builder.func);
1012
+ let base = self.builder.ins().global_value(pointer_type, vmctx);
1013
+
1014
+ let mem_flags = ir::MemFlags::trusted().with_readonly();
1015
+
1016
+ // Load the callee address.
1017
+ let body_offset = i32::try_from(
1018
+ self.env
1019
+ .offsets
1020
+ .vmctx_vmfunction_import_wasm_call(callee_index),
1021
+ )
1022
+ .unwrap();
1023
+ let func_addr = self
1024
+ .builder
1025
+ .ins()
1026
+ .load(pointer_type, mem_flags, base, body_offset);
1027
+
1028
+ // First append the callee vmctx address.
1029
+ let vmctx_offset =
1030
+ i32::try_from(self.env.offsets.vmctx_vmfunction_import_vmctx(callee_index)).unwrap();
1031
+ let vmctx = self
1032
+ .builder
1033
+ .ins()
1034
+ .load(pointer_type, mem_flags, base, vmctx_offset);
1035
+ real_call_args.push(vmctx);
1036
+ real_call_args.push(caller_vmctx);
1037
+
1038
+ // Then append the regular call arguments.
1039
+ real_call_args.extend_from_slice(call_args);
1040
+
1041
+ // Finally, make the indirect call!
1042
+ Ok(self.indirect_call_inst(sig_ref, func_addr, &real_call_args))
1043
+ }
1044
+
1045
+ /// Do an indirect call through the given funcref table.
1046
+ pub fn indirect_call(
1047
+ mut self,
1048
+ table_index: TableIndex,
1049
+ table: ir::Table,
1050
+ ty_index: TypeIndex,
1051
+ sig_ref: ir::SigRef,
1052
+ callee: ir::Value,
1053
+ call_args: &[ir::Value],
1054
+ ) -> WasmResult<ir::Inst> {
1055
+ let pointer_type = self.env.pointer_type();
1056
+
1057
+ // Get the funcref pointer from the table.
1058
+ let funcref_ptr =
1059
+ self.env
1060
+ .get_or_init_func_ref_table_elem(self.builder, table_index, table, callee);
1061
+
1062
+ // Check for whether the table element is null, and trap if so.
1063
+ self.builder
1064
+ .ins()
1065
+ .trapz(funcref_ptr, ir::TrapCode::IndirectCallToNull);
1066
+
1067
+ // If necessary, check the signature.
1068
+ match self.env.module.table_plans[table_index].style {
1069
+ TableStyle::CallerChecksSignature => {
1070
+ let sig_id_size = self.env.offsets.size_of_vmshared_signature_index();
1071
+ let sig_id_type = Type::int(u16::from(sig_id_size) * 8).unwrap();
1072
+ let vmctx = self.env.vmctx(self.builder.func);
1073
+ let base = self.builder.ins().global_value(pointer_type, vmctx);
1074
+
1075
+ // Load the caller ID. This requires loading the `*mut
1076
+ // VMFuncRef` base pointer from `VMContext` and then loading,
1077
+ // based on `SignatureIndex`, the corresponding entry.
1078
+ let mem_flags = ir::MemFlags::trusted().with_readonly();
1079
+ let signatures = self.builder.ins().load(
1080
+ pointer_type,
1081
+ mem_flags,
1082
+ base,
1083
+ i32::try_from(self.env.offsets.vmctx_signature_ids_array()).unwrap(),
1084
+ );
1085
+ let sig_index = self.env.module.types[ty_index].unwrap_function();
1086
+ let offset =
1087
+ i32::try_from(sig_index.as_u32().checked_mul(sig_id_type.bytes()).unwrap())
1088
+ .unwrap();
1089
+ let caller_sig_id =
1090
+ self.builder
1091
+ .ins()
1092
+ .load(sig_id_type, mem_flags, signatures, offset);
1093
+
1094
+ // Load the callee ID.
1095
+ let mem_flags = ir::MemFlags::trusted().with_readonly();
1096
+ let callee_sig_id = self.builder.ins().load(
1097
+ sig_id_type,
1098
+ mem_flags,
1099
+ funcref_ptr,
1100
+ i32::from(self.env.offsets.ptr.vm_func_ref_type_index()),
1101
+ );
1102
+
1103
+ // Check that they match.
1104
+ let cmp = self
1105
+ .builder
1106
+ .ins()
1107
+ .icmp(IntCC::Equal, callee_sig_id, caller_sig_id);
1108
+ self.builder.ins().trapz(cmp, ir::TrapCode::BadSignature);
1109
+ }
1110
+ }
1111
+
1112
+ self.unchecked_call(sig_ref, funcref_ptr, call_args)
1113
+ }
1114
+
1115
+ /// Call a typed function reference.
1116
+ pub fn call_ref(
1117
+ mut self,
1118
+ sig_ref: ir::SigRef,
1119
+ callee: ir::Value,
1120
+ args: &[ir::Value],
1121
+ ) -> WasmResult<ir::Inst> {
1122
+ // Check for whether the callee is null, and trap if so.
1123
+ //
1124
+ // FIXME: the wasm type system tracks enough information to know whether
1125
+ // `callee` is a null reference or not. In some situations it can be
1126
+ // statically known here that `callee` cannot be null in which case this
1127
+ // null check can be elided. This requires feeding type information from
1128
+ // wasmparser's validator into this function, however, which is not
1129
+ // easily done at this time.
1130
+ self.builder
1131
+ .ins()
1132
+ .trapz(callee, ir::TrapCode::NullReference);
1133
+
1134
+ self.unchecked_call(sig_ref, callee, args)
1135
+ }
1136
+
1137
+ /// This calls a function by reference without checking the signature.
1138
+ ///
1139
+ /// It gets the function address, sets relevant flags, and passes the
1140
+ /// special callee/caller vmctxs. It is used by both call_indirect (which
1141
+ /// checks the signature) and call_ref (which doesn't).
1142
+ fn unchecked_call(
1143
+ &mut self,
1144
+ sig_ref: ir::SigRef,
1145
+ callee: ir::Value,
1146
+ call_args: &[ir::Value],
1147
+ ) -> WasmResult<ir::Inst> {
1148
+ let pointer_type = self.env.pointer_type();
1149
+
1150
+ // Dereference callee pointer to get the function address.
1151
+ let mem_flags = ir::MemFlags::trusted().with_readonly();
1152
+ let func_addr = self.builder.ins().load(
1153
+ pointer_type,
1154
+ mem_flags,
1155
+ callee,
1156
+ i32::from(self.env.offsets.ptr.vm_func_ref_wasm_call()),
1157
+ );
1158
+
1159
+ let mut real_call_args = Vec::with_capacity(call_args.len() + 2);
1160
+ let caller_vmctx = self
1161
+ .builder
1162
+ .func
1163
+ .special_param(ArgumentPurpose::VMContext)
1164
+ .unwrap();
1165
+
1166
+ // First append the callee vmctx address.
1167
+ let vmctx = self.builder.ins().load(
1168
+ pointer_type,
1169
+ mem_flags,
1170
+ callee,
1171
+ i32::from(self.env.offsets.ptr.vm_func_ref_vmctx()),
1172
+ );
1173
+ real_call_args.push(vmctx);
1174
+ real_call_args.push(caller_vmctx);
1175
+
1176
+ // Then append the regular call arguments.
1177
+ real_call_args.extend_from_slice(call_args);
1178
+
1179
+ Ok(self.indirect_call_inst(sig_ref, func_addr, &real_call_args))
1180
+ }
1181
+
1182
+ fn direct_call_inst(&mut self, callee: ir::FuncRef, args: &[ir::Value]) -> ir::Inst {
1183
+ if self.tail {
1184
+ self.builder.ins().return_call(callee, args)
1185
+ } else {
1186
+ self.builder.ins().call(callee, args)
1187
+ }
1188
+ }
1189
+
1190
+ fn indirect_call_inst(
1191
+ &mut self,
1192
+ sig_ref: ir::SigRef,
1193
+ func_addr: ir::Value,
1194
+ args: &[ir::Value],
1195
+ ) -> ir::Inst {
1196
+ if self.tail {
1197
+ self.builder
1198
+ .ins()
1199
+ .return_call_indirect(sig_ref, func_addr, args)
1200
+ } else {
1201
+ self.builder.ins().call_indirect(sig_ref, func_addr, args)
1202
+ }
1203
+ }
1204
+ }
1205
+
1206
+ impl TypeConvert for FuncEnvironment<'_> {
1207
+ fn lookup_heap_type(&self, ty: wasmparser::UnpackedIndex) -> WasmHeapType {
1208
+ wasmtime_environ::WasmparserTypeConverter {
1209
+ module: self.module,
1210
+ types: self.types,
1211
+ }
1212
+ .lookup_heap_type(ty)
1213
+ }
1214
+ }
1215
+
1216
+ impl<'module_environment> TargetEnvironment for FuncEnvironment<'module_environment> {
1217
+ fn target_config(&self) -> TargetFrontendConfig {
1218
+ self.isa.frontend_config()
1219
+ }
1220
+
1221
+ fn reference_type(&self, ty: WasmHeapType) -> ir::Type {
1222
+ crate::reference_type(ty, self.pointer_type())
1223
+ }
1224
+
1225
+ fn heap_access_spectre_mitigation(&self) -> bool {
1226
+ self.isa.flags().enable_heap_access_spectre_mitigation()
1227
+ }
1228
+
1229
+ fn proof_carrying_code(&self) -> bool {
1230
+ self.isa.flags().enable_pcc()
1231
+ }
1232
+ }
1233
+
1234
+ impl<'module_environment> cranelift_wasm::FuncEnvironment for FuncEnvironment<'module_environment> {
1235
+ fn heaps(&self) -> &PrimaryMap<Heap, HeapData> {
1236
+ &self.heaps
1237
+ }
1238
+
1239
+ fn is_wasm_parameter(&self, _signature: &ir::Signature, index: usize) -> bool {
1240
+ // The first two parameters are the vmctx and caller vmctx. The rest are
1241
+ // the wasm parameters.
1242
+ index >= 2
1243
+ }
1244
+
1245
+ fn after_locals(&mut self, num_locals: usize) {
1246
+ self.vmruntime_limits_ptr = Variable::new(num_locals);
1247
+ self.fuel_var = Variable::new(num_locals + 1);
1248
+ self.epoch_deadline_var = Variable::new(num_locals + 2);
1249
+ self.epoch_ptr_var = Variable::new(num_locals + 3);
1250
+ }
1251
+
1252
+ fn make_table(&mut self, func: &mut ir::Function, index: TableIndex) -> WasmResult<ir::Table> {
1253
+ let pointer_type = self.pointer_type();
1254
+
1255
+ let (ptr, base_offset, current_elements_offset) = {
1256
+ let vmctx = self.vmctx(func);
1257
+ if let Some(def_index) = self.module.defined_table_index(index) {
1258
+ let base_offset =
1259
+ i32::try_from(self.offsets.vmctx_vmtable_definition_base(def_index)).unwrap();
1260
+ let current_elements_offset = i32::try_from(
1261
+ self.offsets
1262
+ .vmctx_vmtable_definition_current_elements(def_index),
1263
+ )
1264
+ .unwrap();
1265
+ (vmctx, base_offset, current_elements_offset)
1266
+ } else {
1267
+ let from_offset = self.offsets.vmctx_vmtable_import_from(index);
1268
+ let table = func.create_global_value(ir::GlobalValueData::Load {
1269
+ base: vmctx,
1270
+ offset: Offset32::new(i32::try_from(from_offset).unwrap()),
1271
+ global_type: pointer_type,
1272
+ flags: MemFlags::trusted().with_readonly(),
1273
+ });
1274
+ let base_offset = i32::from(self.offsets.vmtable_definition_base());
1275
+ let current_elements_offset =
1276
+ i32::from(self.offsets.vmtable_definition_current_elements());
1277
+ (table, base_offset, current_elements_offset)
1278
+ }
1279
+ };
1280
+
1281
+ let base_gv = func.create_global_value(ir::GlobalValueData::Load {
1282
+ base: ptr,
1283
+ offset: Offset32::new(base_offset),
1284
+ global_type: pointer_type,
1285
+ flags: MemFlags::trusted(),
1286
+ });
1287
+ let bound_gv = func.create_global_value(ir::GlobalValueData::Load {
1288
+ base: ptr,
1289
+ offset: Offset32::new(current_elements_offset),
1290
+ global_type: ir::Type::int(
1291
+ u16::from(self.offsets.size_of_vmtable_definition_current_elements()) * 8,
1292
+ )
1293
+ .unwrap(),
1294
+ flags: MemFlags::trusted(),
1295
+ });
1296
+
1297
+ let element_size = u64::from(
1298
+ self.reference_type(self.module.table_plans[index].table.wasm_ty.heap_type)
1299
+ .bytes(),
1300
+ );
1301
+
1302
+ Ok(func.create_table(ir::TableData {
1303
+ base_gv,
1304
+ min_size: Uimm64::new(0),
1305
+ bound_gv,
1306
+ element_size: Uimm64::new(element_size),
1307
+ index_type: I32,
1308
+ }))
1309
+ }
1310
+
1311
+ fn translate_table_grow(
1312
+ &mut self,
1313
+ mut pos: cranelift_codegen::cursor::FuncCursor<'_>,
1314
+ table_index: TableIndex,
1315
+ _table: ir::Table,
1316
+ delta: ir::Value,
1317
+ init_value: ir::Value,
1318
+ ) -> WasmResult<ir::Value> {
1319
+ let (func_idx, func_sig) =
1320
+ match self.module.table_plans[table_index].table.wasm_ty.heap_type {
1321
+ WasmHeapType::Func | WasmHeapType::TypedFunc(_) => (
1322
+ BuiltinFunctionIndex::table_grow_func_ref(),
1323
+ self.builtin_function_signatures
1324
+ .table_grow_func_ref(&mut pos.func),
1325
+ ),
1326
+ WasmHeapType::Extern => (
1327
+ BuiltinFunctionIndex::table_grow_externref(),
1328
+ self.builtin_function_signatures
1329
+ .table_grow_externref(&mut pos.func),
1330
+ ),
1331
+ };
1332
+
1333
+ let (vmctx, func_addr) = self.translate_load_builtin_function_address(&mut pos, func_idx);
1334
+
1335
+ let table_index_arg = pos.ins().iconst(I32, table_index.as_u32() as i64);
1336
+ let call_inst = pos.ins().call_indirect(
1337
+ func_sig,
1338
+ func_addr,
1339
+ &[vmctx, table_index_arg, delta, init_value],
1340
+ );
1341
+
1342
+ Ok(pos.func.dfg.first_result(call_inst))
1343
+ }
1344
+
1345
+ fn translate_table_get(
1346
+ &mut self,
1347
+ builder: &mut FunctionBuilder,
1348
+ table_index: TableIndex,
1349
+ table: ir::Table,
1350
+ index: ir::Value,
1351
+ ) -> WasmResult<ir::Value> {
1352
+ let pointer_type = self.pointer_type();
1353
+
1354
+ let plan = &self.module.table_plans[table_index];
1355
+ match plan.table.wasm_ty.heap_type {
1356
+ WasmHeapType::Func | WasmHeapType::TypedFunc(_) => match plan.style {
1357
+ TableStyle::CallerChecksSignature => {
1358
+ Ok(self.get_or_init_func_ref_table_elem(builder, table_index, table, index))
1359
+ }
1360
+ },
1361
+ WasmHeapType::Extern => {
1362
+ // Our read barrier for `externref` tables is roughly equivalent
1363
+ // to the following pseudocode:
1364
+ //
1365
+ // ```
1366
+ // let elem = table[index]
1367
+ // if elem is not null:
1368
+ // let (next, end) = VMExternRefActivationsTable bump region
1369
+ // if next != end:
1370
+ // elem.ref_count += 1
1371
+ // *next = elem
1372
+ // next += 1
1373
+ // else:
1374
+ // call activations_table_insert_with_gc(elem)
1375
+ // return elem
1376
+ // ```
1377
+ //
1378
+ // This ensures that all `externref`s coming out of tables and
1379
+ // onto the stack are safely held alive by the
1380
+ // `VMExternRefActivationsTable`.
1381
+
1382
+ let reference_type = self.reference_type(WasmHeapType::Extern);
1383
+
1384
+ builder.ensure_inserted_block();
1385
+ let continue_block = builder.create_block();
1386
+ let non_null_elem_block = builder.create_block();
1387
+ let gc_block = builder.create_block();
1388
+ let no_gc_block = builder.create_block();
1389
+ let current_block = builder.current_block().unwrap();
1390
+ builder.insert_block_after(non_null_elem_block, current_block);
1391
+ builder.insert_block_after(no_gc_block, non_null_elem_block);
1392
+ builder.insert_block_after(gc_block, no_gc_block);
1393
+ builder.insert_block_after(continue_block, gc_block);
1394
+
1395
+ // Load the table element.
1396
+ let elem_addr = builder.ins().table_addr(pointer_type, table, index, 0);
1397
+ let flags = ir::MemFlags::trusted().with_table();
1398
+ let elem = builder.ins().load(reference_type, flags, elem_addr, 0);
1399
+
1400
+ let elem_is_null = builder.ins().is_null(elem);
1401
+ builder
1402
+ .ins()
1403
+ .brif(elem_is_null, continue_block, &[], non_null_elem_block, &[]);
1404
+
1405
+ // Load the `VMExternRefActivationsTable::next` bump finger and
1406
+ // the `VMExternRefActivationsTable::end` bump boundary.
1407
+ builder.switch_to_block(non_null_elem_block);
1408
+ let vmctx = self.vmctx(&mut builder.func);
1409
+ let vmctx = builder.ins().global_value(pointer_type, vmctx);
1410
+ let activations_table = builder.ins().load(
1411
+ pointer_type,
1412
+ ir::MemFlags::trusted(),
1413
+ vmctx,
1414
+ i32::try_from(self.offsets.vmctx_externref_activations_table()).unwrap(),
1415
+ );
1416
+ let next = builder.ins().load(
1417
+ pointer_type,
1418
+ ir::MemFlags::trusted(),
1419
+ activations_table,
1420
+ i32::try_from(self.offsets.vm_extern_ref_activation_table_next()).unwrap(),
1421
+ );
1422
+ let end = builder.ins().load(
1423
+ pointer_type,
1424
+ ir::MemFlags::trusted(),
1425
+ activations_table,
1426
+ i32::try_from(self.offsets.vm_extern_ref_activation_table_end()).unwrap(),
1427
+ );
1428
+
1429
+ // If `next == end`, then we are at full capacity. Call a
1430
+ // builtin to do a GC and insert this reference into the
1431
+ // just-swept table for us.
1432
+ let at_capacity = builder.ins().icmp(ir::condcodes::IntCC::Equal, next, end);
1433
+ builder
1434
+ .ins()
1435
+ .brif(at_capacity, gc_block, &[], no_gc_block, &[]);
1436
+ builder.switch_to_block(gc_block);
1437
+ let builtin_idx = BuiltinFunctionIndex::activations_table_insert_with_gc();
1438
+ let builtin_sig = self
1439
+ .builtin_function_signatures
1440
+ .activations_table_insert_with_gc(builder.func);
1441
+ let (vmctx, builtin_addr) = self
1442
+ .translate_load_builtin_function_address(&mut builder.cursor(), builtin_idx);
1443
+ builder
1444
+ .ins()
1445
+ .call_indirect(builtin_sig, builtin_addr, &[vmctx, elem]);
1446
+ builder.ins().jump(continue_block, &[]);
1447
+
1448
+ // If `next != end`, then:
1449
+ //
1450
+ // * increment this reference's ref count,
1451
+ // * store the reference into the bump table at `*next`,
1452
+ // * and finally increment the `next` bump finger.
1453
+ builder.switch_to_block(no_gc_block);
1454
+ self.mutate_externref_ref_count(builder, elem, 1);
1455
+ builder.ins().store(ir::MemFlags::trusted(), elem, next, 0);
1456
+
1457
+ let new_next = builder
1458
+ .ins()
1459
+ .iadd_imm(next, i64::from(reference_type.bytes()));
1460
+ builder.ins().store(
1461
+ ir::MemFlags::trusted(),
1462
+ new_next,
1463
+ activations_table,
1464
+ i32::try_from(self.offsets.vm_extern_ref_activation_table_next()).unwrap(),
1465
+ );
1466
+
1467
+ builder.ins().jump(continue_block, &[]);
1468
+ builder.switch_to_block(continue_block);
1469
+
1470
+ builder.seal_block(non_null_elem_block);
1471
+ builder.seal_block(gc_block);
1472
+ builder.seal_block(no_gc_block);
1473
+ builder.seal_block(continue_block);
1474
+
1475
+ Ok(elem)
1476
+ }
1477
+ }
1478
+ }
1479
+
1480
+ fn translate_table_set(
1481
+ &mut self,
1482
+ builder: &mut FunctionBuilder,
1483
+ table_index: TableIndex,
1484
+ table: ir::Table,
1485
+ value: ir::Value,
1486
+ index: ir::Value,
1487
+ ) -> WasmResult<()> {
1488
+ let pointer_type = self.pointer_type();
1489
+ let plan = &self.module.table_plans[table_index];
1490
+ match plan.table.wasm_ty.heap_type {
1491
+ WasmHeapType::Func | WasmHeapType::TypedFunc(_) => match plan.style {
1492
+ TableStyle::CallerChecksSignature => {
1493
+ let table_entry_addr = builder.ins().table_addr(pointer_type, table, index, 0);
1494
+ // Set the "initialized bit". See doc-comment on
1495
+ // `FUNCREF_INIT_BIT` in
1496
+ // crates/environ/src/ref_bits.rs for details.
1497
+ let value_with_init_bit = builder
1498
+ .ins()
1499
+ .bor_imm(value, Imm64::from(FUNCREF_INIT_BIT as i64));
1500
+ let flags = ir::MemFlags::trusted().with_table();
1501
+ builder
1502
+ .ins()
1503
+ .store(flags, value_with_init_bit, table_entry_addr, 0);
1504
+ Ok(())
1505
+ }
1506
+ },
1507
+
1508
+ WasmHeapType::Extern => {
1509
+ // Our write barrier for `externref`s being copied out of the
1510
+ // stack and into a table is roughly equivalent to the following
1511
+ // pseudocode:
1512
+ //
1513
+ // ```
1514
+ // if value != null:
1515
+ // value.ref_count += 1
1516
+ // let current_elem = table[index]
1517
+ // table[index] = value
1518
+ // if current_elem != null:
1519
+ // current_elem.ref_count -= 1
1520
+ // if current_elem.ref_count == 0:
1521
+ // call drop_externref(current_elem)
1522
+ // ```
1523
+ //
1524
+ // This write barrier is responsible for ensuring that:
1525
+ //
1526
+ // 1. The value's ref count is incremented now that the
1527
+ // table is holding onto it. This is required for memory safety.
1528
+ //
1529
+ // 2. The old table element, if any, has its ref count
1530
+ // decremented, and that the wrapped data is dropped if the
1531
+ // ref count reaches zero. This is not required for memory
1532
+ // safety, but is required to avoid leaks. Furthermore, the
1533
+ // destructor might GC or touch this table, so we must only
1534
+ // drop the old table element *after* we've replaced it with
1535
+ // the new `value`!
1536
+
1537
+ builder.ensure_inserted_block();
1538
+ let current_block = builder.current_block().unwrap();
1539
+ let inc_ref_count_block = builder.create_block();
1540
+ builder.insert_block_after(inc_ref_count_block, current_block);
1541
+ let check_current_elem_block = builder.create_block();
1542
+ builder.insert_block_after(check_current_elem_block, inc_ref_count_block);
1543
+ let dec_ref_count_block = builder.create_block();
1544
+ builder.insert_block_after(dec_ref_count_block, check_current_elem_block);
1545
+ let drop_block = builder.create_block();
1546
+ builder.insert_block_after(drop_block, dec_ref_count_block);
1547
+ let continue_block = builder.create_block();
1548
+ builder.insert_block_after(continue_block, drop_block);
1549
+
1550
+ // Calculate the table address of the current element and do
1551
+ // bounds checks. This is the first thing we do, because we
1552
+ // don't want to modify any ref counts if this `table.set` is
1553
+ // going to trap.
1554
+ let table_entry_addr = builder.ins().table_addr(pointer_type, table, index, 0);
1555
+
1556
+ // If value is not null, increment `value`'s ref count.
1557
+ //
1558
+ // This has to come *before* decrementing the current table
1559
+ // element's ref count, because it might reach ref count == zero,
1560
+ // causing us to deallocate the current table element. However,
1561
+ // if `value` *is* the current table element (and therefore this
1562
+ // whole `table.set` is a no-op), then we would incorrectly
1563
+ // deallocate `value` and leave it in the table, leading to use
1564
+ // after free.
1565
+ let value_is_null = builder.ins().is_null(value);
1566
+ builder.ins().brif(
1567
+ value_is_null,
1568
+ check_current_elem_block,
1569
+ &[],
1570
+ inc_ref_count_block,
1571
+ &[],
1572
+ );
1573
+ builder.switch_to_block(inc_ref_count_block);
1574
+ self.mutate_externref_ref_count(builder, value, 1);
1575
+ builder.ins().jump(check_current_elem_block, &[]);
1576
+
1577
+ // Grab the current element from the table, and store the new
1578
+ // `value` into the table.
1579
+ //
1580
+ // Note that we load the current element as a pointer, not a
1581
+ // reference. This is so that if we call out-of-line to run its
1582
+ // destructor, and its destructor triggers GC, this reference is
1583
+ // not recorded in the stack map (which would lead to the GC
1584
+ // saving a reference to a deallocated object, and then using it
1585
+ // after its been freed).
1586
+ builder.switch_to_block(check_current_elem_block);
1587
+ let flags = ir::MemFlags::trusted().with_table();
1588
+ let current_elem = builder.ins().load(pointer_type, flags, table_entry_addr, 0);
1589
+ builder.ins().store(flags, value, table_entry_addr, 0);
1590
+
1591
+ // If the current element is non-null, decrement its reference
1592
+ // count. And if its reference count has reached zero, then make
1593
+ // an out-of-line call to deallocate it.
1594
+ let current_elem_is_null =
1595
+ builder
1596
+ .ins()
1597
+ .icmp_imm(ir::condcodes::IntCC::Equal, current_elem, 0);
1598
+ builder.ins().brif(
1599
+ current_elem_is_null,
1600
+ continue_block,
1601
+ &[],
1602
+ dec_ref_count_block,
1603
+ &[],
1604
+ );
1605
+
1606
+ builder.switch_to_block(dec_ref_count_block);
1607
+ let prev_ref_count = self.mutate_externref_ref_count(builder, current_elem, -1);
1608
+ let one = builder.ins().iconst(pointer_type, 1);
1609
+ let cond = builder.ins().icmp(IntCC::Equal, one, prev_ref_count);
1610
+ builder
1611
+ .ins()
1612
+ .brif(cond, drop_block, &[], continue_block, &[]);
1613
+
1614
+ // Call the `drop_externref` builtin to (you guessed it) drop
1615
+ // the `externref`.
1616
+ builder.switch_to_block(drop_block);
1617
+ let builtin_idx = BuiltinFunctionIndex::drop_externref();
1618
+ let builtin_sig = self
1619
+ .builtin_function_signatures
1620
+ .drop_externref(builder.func);
1621
+ let (vmctx, builtin_addr) = self
1622
+ .translate_load_builtin_function_address(&mut builder.cursor(), builtin_idx);
1623
+ builder
1624
+ .ins()
1625
+ .call_indirect(builtin_sig, builtin_addr, &[vmctx, current_elem]);
1626
+ builder.ins().jump(continue_block, &[]);
1627
+
1628
+ builder.switch_to_block(continue_block);
1629
+
1630
+ builder.seal_block(inc_ref_count_block);
1631
+ builder.seal_block(check_current_elem_block);
1632
+ builder.seal_block(dec_ref_count_block);
1633
+ builder.seal_block(drop_block);
1634
+ builder.seal_block(continue_block);
1635
+
1636
+ Ok(())
1637
+ }
1638
+ }
1639
+ }
1640
+
1641
+ fn translate_table_fill(
1642
+ &mut self,
1643
+ mut pos: cranelift_codegen::cursor::FuncCursor<'_>,
1644
+ table_index: TableIndex,
1645
+ dst: ir::Value,
1646
+ val: ir::Value,
1647
+ len: ir::Value,
1648
+ ) -> WasmResult<()> {
1649
+ let (builtin_idx, builtin_sig) =
1650
+ match self.module.table_plans[table_index].table.wasm_ty.heap_type {
1651
+ WasmHeapType::Func | WasmHeapType::TypedFunc(_) => (
1652
+ BuiltinFunctionIndex::table_fill_func_ref(),
1653
+ self.builtin_function_signatures
1654
+ .table_fill_func_ref(&mut pos.func),
1655
+ ),
1656
+ WasmHeapType::Extern => (
1657
+ BuiltinFunctionIndex::table_fill_externref(),
1658
+ self.builtin_function_signatures
1659
+ .table_fill_externref(&mut pos.func),
1660
+ ),
1661
+ };
1662
+
1663
+ let (vmctx, builtin_addr) =
1664
+ self.translate_load_builtin_function_address(&mut pos, builtin_idx);
1665
+
1666
+ let table_index_arg = pos.ins().iconst(I32, table_index.as_u32() as i64);
1667
+ pos.ins().call_indirect(
1668
+ builtin_sig,
1669
+ builtin_addr,
1670
+ &[vmctx, table_index_arg, dst, val, len],
1671
+ );
1672
+
1673
+ Ok(())
1674
+ }
1675
+
1676
+ fn translate_ref_null(
1677
+ &mut self,
1678
+ mut pos: cranelift_codegen::cursor::FuncCursor,
1679
+ ht: WasmHeapType,
1680
+ ) -> WasmResult<ir::Value> {
1681
+ Ok(match ht {
1682
+ WasmHeapType::Func | WasmHeapType::TypedFunc(_) => {
1683
+ pos.ins().iconst(self.pointer_type(), 0)
1684
+ }
1685
+ WasmHeapType::Extern => pos.ins().null(self.reference_type(ht)),
1686
+ })
1687
+ }
1688
+
1689
+ fn translate_ref_is_null(
1690
+ &mut self,
1691
+ mut pos: cranelift_codegen::cursor::FuncCursor,
1692
+ value: ir::Value,
1693
+ ) -> WasmResult<ir::Value> {
1694
+ let bool_is_null = match pos.func.dfg.value_type(value) {
1695
+ // `externref`
1696
+ ty if ty.is_ref() => pos.ins().is_null(value),
1697
+ // `funcref`
1698
+ ty if ty == self.pointer_type() => {
1699
+ pos.ins()
1700
+ .icmp_imm(cranelift_codegen::ir::condcodes::IntCC::Equal, value, 0)
1701
+ }
1702
+ _ => unreachable!(),
1703
+ };
1704
+
1705
+ Ok(pos.ins().uextend(ir::types::I32, bool_is_null))
1706
+ }
1707
+
1708
+ fn translate_ref_func(
1709
+ &mut self,
1710
+ mut pos: cranelift_codegen::cursor::FuncCursor<'_>,
1711
+ func_index: FuncIndex,
1712
+ ) -> WasmResult<ir::Value> {
1713
+ let func_index = pos.ins().iconst(I32, func_index.as_u32() as i64);
1714
+ let builtin_index = BuiltinFunctionIndex::ref_func();
1715
+ let builtin_sig = self.builtin_function_signatures.ref_func(&mut pos.func);
1716
+ let (vmctx, builtin_addr) =
1717
+ self.translate_load_builtin_function_address(&mut pos, builtin_index);
1718
+
1719
+ let call_inst = pos
1720
+ .ins()
1721
+ .call_indirect(builtin_sig, builtin_addr, &[vmctx, func_index]);
1722
+ Ok(pos.func.dfg.first_result(call_inst))
1723
+ }
1724
+
1725
+ fn translate_custom_global_get(
1726
+ &mut self,
1727
+ mut pos: cranelift_codegen::cursor::FuncCursor<'_>,
1728
+ index: cranelift_wasm::GlobalIndex,
1729
+ ) -> WasmResult<ir::Value> {
1730
+ debug_assert_eq!(
1731
+ self.module.globals[index].wasm_ty,
1732
+ WasmType::Ref(WasmRefType::EXTERNREF),
1733
+ "We only use GlobalVariable::Custom for externref"
1734
+ );
1735
+
1736
+ let builtin_index = BuiltinFunctionIndex::externref_global_get();
1737
+ let builtin_sig = self
1738
+ .builtin_function_signatures
1739
+ .externref_global_get(&mut pos.func);
1740
+
1741
+ let (vmctx, builtin_addr) =
1742
+ self.translate_load_builtin_function_address(&mut pos, builtin_index);
1743
+
1744
+ let global_index_arg = pos.ins().iconst(I32, index.as_u32() as i64);
1745
+ let call_inst =
1746
+ pos.ins()
1747
+ .call_indirect(builtin_sig, builtin_addr, &[vmctx, global_index_arg]);
1748
+
1749
+ Ok(pos.func.dfg.first_result(call_inst))
1750
+ }
1751
+
1752
+ fn translate_custom_global_set(
1753
+ &mut self,
1754
+ mut pos: cranelift_codegen::cursor::FuncCursor<'_>,
1755
+ index: cranelift_wasm::GlobalIndex,
1756
+ value: ir::Value,
1757
+ ) -> WasmResult<()> {
1758
+ debug_assert_eq!(
1759
+ self.module.globals[index].wasm_ty,
1760
+ WasmType::Ref(WasmRefType::EXTERNREF),
1761
+ "We only use GlobalVariable::Custom for externref"
1762
+ );
1763
+
1764
+ let builtin_index = BuiltinFunctionIndex::externref_global_set();
1765
+ let builtin_sig = self
1766
+ .builtin_function_signatures
1767
+ .externref_global_set(&mut pos.func);
1768
+
1769
+ let (vmctx, builtin_addr) =
1770
+ self.translate_load_builtin_function_address(&mut pos, builtin_index);
1771
+
1772
+ let global_index_arg = pos.ins().iconst(I32, index.as_u32() as i64);
1773
+ pos.ins()
1774
+ .call_indirect(builtin_sig, builtin_addr, &[vmctx, global_index_arg, value]);
1775
+
1776
+ Ok(())
1777
+ }
1778
+
1779
+ fn make_heap(&mut self, func: &mut ir::Function, index: MemoryIndex) -> WasmResult<Heap> {
1780
+ let pointer_type = self.pointer_type();
1781
+ let is_shared = self.module.memory_plans[index].memory.shared;
1782
+
1783
+ let min_size = self.module.memory_plans[index]
1784
+ .memory
1785
+ .minimum
1786
+ .checked_mul(u64::from(WASM_PAGE_SIZE))
1787
+ .unwrap_or_else(|| {
1788
+ // The only valid Wasm memory size that won't fit in a 64-bit
1789
+ // integer is the maximum memory64 size (2^64) which is one
1790
+ // larger than `u64::MAX` (2^64 - 1). In this case, just say the
1791
+ // minimum heap size is `u64::MAX`.
1792
+ debug_assert_eq!(self.module.memory_plans[index].memory.minimum, 1 << 48);
1793
+ u64::MAX
1794
+ });
1795
+
1796
+ let max_size = self.module.memory_plans[index]
1797
+ .memory
1798
+ .maximum
1799
+ .and_then(|max| max.checked_mul(u64::from(WASM_PAGE_SIZE)));
1800
+
1801
+ let (ptr, base_offset, current_length_offset, ptr_memtype) = {
1802
+ let vmctx = self.vmctx(func);
1803
+ if let Some(def_index) = self.module.defined_memory_index(index) {
1804
+ if is_shared {
1805
+ // As with imported memory, the `VMMemoryDefinition` for a
1806
+ // shared memory is stored elsewhere. We store a `*mut
1807
+ // VMMemoryDefinition` to it and dereference that when
1808
+ // atomically growing it.
1809
+ let from_offset = self.offsets.vmctx_vmmemory_pointer(def_index);
1810
+ let memory = func.create_global_value(ir::GlobalValueData::Load {
1811
+ base: vmctx,
1812
+ offset: Offset32::new(i32::try_from(from_offset).unwrap()),
1813
+ global_type: pointer_type,
1814
+ flags: MemFlags::trusted().with_readonly(),
1815
+ });
1816
+ let base_offset = i32::from(self.offsets.ptr.vmmemory_definition_base());
1817
+ let current_length_offset =
1818
+ i32::from(self.offsets.ptr.vmmemory_definition_current_length());
1819
+ (memory, base_offset, current_length_offset, None)
1820
+ } else {
1821
+ let owned_index = self.module.owned_memory_index(def_index);
1822
+ let owned_base_offset =
1823
+ self.offsets.vmctx_vmmemory_definition_base(owned_index);
1824
+ let owned_length_offset = self
1825
+ .offsets
1826
+ .vmctx_vmmemory_definition_current_length(owned_index);
1827
+ let current_base_offset = i32::try_from(owned_base_offset).unwrap();
1828
+ let current_length_offset = i32::try_from(owned_length_offset).unwrap();
1829
+ (
1830
+ vmctx,
1831
+ current_base_offset,
1832
+ current_length_offset,
1833
+ self.pcc_vmctx_memtype,
1834
+ )
1835
+ }
1836
+ } else {
1837
+ let from_offset = self.offsets.vmctx_vmmemory_import_from(index);
1838
+ let memory = func.create_global_value(ir::GlobalValueData::Load {
1839
+ base: vmctx,
1840
+ offset: Offset32::new(i32::try_from(from_offset).unwrap()),
1841
+ global_type: pointer_type,
1842
+ flags: MemFlags::trusted().with_readonly(),
1843
+ });
1844
+ let base_offset = i32::from(self.offsets.ptr.vmmemory_definition_base());
1845
+ let current_length_offset =
1846
+ i32::from(self.offsets.ptr.vmmemory_definition_current_length());
1847
+ (memory, base_offset, current_length_offset, None)
1848
+ }
1849
+ };
1850
+
1851
+ // If we have a declared maximum, we can make this a "static" heap, which is
1852
+ // allocated up front and never moved.
1853
+ let (offset_guard_size, heap_style, readonly_base, base_fact, memory_type) =
1854
+ match self.module.memory_plans[index] {
1855
+ MemoryPlan {
1856
+ style: MemoryStyle::Dynamic { .. },
1857
+ offset_guard_size,
1858
+ pre_guard_size: _,
1859
+ memory: _,
1860
+ } => {
1861
+ let heap_bound = func.create_global_value(ir::GlobalValueData::Load {
1862
+ base: ptr,
1863
+ offset: Offset32::new(current_length_offset),
1864
+ global_type: pointer_type,
1865
+ flags: MemFlags::trusted(),
1866
+ });
1867
+
1868
+ let (base_fact, data_mt) = if let Some(ptr_memtype) = ptr_memtype {
1869
+ // Create a memtype representing the untyped memory region.
1870
+ let data_mt = func.create_memory_type(ir::MemoryTypeData::DynamicMemory {
1871
+ gv: heap_bound,
1872
+ size: offset_guard_size,
1873
+ });
1874
+ // This fact applies to any pointer to the start of the memory.
1875
+ let base_fact = ir::Fact::dynamic_base_ptr(data_mt);
1876
+ // This fact applies to the length.
1877
+ let length_fact = ir::Fact::global_value(
1878
+ u16::try_from(self.isa.pointer_type().bits()).unwrap(),
1879
+ heap_bound,
1880
+ );
1881
+ // Create a field in the vmctx for the base pointer.
1882
+ match &mut func.memory_types[ptr_memtype] {
1883
+ ir::MemoryTypeData::Struct { size, fields } => {
1884
+ let base_offset = u64::try_from(base_offset).unwrap();
1885
+ fields.push(ir::MemoryTypeField {
1886
+ offset: base_offset,
1887
+ ty: self.isa.pointer_type(),
1888
+ // Read-only field from the PoV of PCC checks:
1889
+ // don't allow stores to this field. (Even if
1890
+ // it is a dynamic memory whose base can
1891
+ // change, that update happens inside the
1892
+ // runtime, not in generated code.)
1893
+ readonly: true,
1894
+ fact: Some(base_fact.clone()),
1895
+ });
1896
+ let current_length_offset =
1897
+ u64::try_from(current_length_offset).unwrap();
1898
+ fields.push(ir::MemoryTypeField {
1899
+ offset: current_length_offset,
1900
+ ty: self.isa.pointer_type(),
1901
+ // As above, read-only; only the runtime modifies it.
1902
+ readonly: true,
1903
+ fact: Some(length_fact),
1904
+ });
1905
+
1906
+ let pointer_size = u64::from(self.isa.pointer_type().bytes());
1907
+ let fields_end = std::cmp::max(
1908
+ base_offset + pointer_size,
1909
+ current_length_offset + pointer_size,
1910
+ );
1911
+ *size = std::cmp::max(*size, fields_end);
1912
+ }
1913
+ _ => {}
1914
+ }
1915
+ // Apply a fact to the base pointer.
1916
+ (Some(base_fact), Some(data_mt))
1917
+ } else {
1918
+ (None, None)
1919
+ };
1920
+
1921
+ (
1922
+ offset_guard_size,
1923
+ HeapStyle::Dynamic {
1924
+ bound_gv: heap_bound,
1925
+ },
1926
+ false,
1927
+ base_fact,
1928
+ data_mt,
1929
+ )
1930
+ }
1931
+ MemoryPlan {
1932
+ style: MemoryStyle::Static { bound: bound_pages },
1933
+ offset_guard_size,
1934
+ pre_guard_size: _,
1935
+ memory: _,
1936
+ } => {
1937
+ let bound_bytes = u64::from(bound_pages) * u64::from(WASM_PAGE_SIZE);
1938
+ let (base_fact, data_mt) = if let Some(ptr_memtype) = ptr_memtype {
1939
+ // Create a memtype representing the untyped memory region.
1940
+ let data_mt = func.create_memory_type(ir::MemoryTypeData::Memory {
1941
+ size: bound_bytes
1942
+ .checked_add(offset_guard_size)
1943
+ .expect("Memory plan has overflowing size plus guard"),
1944
+ });
1945
+ // This fact applies to any pointer to the start of the memory.
1946
+ let base_fact = Fact::Mem {
1947
+ ty: data_mt,
1948
+ min_offset: 0,
1949
+ max_offset: 0,
1950
+ nullable: false,
1951
+ };
1952
+ // Create a field in the vmctx for the base pointer.
1953
+ match &mut func.memory_types[ptr_memtype] {
1954
+ ir::MemoryTypeData::Struct { size, fields } => {
1955
+ let offset = u64::try_from(base_offset).unwrap();
1956
+ fields.push(ir::MemoryTypeField {
1957
+ offset,
1958
+ ty: self.isa.pointer_type(),
1959
+ // Read-only field from the PoV of PCC checks:
1960
+ // don't allow stores to this field. (Even if
1961
+ // it is a dynamic memory whose base can
1962
+ // change, that update happens inside the
1963
+ // runtime, not in generated code.)
1964
+ readonly: true,
1965
+ fact: Some(base_fact.clone()),
1966
+ });
1967
+ *size = std::cmp::max(
1968
+ *size,
1969
+ offset + u64::from(self.isa.pointer_type().bytes()),
1970
+ );
1971
+ }
1972
+ _ => {}
1973
+ }
1974
+ // Apply a fact to the base pointer.
1975
+ (Some(base_fact), Some(data_mt))
1976
+ } else {
1977
+ (None, None)
1978
+ };
1979
+ (
1980
+ offset_guard_size,
1981
+ HeapStyle::Static { bound: bound_bytes },
1982
+ true,
1983
+ base_fact,
1984
+ data_mt,
1985
+ )
1986
+ }
1987
+ };
1988
+
1989
+ let mut flags = MemFlags::trusted().with_checked();
1990
+ if readonly_base {
1991
+ flags.set_readonly();
1992
+ }
1993
+ let heap_base = func.create_global_value(ir::GlobalValueData::Load {
1994
+ base: ptr,
1995
+ offset: Offset32::new(base_offset),
1996
+ global_type: pointer_type,
1997
+ flags,
1998
+ });
1999
+ func.global_value_facts[heap_base] = base_fact;
2000
+
2001
+ Ok(self.heaps.push(HeapData {
2002
+ base: heap_base,
2003
+ min_size,
2004
+ max_size,
2005
+ offset_guard_size,
2006
+ style: heap_style,
2007
+ index_type: self.memory_index_type(index),
2008
+ memory_type,
2009
+ }))
2010
+ }
2011
+
2012
+ fn make_global(
2013
+ &mut self,
2014
+ func: &mut ir::Function,
2015
+ index: GlobalIndex,
2016
+ ) -> WasmResult<GlobalVariable> {
2017
+ let ty = self.module.globals[index].wasm_ty;
2018
+ match ty {
2019
+ // Although `ExternRef`s live at the same memory location as any
2020
+ // other type of global at the same index would, getting or setting
2021
+ // them requires ref counting barriers. Therefore, we need to use
2022
+ // `GlobalVariable::Custom`, as that is the only kind of
2023
+ // `GlobalVariable` for which `cranelift-wasm` supports custom
2024
+ // access translation.
2025
+ WasmType::Ref(WasmRefType {
2026
+ heap_type: WasmHeapType::Extern,
2027
+ ..
2028
+ }) => return Ok(GlobalVariable::Custom),
2029
+
2030
+ // Funcrefs are represented as pointers which survive for the
2031
+ // entire lifetime of the `Store` so there's no need for barriers.
2032
+ // This means that they can fall through to memory as well.
2033
+ WasmType::Ref(WasmRefType {
2034
+ heap_type: WasmHeapType::Func | WasmHeapType::TypedFunc(_),
2035
+ ..
2036
+ }) => {}
2037
+
2038
+ // Value types all live in memory so let them fall through to a
2039
+ // memory-based global.
2040
+ WasmType::I32 | WasmType::I64 | WasmType::F32 | WasmType::F64 | WasmType::V128 => {}
2041
+ }
2042
+
2043
+ let (gv, offset) = self.get_global_location(func, index);
2044
+ Ok(GlobalVariable::Memory {
2045
+ gv,
2046
+ offset: offset.into(),
2047
+ ty: super::value_type(self.isa, ty),
2048
+ })
2049
+ }
2050
+
2051
+ fn make_indirect_sig(
2052
+ &mut self,
2053
+ func: &mut ir::Function,
2054
+ index: TypeIndex,
2055
+ ) -> WasmResult<ir::SigRef> {
2056
+ let index = self.module.types[index].unwrap_function();
2057
+ let sig = crate::wasm_call_signature(self.isa, &self.types[index], &self.tunables);
2058
+ Ok(func.import_signature(sig))
2059
+ }
2060
+
2061
+ fn make_direct_func(
2062
+ &mut self,
2063
+ func: &mut ir::Function,
2064
+ index: FuncIndex,
2065
+ ) -> WasmResult<ir::FuncRef> {
2066
+ let sig = self.module.functions[index].signature;
2067
+ let sig = crate::wasm_call_signature(self.isa, &self.types[sig], &self.tunables);
2068
+ let signature = func.import_signature(sig);
2069
+ let name =
2070
+ ir::ExternalName::User(func.declare_imported_user_function(ir::UserExternalName {
2071
+ namespace: 0,
2072
+ index: index.as_u32(),
2073
+ }));
2074
+ Ok(func.import_function(ir::ExtFuncData {
2075
+ name,
2076
+ signature,
2077
+
2078
+ // The value of this flag determines the codegen for calls to this
2079
+ // function. If this flag is `false` then absolute relocations will
2080
+ // be generated for references to the function, which requires
2081
+ // load-time relocation resolution. If this flag is set to `true`
2082
+ // then relative relocations are emitted which can be resolved at
2083
+ // object-link-time, just after all functions are compiled.
2084
+ //
2085
+ // This flag is set to `true` for functions defined in the object
2086
+ // we'll be defining in this compilation unit, or everything local
2087
+ // to the wasm module. This means that between functions in a wasm
2088
+ // module there's relative calls encoded. All calls external to a
2089
+ // wasm module (e.g. imports or libcalls) are either encoded through
2090
+ // the `VMContext` as relative jumps (hence no relocations) or
2091
+ // they're libcalls with absolute relocations.
2092
+ colocated: self.module.defined_func_index(index).is_some(),
2093
+ }))
2094
+ }
2095
+
2096
+ fn translate_call_indirect(
2097
+ &mut self,
2098
+ builder: &mut FunctionBuilder,
2099
+ table_index: TableIndex,
2100
+ table: ir::Table,
2101
+ ty_index: TypeIndex,
2102
+ sig_ref: ir::SigRef,
2103
+ callee: ir::Value,
2104
+ call_args: &[ir::Value],
2105
+ ) -> WasmResult<ir::Inst> {
2106
+ Call::new(builder, self).indirect_call(
2107
+ table_index,
2108
+ table,
2109
+ ty_index,
2110
+ sig_ref,
2111
+ callee,
2112
+ call_args,
2113
+ )
2114
+ }
2115
+
2116
+ fn translate_call(
2117
+ &mut self,
2118
+ builder: &mut FunctionBuilder,
2119
+ callee_index: FuncIndex,
2120
+ callee: ir::FuncRef,
2121
+ call_args: &[ir::Value],
2122
+ ) -> WasmResult<ir::Inst> {
2123
+ Call::new(builder, self).direct_call(callee_index, callee, call_args)
2124
+ }
2125
+
2126
+ fn translate_call_ref(
2127
+ &mut self,
2128
+ builder: &mut FunctionBuilder,
2129
+ sig_ref: ir::SigRef,
2130
+ callee: ir::Value,
2131
+ call_args: &[ir::Value],
2132
+ ) -> WasmResult<ir::Inst> {
2133
+ Call::new(builder, self).call_ref(sig_ref, callee, call_args)
2134
+ }
2135
+
2136
+ fn translate_return_call(
2137
+ &mut self,
2138
+ builder: &mut FunctionBuilder,
2139
+ callee_index: FuncIndex,
2140
+ callee: ir::FuncRef,
2141
+ call_args: &[ir::Value],
2142
+ ) -> WasmResult<()> {
2143
+ Call::new_tail(builder, self).direct_call(callee_index, callee, call_args)?;
2144
+ Ok(())
2145
+ }
2146
+
2147
+ fn translate_return_call_indirect(
2148
+ &mut self,
2149
+ builder: &mut FunctionBuilder,
2150
+ table_index: TableIndex,
2151
+ table: ir::Table,
2152
+ ty_index: TypeIndex,
2153
+ sig_ref: ir::SigRef,
2154
+ callee: ir::Value,
2155
+ call_args: &[ir::Value],
2156
+ ) -> WasmResult<()> {
2157
+ Call::new_tail(builder, self).indirect_call(
2158
+ table_index,
2159
+ table,
2160
+ ty_index,
2161
+ sig_ref,
2162
+ callee,
2163
+ call_args,
2164
+ )?;
2165
+ Ok(())
2166
+ }
2167
+
2168
+ fn translate_return_call_ref(
2169
+ &mut self,
2170
+ builder: &mut FunctionBuilder,
2171
+ sig_ref: ir::SigRef,
2172
+ callee: ir::Value,
2173
+ call_args: &[ir::Value],
2174
+ ) -> WasmResult<()> {
2175
+ Call::new_tail(builder, self).call_ref(sig_ref, callee, call_args)?;
2176
+ Ok(())
2177
+ }
2178
+
2179
+ fn translate_memory_grow(
2180
+ &mut self,
2181
+ mut pos: FuncCursor<'_>,
2182
+ index: MemoryIndex,
2183
+ _heap: Heap,
2184
+ val: ir::Value,
2185
+ ) -> WasmResult<ir::Value> {
2186
+ let func_sig = self
2187
+ .builtin_function_signatures
2188
+ .memory32_grow(&mut pos.func);
2189
+ let index_arg = index.index();
2190
+
2191
+ let memory_index = pos.ins().iconst(I32, index_arg as i64);
2192
+ let (vmctx, func_addr) = self.translate_load_builtin_function_address(
2193
+ &mut pos,
2194
+ BuiltinFunctionIndex::memory32_grow(),
2195
+ );
2196
+
2197
+ let val = self.cast_memory_index_to_i64(&mut pos, val, index);
2198
+ let call_inst = pos
2199
+ .ins()
2200
+ .call_indirect(func_sig, func_addr, &[vmctx, val, memory_index]);
2201
+ let result = *pos.func.dfg.inst_results(call_inst).first().unwrap();
2202
+ Ok(self.cast_pointer_to_memory_index(pos, result, index))
2203
+ }
2204
+
2205
+ fn translate_memory_size(
2206
+ &mut self,
2207
+ mut pos: FuncCursor<'_>,
2208
+ index: MemoryIndex,
2209
+ _heap: Heap,
2210
+ ) -> WasmResult<ir::Value> {
2211
+ let pointer_type = self.pointer_type();
2212
+ let vmctx = self.vmctx(&mut pos.func);
2213
+ let is_shared = self.module.memory_plans[index].memory.shared;
2214
+ let base = pos.ins().global_value(pointer_type, vmctx);
2215
+ let current_length_in_bytes = match self.module.defined_memory_index(index) {
2216
+ Some(def_index) => {
2217
+ if is_shared {
2218
+ let offset =
2219
+ i32::try_from(self.offsets.vmctx_vmmemory_pointer(def_index)).unwrap();
2220
+ let vmmemory_ptr =
2221
+ pos.ins()
2222
+ .load(pointer_type, ir::MemFlags::trusted(), base, offset);
2223
+ let vmmemory_definition_offset =
2224
+ i64::from(self.offsets.ptr.vmmemory_definition_current_length());
2225
+ let vmmemory_definition_ptr =
2226
+ pos.ins().iadd_imm(vmmemory_ptr, vmmemory_definition_offset);
2227
+ // This atomic access of the
2228
+ // `VMMemoryDefinition::current_length` is direct; no bounds
2229
+ // check is needed. This is possible because shared memory
2230
+ // has a static size (the maximum is always known). Shared
2231
+ // memory is thus built with a static memory plan and no
2232
+ // bounds-checked version of this is implemented.
2233
+ pos.ins().atomic_load(
2234
+ pointer_type,
2235
+ ir::MemFlags::trusted(),
2236
+ vmmemory_definition_ptr,
2237
+ )
2238
+ } else {
2239
+ let owned_index = self.module.owned_memory_index(def_index);
2240
+ let offset = i32::try_from(
2241
+ self.offsets
2242
+ .vmctx_vmmemory_definition_current_length(owned_index),
2243
+ )
2244
+ .unwrap();
2245
+ pos.ins()
2246
+ .load(pointer_type, ir::MemFlags::trusted(), base, offset)
2247
+ }
2248
+ }
2249
+ None => {
2250
+ let offset = i32::try_from(self.offsets.vmctx_vmmemory_import_from(index)).unwrap();
2251
+ let vmmemory_ptr =
2252
+ pos.ins()
2253
+ .load(pointer_type, ir::MemFlags::trusted(), base, offset);
2254
+ if is_shared {
2255
+ let vmmemory_definition_offset =
2256
+ i64::from(self.offsets.ptr.vmmemory_definition_current_length());
2257
+ let vmmemory_definition_ptr =
2258
+ pos.ins().iadd_imm(vmmemory_ptr, vmmemory_definition_offset);
2259
+ pos.ins().atomic_load(
2260
+ pointer_type,
2261
+ ir::MemFlags::trusted(),
2262
+ vmmemory_definition_ptr,
2263
+ )
2264
+ } else {
2265
+ pos.ins().load(
2266
+ pointer_type,
2267
+ ir::MemFlags::trusted(),
2268
+ vmmemory_ptr,
2269
+ i32::from(self.offsets.ptr.vmmemory_definition_current_length()),
2270
+ )
2271
+ }
2272
+ }
2273
+ };
2274
+ let current_length_in_pages = pos
2275
+ .ins()
2276
+ .udiv_imm(current_length_in_bytes, i64::from(WASM_PAGE_SIZE));
2277
+
2278
+ Ok(self.cast_pointer_to_memory_index(pos, current_length_in_pages, index))
2279
+ }
2280
+
2281
+ fn translate_memory_copy(
2282
+ &mut self,
2283
+ mut pos: FuncCursor,
2284
+ src_index: MemoryIndex,
2285
+ _src_heap: Heap,
2286
+ dst_index: MemoryIndex,
2287
+ _dst_heap: Heap,
2288
+ dst: ir::Value,
2289
+ src: ir::Value,
2290
+ len: ir::Value,
2291
+ ) -> WasmResult<()> {
2292
+ let (vmctx, func_addr) = self
2293
+ .translate_load_builtin_function_address(&mut pos, BuiltinFunctionIndex::memory_copy());
2294
+
2295
+ let func_sig = self.builtin_function_signatures.memory_copy(&mut pos.func);
2296
+ let dst = self.cast_memory_index_to_i64(&mut pos, dst, dst_index);
2297
+ let src = self.cast_memory_index_to_i64(&mut pos, src, src_index);
2298
+ // The length is 32-bit if either memory is 32-bit, but if they're both
2299
+ // 64-bit then it's 64-bit. Our intrinsic takes a 64-bit length for
2300
+ // compatibility across all memories, so make sure that it's cast
2301
+ // correctly here (this is a bit special so no generic helper unlike for
2302
+ // `dst`/`src` above)
2303
+ let len = if self.memory_index_type(dst_index) == I64
2304
+ && self.memory_index_type(src_index) == I64
2305
+ {
2306
+ len
2307
+ } else {
2308
+ pos.ins().uextend(I64, len)
2309
+ };
2310
+ let src_index = pos.ins().iconst(I32, i64::from(src_index.as_u32()));
2311
+ let dst_index = pos.ins().iconst(I32, i64::from(dst_index.as_u32()));
2312
+ pos.ins().call_indirect(
2313
+ func_sig,
2314
+ func_addr,
2315
+ &[vmctx, dst_index, dst, src_index, src, len],
2316
+ );
2317
+
2318
+ Ok(())
2319
+ }
2320
+
2321
+ fn translate_memory_fill(
2322
+ &mut self,
2323
+ mut pos: FuncCursor,
2324
+ memory_index: MemoryIndex,
2325
+ _heap: Heap,
2326
+ dst: ir::Value,
2327
+ val: ir::Value,
2328
+ len: ir::Value,
2329
+ ) -> WasmResult<()> {
2330
+ let func_sig = self.builtin_function_signatures.memory_fill(&mut pos.func);
2331
+ let dst = self.cast_memory_index_to_i64(&mut pos, dst, memory_index);
2332
+ let len = self.cast_memory_index_to_i64(&mut pos, len, memory_index);
2333
+ let memory_index_arg = pos.ins().iconst(I32, i64::from(memory_index.as_u32()));
2334
+
2335
+ let (vmctx, func_addr) = self
2336
+ .translate_load_builtin_function_address(&mut pos, BuiltinFunctionIndex::memory_fill());
2337
+
2338
+ pos.ins().call_indirect(
2339
+ func_sig,
2340
+ func_addr,
2341
+ &[vmctx, memory_index_arg, dst, val, len],
2342
+ );
2343
+
2344
+ Ok(())
2345
+ }
2346
+
2347
+ fn translate_memory_init(
2348
+ &mut self,
2349
+ mut pos: FuncCursor,
2350
+ memory_index: MemoryIndex,
2351
+ _heap: Heap,
2352
+ seg_index: u32,
2353
+ dst: ir::Value,
2354
+ src: ir::Value,
2355
+ len: ir::Value,
2356
+ ) -> WasmResult<()> {
2357
+ let (func_sig, func_idx) = self.get_memory_init_func(&mut pos.func);
2358
+
2359
+ let memory_index_arg = pos.ins().iconst(I32, memory_index.index() as i64);
2360
+ let seg_index_arg = pos.ins().iconst(I32, seg_index as i64);
2361
+
2362
+ let (vmctx, func_addr) = self.translate_load_builtin_function_address(&mut pos, func_idx);
2363
+
2364
+ let dst = self.cast_memory_index_to_i64(&mut pos, dst, memory_index);
2365
+
2366
+ pos.ins().call_indirect(
2367
+ func_sig,
2368
+ func_addr,
2369
+ &[vmctx, memory_index_arg, seg_index_arg, dst, src, len],
2370
+ );
2371
+
2372
+ Ok(())
2373
+ }
2374
+
2375
+ fn translate_data_drop(&mut self, mut pos: FuncCursor, seg_index: u32) -> WasmResult<()> {
2376
+ let (func_sig, func_idx) = self.get_data_drop_func(&mut pos.func);
2377
+ let seg_index_arg = pos.ins().iconst(I32, seg_index as i64);
2378
+ let (vmctx, func_addr) = self.translate_load_builtin_function_address(&mut pos, func_idx);
2379
+ pos.ins()
2380
+ .call_indirect(func_sig, func_addr, &[vmctx, seg_index_arg]);
2381
+ Ok(())
2382
+ }
2383
+
2384
+ fn translate_table_size(
2385
+ &mut self,
2386
+ mut pos: FuncCursor,
2387
+ _table_index: TableIndex,
2388
+ table: ir::Table,
2389
+ ) -> WasmResult<ir::Value> {
2390
+ let size_gv = pos.func.tables[table].bound_gv;
2391
+ Ok(pos.ins().global_value(ir::types::I32, size_gv))
2392
+ }
2393
+
2394
+ fn translate_table_copy(
2395
+ &mut self,
2396
+ mut pos: FuncCursor,
2397
+ dst_table_index: TableIndex,
2398
+ _dst_table: ir::Table,
2399
+ src_table_index: TableIndex,
2400
+ _src_table: ir::Table,
2401
+ dst: ir::Value,
2402
+ src: ir::Value,
2403
+ len: ir::Value,
2404
+ ) -> WasmResult<()> {
2405
+ let (func_sig, dst_table_index_arg, src_table_index_arg, func_idx) =
2406
+ self.get_table_copy_func(&mut pos.func, dst_table_index, src_table_index);
2407
+
2408
+ let dst_table_index_arg = pos.ins().iconst(I32, dst_table_index_arg as i64);
2409
+ let src_table_index_arg = pos.ins().iconst(I32, src_table_index_arg as i64);
2410
+
2411
+ let (vmctx, func_addr) = self.translate_load_builtin_function_address(&mut pos, func_idx);
2412
+
2413
+ pos.ins().call_indirect(
2414
+ func_sig,
2415
+ func_addr,
2416
+ &[
2417
+ vmctx,
2418
+ dst_table_index_arg,
2419
+ src_table_index_arg,
2420
+ dst,
2421
+ src,
2422
+ len,
2423
+ ],
2424
+ );
2425
+
2426
+ Ok(())
2427
+ }
2428
+
2429
+ fn translate_table_init(
2430
+ &mut self,
2431
+ mut pos: FuncCursor,
2432
+ seg_index: u32,
2433
+ table_index: TableIndex,
2434
+ _table: ir::Table,
2435
+ dst: ir::Value,
2436
+ src: ir::Value,
2437
+ len: ir::Value,
2438
+ ) -> WasmResult<()> {
2439
+ let (func_sig, table_index_arg, func_idx) =
2440
+ self.get_table_init_func(&mut pos.func, table_index);
2441
+
2442
+ let table_index_arg = pos.ins().iconst(I32, table_index_arg as i64);
2443
+ let seg_index_arg = pos.ins().iconst(I32, seg_index as i64);
2444
+
2445
+ let (vmctx, func_addr) = self.translate_load_builtin_function_address(&mut pos, func_idx);
2446
+
2447
+ pos.ins().call_indirect(
2448
+ func_sig,
2449
+ func_addr,
2450
+ &[vmctx, table_index_arg, seg_index_arg, dst, src, len],
2451
+ );
2452
+
2453
+ Ok(())
2454
+ }
2455
+
2456
+ fn translate_elem_drop(&mut self, mut pos: FuncCursor, elem_index: u32) -> WasmResult<()> {
2457
+ let (func_sig, func_idx) = self.get_elem_drop_func(&mut pos.func);
2458
+
2459
+ let elem_index_arg = pos.ins().iconst(I32, elem_index as i64);
2460
+
2461
+ let (vmctx, func_addr) = self.translate_load_builtin_function_address(&mut pos, func_idx);
2462
+
2463
+ pos.ins()
2464
+ .call_indirect(func_sig, func_addr, &[vmctx, elem_index_arg]);
2465
+
2466
+ Ok(())
2467
+ }
2468
+
2469
+ fn translate_atomic_wait(
2470
+ &mut self,
2471
+ mut pos: FuncCursor,
2472
+ memory_index: MemoryIndex,
2473
+ _heap: Heap,
2474
+ addr: ir::Value,
2475
+ expected: ir::Value,
2476
+ timeout: ir::Value,
2477
+ ) -> WasmResult<ir::Value> {
2478
+ let addr = self.cast_memory_index_to_i64(&mut pos, addr, memory_index);
2479
+ let implied_ty = pos.func.dfg.value_type(expected);
2480
+ let (func_sig, memory_index, func_idx) =
2481
+ self.get_memory_atomic_wait(&mut pos.func, memory_index, implied_ty);
2482
+
2483
+ let memory_index_arg = pos.ins().iconst(I32, memory_index as i64);
2484
+
2485
+ let (vmctx, func_addr) = self.translate_load_builtin_function_address(&mut pos, func_idx);
2486
+
2487
+ let call_inst = pos.ins().call_indirect(
2488
+ func_sig,
2489
+ func_addr,
2490
+ &[vmctx, memory_index_arg, addr, expected, timeout],
2491
+ );
2492
+
2493
+ Ok(*pos.func.dfg.inst_results(call_inst).first().unwrap())
2494
+ }
2495
+
2496
+ fn translate_atomic_notify(
2497
+ &mut self,
2498
+ mut pos: FuncCursor,
2499
+ memory_index: MemoryIndex,
2500
+ _heap: Heap,
2501
+ addr: ir::Value,
2502
+ count: ir::Value,
2503
+ ) -> WasmResult<ir::Value> {
2504
+ let addr = self.cast_memory_index_to_i64(&mut pos, addr, memory_index);
2505
+ let func_sig = self
2506
+ .builtin_function_signatures
2507
+ .memory_atomic_notify(&mut pos.func);
2508
+
2509
+ let memory_index_arg = pos.ins().iconst(I32, memory_index.index() as i64);
2510
+
2511
+ let (vmctx, func_addr) = self.translate_load_builtin_function_address(
2512
+ &mut pos,
2513
+ BuiltinFunctionIndex::memory_atomic_notify(),
2514
+ );
2515
+
2516
+ let call_inst =
2517
+ pos.ins()
2518
+ .call_indirect(func_sig, func_addr, &[vmctx, memory_index_arg, addr, count]);
2519
+
2520
+ Ok(*pos.func.dfg.inst_results(call_inst).first().unwrap())
2521
+ }
2522
+
2523
+ fn translate_loop_header(&mut self, builder: &mut FunctionBuilder) -> WasmResult<()> {
2524
+ // Additionally if enabled check how much fuel we have remaining to see
2525
+ // if we've run out by this point.
2526
+ if self.tunables.consume_fuel {
2527
+ self.fuel_check(builder);
2528
+ }
2529
+
2530
+ // If we are performing epoch-based interruption, check to see
2531
+ // if the epoch counter has changed.
2532
+ if self.tunables.epoch_interruption {
2533
+ self.epoch_check(builder);
2534
+ }
2535
+
2536
+ Ok(())
2537
+ }
2538
+
2539
+ fn before_translate_operator(
2540
+ &mut self,
2541
+ op: &Operator,
2542
+ builder: &mut FunctionBuilder,
2543
+ state: &FuncTranslationState,
2544
+ ) -> WasmResult<()> {
2545
+ if self.tunables.consume_fuel {
2546
+ self.fuel_before_op(op, builder, state.reachable());
2547
+ }
2548
+ Ok(())
2549
+ }
2550
+
2551
+ fn after_translate_operator(
2552
+ &mut self,
2553
+ op: &Operator,
2554
+ builder: &mut FunctionBuilder,
2555
+ state: &FuncTranslationState,
2556
+ ) -> WasmResult<()> {
2557
+ if self.tunables.consume_fuel && state.reachable() {
2558
+ self.fuel_after_op(op, builder);
2559
+ }
2560
+ Ok(())
2561
+ }
2562
+
2563
+ fn before_unconditionally_trapping_memory_access(
2564
+ &mut self,
2565
+ builder: &mut FunctionBuilder,
2566
+ ) -> WasmResult<()> {
2567
+ if self.tunables.consume_fuel {
2568
+ self.fuel_increment_var(builder);
2569
+ self.fuel_save_from_var(builder);
2570
+ }
2571
+ Ok(())
2572
+ }
2573
+
2574
+ fn before_translate_function(
2575
+ &mut self,
2576
+ builder: &mut FunctionBuilder,
2577
+ _state: &FuncTranslationState,
2578
+ ) -> WasmResult<()> {
2579
+ // If the `vmruntime_limits_ptr` variable will get used then we initialize
2580
+ // it here.
2581
+ if self.tunables.consume_fuel || self.tunables.epoch_interruption {
2582
+ self.declare_vmruntime_limits_ptr(builder);
2583
+ }
2584
+ // Additionally we initialize `fuel_var` if it will get used.
2585
+ if self.tunables.consume_fuel {
2586
+ self.fuel_function_entry(builder);
2587
+ }
2588
+ // Initialize `epoch_var` with the current epoch.
2589
+ if self.tunables.epoch_interruption {
2590
+ self.epoch_function_entry(builder);
2591
+ }
2592
+
2593
+ let func_name = self.current_func_name(builder);
2594
+ if func_name == Some("malloc") {
2595
+ self.check_malloc_start(builder);
2596
+ } else if func_name == Some("free") {
2597
+ self.check_free_start(builder);
2598
+ }
2599
+
2600
+ Ok(())
2601
+ }
2602
+
2603
+ fn after_translate_function(
2604
+ &mut self,
2605
+ builder: &mut FunctionBuilder,
2606
+ state: &FuncTranslationState,
2607
+ ) -> WasmResult<()> {
2608
+ if self.tunables.consume_fuel && state.reachable() {
2609
+ self.fuel_function_exit(builder);
2610
+ }
2611
+ if let Some(pcc_vmctx_memtype) = self.pcc_vmctx_memtype {
2612
+ // Sort the fields by offset in the struct definition for
2613
+ // vmctx, now that we've completed it.
2614
+ match &mut builder.func.memory_types[pcc_vmctx_memtype] {
2615
+ ir::MemoryTypeData::Struct { fields, .. } => {
2616
+ fields.sort_by_key(|f| f.offset);
2617
+ }
2618
+ _ => {}
2619
+ }
2620
+ }
2621
+ Ok(())
2622
+ }
2623
+
2624
+ fn relaxed_simd_deterministic(&self) -> bool {
2625
+ self.tunables.relaxed_simd_deterministic
2626
+ }
2627
+
2628
+ fn has_native_fma(&self) -> bool {
2629
+ self.isa.has_native_fma()
2630
+ }
2631
+
2632
+ fn is_x86(&self) -> bool {
2633
+ self.isa.triple().architecture == target_lexicon::Architecture::X86_64
2634
+ }
2635
+
2636
+ fn use_x86_blendv_for_relaxed_laneselect(&self, ty: Type) -> bool {
2637
+ self.isa.has_x86_blendv_lowering(ty)
2638
+ }
2639
+
2640
+ fn use_x86_pshufb_for_relaxed_swizzle(&self) -> bool {
2641
+ self.isa.has_x86_pshufb_lowering()
2642
+ }
2643
+
2644
+ fn use_x86_pmulhrsw_for_relaxed_q15mul(&self) -> bool {
2645
+ self.isa.has_x86_pmulhrsw_lowering()
2646
+ }
2647
+
2648
+ fn use_x86_pmaddubsw_for_dot(&self) -> bool {
2649
+ self.isa.has_x86_pmaddubsw_lowering()
2650
+ }
2651
+
2652
+ cfg_if! {
2653
+ if #[cfg(feature = "wmemcheck")] {
2654
+ fn handle_before_return(
2655
+ &mut self,
2656
+ retvals: &[Value],
2657
+ builder: &mut FunctionBuilder,
2658
+ ) {
2659
+ if self.wmemcheck {
2660
+ let func_name = self.current_func_name(builder);
2661
+ if func_name == Some("malloc") {
2662
+ self.hook_malloc_exit(builder, retvals);
2663
+ } else if func_name == Some("free") {
2664
+ self.hook_free_exit(builder);
2665
+ }
2666
+ }
2667
+ }
2668
+
2669
+ fn before_load(&mut self, builder: &mut FunctionBuilder, val_size: u8, addr: ir::Value, offset: u64) {
2670
+ if self.wmemcheck {
2671
+ let check_load_sig = self.builtin_function_signatures.check_load(builder.func);
2672
+ let (vmctx, check_load) = self.translate_load_builtin_function_address(
2673
+ &mut builder.cursor(),
2674
+ BuiltinFunctionIndex::check_load(),
2675
+ );
2676
+ let num_bytes = builder.ins().iconst(I32, val_size as i64);
2677
+ let offset_val = builder.ins().iconst(I64, offset as i64);
2678
+ builder
2679
+ .ins()
2680
+ .call_indirect(check_load_sig, check_load, &[vmctx, num_bytes, addr, offset_val]);
2681
+ }
2682
+ }
2683
+
2684
+ fn before_store(&mut self, builder: &mut FunctionBuilder, val_size: u8, addr: ir::Value, offset: u64) {
2685
+ if self.wmemcheck {
2686
+ let check_store_sig = self.builtin_function_signatures.check_store(builder.func);
2687
+ let (vmctx, check_store) = self.translate_load_builtin_function_address(
2688
+ &mut builder.cursor(),
2689
+ BuiltinFunctionIndex::check_store(),
2690
+ );
2691
+ let num_bytes = builder.ins().iconst(I32, val_size as i64);
2692
+ let offset_val = builder.ins().iconst(I64, offset as i64);
2693
+ builder
2694
+ .ins()
2695
+ .call_indirect(check_store_sig, check_store, &[vmctx, num_bytes, addr, offset_val]);
2696
+ }
2697
+ }
2698
+
2699
+ fn update_global(&mut self, builder: &mut FunctionBuilder, global_index: u32, value: ir::Value) {
2700
+ if self.wmemcheck {
2701
+ if global_index == 0 {
2702
+ // We are making the assumption that global 0 is the auxiliary stack pointer.
2703
+ let update_stack_pointer_sig = self.builtin_function_signatures.update_stack_pointer(builder.func);
2704
+ let (vmctx, update_stack_pointer) = self.translate_load_builtin_function_address(
2705
+ &mut builder.cursor(),
2706
+ BuiltinFunctionIndex::update_stack_pointer(),
2707
+ );
2708
+ builder
2709
+ .ins()
2710
+ .call_indirect(update_stack_pointer_sig, update_stack_pointer, &[vmctx, value]);
2711
+ }
2712
+ }
2713
+ }
2714
+
2715
+ fn before_memory_grow(&mut self, builder: &mut FunctionBuilder, num_pages: ir::Value, mem_index: MemoryIndex) {
2716
+ if self.wmemcheck && mem_index.as_u32() == 0 {
2717
+ let update_mem_size_sig = self.builtin_function_signatures.update_mem_size(builder.func);
2718
+ let (vmctx, update_mem_size) = self.translate_load_builtin_function_address(
2719
+ &mut builder.cursor(),
2720
+ BuiltinFunctionIndex::update_mem_size(),
2721
+ );
2722
+ builder
2723
+ .ins()
2724
+ .call_indirect(update_mem_size_sig, update_mem_size, &[vmctx, num_pages]);
2725
+ }
2726
+ }
2727
+ } else {
2728
+ fn handle_before_return(&mut self, _retvals: &[Value], builder: &mut FunctionBuilder) {
2729
+ let _ = self.builtin_function_signatures.check_malloc(builder.func);
2730
+ let _ = self.builtin_function_signatures.check_free(builder.func);
2731
+ }
2732
+
2733
+ fn before_load(&mut self, builder: &mut FunctionBuilder, _val_size: u8, _addr: ir::Value, _offset: u64) {
2734
+ let _ = self.builtin_function_signatures.check_load(builder.func);
2735
+ }
2736
+
2737
+ fn before_store(&mut self, builder: &mut FunctionBuilder, _val_size: u8, _addr: ir::Value, _offset: u64) {
2738
+ let _ = self.builtin_function_signatures.check_store(builder.func);
2739
+ }
2740
+
2741
+ fn update_global(&mut self, builder: &mut FunctionBuilder, _global_index: u32, _value: ir::Value) {
2742
+ let _ = self.builtin_function_signatures.update_stack_pointer(builder.func);
2743
+ }
2744
+
2745
+ fn before_memory_grow(&mut self, builder: &mut FunctionBuilder, _num_pages: Value, _mem_index: MemoryIndex) {
2746
+ let _ = self.builtin_function_signatures.update_mem_size(builder.func);
2747
+ }
2748
+ }
2749
+ }
2750
+ }