wasmtime 20.0.2 → 21.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2089) hide show
  1. checksums.yaml +4 -4
  2. data/Cargo.lock +129 -124
  3. data/ext/Cargo.toml +8 -6
  4. data/ext/cargo-vendor/cobs-0.2.3/.cargo-checksum.json +1 -0
  5. data/ext/cargo-vendor/cobs-0.2.3/Cargo.toml +39 -0
  6. data/ext/cargo-vendor/cobs-0.2.3/LICENSE-APACHE +202 -0
  7. data/ext/cargo-vendor/cobs-0.2.3/LICENSE-MIT +19 -0
  8. data/ext/cargo-vendor/cobs-0.2.3/README.md +23 -0
  9. data/ext/cargo-vendor/cobs-0.2.3/src/dec.rs +360 -0
  10. data/ext/cargo-vendor/cobs-0.2.3/src/enc.rs +216 -0
  11. data/ext/cargo-vendor/cobs-0.2.3/src/lib.rs +14 -0
  12. data/ext/cargo-vendor/cobs-0.2.3/tests/test.rs +265 -0
  13. data/ext/cargo-vendor/cranelift-bforest-0.108.1/.cargo-checksum.json +1 -0
  14. data/ext/cargo-vendor/cranelift-bforest-0.108.1/Cargo.toml +40 -0
  15. data/ext/cargo-vendor/cranelift-codegen-0.108.1/.cargo-checksum.json +1 -0
  16. data/ext/cargo-vendor/cranelift-codegen-0.108.1/Cargo.toml +189 -0
  17. data/ext/cargo-vendor/cranelift-codegen-0.108.1/build.rs +266 -0
  18. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/alias_analysis.rs +403 -0
  19. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/context.rs +395 -0
  20. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/ctxhash.rs +167 -0
  21. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/egraph/elaborate.rs +835 -0
  22. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/egraph.rs +839 -0
  23. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/incremental_cache.rs +256 -0
  24. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/ir/instructions.rs +1020 -0
  25. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/aarch64/abi.rs +1580 -0
  26. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/aarch64/inst/args.rs +721 -0
  27. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/aarch64/inst/emit.rs +3846 -0
  28. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/aarch64/inst/emit_tests.rs +7902 -0
  29. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/aarch64/inst/imms.rs +1213 -0
  30. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/aarch64/inst/mod.rs +3094 -0
  31. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/aarch64/inst/regs.rs +288 -0
  32. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/aarch64/inst.isle +4225 -0
  33. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/aarch64/lower/isle.rs +810 -0
  34. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/aarch64/pcc.rs +568 -0
  35. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/mod.rs +449 -0
  36. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/riscv64/abi.rs +1051 -0
  37. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/riscv64/inst/args.rs +1938 -0
  38. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/riscv64/inst/emit.rs +2681 -0
  39. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/riscv64/inst/emit_tests.rs +2197 -0
  40. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/riscv64/inst/mod.rs +1975 -0
  41. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/riscv64/inst/regs.rs +168 -0
  42. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/riscv64/inst/vector.rs +1144 -0
  43. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/riscv64/inst.isle +2969 -0
  44. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/riscv64/lower/isle.rs +625 -0
  45. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/riscv64/lower.isle +2883 -0
  46. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/s390x/abi.rs +1037 -0
  47. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/s390x/inst/args.rs +314 -0
  48. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/s390x/inst/emit.rs +3646 -0
  49. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/s390x/inst/imms.rs +202 -0
  50. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/s390x/inst/mod.rs +3421 -0
  51. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/s390x/inst/regs.rs +180 -0
  52. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/x64/abi.rs +1410 -0
  53. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/x64/inst/args.rs +2256 -0
  54. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/x64/inst/emit.rs +4311 -0
  55. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/x64/inst/emit_tests.rs +5171 -0
  56. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/x64/inst/mod.rs +2838 -0
  57. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/x64/inst/regs.rs +276 -0
  58. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/x64/inst.isle +5294 -0
  59. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/x64/lower/isle.rs +1064 -0
  60. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/x64/lower.isle +4808 -0
  61. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/x64/lower.rs +337 -0
  62. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/x64/pcc.rs +1014 -0
  63. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/lib.rs +106 -0
  64. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/machinst/abi.rs +2506 -0
  65. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/machinst/blockorder.rs +465 -0
  66. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/machinst/isle.rs +903 -0
  67. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/machinst/lower.rs +1432 -0
  68. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/machinst/mod.rs +555 -0
  69. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/machinst/reg.rs +522 -0
  70. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/machinst/valueregs.rs +138 -0
  71. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/machinst/vcode.rs +1741 -0
  72. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/nan_canonicalization.rs +130 -0
  73. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/opts/arithmetic.isle +240 -0
  74. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/opts/icmp.isle +215 -0
  75. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/ranges.rs +131 -0
  76. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/remove_constant_phis.rs +419 -0
  77. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/scoped_hash_map.rs +310 -0
  78. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/settings.rs +590 -0
  79. data/ext/cargo-vendor/cranelift-codegen-meta-0.108.1/.cargo-checksum.json +1 -0
  80. data/ext/cargo-vendor/cranelift-codegen-meta-0.108.1/Cargo.toml +35 -0
  81. data/ext/cargo-vendor/cranelift-codegen-meta-0.108.1/src/gen_inst.rs +1278 -0
  82. data/ext/cargo-vendor/cranelift-codegen-meta-0.108.1/src/gen_isle.rs +519 -0
  83. data/ext/cargo-vendor/cranelift-codegen-meta-0.108.1/src/gen_settings.rs +508 -0
  84. data/ext/cargo-vendor/cranelift-codegen-meta-0.108.1/src/gen_types.rs +75 -0
  85. data/ext/cargo-vendor/cranelift-codegen-meta-0.108.1/src/isa/riscv64.rs +168 -0
  86. data/ext/cargo-vendor/cranelift-codegen-meta-0.108.1/src/isa/x86.rs +414 -0
  87. data/ext/cargo-vendor/cranelift-codegen-meta-0.108.1/src/isle.rs +126 -0
  88. data/ext/cargo-vendor/cranelift-codegen-meta-0.108.1/src/lib.rs +98 -0
  89. data/ext/cargo-vendor/cranelift-codegen-meta-0.108.1/src/shared/settings.rs +348 -0
  90. data/ext/cargo-vendor/cranelift-codegen-meta-0.108.1/src/srcgen.rs +464 -0
  91. data/ext/cargo-vendor/cranelift-codegen-shared-0.108.1/.cargo-checksum.json +1 -0
  92. data/ext/cargo-vendor/cranelift-codegen-shared-0.108.1/Cargo.toml +22 -0
  93. data/ext/cargo-vendor/cranelift-control-0.108.1/.cargo-checksum.json +1 -0
  94. data/ext/cargo-vendor/cranelift-control-0.108.1/Cargo.toml +30 -0
  95. data/ext/cargo-vendor/cranelift-entity-0.108.1/.cargo-checksum.json +1 -0
  96. data/ext/cargo-vendor/cranelift-entity-0.108.1/Cargo.toml +52 -0
  97. data/ext/cargo-vendor/cranelift-entity-0.108.1/src/lib.rs +381 -0
  98. data/ext/cargo-vendor/cranelift-frontend-0.108.1/.cargo-checksum.json +1 -0
  99. data/ext/cargo-vendor/cranelift-frontend-0.108.1/Cargo.toml +67 -0
  100. data/ext/cargo-vendor/cranelift-frontend-0.108.1/src/switch.rs +696 -0
  101. data/ext/cargo-vendor/cranelift-isle-0.108.1/.cargo-checksum.json +1 -0
  102. data/ext/cargo-vendor/cranelift-isle-0.108.1/Cargo.toml +46 -0
  103. data/ext/cargo-vendor/cranelift-isle-0.108.1/src/codegen.rs +886 -0
  104. data/ext/cargo-vendor/cranelift-isle-0.108.1/src/disjointsets.rs +169 -0
  105. data/ext/cargo-vendor/cranelift-isle-0.108.1/src/lib.rs +33 -0
  106. data/ext/cargo-vendor/cranelift-isle-0.108.1/src/sema.rs +2492 -0
  107. data/ext/cargo-vendor/cranelift-isle-0.108.1/src/serialize.rs +846 -0
  108. data/ext/cargo-vendor/cranelift-isle-0.108.1/src/stablemapset.rs +79 -0
  109. data/ext/cargo-vendor/cranelift-isle-0.108.1/src/trie_again.rs +684 -0
  110. data/ext/cargo-vendor/cranelift-native-0.108.1/.cargo-checksum.json +1 -0
  111. data/ext/cargo-vendor/cranelift-native-0.108.1/Cargo.toml +43 -0
  112. data/ext/cargo-vendor/cranelift-wasm-0.108.1/.cargo-checksum.json +1 -0
  113. data/ext/cargo-vendor/cranelift-wasm-0.108.1/Cargo.toml +109 -0
  114. data/ext/cargo-vendor/cranelift-wasm-0.108.1/src/code_translator.rs +3687 -0
  115. data/ext/cargo-vendor/cranelift-wasm-0.108.1/src/environ/dummy.rs +906 -0
  116. data/ext/cargo-vendor/cranelift-wasm-0.108.1/src/environ/spec.rs +945 -0
  117. data/ext/cargo-vendor/cranelift-wasm-0.108.1/src/sections_translator.rs +389 -0
  118. data/ext/cargo-vendor/deterministic-wasi-ctx-0.1.22/.cargo-checksum.json +1 -0
  119. data/ext/cargo-vendor/deterministic-wasi-ctx-0.1.22/Cargo.toml +48 -0
  120. data/ext/cargo-vendor/embedded-io-0.4.0/.cargo-checksum.json +1 -0
  121. data/ext/cargo-vendor/embedded-io-0.4.0/CHANGELOG.md +28 -0
  122. data/ext/cargo-vendor/embedded-io-0.4.0/Cargo.toml +73 -0
  123. data/ext/cargo-vendor/embedded-io-0.4.0/LICENSE-APACHE +201 -0
  124. data/ext/cargo-vendor/embedded-io-0.4.0/LICENSE-MIT +25 -0
  125. data/ext/cargo-vendor/embedded-io-0.4.0/README.md +33 -0
  126. data/ext/cargo-vendor/embedded-io-0.4.0/ci.sh +21 -0
  127. data/ext/cargo-vendor/embedded-io-0.4.0/rust-toolchain.toml +3 -0
  128. data/ext/cargo-vendor/embedded-io-0.4.0/src/adapters/futures_io.rs +65 -0
  129. data/ext/cargo-vendor/embedded-io-0.4.0/src/adapters/mod.rs +40 -0
  130. data/ext/cargo-vendor/embedded-io-0.4.0/src/adapters/std_io.rs +107 -0
  131. data/ext/cargo-vendor/embedded-io-0.4.0/src/adapters/tokio.rs +108 -0
  132. data/ext/cargo-vendor/embedded-io-0.4.0/src/asynch.rs +230 -0
  133. data/ext/cargo-vendor/embedded-io-0.4.0/src/blocking.rs +309 -0
  134. data/ext/cargo-vendor/embedded-io-0.4.0/src/fmt.rs +228 -0
  135. data/ext/cargo-vendor/embedded-io-0.4.0/src/lib.rs +125 -0
  136. data/ext/cargo-vendor/libm-0.2.8/.cargo-checksum.json +1 -0
  137. data/ext/cargo-vendor/libm-0.2.8/CHANGELOG.md +123 -0
  138. data/ext/cargo-vendor/libm-0.2.8/CONTRIBUTING.md +95 -0
  139. data/ext/cargo-vendor/libm-0.2.8/Cargo.toml +45 -0
  140. data/ext/cargo-vendor/libm-0.2.8/LICENSE-APACHE +201 -0
  141. data/ext/cargo-vendor/libm-0.2.8/LICENSE-MIT +25 -0
  142. data/ext/cargo-vendor/libm-0.2.8/README.md +51 -0
  143. data/ext/cargo-vendor/libm-0.2.8/build.rs +463 -0
  144. data/ext/cargo-vendor/libm-0.2.8/src/lib.rs +59 -0
  145. data/ext/cargo-vendor/libm-0.2.8/src/libm_helper.rs +171 -0
  146. data/ext/cargo-vendor/libm-0.2.8/src/math/acos.rs +112 -0
  147. data/ext/cargo-vendor/libm-0.2.8/src/math/acosf.rs +79 -0
  148. data/ext/cargo-vendor/libm-0.2.8/src/math/acosh.rs +27 -0
  149. data/ext/cargo-vendor/libm-0.2.8/src/math/acoshf.rs +26 -0
  150. data/ext/cargo-vendor/libm-0.2.8/src/math/asin.rs +119 -0
  151. data/ext/cargo-vendor/libm-0.2.8/src/math/asinf.rs +72 -0
  152. data/ext/cargo-vendor/libm-0.2.8/src/math/asinh.rs +40 -0
  153. data/ext/cargo-vendor/libm-0.2.8/src/math/asinhf.rs +39 -0
  154. data/ext/cargo-vendor/libm-0.2.8/src/math/atan.rs +184 -0
  155. data/ext/cargo-vendor/libm-0.2.8/src/math/atan2.rs +126 -0
  156. data/ext/cargo-vendor/libm-0.2.8/src/math/atan2f.rs +91 -0
  157. data/ext/cargo-vendor/libm-0.2.8/src/math/atanf.rs +112 -0
  158. data/ext/cargo-vendor/libm-0.2.8/src/math/atanh.rs +37 -0
  159. data/ext/cargo-vendor/libm-0.2.8/src/math/atanhf.rs +37 -0
  160. data/ext/cargo-vendor/libm-0.2.8/src/math/cbrt.rs +113 -0
  161. data/ext/cargo-vendor/libm-0.2.8/src/math/cbrtf.rs +75 -0
  162. data/ext/cargo-vendor/libm-0.2.8/src/math/ceil.rs +82 -0
  163. data/ext/cargo-vendor/libm-0.2.8/src/math/ceilf.rs +65 -0
  164. data/ext/cargo-vendor/libm-0.2.8/src/math/copysign.rs +12 -0
  165. data/ext/cargo-vendor/libm-0.2.8/src/math/copysignf.rs +12 -0
  166. data/ext/cargo-vendor/libm-0.2.8/src/math/cos.rs +73 -0
  167. data/ext/cargo-vendor/libm-0.2.8/src/math/cosf.rs +83 -0
  168. data/ext/cargo-vendor/libm-0.2.8/src/math/cosh.rs +38 -0
  169. data/ext/cargo-vendor/libm-0.2.8/src/math/coshf.rs +38 -0
  170. data/ext/cargo-vendor/libm-0.2.8/src/math/erf.rs +318 -0
  171. data/ext/cargo-vendor/libm-0.2.8/src/math/erff.rs +230 -0
  172. data/ext/cargo-vendor/libm-0.2.8/src/math/exp.rs +154 -0
  173. data/ext/cargo-vendor/libm-0.2.8/src/math/exp10.rs +22 -0
  174. data/ext/cargo-vendor/libm-0.2.8/src/math/exp10f.rs +22 -0
  175. data/ext/cargo-vendor/libm-0.2.8/src/math/exp2.rs +394 -0
  176. data/ext/cargo-vendor/libm-0.2.8/src/math/exp2f.rs +135 -0
  177. data/ext/cargo-vendor/libm-0.2.8/src/math/expf.rs +101 -0
  178. data/ext/cargo-vendor/libm-0.2.8/src/math/expm1.rs +144 -0
  179. data/ext/cargo-vendor/libm-0.2.8/src/math/expm1f.rs +134 -0
  180. data/ext/cargo-vendor/libm-0.2.8/src/math/expo2.rs +14 -0
  181. data/ext/cargo-vendor/libm-0.2.8/src/math/fabs.rs +41 -0
  182. data/ext/cargo-vendor/libm-0.2.8/src/math/fabsf.rs +41 -0
  183. data/ext/cargo-vendor/libm-0.2.8/src/math/fdim.rs +22 -0
  184. data/ext/cargo-vendor/libm-0.2.8/src/math/fdimf.rs +22 -0
  185. data/ext/cargo-vendor/libm-0.2.8/src/math/fenv.rs +27 -0
  186. data/ext/cargo-vendor/libm-0.2.8/src/math/floor.rs +81 -0
  187. data/ext/cargo-vendor/libm-0.2.8/src/math/floorf.rs +66 -0
  188. data/ext/cargo-vendor/libm-0.2.8/src/math/fma.rs +232 -0
  189. data/ext/cargo-vendor/libm-0.2.8/src/math/fmaf.rs +117 -0
  190. data/ext/cargo-vendor/libm-0.2.8/src/math/fmax.rs +12 -0
  191. data/ext/cargo-vendor/libm-0.2.8/src/math/fmaxf.rs +12 -0
  192. data/ext/cargo-vendor/libm-0.2.8/src/math/fmin.rs +12 -0
  193. data/ext/cargo-vendor/libm-0.2.8/src/math/fminf.rs +12 -0
  194. data/ext/cargo-vendor/libm-0.2.8/src/math/fmod.rs +80 -0
  195. data/ext/cargo-vendor/libm-0.2.8/src/math/fmodf.rs +89 -0
  196. data/ext/cargo-vendor/libm-0.2.8/src/math/frexp.rs +20 -0
  197. data/ext/cargo-vendor/libm-0.2.8/src/math/frexpf.rs +21 -0
  198. data/ext/cargo-vendor/libm-0.2.8/src/math/hypot.rs +74 -0
  199. data/ext/cargo-vendor/libm-0.2.8/src/math/hypotf.rs +43 -0
  200. data/ext/cargo-vendor/libm-0.2.8/src/math/ilogb.rs +32 -0
  201. data/ext/cargo-vendor/libm-0.2.8/src/math/ilogbf.rs +32 -0
  202. data/ext/cargo-vendor/libm-0.2.8/src/math/j0.rs +422 -0
  203. data/ext/cargo-vendor/libm-0.2.8/src/math/j0f.rs +359 -0
  204. data/ext/cargo-vendor/libm-0.2.8/src/math/j1.rs +414 -0
  205. data/ext/cargo-vendor/libm-0.2.8/src/math/j1f.rs +380 -0
  206. data/ext/cargo-vendor/libm-0.2.8/src/math/jn.rs +343 -0
  207. data/ext/cargo-vendor/libm-0.2.8/src/math/jnf.rs +259 -0
  208. data/ext/cargo-vendor/libm-0.2.8/src/math/k_cos.rs +62 -0
  209. data/ext/cargo-vendor/libm-0.2.8/src/math/k_cosf.rs +29 -0
  210. data/ext/cargo-vendor/libm-0.2.8/src/math/k_expo2.rs +14 -0
  211. data/ext/cargo-vendor/libm-0.2.8/src/math/k_expo2f.rs +14 -0
  212. data/ext/cargo-vendor/libm-0.2.8/src/math/k_sin.rs +57 -0
  213. data/ext/cargo-vendor/libm-0.2.8/src/math/k_sinf.rs +30 -0
  214. data/ext/cargo-vendor/libm-0.2.8/src/math/k_tan.rs +105 -0
  215. data/ext/cargo-vendor/libm-0.2.8/src/math/k_tanf.rs +46 -0
  216. data/ext/cargo-vendor/libm-0.2.8/src/math/ldexp.rs +4 -0
  217. data/ext/cargo-vendor/libm-0.2.8/src/math/ldexpf.rs +4 -0
  218. data/ext/cargo-vendor/libm-0.2.8/src/math/lgamma.rs +6 -0
  219. data/ext/cargo-vendor/libm-0.2.8/src/math/lgamma_r.rs +320 -0
  220. data/ext/cargo-vendor/libm-0.2.8/src/math/lgammaf.rs +6 -0
  221. data/ext/cargo-vendor/libm-0.2.8/src/math/lgammaf_r.rs +255 -0
  222. data/ext/cargo-vendor/libm-0.2.8/src/math/log.rs +117 -0
  223. data/ext/cargo-vendor/libm-0.2.8/src/math/log10.rs +117 -0
  224. data/ext/cargo-vendor/libm-0.2.8/src/math/log10f.rs +91 -0
  225. data/ext/cargo-vendor/libm-0.2.8/src/math/log1p.rs +143 -0
  226. data/ext/cargo-vendor/libm-0.2.8/src/math/log1pf.rs +98 -0
  227. data/ext/cargo-vendor/libm-0.2.8/src/math/log2.rs +106 -0
  228. data/ext/cargo-vendor/libm-0.2.8/src/math/log2f.rs +87 -0
  229. data/ext/cargo-vendor/libm-0.2.8/src/math/logf.rs +65 -0
  230. data/ext/cargo-vendor/libm-0.2.8/src/math/mod.rs +370 -0
  231. data/ext/cargo-vendor/libm-0.2.8/src/math/modf.rs +34 -0
  232. data/ext/cargo-vendor/libm-0.2.8/src/math/modff.rs +33 -0
  233. data/ext/cargo-vendor/libm-0.2.8/src/math/nextafter.rs +37 -0
  234. data/ext/cargo-vendor/libm-0.2.8/src/math/nextafterf.rs +37 -0
  235. data/ext/cargo-vendor/libm-0.2.8/src/math/pow.rs +637 -0
  236. data/ext/cargo-vendor/libm-0.2.8/src/math/powf.rs +342 -0
  237. data/ext/cargo-vendor/libm-0.2.8/src/math/rem_pio2.rs +233 -0
  238. data/ext/cargo-vendor/libm-0.2.8/src/math/rem_pio2_large.rs +470 -0
  239. data/ext/cargo-vendor/libm-0.2.8/src/math/rem_pio2f.rs +67 -0
  240. data/ext/cargo-vendor/libm-0.2.8/src/math/remainder.rs +5 -0
  241. data/ext/cargo-vendor/libm-0.2.8/src/math/remainderf.rs +5 -0
  242. data/ext/cargo-vendor/libm-0.2.8/src/math/remquo.rs +110 -0
  243. data/ext/cargo-vendor/libm-0.2.8/src/math/remquof.rs +97 -0
  244. data/ext/cargo-vendor/libm-0.2.8/src/math/rint.rs +58 -0
  245. data/ext/cargo-vendor/libm-0.2.8/src/math/rintf.rs +58 -0
  246. data/ext/cargo-vendor/libm-0.2.8/src/math/round.rs +28 -0
  247. data/ext/cargo-vendor/libm-0.2.8/src/math/roundf.rs +30 -0
  248. data/ext/cargo-vendor/libm-0.2.8/src/math/scalbn.rs +33 -0
  249. data/ext/cargo-vendor/libm-0.2.8/src/math/scalbnf.rs +29 -0
  250. data/ext/cargo-vendor/libm-0.2.8/src/math/sin.rs +88 -0
  251. data/ext/cargo-vendor/libm-0.2.8/src/math/sincos.rs +134 -0
  252. data/ext/cargo-vendor/libm-0.2.8/src/math/sincosf.rs +185 -0
  253. data/ext/cargo-vendor/libm-0.2.8/src/math/sinf.rs +93 -0
  254. data/ext/cargo-vendor/libm-0.2.8/src/math/sinh.rs +49 -0
  255. data/ext/cargo-vendor/libm-0.2.8/src/math/sinhf.rs +30 -0
  256. data/ext/cargo-vendor/libm-0.2.8/src/math/sqrt.rs +280 -0
  257. data/ext/cargo-vendor/libm-0.2.8/src/math/sqrtf.rs +170 -0
  258. data/ext/cargo-vendor/libm-0.2.8/src/math/tan.rs +70 -0
  259. data/ext/cargo-vendor/libm-0.2.8/src/math/tanf.rs +78 -0
  260. data/ext/cargo-vendor/libm-0.2.8/src/math/tanh.rs +53 -0
  261. data/ext/cargo-vendor/libm-0.2.8/src/math/tanhf.rs +39 -0
  262. data/ext/cargo-vendor/libm-0.2.8/src/math/tgamma.rs +208 -0
  263. data/ext/cargo-vendor/libm-0.2.8/src/math/tgammaf.rs +6 -0
  264. data/ext/cargo-vendor/libm-0.2.8/src/math/trunc.rs +40 -0
  265. data/ext/cargo-vendor/libm-0.2.8/src/math/truncf.rs +42 -0
  266. data/ext/cargo-vendor/postcard-1.0.8/.cargo-checksum.json +1 -0
  267. data/ext/cargo-vendor/postcard-1.0.8/CHANGELOG.md +141 -0
  268. data/ext/cargo-vendor/postcard-1.0.8/Cargo.toml +100 -0
  269. data/ext/cargo-vendor/postcard-1.0.8/LICENSE-APACHE +201 -0
  270. data/ext/cargo-vendor/postcard-1.0.8/LICENSE-MIT +25 -0
  271. data/ext/cargo-vendor/postcard-1.0.8/README.md +146 -0
  272. data/ext/cargo-vendor/postcard-1.0.8/spec/LICENSE-CC-BY-SA +427 -0
  273. data/ext/cargo-vendor/postcard-1.0.8/spec/book.toml +6 -0
  274. data/ext/cargo-vendor/postcard-1.0.8/spec/src/SUMMARY.md +6 -0
  275. data/ext/cargo-vendor/postcard-1.0.8/spec/src/glossary.md +17 -0
  276. data/ext/cargo-vendor/postcard-1.0.8/spec/src/intro.md +12 -0
  277. data/ext/cargo-vendor/postcard-1.0.8/spec/src/serde-data-model.md +190 -0
  278. data/ext/cargo-vendor/postcard-1.0.8/spec/src/wire-format.md +327 -0
  279. data/ext/cargo-vendor/postcard-1.0.8/src/accumulator.rs +367 -0
  280. data/ext/cargo-vendor/postcard-1.0.8/src/de/deserializer.rs +599 -0
  281. data/ext/cargo-vendor/postcard-1.0.8/src/de/flavors.rs +468 -0
  282. data/ext/cargo-vendor/postcard-1.0.8/src/de/mod.rs +568 -0
  283. data/ext/cargo-vendor/postcard-1.0.8/src/error.rs +95 -0
  284. data/ext/cargo-vendor/postcard-1.0.8/src/fixint.rs +189 -0
  285. data/ext/cargo-vendor/postcard-1.0.8/src/lib.rs +143 -0
  286. data/ext/cargo-vendor/postcard-1.0.8/src/max_size.rs +233 -0
  287. data/ext/cargo-vendor/postcard-1.0.8/src/schema.rs +282 -0
  288. data/ext/cargo-vendor/postcard-1.0.8/src/ser/flavors.rs +722 -0
  289. data/ext/cargo-vendor/postcard-1.0.8/src/ser/mod.rs +866 -0
  290. data/ext/cargo-vendor/postcard-1.0.8/src/ser/serializer.rs +564 -0
  291. data/ext/cargo-vendor/postcard-1.0.8/src/varint.rs +103 -0
  292. data/ext/cargo-vendor/postcard-1.0.8/tests/accumulator.rs +57 -0
  293. data/ext/cargo-vendor/postcard-1.0.8/tests/crc.rs +60 -0
  294. data/ext/cargo-vendor/postcard-1.0.8/tests/loopback.rs +248 -0
  295. data/ext/cargo-vendor/postcard-1.0.8/tests/max_size.rs +101 -0
  296. data/ext/cargo-vendor/postcard-1.0.8/tests/schema.rs +107 -0
  297. data/ext/cargo-vendor/rb-sys-0.9.100/.cargo-checksum.json +1 -0
  298. data/ext/cargo-vendor/rb-sys-0.9.100/Cargo.toml +58 -0
  299. data/ext/cargo-vendor/rb-sys-0.9.100/build/main.rs +267 -0
  300. data/ext/cargo-vendor/rb-sys-0.9.100/build/stable_api_config.rs +139 -0
  301. data/ext/cargo-vendor/rb-sys-0.9.100/src/bindings.rs +21 -0
  302. data/ext/cargo-vendor/rb-sys-0.9.100/src/tracking_allocator.rs +266 -0
  303. data/ext/cargo-vendor/rb-sys-build-0.9.100/.cargo-checksum.json +1 -0
  304. data/ext/cargo-vendor/rb-sys-build-0.9.100/Cargo.toml +62 -0
  305. data/ext/cargo-vendor/rb-sys-build-0.9.100/src/bindings/stable_api.rs +203 -0
  306. data/ext/cargo-vendor/rb-sys-build-0.9.100/src/bindings.rs +254 -0
  307. data/ext/cargo-vendor/rb-sys-build-0.9.100/src/cc.rs +374 -0
  308. data/ext/cargo-vendor/rb-sys-build-0.9.100/src/utils.rs +52 -0
  309. data/ext/cargo-vendor/wasi-common-21.0.1/.cargo-checksum.json +1 -0
  310. data/ext/cargo-vendor/wasi-common-21.0.1/Cargo.toml +223 -0
  311. data/ext/cargo-vendor/wasi-common-21.0.1/tests/all/async_.rs +293 -0
  312. data/ext/cargo-vendor/wasi-common-21.0.1/tests/all/main.rs +21 -0
  313. data/ext/cargo-vendor/wasi-common-21.0.1/tests/all/sync.rs +279 -0
  314. data/ext/cargo-vendor/wasm-encoder-0.207.0/.cargo-checksum.json +1 -0
  315. data/ext/cargo-vendor/wasm-encoder-0.207.0/Cargo.toml +45 -0
  316. data/ext/cargo-vendor/wasm-encoder-0.207.0/src/core/code.rs +3502 -0
  317. data/ext/cargo-vendor/wasm-encoder-0.207.0/src/core/data.rs +186 -0
  318. data/ext/cargo-vendor/wasm-encoder-0.207.0/src/core/elements.rs +221 -0
  319. data/ext/cargo-vendor/wasm-encoder-0.207.0/src/core/globals.rs +112 -0
  320. data/ext/cargo-vendor/wasm-encoder-0.207.0/src/core/imports.rs +157 -0
  321. data/ext/cargo-vendor/wasm-encoder-0.207.0/src/core/memories.rs +128 -0
  322. data/ext/cargo-vendor/wasm-encoder-0.207.0/src/core/tables.rs +134 -0
  323. data/ext/cargo-vendor/wasm-encoder-0.207.0/src/core/types.rs +678 -0
  324. data/ext/cargo-vendor/wasmparser-0.207.0/.cargo-checksum.json +1 -0
  325. data/ext/cargo-vendor/wasmparser-0.207.0/Cargo.lock +659 -0
  326. data/ext/cargo-vendor/wasmparser-0.207.0/Cargo.toml +95 -0
  327. data/ext/cargo-vendor/wasmparser-0.207.0/src/binary_reader.rs +1867 -0
  328. data/ext/cargo-vendor/wasmparser-0.207.0/src/lib.rs +805 -0
  329. data/ext/cargo-vendor/wasmparser-0.207.0/src/limits.rs +78 -0
  330. data/ext/cargo-vendor/wasmparser-0.207.0/src/map.rs +137 -0
  331. data/ext/cargo-vendor/wasmparser-0.207.0/src/parser.rs +1636 -0
  332. data/ext/cargo-vendor/wasmparser-0.207.0/src/readers/component/canonicals.rs +121 -0
  333. data/ext/cargo-vendor/wasmparser-0.207.0/src/readers/component/instances.rs +164 -0
  334. data/ext/cargo-vendor/wasmparser-0.207.0/src/readers/component/names.rs +102 -0
  335. data/ext/cargo-vendor/wasmparser-0.207.0/src/readers/component/start.rs +31 -0
  336. data/ext/cargo-vendor/wasmparser-0.207.0/src/readers/component/types.rs +551 -0
  337. data/ext/cargo-vendor/wasmparser-0.207.0/src/readers/core/code.rs +146 -0
  338. data/ext/cargo-vendor/wasmparser-0.207.0/src/readers/core/coredumps.rs +244 -0
  339. data/ext/cargo-vendor/wasmparser-0.207.0/src/readers/core/custom.rs +64 -0
  340. data/ext/cargo-vendor/wasmparser-0.207.0/src/readers/core/data.rs +96 -0
  341. data/ext/cargo-vendor/wasmparser-0.207.0/src/readers/core/dylink0.rs +110 -0
  342. data/ext/cargo-vendor/wasmparser-0.207.0/src/readers/core/elements.rs +152 -0
  343. data/ext/cargo-vendor/wasmparser-0.207.0/src/readers/core/globals.rs +51 -0
  344. data/ext/cargo-vendor/wasmparser-0.207.0/src/readers/core/linking.rs +450 -0
  345. data/ext/cargo-vendor/wasmparser-0.207.0/src/readers/core/memories.rs +57 -0
  346. data/ext/cargo-vendor/wasmparser-0.207.0/src/readers/core/names.rs +159 -0
  347. data/ext/cargo-vendor/wasmparser-0.207.0/src/readers/core/operators.rs +430 -0
  348. data/ext/cargo-vendor/wasmparser-0.207.0/src/readers/core/reloc.rs +301 -0
  349. data/ext/cargo-vendor/wasmparser-0.207.0/src/readers/core/tables.rs +93 -0
  350. data/ext/cargo-vendor/wasmparser-0.207.0/src/readers/core/types/matches.rs +277 -0
  351. data/ext/cargo-vendor/wasmparser-0.207.0/src/readers/core/types.rs +1773 -0
  352. data/ext/cargo-vendor/wasmparser-0.207.0/src/readers/core.rs +43 -0
  353. data/ext/cargo-vendor/wasmparser-0.207.0/src/readers.rs +316 -0
  354. data/ext/cargo-vendor/wasmparser-0.207.0/src/resources.rs +235 -0
  355. data/ext/cargo-vendor/wasmparser-0.207.0/src/validator/component.rs +3242 -0
  356. data/ext/cargo-vendor/wasmparser-0.207.0/src/validator/core/canonical.rs +233 -0
  357. data/ext/cargo-vendor/wasmparser-0.207.0/src/validator/core.rs +1450 -0
  358. data/ext/cargo-vendor/wasmparser-0.207.0/src/validator/func.rs +331 -0
  359. data/ext/cargo-vendor/wasmparser-0.207.0/src/validator/names.rs +947 -0
  360. data/ext/cargo-vendor/wasmparser-0.207.0/src/validator/operators.rs +4117 -0
  361. data/ext/cargo-vendor/wasmparser-0.207.0/src/validator/types.rs +4492 -0
  362. data/ext/cargo-vendor/wasmparser-0.207.0/src/validator.rs +1786 -0
  363. data/ext/cargo-vendor/wasmprinter-0.207.0/.cargo-checksum.json +1 -0
  364. data/ext/cargo-vendor/wasmprinter-0.207.0/Cargo.toml +50 -0
  365. data/ext/cargo-vendor/wasmprinter-0.207.0/src/lib.rs +3226 -0
  366. data/ext/cargo-vendor/wasmprinter-0.207.0/src/operator.rs +1164 -0
  367. data/ext/cargo-vendor/wasmprinter-0.207.0/tests/all.rs +293 -0
  368. data/ext/cargo-vendor/wasmtime-21.0.1/.cargo-checksum.json +1 -0
  369. data/ext/cargo-vendor/wasmtime-21.0.1/Cargo.toml +386 -0
  370. data/ext/cargo-vendor/wasmtime-21.0.1/build.rs +37 -0
  371. data/ext/cargo-vendor/wasmtime-21.0.1/src/compile/code_builder.rs +275 -0
  372. data/ext/cargo-vendor/wasmtime-21.0.1/src/compile/runtime.rs +176 -0
  373. data/ext/cargo-vendor/wasmtime-21.0.1/src/compile.rs +910 -0
  374. data/ext/cargo-vendor/wasmtime-21.0.1/src/config.rs +2904 -0
  375. data/ext/cargo-vendor/wasmtime-21.0.1/src/engine/serialization.rs +887 -0
  376. data/ext/cargo-vendor/wasmtime-21.0.1/src/engine.rs +728 -0
  377. data/ext/cargo-vendor/wasmtime-21.0.1/src/lib.rs +328 -0
  378. data/ext/cargo-vendor/wasmtime-21.0.1/src/profiling_agent/jitdump.rs +67 -0
  379. data/ext/cargo-vendor/wasmtime-21.0.1/src/profiling_agent/perfmap.rs +48 -0
  380. data/ext/cargo-vendor/wasmtime-21.0.1/src/profiling_agent/vtune.rs +81 -0
  381. data/ext/cargo-vendor/wasmtime-21.0.1/src/profiling_agent.rs +106 -0
  382. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/code.rs +102 -0
  383. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/code_memory.rs +337 -0
  384. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/component/component.rs +661 -0
  385. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/component/func/host.rs +440 -0
  386. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/component/func/options.rs +555 -0
  387. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/component/func/typed.rs +2498 -0
  388. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/component/func.rs +746 -0
  389. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/component/instance.rs +814 -0
  390. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/component/linker.rs +783 -0
  391. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/component/matching.rs +217 -0
  392. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/component/mod.rs +783 -0
  393. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/component/resource_table.rs +355 -0
  394. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/component/resources.rs +1133 -0
  395. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/component/storage.rs +43 -0
  396. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/component/store.rs +29 -0
  397. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/component/types.rs +892 -0
  398. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/component/values.rs +980 -0
  399. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/coredump.rs +342 -0
  400. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/debug.rs +166 -0
  401. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/externals/global.rs +310 -0
  402. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/externals/table.rs +477 -0
  403. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/externals.rs +236 -0
  404. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/func/typed.rs +899 -0
  405. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/func.rs +2627 -0
  406. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/gc/disabled/anyref.rs +46 -0
  407. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/gc/disabled/externref.rs +50 -0
  408. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/gc/disabled/rooting.rs +224 -0
  409. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/gc/enabled/anyref.rs +473 -0
  410. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/gc/enabled/externref.rs +650 -0
  411. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/gc/enabled/i31.rs +346 -0
  412. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/gc/enabled/rooting.rs +1588 -0
  413. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/gc.rs +89 -0
  414. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/instance.rs +992 -0
  415. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/instantiate.rs +346 -0
  416. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/limits.rs +399 -0
  417. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/linker.rs +1506 -0
  418. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/memory.rs +998 -0
  419. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/module/registry.rs +353 -0
  420. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/module.rs +1295 -0
  421. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/profiling.rs +221 -0
  422. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/resources.rs +33 -0
  423. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/signatures.rs +216 -0
  424. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/stack.rs +73 -0
  425. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/store/context.rs +243 -0
  426. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/store/data.rs +301 -0
  427. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/store/func_refs.rs +90 -0
  428. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/store.rs +2820 -0
  429. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/trampoline/func.rs +139 -0
  430. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/trampoline/global.rs +68 -0
  431. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/trampoline/memory.rs +287 -0
  432. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/trampoline/table.rs +29 -0
  433. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/trampoline.rs +78 -0
  434. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/trap.rs +642 -0
  435. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/type_registry.rs +807 -0
  436. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/types/matching.rs +421 -0
  437. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/types.rs +2239 -0
  438. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/unix.rs +40 -0
  439. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/v128.rs +131 -0
  440. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/values.rs +966 -0
  441. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/arch/aarch64.rs +76 -0
  442. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/arch/x86_64.rs +41 -0
  443. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/async_yield.rs +35 -0
  444. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/component/libcalls.rs +571 -0
  445. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/component/resources.rs +352 -0
  446. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/component.rs +860 -0
  447. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/const_expr.rs +102 -0
  448. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/cow.rs +893 -0
  449. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/debug_builtins.rs +59 -0
  450. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/export.rs +108 -0
  451. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/gc/disabled.rs +24 -0
  452. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/gc/enabled/drc.rs +968 -0
  453. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/gc/enabled/externref.rs +116 -0
  454. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/gc/enabled/free_list.rs +771 -0
  455. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/gc/enabled.rs +18 -0
  456. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/gc/gc_ref.rs +491 -0
  457. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/gc/gc_runtime.rs +506 -0
  458. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/gc/host_data.rs +82 -0
  459. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/gc/i31.rs +87 -0
  460. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/gc.rs +245 -0
  461. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/imports.rs +29 -0
  462. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/instance/allocator/on_demand.rs +218 -0
  463. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/instance/allocator/pooling/gc_heap_pool.rs +93 -0
  464. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/instance/allocator/pooling/generic_stack_pool.rs +66 -0
  465. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/instance/allocator/pooling/index_allocator.rs +705 -0
  466. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/instance/allocator/pooling/memory_pool.rs +1000 -0
  467. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/instance/allocator/pooling/table_pool.rs +233 -0
  468. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/instance/allocator/pooling/unix_stack_pool.rs +245 -0
  469. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/instance/allocator/pooling.rs +656 -0
  470. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/instance/allocator.rs +798 -0
  471. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/instance.rs +1519 -0
  472. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/libcalls.rs +834 -0
  473. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/memory.rs +744 -0
  474. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/mmap.rs +220 -0
  475. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/mmap_vec.rs +162 -0
  476. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/module_id.rs +43 -0
  477. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/mpk/enabled.rs +214 -0
  478. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/mpk/mod.rs +54 -0
  479. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/mpk/pkru.rs +104 -0
  480. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/mpk/sys.rs +114 -0
  481. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/send_sync_ptr.rs +106 -0
  482. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/store_box.rs +37 -0
  483. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/sys/custom/capi.rs +200 -0
  484. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/sys/custom/mmap.rs +112 -0
  485. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/sys/custom/mod.rs +34 -0
  486. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/sys/custom/traphandlers.rs +55 -0
  487. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/sys/custom/vm.rs +109 -0
  488. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/sys/miri/mmap.rs +95 -0
  489. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/sys/miri/mod.rs +24 -0
  490. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/sys/miri/traphandlers.rs +47 -0
  491. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/sys/mod.rs +25 -0
  492. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/sys/unix/machports.rs +416 -0
  493. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/sys/unix/mmap.rs +162 -0
  494. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/sys/unix/mod.rs +35 -0
  495. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/sys/unix/signals.rs +401 -0
  496. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/sys/unix/unwind.rs +150 -0
  497. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/sys/unix/vm.rs +215 -0
  498. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/sys/windows/mmap.rs +221 -0
  499. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/sys/windows/mod.rs +20 -0
  500. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/sys/windows/traphandlers.rs +104 -0
  501. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/table.rs +847 -0
  502. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/threads/parking_spot.rs +623 -0
  503. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/threads/shared_memory.rs +233 -0
  504. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/threads/shared_memory_disabled.rs +101 -0
  505. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/traphandlers/backtrace.rs +267 -0
  506. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/traphandlers/coredump_disabled.rs +16 -0
  507. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/traphandlers/coredump_enabled.rs +42 -0
  508. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/traphandlers.rs +768 -0
  509. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/vmcontext/vm_host_func_context.rs +138 -0
  510. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/vmcontext.rs +1337 -0
  511. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm.rs +287 -0
  512. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/windows.rs +35 -0
  513. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime.rs +110 -0
  514. data/ext/cargo-vendor/wasmtime-21.0.1/src/sync_nostd.rs +255 -0
  515. data/ext/cargo-vendor/wasmtime-21.0.1/src/sync_std.rs +52 -0
  516. data/ext/cargo-vendor/wasmtime-asm-macros-21.0.1/.cargo-checksum.json +1 -0
  517. data/ext/cargo-vendor/wasmtime-asm-macros-21.0.1/Cargo.toml +22 -0
  518. data/ext/cargo-vendor/wasmtime-asm-macros-21.0.1/src/lib.rs +83 -0
  519. data/ext/cargo-vendor/wasmtime-cache-21.0.1/.cargo-checksum.json +1 -0
  520. data/ext/cargo-vendor/wasmtime-cache-21.0.1/Cargo.toml +88 -0
  521. data/ext/cargo-vendor/wasmtime-cache-21.0.1/src/lib.rs +235 -0
  522. data/ext/cargo-vendor/wasmtime-component-macro-21.0.1/.cargo-checksum.json +1 -0
  523. data/ext/cargo-vendor/wasmtime-component-macro-21.0.1/Cargo.toml +79 -0
  524. data/ext/cargo-vendor/wasmtime-component-macro-21.0.1/src/bindgen.rs +436 -0
  525. data/ext/cargo-vendor/wasmtime-component-macro-21.0.1/src/component.rs +1295 -0
  526. data/ext/cargo-vendor/wasmtime-component-macro-21.0.1/tests/codegen.rs +576 -0
  527. data/ext/cargo-vendor/wasmtime-component-macro-21.0.1/tests/codegen_no_std.rs +16 -0
  528. data/ext/cargo-vendor/wasmtime-component-util-21.0.1/.cargo-checksum.json +1 -0
  529. data/ext/cargo-vendor/wasmtime-component-util-21.0.1/Cargo.toml +25 -0
  530. data/ext/cargo-vendor/wasmtime-component-util-21.0.1/src/lib.rs +182 -0
  531. data/ext/cargo-vendor/wasmtime-cranelift-21.0.1/.cargo-checksum.json +1 -0
  532. data/ext/cargo-vendor/wasmtime-cranelift-21.0.1/Cargo.toml +114 -0
  533. data/ext/cargo-vendor/wasmtime-cranelift-21.0.1/src/compiler/component.rs +968 -0
  534. data/ext/cargo-vendor/wasmtime-cranelift-21.0.1/src/compiler.rs +1383 -0
  535. data/ext/cargo-vendor/wasmtime-cranelift-21.0.1/src/debug/gc.rs +252 -0
  536. data/ext/cargo-vendor/wasmtime-cranelift-21.0.1/src/debug/transform/attr.rs +320 -0
  537. data/ext/cargo-vendor/wasmtime-cranelift-21.0.1/src/debug/transform/expression.rs +1248 -0
  538. data/ext/cargo-vendor/wasmtime-cranelift-21.0.1/src/debug/transform/line_program.rs +287 -0
  539. data/ext/cargo-vendor/wasmtime-cranelift-21.0.1/src/debug/transform/mod.rs +256 -0
  540. data/ext/cargo-vendor/wasmtime-cranelift-21.0.1/src/debug/transform/unit.rs +529 -0
  541. data/ext/cargo-vendor/wasmtime-cranelift-21.0.1/src/debug/transform/utils.rs +186 -0
  542. data/ext/cargo-vendor/wasmtime-cranelift-21.0.1/src/debug/write_debuginfo.rs +196 -0
  543. data/ext/cargo-vendor/wasmtime-cranelift-21.0.1/src/debug.rs +18 -0
  544. data/ext/cargo-vendor/wasmtime-cranelift-21.0.1/src/func_environ.rs +2888 -0
  545. data/ext/cargo-vendor/wasmtime-cranelift-21.0.1/src/gc/enabled.rs +648 -0
  546. data/ext/cargo-vendor/wasmtime-cranelift-21.0.1/src/gc.rs +198 -0
  547. data/ext/cargo-vendor/wasmtime-cranelift-21.0.1/src/lib.rs +511 -0
  548. data/ext/cargo-vendor/wasmtime-environ-21.0.1/.cargo-checksum.json +1 -0
  549. data/ext/cargo-vendor/wasmtime-environ-21.0.1/Cargo.lock +772 -0
  550. data/ext/cargo-vendor/wasmtime-environ-21.0.1/Cargo.toml +154 -0
  551. data/ext/cargo-vendor/wasmtime-environ-21.0.1/examples/factc.rs +198 -0
  552. data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/compile/address_map.rs +73 -0
  553. data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/compile/mod.rs +419 -0
  554. data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/compile/module_artifacts.rs +315 -0
  555. data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/compile/module_environ.rs +1337 -0
  556. data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/compile/module_types.rs +362 -0
  557. data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/compile/trap_encoding.rs +70 -0
  558. data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/component/compiler.rs +20 -0
  559. data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/component/dfg.rs +691 -0
  560. data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/component/info.rs +672 -0
  561. data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/component/translate/adapt.rs +455 -0
  562. data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/component/translate.rs +978 -0
  563. data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/component/types.rs +1029 -0
  564. data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/component/types_builder/resources.rs +233 -0
  565. data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/component/types_builder.rs +997 -0
  566. data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/component.rs +107 -0
  567. data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/demangling.rs +28 -0
  568. data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/fact/core_types.rs +25 -0
  569. data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/fact/signature.rs +119 -0
  570. data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/fact/trampoline.rs +3234 -0
  571. data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/fact/transcode.rs +90 -0
  572. data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/fact/traps.rs +116 -0
  573. data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/fact.rs +714 -0
  574. data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/lib.rs +161 -0
  575. data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/module.rs +697 -0
  576. data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/module_artifacts.rs +146 -0
  577. data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/module_types.rs +91 -0
  578. data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/scopevec.rs +80 -0
  579. data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/stack_map.rs +37 -0
  580. data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/trap_encoding.rs +189 -0
  581. data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/tunables.rs +168 -0
  582. data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/vmoffsets.rs +1015 -0
  583. data/ext/cargo-vendor/wasmtime-fiber-21.0.1/.cargo-checksum.json +1 -0
  584. data/ext/cargo-vendor/wasmtime-fiber-21.0.1/Cargo.toml +64 -0
  585. data/ext/cargo-vendor/wasmtime-fiber-21.0.1/build.rs +38 -0
  586. data/ext/cargo-vendor/wasmtime-fiber-21.0.1/src/lib.rs +328 -0
  587. data/ext/cargo-vendor/wasmtime-fiber-21.0.1/src/unix.rs +490 -0
  588. data/ext/cargo-vendor/wasmtime-fiber-21.0.1/src/windows.rs +166 -0
  589. data/ext/cargo-vendor/wasmtime-jit-debug-21.0.1/.cargo-checksum.json +1 -0
  590. data/ext/cargo-vendor/wasmtime-jit-debug-21.0.1/Cargo.toml +67 -0
  591. data/ext/cargo-vendor/wasmtime-jit-icache-coherence-21.0.1/.cargo-checksum.json +1 -0
  592. data/ext/cargo-vendor/wasmtime-jit-icache-coherence-21.0.1/Cargo.toml +51 -0
  593. data/ext/cargo-vendor/wasmtime-jit-icache-coherence-21.0.1/src/lib.rs +109 -0
  594. data/ext/cargo-vendor/wasmtime-jit-icache-coherence-21.0.1/src/libc.rs +163 -0
  595. data/ext/cargo-vendor/wasmtime-jit-icache-coherence-21.0.1/src/miri.rs +10 -0
  596. data/ext/cargo-vendor/wasmtime-jit-icache-coherence-21.0.1/src/win.rs +49 -0
  597. data/ext/cargo-vendor/wasmtime-slab-21.0.1/.cargo-checksum.json +1 -0
  598. data/ext/cargo-vendor/wasmtime-slab-21.0.1/Cargo.toml +21 -0
  599. data/ext/cargo-vendor/wasmtime-slab-21.0.1/src/lib.rs +498 -0
  600. data/ext/cargo-vendor/wasmtime-types-21.0.1/.cargo-checksum.json +1 -0
  601. data/ext/cargo-vendor/wasmtime-types-21.0.1/Cargo.toml +55 -0
  602. data/ext/cargo-vendor/wasmtime-types-21.0.1/src/error.rs +81 -0
  603. data/ext/cargo-vendor/wasmtime-types-21.0.1/src/lib.rs +1572 -0
  604. data/ext/cargo-vendor/wasmtime-versioned-export-macros-21.0.1/.cargo-checksum.json +1 -0
  605. data/ext/cargo-vendor/wasmtime-versioned-export-macros-21.0.1/Cargo.toml +32 -0
  606. data/ext/cargo-vendor/wasmtime-wasi-21.0.1/.cargo-checksum.json +1 -0
  607. data/ext/cargo-vendor/wasmtime-wasi-21.0.1/Cargo.toml +200 -0
  608. data/ext/cargo-vendor/wasmtime-wasi-21.0.1/src/bindings.rs +280 -0
  609. data/ext/cargo-vendor/wasmtime-wasi-21.0.1/src/ctx.rs +667 -0
  610. data/ext/cargo-vendor/wasmtime-wasi-21.0.1/src/filesystem.rs +446 -0
  611. data/ext/cargo-vendor/wasmtime-wasi-21.0.1/src/lib.rs +426 -0
  612. data/ext/cargo-vendor/wasmtime-wasi-21.0.1/src/preview0.rs +877 -0
  613. data/ext/cargo-vendor/wasmtime-wasi-21.0.1/src/preview1.rs +2660 -0
  614. data/ext/cargo-vendor/wasmtime-wasi-21.0.1/tests/all/api.rs +198 -0
  615. data/ext/cargo-vendor/wasmtime-wasi-21.0.1/tests/all/async_.rs +397 -0
  616. data/ext/cargo-vendor/wasmtime-wasi-21.0.1/tests/all/main.rs +91 -0
  617. data/ext/cargo-vendor/wasmtime-wasi-21.0.1/tests/all/preview1.rs +251 -0
  618. data/ext/cargo-vendor/wasmtime-wasi-21.0.1/tests/all/sync.rs +331 -0
  619. data/ext/cargo-vendor/wasmtime-winch-21.0.1/.cargo-checksum.json +1 -0
  620. data/ext/cargo-vendor/wasmtime-winch-21.0.1/Cargo.toml +81 -0
  621. data/ext/cargo-vendor/wasmtime-winch-21.0.1/src/compiler.rs +261 -0
  622. data/ext/cargo-vendor/wasmtime-wit-bindgen-21.0.1/.cargo-checksum.json +1 -0
  623. data/ext/cargo-vendor/wasmtime-wit-bindgen-21.0.1/Cargo.toml +46 -0
  624. data/ext/cargo-vendor/wasmtime-wit-bindgen-21.0.1/src/lib.rs +2541 -0
  625. data/ext/cargo-vendor/wasmtime-wit-bindgen-21.0.1/src/rust.rs +421 -0
  626. data/ext/cargo-vendor/wiggle-21.0.1/.cargo-checksum.json +1 -0
  627. data/ext/cargo-vendor/wiggle-21.0.1/Cargo.toml +123 -0
  628. data/ext/cargo-vendor/wiggle-generate-21.0.1/.cargo-checksum.json +1 -0
  629. data/ext/cargo-vendor/wiggle-generate-21.0.1/Cargo.toml +66 -0
  630. data/ext/cargo-vendor/wiggle-macro-21.0.1/.cargo-checksum.json +1 -0
  631. data/ext/cargo-vendor/wiggle-macro-21.0.1/Cargo.toml +55 -0
  632. data/ext/cargo-vendor/winch-codegen-0.19.1/.cargo-checksum.json +1 -0
  633. data/ext/cargo-vendor/winch-codegen-0.19.1/Cargo.toml +76 -0
  634. data/ext/cargo-vendor/winch-codegen-0.19.1/src/codegen/context.rs +534 -0
  635. data/ext/cargo-vendor/winch-codegen-0.19.1/src/codegen/env.rs +440 -0
  636. data/ext/cargo-vendor/winch-codegen-0.19.1/src/codegen/mod.rs +882 -0
  637. data/ext/cargo-vendor/winch-codegen-0.19.1/src/isa/aarch64/abi.rs +291 -0
  638. data/ext/cargo-vendor/winch-codegen-0.19.1/src/isa/aarch64/address.rs +143 -0
  639. data/ext/cargo-vendor/winch-codegen-0.19.1/src/isa/aarch64/asm.rs +380 -0
  640. data/ext/cargo-vendor/winch-codegen-0.19.1/src/isa/aarch64/masm.rs +566 -0
  641. data/ext/cargo-vendor/winch-codegen-0.19.1/src/isa/aarch64/mod.rs +158 -0
  642. data/ext/cargo-vendor/winch-codegen-0.19.1/src/isa/aarch64/regs.rs +161 -0
  643. data/ext/cargo-vendor/winch-codegen-0.19.1/src/isa/reg.rs +73 -0
  644. data/ext/cargo-vendor/winch-codegen-0.19.1/src/isa/x64/asm.rs +1423 -0
  645. data/ext/cargo-vendor/winch-codegen-0.19.1/src/isa/x64/masm.rs +1120 -0
  646. data/ext/cargo-vendor/winch-codegen-0.19.1/src/masm.rs +941 -0
  647. data/ext/cargo-vendor/winch-codegen-0.19.1/src/regalloc.rs +65 -0
  648. data/ext/cargo-vendor/winch-codegen-0.19.1/src/regset.rs +194 -0
  649. data/ext/cargo-vendor/winch-codegen-0.19.1/src/visitor.rs +2144 -0
  650. data/ext/cargo-vendor/wit-parser-0.207.0/.cargo-checksum.json +1 -0
  651. data/ext/cargo-vendor/wit-parser-0.207.0/Cargo.toml +109 -0
  652. data/ext/cargo-vendor/wit-parser-0.207.0/src/ast/resolve.rs +1442 -0
  653. data/ext/cargo-vendor/wit-parser-0.207.0/src/decoding.rs +1764 -0
  654. data/ext/cargo-vendor/wit-parser-0.207.0/src/lib.rs +777 -0
  655. data/ext/cargo-vendor/wit-parser-0.207.0/src/live.rs +126 -0
  656. data/ext/cargo-vendor/wit-parser-0.207.0/src/resolve.rs +2337 -0
  657. data/ext/cargo-vendor/wit-parser-0.207.0/tests/ui/parse-fail/resources-multiple-returns-borrow.wit.result +5 -0
  658. data/ext/cargo-vendor/wit-parser-0.207.0/tests/ui/parse-fail/resources-return-borrow.wit.result +5 -0
  659. data/ext/cargo-vendor/wit-parser-0.207.0/tests/ui/parse-fail/return-borrow1.wit +7 -0
  660. data/ext/cargo-vendor/wit-parser-0.207.0/tests/ui/parse-fail/return-borrow1.wit.result +5 -0
  661. data/ext/cargo-vendor/wit-parser-0.207.0/tests/ui/parse-fail/return-borrow2.wit +8 -0
  662. data/ext/cargo-vendor/wit-parser-0.207.0/tests/ui/parse-fail/return-borrow2.wit.result +5 -0
  663. data/ext/cargo-vendor/wit-parser-0.207.0/tests/ui/parse-fail/return-borrow3.wit +7 -0
  664. data/ext/cargo-vendor/wit-parser-0.207.0/tests/ui/parse-fail/return-borrow3.wit.result +5 -0
  665. data/ext/cargo-vendor/wit-parser-0.207.0/tests/ui/parse-fail/return-borrow4.wit +7 -0
  666. data/ext/cargo-vendor/wit-parser-0.207.0/tests/ui/parse-fail/return-borrow4.wit.result +5 -0
  667. data/ext/cargo-vendor/wit-parser-0.207.0/tests/ui/parse-fail/return-borrow5.wit +7 -0
  668. data/ext/cargo-vendor/wit-parser-0.207.0/tests/ui/parse-fail/return-borrow5.wit.result +5 -0
  669. data/ext/cargo-vendor/wit-parser-0.207.0/tests/ui/parse-fail/return-borrow6.wit +7 -0
  670. data/ext/cargo-vendor/wit-parser-0.207.0/tests/ui/parse-fail/return-borrow6.wit.result +5 -0
  671. data/ext/cargo-vendor/wit-parser-0.207.0/tests/ui/parse-fail/return-borrow7.wit +11 -0
  672. data/ext/cargo-vendor/wit-parser-0.207.0/tests/ui/parse-fail/return-borrow7.wit.result +5 -0
  673. data/ext/cargo-vendor/wit-parser-0.207.0/tests/ui/parse-fail/return-borrow8/deps/baz.wit +9 -0
  674. data/ext/cargo-vendor/wit-parser-0.207.0/tests/ui/parse-fail/return-borrow8/foo.wit +7 -0
  675. data/ext/cargo-vendor/wit-parser-0.207.0/tests/ui/parse-fail/return-borrow8.wit.result +8 -0
  676. data/ext/cargo-vendor/wit-parser-0.207.0/tests/ui/world-top-level-resources.wit +24 -0
  677. data/ext/cargo-vendor/wit-parser-0.207.0/tests/ui/world-top-level-resources.wit.json +231 -0
  678. data/ext/src/lib.rs +1 -0
  679. data/ext/src/ruby_api/config.rs +1 -12
  680. data/ext/src/ruby_api/engine.rs +3 -6
  681. data/ext/src/ruby_api/store.rs +68 -5
  682. data/lib/wasmtime/version.rb +1 -1
  683. metadata +1601 -1408
  684. data/ext/cargo-vendor/bincode-1.3.3/.cargo-checksum.json +0 -1
  685. data/ext/cargo-vendor/bincode-1.3.3/Cargo.toml +0 -37
  686. data/ext/cargo-vendor/bincode-1.3.3/LICENSE.md +0 -21
  687. data/ext/cargo-vendor/bincode-1.3.3/readme.md +0 -112
  688. data/ext/cargo-vendor/bincode-1.3.3/src/byteorder.rs +0 -385
  689. data/ext/cargo-vendor/bincode-1.3.3/src/config/endian.rs +0 -27
  690. data/ext/cargo-vendor/bincode-1.3.3/src/config/int.rs +0 -682
  691. data/ext/cargo-vendor/bincode-1.3.3/src/config/legacy.rs +0 -253
  692. data/ext/cargo-vendor/bincode-1.3.3/src/config/limit.rs +0 -49
  693. data/ext/cargo-vendor/bincode-1.3.3/src/config/mod.rs +0 -408
  694. data/ext/cargo-vendor/bincode-1.3.3/src/config/trailing.rs +0 -37
  695. data/ext/cargo-vendor/bincode-1.3.3/src/de/mod.rs +0 -515
  696. data/ext/cargo-vendor/bincode-1.3.3/src/de/read.rs +0 -202
  697. data/ext/cargo-vendor/bincode-1.3.3/src/error.rs +0 -115
  698. data/ext/cargo-vendor/bincode-1.3.3/src/internal.rs +0 -124
  699. data/ext/cargo-vendor/bincode-1.3.3/src/lib.rs +0 -201
  700. data/ext/cargo-vendor/bincode-1.3.3/src/ser/mod.rs +0 -772
  701. data/ext/cargo-vendor/bincode-1.3.3/tests/test.rs +0 -899
  702. data/ext/cargo-vendor/cranelift-bforest-0.107.2/.cargo-checksum.json +0 -1
  703. data/ext/cargo-vendor/cranelift-bforest-0.107.2/Cargo.toml +0 -40
  704. data/ext/cargo-vendor/cranelift-codegen-0.107.2/.cargo-checksum.json +0 -1
  705. data/ext/cargo-vendor/cranelift-codegen-0.107.2/Cargo.toml +0 -178
  706. data/ext/cargo-vendor/cranelift-codegen-0.107.2/build.rs +0 -396
  707. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/alias_analysis.rs +0 -403
  708. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/context.rs +0 -386
  709. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/ctxhash.rs +0 -167
  710. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/egraph/elaborate.rs +0 -835
  711. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/egraph.rs +0 -838
  712. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/fx.rs +0 -105
  713. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/incremental_cache.rs +0 -256
  714. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/ir/instructions.rs +0 -1019
  715. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/aarch64/abi.rs +0 -1707
  716. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/aarch64/inst/args.rs +0 -779
  717. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/aarch64/inst/emit.rs +0 -3932
  718. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/aarch64/inst/emit_tests.rs +0 -7919
  719. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/aarch64/inst/imms.rs +0 -1218
  720. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/aarch64/inst/mod.rs +0 -3083
  721. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/aarch64/inst/regs.rs +0 -292
  722. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/aarch64/inst.isle +0 -4218
  723. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/aarch64/lower/isle.rs +0 -884
  724. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/aarch64/pcc.rs +0 -565
  725. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/mod.rs +0 -432
  726. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/riscv64/abi.rs +0 -1109
  727. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/riscv64/inst/args.rs +0 -1968
  728. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/riscv64/inst/emit.rs +0 -3466
  729. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/riscv64/inst/emit_tests.rs +0 -2146
  730. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/riscv64/inst/mod.rs +0 -2041
  731. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/riscv64/inst/regs.rs +0 -175
  732. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/riscv64/inst/vector.rs +0 -1162
  733. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/riscv64/inst.isle +0 -2944
  734. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/riscv64/lower/isle.rs +0 -625
  735. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/riscv64/lower.isle +0 -2872
  736. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/s390x/abi.rs +0 -1047
  737. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/s390x/inst/args.rs +0 -347
  738. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/s390x/inst/emit.rs +0 -3646
  739. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/s390x/inst/imms.rs +0 -202
  740. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/s390x/inst/mod.rs +0 -3423
  741. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/s390x/inst/regs.rs +0 -187
  742. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/x64/abi.rs +0 -1369
  743. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/x64/inst/args.rs +0 -2289
  744. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/x64/inst/emit.rs +0 -4383
  745. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/x64/inst/emit_tests.rs +0 -5131
  746. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/x64/inst/mod.rs +0 -2798
  747. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/x64/inst/regs.rs +0 -276
  748. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/x64/inst.isle +0 -5304
  749. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/x64/lower/isle.rs +0 -1066
  750. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/x64/lower.isle +0 -4809
  751. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/x64/lower.rs +0 -339
  752. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/x64/pcc.rs +0 -1003
  753. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/lib.rs +0 -106
  754. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/machinst/abi.rs +0 -2594
  755. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/machinst/blockorder.rs +0 -465
  756. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/machinst/isle.rs +0 -914
  757. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/machinst/lower.rs +0 -1452
  758. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/machinst/mod.rs +0 -555
  759. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/machinst/reg.rs +0 -562
  760. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/machinst/valueregs.rs +0 -132
  761. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/machinst/vcode.rs +0 -1807
  762. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/nan_canonicalization.rs +0 -110
  763. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/opts/arithmetic.isle +0 -179
  764. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/opts/icmp.isle +0 -197
  765. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/remove_constant_phis.rs +0 -420
  766. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/scoped_hash_map.rs +0 -310
  767. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/settings.rs +0 -591
  768. data/ext/cargo-vendor/cranelift-codegen-meta-0.107.2/.cargo-checksum.json +0 -1
  769. data/ext/cargo-vendor/cranelift-codegen-meta-0.107.2/Cargo.toml +0 -35
  770. data/ext/cargo-vendor/cranelift-codegen-meta-0.107.2/src/gen_inst.rs +0 -1784
  771. data/ext/cargo-vendor/cranelift-codegen-meta-0.107.2/src/gen_settings.rs +0 -508
  772. data/ext/cargo-vendor/cranelift-codegen-meta-0.107.2/src/gen_types.rs +0 -75
  773. data/ext/cargo-vendor/cranelift-codegen-meta-0.107.2/src/isa/riscv64.rs +0 -160
  774. data/ext/cargo-vendor/cranelift-codegen-meta-0.107.2/src/isa/x86.rs +0 -402
  775. data/ext/cargo-vendor/cranelift-codegen-meta-0.107.2/src/lib.rs +0 -59
  776. data/ext/cargo-vendor/cranelift-codegen-meta-0.107.2/src/shared/settings.rs +0 -355
  777. data/ext/cargo-vendor/cranelift-codegen-meta-0.107.2/src/srcgen.rs +0 -470
  778. data/ext/cargo-vendor/cranelift-codegen-shared-0.107.2/.cargo-checksum.json +0 -1
  779. data/ext/cargo-vendor/cranelift-codegen-shared-0.107.2/Cargo.toml +0 -22
  780. data/ext/cargo-vendor/cranelift-control-0.107.2/.cargo-checksum.json +0 -1
  781. data/ext/cargo-vendor/cranelift-control-0.107.2/Cargo.toml +0 -30
  782. data/ext/cargo-vendor/cranelift-entity-0.107.2/.cargo-checksum.json +0 -1
  783. data/ext/cargo-vendor/cranelift-entity-0.107.2/Cargo.toml +0 -50
  784. data/ext/cargo-vendor/cranelift-entity-0.107.2/src/lib.rs +0 -317
  785. data/ext/cargo-vendor/cranelift-frontend-0.107.2/.cargo-checksum.json +0 -1
  786. data/ext/cargo-vendor/cranelift-frontend-0.107.2/Cargo.toml +0 -69
  787. data/ext/cargo-vendor/cranelift-frontend-0.107.2/src/switch.rs +0 -654
  788. data/ext/cargo-vendor/cranelift-isle-0.107.2/.cargo-checksum.json +0 -1
  789. data/ext/cargo-vendor/cranelift-isle-0.107.2/Cargo.toml +0 -46
  790. data/ext/cargo-vendor/cranelift-isle-0.107.2/src/codegen.rs +0 -886
  791. data/ext/cargo-vendor/cranelift-isle-0.107.2/src/lib.rs +0 -271
  792. data/ext/cargo-vendor/cranelift-isle-0.107.2/src/sema.rs +0 -2492
  793. data/ext/cargo-vendor/cranelift-isle-0.107.2/src/serialize.rs +0 -846
  794. data/ext/cargo-vendor/cranelift-isle-0.107.2/src/trie_again.rs +0 -683
  795. data/ext/cargo-vendor/cranelift-native-0.107.2/.cargo-checksum.json +0 -1
  796. data/ext/cargo-vendor/cranelift-native-0.107.2/Cargo.toml +0 -45
  797. data/ext/cargo-vendor/cranelift-wasm-0.107.2/.cargo-checksum.json +0 -1
  798. data/ext/cargo-vendor/cranelift-wasm-0.107.2/Cargo.toml +0 -107
  799. data/ext/cargo-vendor/cranelift-wasm-0.107.2/src/code_translator.rs +0 -3683
  800. data/ext/cargo-vendor/cranelift-wasm-0.107.2/src/environ/dummy.rs +0 -912
  801. data/ext/cargo-vendor/cranelift-wasm-0.107.2/src/environ/spec.rs +0 -945
  802. data/ext/cargo-vendor/cranelift-wasm-0.107.2/src/sections_translator.rs +0 -409
  803. data/ext/cargo-vendor/deterministic-wasi-ctx-0.1.21/.cargo-checksum.json +0 -1
  804. data/ext/cargo-vendor/deterministic-wasi-ctx-0.1.21/Cargo.toml +0 -48
  805. data/ext/cargo-vendor/rb-sys-0.9.97/.cargo-checksum.json +0 -1
  806. data/ext/cargo-vendor/rb-sys-0.9.97/Cargo.toml +0 -54
  807. data/ext/cargo-vendor/rb-sys-0.9.97/build/main.rs +0 -238
  808. data/ext/cargo-vendor/rb-sys-0.9.97/build/stable_api_config.rs +0 -133
  809. data/ext/cargo-vendor/rb-sys-0.9.97/src/bindings.rs +0 -20
  810. data/ext/cargo-vendor/rb-sys-0.9.97/src/tracking_allocator.rs +0 -265
  811. data/ext/cargo-vendor/rb-sys-build-0.9.97/.cargo-checksum.json +0 -1
  812. data/ext/cargo-vendor/rb-sys-build-0.9.97/Cargo.toml +0 -62
  813. data/ext/cargo-vendor/rb-sys-build-0.9.97/src/bindings/stable_api.rs +0 -202
  814. data/ext/cargo-vendor/rb-sys-build-0.9.97/src/bindings.rs +0 -250
  815. data/ext/cargo-vendor/rb-sys-build-0.9.97/src/cc.rs +0 -365
  816. data/ext/cargo-vendor/rb-sys-build-0.9.97/src/utils.rs +0 -52
  817. data/ext/cargo-vendor/wasi-common-20.0.2/.cargo-checksum.json +0 -1
  818. data/ext/cargo-vendor/wasi-common-20.0.2/Cargo.toml +0 -220
  819. data/ext/cargo-vendor/wasi-common-20.0.2/tests/all/async_.rs +0 -293
  820. data/ext/cargo-vendor/wasi-common-20.0.2/tests/all/main.rs +0 -21
  821. data/ext/cargo-vendor/wasi-common-20.0.2/tests/all/sync.rs +0 -279
  822. data/ext/cargo-vendor/wasm-encoder-0.202.0/.cargo-checksum.json +0 -1
  823. data/ext/cargo-vendor/wasm-encoder-0.202.0/Cargo.toml +0 -43
  824. data/ext/cargo-vendor/wasm-encoder-0.202.0/src/core/code.rs +0 -3444
  825. data/ext/cargo-vendor/wasm-encoder-0.202.0/src/core/data.rs +0 -185
  826. data/ext/cargo-vendor/wasm-encoder-0.202.0/src/core/elements.rs +0 -220
  827. data/ext/cargo-vendor/wasm-encoder-0.202.0/src/core/globals.rs +0 -101
  828. data/ext/cargo-vendor/wasm-encoder-0.202.0/src/core/imports.rs +0 -156
  829. data/ext/cargo-vendor/wasm-encoder-0.202.0/src/core/memories.rs +0 -111
  830. data/ext/cargo-vendor/wasm-encoder-0.202.0/src/core/tables.rs +0 -116
  831. data/ext/cargo-vendor/wasm-encoder-0.202.0/src/core/types.rs +0 -673
  832. data/ext/cargo-vendor/wasmparser-0.202.0/.cargo-checksum.json +0 -1
  833. data/ext/cargo-vendor/wasmparser-0.202.0/Cargo.lock +0 -744
  834. data/ext/cargo-vendor/wasmparser-0.202.0/Cargo.toml +0 -66
  835. data/ext/cargo-vendor/wasmparser-0.202.0/src/binary_reader.rs +0 -1849
  836. data/ext/cargo-vendor/wasmparser-0.202.0/src/lib.rs +0 -766
  837. data/ext/cargo-vendor/wasmparser-0.202.0/src/limits.rs +0 -64
  838. data/ext/cargo-vendor/wasmparser-0.202.0/src/parser.rs +0 -1611
  839. data/ext/cargo-vendor/wasmparser-0.202.0/src/readers/component/canonicals.rs +0 -120
  840. data/ext/cargo-vendor/wasmparser-0.202.0/src/readers/component/instances.rs +0 -163
  841. data/ext/cargo-vendor/wasmparser-0.202.0/src/readers/component/names.rs +0 -102
  842. data/ext/cargo-vendor/wasmparser-0.202.0/src/readers/component/start.rs +0 -30
  843. data/ext/cargo-vendor/wasmparser-0.202.0/src/readers/component/types.rs +0 -549
  844. data/ext/cargo-vendor/wasmparser-0.202.0/src/readers/core/code.rs +0 -146
  845. data/ext/cargo-vendor/wasmparser-0.202.0/src/readers/core/coredumps.rs +0 -243
  846. data/ext/cargo-vendor/wasmparser-0.202.0/src/readers/core/custom.rs +0 -63
  847. data/ext/cargo-vendor/wasmparser-0.202.0/src/readers/core/data.rs +0 -96
  848. data/ext/cargo-vendor/wasmparser-0.202.0/src/readers/core/dylink0.rs +0 -109
  849. data/ext/cargo-vendor/wasmparser-0.202.0/src/readers/core/elements.rs +0 -152
  850. data/ext/cargo-vendor/wasmparser-0.202.0/src/readers/core/globals.rs +0 -49
  851. data/ext/cargo-vendor/wasmparser-0.202.0/src/readers/core/linking.rs +0 -449
  852. data/ext/cargo-vendor/wasmparser-0.202.0/src/readers/core/memories.rs +0 -56
  853. data/ext/cargo-vendor/wasmparser-0.202.0/src/readers/core/names.rs +0 -156
  854. data/ext/cargo-vendor/wasmparser-0.202.0/src/readers/core/operators.rs +0 -411
  855. data/ext/cargo-vendor/wasmparser-0.202.0/src/readers/core/tables.rs +0 -87
  856. data/ext/cargo-vendor/wasmparser-0.202.0/src/readers/core/types/matches.rs +0 -277
  857. data/ext/cargo-vendor/wasmparser-0.202.0/src/readers/core/types.rs +0 -1680
  858. data/ext/cargo-vendor/wasmparser-0.202.0/src/readers/core.rs +0 -41
  859. data/ext/cargo-vendor/wasmparser-0.202.0/src/readers.rs +0 -316
  860. data/ext/cargo-vendor/wasmparser-0.202.0/src/resources.rs +0 -235
  861. data/ext/cargo-vendor/wasmparser-0.202.0/src/validator/component.rs +0 -3238
  862. data/ext/cargo-vendor/wasmparser-0.202.0/src/validator/core/canonical.rs +0 -233
  863. data/ext/cargo-vendor/wasmparser-0.202.0/src/validator/core.rs +0 -1400
  864. data/ext/cargo-vendor/wasmparser-0.202.0/src/validator/func.rs +0 -338
  865. data/ext/cargo-vendor/wasmparser-0.202.0/src/validator/names.rs +0 -929
  866. data/ext/cargo-vendor/wasmparser-0.202.0/src/validator/operators.rs +0 -4076
  867. data/ext/cargo-vendor/wasmparser-0.202.0/src/validator/types.rs +0 -4449
  868. data/ext/cargo-vendor/wasmparser-0.202.0/src/validator.rs +0 -1619
  869. data/ext/cargo-vendor/wasmprinter-0.202.0/.cargo-checksum.json +0 -1
  870. data/ext/cargo-vendor/wasmprinter-0.202.0/Cargo.toml +0 -45
  871. data/ext/cargo-vendor/wasmprinter-0.202.0/src/lib.rs +0 -3202
  872. data/ext/cargo-vendor/wasmprinter-0.202.0/src/operator.rs +0 -1131
  873. data/ext/cargo-vendor/wasmprinter-0.202.0/tests/all.rs +0 -279
  874. data/ext/cargo-vendor/wasmtime-20.0.2/.cargo-checksum.json +0 -1
  875. data/ext/cargo-vendor/wasmtime-20.0.2/Cargo.toml +0 -268
  876. data/ext/cargo-vendor/wasmtime-20.0.2/src/compile/code_builder.rs +0 -201
  877. data/ext/cargo-vendor/wasmtime-20.0.2/src/compile/runtime.rs +0 -175
  878. data/ext/cargo-vendor/wasmtime-20.0.2/src/compile.rs +0 -897
  879. data/ext/cargo-vendor/wasmtime-20.0.2/src/config.rs +0 -2695
  880. data/ext/cargo-vendor/wasmtime-20.0.2/src/engine/serialization.rs +0 -849
  881. data/ext/cargo-vendor/wasmtime-20.0.2/src/engine.rs +0 -741
  882. data/ext/cargo-vendor/wasmtime-20.0.2/src/lib.rs +0 -303
  883. data/ext/cargo-vendor/wasmtime-20.0.2/src/profiling_agent/jitdump.rs +0 -66
  884. data/ext/cargo-vendor/wasmtime-20.0.2/src/profiling_agent/perfmap.rs +0 -47
  885. data/ext/cargo-vendor/wasmtime-20.0.2/src/profiling_agent/vtune.rs +0 -80
  886. data/ext/cargo-vendor/wasmtime-20.0.2/src/profiling_agent.rs +0 -105
  887. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/code.rs +0 -102
  888. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/code_memory.rs +0 -335
  889. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/component/component.rs +0 -661
  890. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/component/func/host.rs +0 -439
  891. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/component/func/options.rs +0 -554
  892. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/component/func/typed.rs +0 -2484
  893. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/component/func.rs +0 -747
  894. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/component/instance.rs +0 -804
  895. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/component/linker.rs +0 -786
  896. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/component/matching.rs +0 -217
  897. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/component/mod.rs +0 -756
  898. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/component/resource_table.rs +0 -350
  899. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/component/resources.rs +0 -1133
  900. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/component/storage.rs +0 -43
  901. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/component/store.rs +0 -28
  902. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/component/types.rs +0 -892
  903. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/component/values.rs +0 -978
  904. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/coredump.rs +0 -336
  905. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/debug.rs +0 -165
  906. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/externals/global.rs +0 -300
  907. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/externals/table.rs +0 -480
  908. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/externals.rs +0 -236
  909. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/func/typed.rs +0 -898
  910. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/func.rs +0 -2633
  911. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/gc/disabled/anyref.rs +0 -46
  912. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/gc/disabled/externref.rs +0 -50
  913. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/gc/disabled/rooting.rs +0 -222
  914. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/gc/enabled/anyref.rs +0 -472
  915. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/gc/enabled/externref.rs +0 -644
  916. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/gc/enabled/i31.rs +0 -345
  917. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/gc/enabled/rooting.rs +0 -1543
  918. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/gc.rs +0 -87
  919. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/instance.rs +0 -992
  920. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/instantiate.rs +0 -345
  921. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/limits.rs +0 -398
  922. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/linker.rs +0 -1521
  923. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/memory.rs +0 -999
  924. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/module/registry.rs +0 -354
  925. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/module.rs +0 -1295
  926. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/profiling.rs +0 -224
  927. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/resources.rs +0 -33
  928. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/signatures.rs +0 -216
  929. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/stack.rs +0 -73
  930. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/store/context.rs +0 -243
  931. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/store/data.rs +0 -289
  932. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/store/func_refs.rs +0 -85
  933. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/store.rs +0 -2796
  934. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/trampoline/func.rs +0 -138
  935. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/trampoline/global.rs +0 -68
  936. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/trampoline/memory.rs +0 -286
  937. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/trampoline/table.rs +0 -34
  938. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/trampoline.rs +0 -77
  939. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/trap.rs +0 -641
  940. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/type_registry.rs +0 -632
  941. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/types/matching.rs +0 -367
  942. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/types.rs +0 -1378
  943. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/unix.rs +0 -39
  944. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/v128.rs +0 -131
  945. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/values.rs +0 -945
  946. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/windows.rs +0 -34
  947. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime.rs +0 -112
  948. data/ext/cargo-vendor/wasmtime-asm-macros-20.0.2/.cargo-checksum.json +0 -1
  949. data/ext/cargo-vendor/wasmtime-asm-macros-20.0.2/Cargo.toml +0 -22
  950. data/ext/cargo-vendor/wasmtime-asm-macros-20.0.2/src/lib.rs +0 -81
  951. data/ext/cargo-vendor/wasmtime-cache-20.0.2/.cargo-checksum.json +0 -1
  952. data/ext/cargo-vendor/wasmtime-cache-20.0.2/Cargo.toml +0 -81
  953. data/ext/cargo-vendor/wasmtime-cache-20.0.2/src/lib.rs +0 -235
  954. data/ext/cargo-vendor/wasmtime-component-macro-20.0.2/.cargo-checksum.json +0 -1
  955. data/ext/cargo-vendor/wasmtime-component-macro-20.0.2/Cargo.toml +0 -67
  956. data/ext/cargo-vendor/wasmtime-component-macro-20.0.2/src/bindgen.rs +0 -390
  957. data/ext/cargo-vendor/wasmtime-component-macro-20.0.2/src/component.rs +0 -1295
  958. data/ext/cargo-vendor/wasmtime-component-macro-20.0.2/tests/codegen.rs +0 -342
  959. data/ext/cargo-vendor/wasmtime-component-util-20.0.2/.cargo-checksum.json +0 -1
  960. data/ext/cargo-vendor/wasmtime-component-util-20.0.2/Cargo.toml +0 -25
  961. data/ext/cargo-vendor/wasmtime-component-util-20.0.2/src/lib.rs +0 -180
  962. data/ext/cargo-vendor/wasmtime-cranelift-20.0.2/.cargo-checksum.json +0 -1
  963. data/ext/cargo-vendor/wasmtime-cranelift-20.0.2/Cargo.toml +0 -114
  964. data/ext/cargo-vendor/wasmtime-cranelift-20.0.2/src/compiler/component.rs +0 -962
  965. data/ext/cargo-vendor/wasmtime-cranelift-20.0.2/src/compiler.rs +0 -1369
  966. data/ext/cargo-vendor/wasmtime-cranelift-20.0.2/src/debug/gc.rs +0 -239
  967. data/ext/cargo-vendor/wasmtime-cranelift-20.0.2/src/debug/transform/attr.rs +0 -345
  968. data/ext/cargo-vendor/wasmtime-cranelift-20.0.2/src/debug/transform/expression.rs +0 -1252
  969. data/ext/cargo-vendor/wasmtime-cranelift-20.0.2/src/debug/transform/line_program.rs +0 -282
  970. data/ext/cargo-vendor/wasmtime-cranelift-20.0.2/src/debug/transform/mod.rs +0 -126
  971. data/ext/cargo-vendor/wasmtime-cranelift-20.0.2/src/debug/transform/unit.rs +0 -522
  972. data/ext/cargo-vendor/wasmtime-cranelift-20.0.2/src/debug/transform/utils.rs +0 -187
  973. data/ext/cargo-vendor/wasmtime-cranelift-20.0.2/src/debug/write_debuginfo.rs +0 -187
  974. data/ext/cargo-vendor/wasmtime-cranelift-20.0.2/src/debug.rs +0 -18
  975. data/ext/cargo-vendor/wasmtime-cranelift-20.0.2/src/func_environ.rs +0 -2672
  976. data/ext/cargo-vendor/wasmtime-cranelift-20.0.2/src/gc/enabled.rs +0 -649
  977. data/ext/cargo-vendor/wasmtime-cranelift-20.0.2/src/gc.rs +0 -198
  978. data/ext/cargo-vendor/wasmtime-cranelift-20.0.2/src/lib.rs +0 -505
  979. data/ext/cargo-vendor/wasmtime-environ-20.0.2/.cargo-checksum.json +0 -1
  980. data/ext/cargo-vendor/wasmtime-environ-20.0.2/Cargo.lock +0 -782
  981. data/ext/cargo-vendor/wasmtime-environ-20.0.2/Cargo.toml +0 -144
  982. data/ext/cargo-vendor/wasmtime-environ-20.0.2/examples/factc.rs +0 -205
  983. data/ext/cargo-vendor/wasmtime-environ-20.0.2/src/compile/address_map.rs +0 -72
  984. data/ext/cargo-vendor/wasmtime-environ-20.0.2/src/compile/mod.rs +0 -389
  985. data/ext/cargo-vendor/wasmtime-environ-20.0.2/src/compile/module_artifacts.rs +0 -300
  986. data/ext/cargo-vendor/wasmtime-environ-20.0.2/src/compile/trap_encoding.rs +0 -69
  987. data/ext/cargo-vendor/wasmtime-environ-20.0.2/src/component/compiler.rs +0 -19
  988. data/ext/cargo-vendor/wasmtime-environ-20.0.2/src/component/dfg.rs +0 -690
  989. data/ext/cargo-vendor/wasmtime-environ-20.0.2/src/component/info.rs +0 -672
  990. data/ext/cargo-vendor/wasmtime-environ-20.0.2/src/component/translate/adapt.rs +0 -459
  991. data/ext/cargo-vendor/wasmtime-environ-20.0.2/src/component/translate.rs +0 -965
  992. data/ext/cargo-vendor/wasmtime-environ-20.0.2/src/component/types/resources.rs +0 -234
  993. data/ext/cargo-vendor/wasmtime-environ-20.0.2/src/component/types.rs +0 -1972
  994. data/ext/cargo-vendor/wasmtime-environ-20.0.2/src/component.rs +0 -103
  995. data/ext/cargo-vendor/wasmtime-environ-20.0.2/src/demangling.rs +0 -28
  996. data/ext/cargo-vendor/wasmtime-environ-20.0.2/src/fact/core_types.rs +0 -24
  997. data/ext/cargo-vendor/wasmtime-environ-20.0.2/src/fact/signature.rs +0 -135
  998. data/ext/cargo-vendor/wasmtime-environ-20.0.2/src/fact/trampoline.rs +0 -3233
  999. data/ext/cargo-vendor/wasmtime-environ-20.0.2/src/fact/transcode.rs +0 -89
  1000. data/ext/cargo-vendor/wasmtime-environ-20.0.2/src/fact/traps.rs +0 -115
  1001. data/ext/cargo-vendor/wasmtime-environ-20.0.2/src/fact.rs +0 -711
  1002. data/ext/cargo-vendor/wasmtime-environ-20.0.2/src/lib.rs +0 -70
  1003. data/ext/cargo-vendor/wasmtime-environ-20.0.2/src/module.rs +0 -780
  1004. data/ext/cargo-vendor/wasmtime-environ-20.0.2/src/module_artifacts.rs +0 -145
  1005. data/ext/cargo-vendor/wasmtime-environ-20.0.2/src/module_environ.rs +0 -1288
  1006. data/ext/cargo-vendor/wasmtime-environ-20.0.2/src/module_types.rs +0 -122
  1007. data/ext/cargo-vendor/wasmtime-environ-20.0.2/src/scopevec.rs +0 -78
  1008. data/ext/cargo-vendor/wasmtime-environ-20.0.2/src/stack_map.rs +0 -36
  1009. data/ext/cargo-vendor/wasmtime-environ-20.0.2/src/trap_encoding.rs +0 -188
  1010. data/ext/cargo-vendor/wasmtime-environ-20.0.2/src/tunables.rs +0 -158
  1011. data/ext/cargo-vendor/wasmtime-environ-20.0.2/src/vmoffsets.rs +0 -952
  1012. data/ext/cargo-vendor/wasmtime-fiber-20.0.2/.cargo-checksum.json +0 -1
  1013. data/ext/cargo-vendor/wasmtime-fiber-20.0.2/Cargo.toml +0 -63
  1014. data/ext/cargo-vendor/wasmtime-fiber-20.0.2/build.rs +0 -26
  1015. data/ext/cargo-vendor/wasmtime-fiber-20.0.2/src/lib.rs +0 -328
  1016. data/ext/cargo-vendor/wasmtime-fiber-20.0.2/src/unix.rs +0 -265
  1017. data/ext/cargo-vendor/wasmtime-fiber-20.0.2/src/windows.rs +0 -166
  1018. data/ext/cargo-vendor/wasmtime-jit-debug-20.0.2/.cargo-checksum.json +0 -1
  1019. data/ext/cargo-vendor/wasmtime-jit-debug-20.0.2/Cargo.toml +0 -67
  1020. data/ext/cargo-vendor/wasmtime-jit-icache-coherence-20.0.2/.cargo-checksum.json +0 -1
  1021. data/ext/cargo-vendor/wasmtime-jit-icache-coherence-20.0.2/Cargo.toml +0 -47
  1022. data/ext/cargo-vendor/wasmtime-jit-icache-coherence-20.0.2/src/lib.rs +0 -108
  1023. data/ext/cargo-vendor/wasmtime-jit-icache-coherence-20.0.2/src/libc.rs +0 -149
  1024. data/ext/cargo-vendor/wasmtime-jit-icache-coherence-20.0.2/src/miri.rs +0 -10
  1025. data/ext/cargo-vendor/wasmtime-jit-icache-coherence-20.0.2/src/win.rs +0 -45
  1026. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/.cargo-checksum.json +0 -1
  1027. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/Cargo.toml +0 -147
  1028. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/build.rs +0 -24
  1029. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/arch/aarch64.rs +0 -76
  1030. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/arch/x86_64.rs +0 -41
  1031. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/async_yield.rs +0 -35
  1032. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/component/libcalls.rs +0 -571
  1033. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/component/resources.rs +0 -351
  1034. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/component.rs +0 -860
  1035. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/cow.rs +0 -888
  1036. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/debug_builtins.rs +0 -59
  1037. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/export.rs +0 -108
  1038. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/gc/disabled.rs +0 -23
  1039. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/gc/enabled/drc.rs +0 -963
  1040. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/gc/enabled/externref.rs +0 -115
  1041. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/gc/enabled/free_list.rs +0 -767
  1042. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/gc/enabled.rs +0 -18
  1043. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/gc/gc_ref.rs +0 -486
  1044. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/gc/gc_runtime.rs +0 -503
  1045. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/gc/host_data.rs +0 -81
  1046. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/gc/i31.rs +0 -86
  1047. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/gc.rs +0 -244
  1048. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/imports.rs +0 -27
  1049. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/instance/allocator/on_demand.rs +0 -217
  1050. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/instance/allocator/pooling/gc_heap_pool.rs +0 -92
  1051. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/instance/allocator/pooling/index_allocator.rs +0 -704
  1052. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/instance/allocator/pooling/memory_pool.rs +0 -996
  1053. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/instance/allocator/pooling/stack_pool.rs +0 -242
  1054. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/instance/allocator/pooling/table_pool.rs +0 -231
  1055. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/instance/allocator/pooling.rs +0 -699
  1056. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/instance/allocator.rs +0 -780
  1057. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/instance.rs +0 -1566
  1058. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/lib.rs +0 -289
  1059. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/libcalls.rs +0 -777
  1060. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/memory.rs +0 -751
  1061. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/mmap.rs +0 -214
  1062. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/mmap_vec.rs +0 -201
  1063. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/module_id.rs +0 -43
  1064. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/mpk/enabled.rs +0 -213
  1065. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/mpk/mod.rs +0 -54
  1066. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/mpk/pkru.rs +0 -104
  1067. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/mpk/sys.rs +0 -113
  1068. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/send_sync_ptr.rs +0 -106
  1069. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/store_box.rs +0 -35
  1070. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/sys/custom/capi.rs +0 -189
  1071. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/sys/custom/mmap.rs +0 -111
  1072. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/sys/custom/mod.rs +0 -24
  1073. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/sys/custom/traphandlers.rs +0 -55
  1074. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/sys/custom/vm.rs +0 -108
  1075. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/sys/miri/mmap.rs +0 -94
  1076. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/sys/miri/mod.rs +0 -10
  1077. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/sys/miri/traphandlers.rs +0 -47
  1078. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/sys/mod.rs +0 -33
  1079. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/sys/unix/machports.rs +0 -416
  1080. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/sys/unix/mmap.rs +0 -151
  1081. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/sys/unix/mod.rs +0 -21
  1082. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/sys/unix/signals.rs +0 -401
  1083. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/sys/unix/unwind.rs +0 -149
  1084. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/sys/unix/vm.rs +0 -208
  1085. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/sys/windows/mmap.rs +0 -216
  1086. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/sys/windows/mod.rs +0 -6
  1087. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/sys/windows/traphandlers.rs +0 -104
  1088. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/table.rs +0 -851
  1089. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/threads/parking_spot.rs +0 -621
  1090. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/threads/shared_memory.rs +0 -230
  1091. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/threads/shared_memory_disabled.rs +0 -100
  1092. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/traphandlers/backtrace.rs +0 -265
  1093. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/traphandlers/coredump_disabled.rs +0 -16
  1094. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/traphandlers/coredump_enabled.rs +0 -40
  1095. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/traphandlers.rs +0 -785
  1096. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/vmcontext/vm_host_func_context.rs +0 -137
  1097. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/vmcontext.rs +0 -1293
  1098. data/ext/cargo-vendor/wasmtime-slab-20.0.2/.cargo-checksum.json +0 -1
  1099. data/ext/cargo-vendor/wasmtime-slab-20.0.2/Cargo.toml +0 -21
  1100. data/ext/cargo-vendor/wasmtime-slab-20.0.2/src/lib.rs +0 -493
  1101. data/ext/cargo-vendor/wasmtime-types-20.0.2/.cargo-checksum.json +0 -1
  1102. data/ext/cargo-vendor/wasmtime-types-20.0.2/Cargo.toml +0 -36
  1103. data/ext/cargo-vendor/wasmtime-types-20.0.2/src/error.rs +0 -59
  1104. data/ext/cargo-vendor/wasmtime-types-20.0.2/src/lib.rs +0 -832
  1105. data/ext/cargo-vendor/wasmtime-versioned-export-macros-20.0.2/.cargo-checksum.json +0 -1
  1106. data/ext/cargo-vendor/wasmtime-versioned-export-macros-20.0.2/Cargo.toml +0 -32
  1107. data/ext/cargo-vendor/wasmtime-wasi-20.0.2/.cargo-checksum.json +0 -1
  1108. data/ext/cargo-vendor/wasmtime-wasi-20.0.2/Cargo.toml +0 -194
  1109. data/ext/cargo-vendor/wasmtime-wasi-20.0.2/src/bindings.rs +0 -283
  1110. data/ext/cargo-vendor/wasmtime-wasi-20.0.2/src/ctx.rs +0 -659
  1111. data/ext/cargo-vendor/wasmtime-wasi-20.0.2/src/filesystem.rs +0 -433
  1112. data/ext/cargo-vendor/wasmtime-wasi-20.0.2/src/lib.rs +0 -404
  1113. data/ext/cargo-vendor/wasmtime-wasi-20.0.2/src/preview0.rs +0 -879
  1114. data/ext/cargo-vendor/wasmtime-wasi-20.0.2/src/preview1.rs +0 -2601
  1115. data/ext/cargo-vendor/wasmtime-wasi-20.0.2/tests/all/api.rs +0 -194
  1116. data/ext/cargo-vendor/wasmtime-wasi-20.0.2/tests/all/async_.rs +0 -397
  1117. data/ext/cargo-vendor/wasmtime-wasi-20.0.2/tests/all/main.rs +0 -91
  1118. data/ext/cargo-vendor/wasmtime-wasi-20.0.2/tests/all/preview1.rs +0 -251
  1119. data/ext/cargo-vendor/wasmtime-wasi-20.0.2/tests/all/sync.rs +0 -333
  1120. data/ext/cargo-vendor/wasmtime-winch-20.0.2/.cargo-checksum.json +0 -1
  1121. data/ext/cargo-vendor/wasmtime-winch-20.0.2/Cargo.toml +0 -81
  1122. data/ext/cargo-vendor/wasmtime-winch-20.0.2/src/compiler.rs +0 -257
  1123. data/ext/cargo-vendor/wasmtime-wit-bindgen-20.0.2/.cargo-checksum.json +0 -1
  1124. data/ext/cargo-vendor/wasmtime-wit-bindgen-20.0.2/Cargo.toml +0 -41
  1125. data/ext/cargo-vendor/wasmtime-wit-bindgen-20.0.2/src/lib.rs +0 -2213
  1126. data/ext/cargo-vendor/wasmtime-wit-bindgen-20.0.2/src/rust.rs +0 -421
  1127. data/ext/cargo-vendor/wiggle-20.0.2/.cargo-checksum.json +0 -1
  1128. data/ext/cargo-vendor/wiggle-20.0.2/Cargo.toml +0 -122
  1129. data/ext/cargo-vendor/wiggle-generate-20.0.2/.cargo-checksum.json +0 -1
  1130. data/ext/cargo-vendor/wiggle-generate-20.0.2/Cargo.toml +0 -65
  1131. data/ext/cargo-vendor/wiggle-generate-20.0.2/LICENSE +0 -220
  1132. data/ext/cargo-vendor/wiggle-macro-20.0.2/.cargo-checksum.json +0 -1
  1133. data/ext/cargo-vendor/wiggle-macro-20.0.2/Cargo.toml +0 -55
  1134. data/ext/cargo-vendor/wiggle-macro-20.0.2/LICENSE +0 -220
  1135. data/ext/cargo-vendor/winch-codegen-0.18.2/.cargo-checksum.json +0 -1
  1136. data/ext/cargo-vendor/winch-codegen-0.18.2/Cargo.toml +0 -81
  1137. data/ext/cargo-vendor/winch-codegen-0.18.2/src/codegen/context.rs +0 -534
  1138. data/ext/cargo-vendor/winch-codegen-0.18.2/src/codegen/env.rs +0 -435
  1139. data/ext/cargo-vendor/winch-codegen-0.18.2/src/codegen/mod.rs +0 -756
  1140. data/ext/cargo-vendor/winch-codegen-0.18.2/src/isa/aarch64/abi.rs +0 -291
  1141. data/ext/cargo-vendor/winch-codegen-0.18.2/src/isa/aarch64/address.rs +0 -144
  1142. data/ext/cargo-vendor/winch-codegen-0.18.2/src/isa/aarch64/asm.rs +0 -252
  1143. data/ext/cargo-vendor/winch-codegen-0.18.2/src/isa/aarch64/masm.rs +0 -573
  1144. data/ext/cargo-vendor/winch-codegen-0.18.2/src/isa/aarch64/mod.rs +0 -154
  1145. data/ext/cargo-vendor/winch-codegen-0.18.2/src/isa/aarch64/regs.rs +0 -149
  1146. data/ext/cargo-vendor/winch-codegen-0.18.2/src/isa/reg.rs +0 -86
  1147. data/ext/cargo-vendor/winch-codegen-0.18.2/src/isa/x64/asm.rs +0 -1423
  1148. data/ext/cargo-vendor/winch-codegen-0.18.2/src/isa/x64/masm.rs +0 -1256
  1149. data/ext/cargo-vendor/winch-codegen-0.18.2/src/masm.rs +0 -947
  1150. data/ext/cargo-vendor/winch-codegen-0.18.2/src/regalloc.rs +0 -65
  1151. data/ext/cargo-vendor/winch-codegen-0.18.2/src/regset.rs +0 -194
  1152. data/ext/cargo-vendor/winch-codegen-0.18.2/src/visitor.rs +0 -2149
  1153. data/ext/cargo-vendor/wit-parser-0.202.0/.cargo-checksum.json +0 -1
  1154. data/ext/cargo-vendor/wit-parser-0.202.0/Cargo.toml +0 -101
  1155. data/ext/cargo-vendor/wit-parser-0.202.0/src/ast/resolve.rs +0 -1443
  1156. data/ext/cargo-vendor/wit-parser-0.202.0/src/decoding.rs +0 -1764
  1157. data/ext/cargo-vendor/wit-parser-0.202.0/src/lib.rs +0 -765
  1158. data/ext/cargo-vendor/wit-parser-0.202.0/src/live.rs +0 -111
  1159. data/ext/cargo-vendor/wit-parser-0.202.0/src/resolve.rs +0 -2240
  1160. data/ext/cargo-vendor/wit-parser-0.202.0/tests/ui/resources-multiple-returns-borrow.wit.json +0 -74
  1161. data/ext/cargo-vendor/wit-parser-0.202.0/tests/ui/resources-return-borrow.wit.json +0 -69
  1162. data/ext/cargo-vendor/wit-parser-0.202.0/tests/ui/world-top-level-resources.wit +0 -24
  1163. data/ext/cargo-vendor/wit-parser-0.202.0/tests/ui/world-top-level-resources.wit.json +0 -240
  1164. data/ext/src/ruby_api/config/tracked_memory_creator.rs +0 -82
  1165. /data/ext/cargo-vendor/{cranelift-bforest-0.107.2 → cranelift-bforest-0.108.1}/LICENSE +0 -0
  1166. /data/ext/cargo-vendor/{cranelift-bforest-0.107.2 → cranelift-bforest-0.108.1}/README.md +0 -0
  1167. /data/ext/cargo-vendor/{cranelift-bforest-0.107.2 → cranelift-bforest-0.108.1}/src/lib.rs +0 -0
  1168. /data/ext/cargo-vendor/{cranelift-bforest-0.107.2 → cranelift-bforest-0.108.1}/src/map.rs +0 -0
  1169. /data/ext/cargo-vendor/{cranelift-bforest-0.107.2 → cranelift-bforest-0.108.1}/src/node.rs +0 -0
  1170. /data/ext/cargo-vendor/{cranelift-bforest-0.107.2 → cranelift-bforest-0.108.1}/src/path.rs +0 -0
  1171. /data/ext/cargo-vendor/{cranelift-bforest-0.107.2 → cranelift-bforest-0.108.1}/src/pool.rs +0 -0
  1172. /data/ext/cargo-vendor/{cranelift-bforest-0.107.2 → cranelift-bforest-0.108.1}/src/set.rs +0 -0
  1173. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/LICENSE +0 -0
  1174. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/README.md +0 -0
  1175. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/benches/x64-evex-encoding.rs +0 -0
  1176. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/binemit/mod.rs +0 -0
  1177. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/binemit/stack_map.rs +0 -0
  1178. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/bitset.rs +0 -0
  1179. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/cfg_printer.rs +0 -0
  1180. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/constant_hash.rs +0 -0
  1181. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/cursor.rs +0 -0
  1182. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/data_value.rs +0 -0
  1183. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/dbg.rs +0 -0
  1184. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/dce.rs +0 -0
  1185. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/dominator_tree.rs +0 -0
  1186. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/egraph/cost.rs +0 -0
  1187. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/flowgraph.rs +0 -0
  1188. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/inst_predicates.rs +0 -0
  1189. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/ir/atomic_rmw_op.rs +0 -0
  1190. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/ir/builder.rs +0 -0
  1191. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/ir/condcodes.rs +0 -0
  1192. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/ir/constant.rs +0 -0
  1193. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/ir/dfg.rs +0 -0
  1194. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/ir/dynamic_type.rs +0 -0
  1195. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/ir/entities.rs +0 -0
  1196. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/ir/extfunc.rs +0 -0
  1197. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/ir/extname.rs +0 -0
  1198. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/ir/function.rs +0 -0
  1199. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/ir/globalvalue.rs +0 -0
  1200. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/ir/immediates.rs +0 -0
  1201. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/ir/jumptable.rs +0 -0
  1202. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/ir/known_symbol.rs +0 -0
  1203. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/ir/layout.rs +0 -0
  1204. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/ir/libcall.rs +0 -0
  1205. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/ir/memflags.rs +0 -0
  1206. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/ir/memtype.rs +0 -0
  1207. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/ir/mod.rs +0 -0
  1208. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/ir/pcc.rs +0 -0
  1209. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/ir/progpoint.rs +0 -0
  1210. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/ir/sourceloc.rs +0 -0
  1211. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/ir/stackslot.rs +0 -0
  1212. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/ir/trapcode.rs +0 -0
  1213. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/ir/types.rs +0 -0
  1214. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/aarch64/inst/unwind/systemv.rs +0 -0
  1215. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/aarch64/inst/unwind.rs +0 -0
  1216. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/aarch64/inst_neon.isle +0 -0
  1217. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/aarch64/lower/isle/generated_code.rs +0 -0
  1218. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/aarch64/lower.isle +0 -0
  1219. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/aarch64/lower.rs +0 -0
  1220. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/aarch64/lower_dynamic_neon.isle +0 -0
  1221. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/aarch64/mod.rs +0 -0
  1222. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/aarch64/settings.rs +0 -0
  1223. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/call_conv.rs +0 -0
  1224. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/riscv64/inst/encode.rs +0 -0
  1225. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/riscv64/inst/imms.rs +0 -0
  1226. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/riscv64/inst/unwind/systemv.rs +0 -0
  1227. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/riscv64/inst/unwind.rs +0 -0
  1228. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/riscv64/inst_vector.isle +0 -0
  1229. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/riscv64/lower/isle/generated_code.rs +0 -0
  1230. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/riscv64/lower.rs +0 -0
  1231. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/riscv64/mod.rs +0 -0
  1232. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/riscv64/settings.rs +0 -0
  1233. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/s390x/inst/emit_tests.rs +0 -0
  1234. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/s390x/inst/unwind/systemv.rs +0 -0
  1235. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/s390x/inst/unwind.rs +0 -0
  1236. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/s390x/inst.isle +0 -0
  1237. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/s390x/lower/isle/generated_code.rs +0 -0
  1238. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/s390x/lower/isle.rs +0 -0
  1239. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/s390x/lower.isle +0 -0
  1240. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/s390x/lower.rs +0 -0
  1241. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/s390x/mod.rs +0 -0
  1242. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/s390x/settings.rs +0 -0
  1243. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/unwind/systemv.rs +0 -0
  1244. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/unwind/winx64.rs +0 -0
  1245. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/unwind.rs +0 -0
  1246. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/x64/encoding/evex.rs +0 -0
  1247. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/x64/encoding/mod.rs +0 -0
  1248. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/x64/encoding/rex.rs +0 -0
  1249. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/x64/encoding/vex.rs +0 -0
  1250. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/x64/inst/emit_state.rs +0 -0
  1251. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/x64/inst/unwind/systemv.rs +0 -0
  1252. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/x64/inst/unwind/winx64.rs +0 -0
  1253. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/x64/inst/unwind.rs +0 -0
  1254. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/x64/lower/isle/generated_code.rs +0 -0
  1255. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/x64/mod.rs +0 -0
  1256. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/x64/settings.rs +0 -0
  1257. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isle_prelude.rs +0 -0
  1258. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/iterators.rs +0 -0
  1259. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/legalizer/globalvalue.rs +0 -0
  1260. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/legalizer/mod.rs +0 -0
  1261. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/loop_analysis.rs +0 -0
  1262. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/machinst/buffer.rs +0 -0
  1263. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/machinst/compile.rs +0 -0
  1264. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/machinst/helpers.rs +0 -0
  1265. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/machinst/inst_common.rs +0 -0
  1266. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/machinst/pcc.rs +0 -0
  1267. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/opts/README.md +0 -0
  1268. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/opts/bitops.isle +0 -0
  1269. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/opts/cprop.isle +0 -0
  1270. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/opts/extends.isle +0 -0
  1271. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/opts/generated_code.rs +0 -0
  1272. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/opts/remat.isle +0 -0
  1273. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/opts/selects.isle +0 -0
  1274. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/opts/shifts.isle +0 -0
  1275. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/opts/spaceship.isle +0 -0
  1276. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/opts/spectre.isle +0 -0
  1277. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/opts/vector.isle +0 -0
  1278. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/opts.rs +0 -0
  1279. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/prelude.isle +0 -0
  1280. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/prelude_lower.isle +0 -0
  1281. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/prelude_opt.isle +0 -0
  1282. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/print_errors.rs +0 -0
  1283. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/result.rs +0 -0
  1284. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/souper_harvest.rs +0 -0
  1285. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/timing.rs +0 -0
  1286. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/unionfind.rs +0 -0
  1287. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/unreachable_code.rs +0 -0
  1288. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/value_label.rs +0 -0
  1289. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/verifier/mod.rs +0 -0
  1290. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/write.rs +0 -0
  1291. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.107.2 → cranelift-codegen-meta-0.108.1}/LICENSE +0 -0
  1292. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.107.2 → cranelift-codegen-meta-0.108.1}/README.md +0 -0
  1293. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.107.2 → cranelift-codegen-meta-0.108.1}/src/cdsl/formats.rs +0 -0
  1294. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.107.2 → cranelift-codegen-meta-0.108.1}/src/cdsl/instructions.rs +0 -0
  1295. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.107.2 → cranelift-codegen-meta-0.108.1}/src/cdsl/isa.rs +0 -0
  1296. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.107.2 → cranelift-codegen-meta-0.108.1}/src/cdsl/mod.rs +0 -0
  1297. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.107.2 → cranelift-codegen-meta-0.108.1}/src/cdsl/operands.rs +0 -0
  1298. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.107.2 → cranelift-codegen-meta-0.108.1}/src/cdsl/settings.rs +0 -0
  1299. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.107.2 → cranelift-codegen-meta-0.108.1}/src/cdsl/types.rs +0 -0
  1300. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.107.2 → cranelift-codegen-meta-0.108.1}/src/cdsl/typevar.rs +0 -0
  1301. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.107.2 → cranelift-codegen-meta-0.108.1}/src/constant_hash.rs +0 -0
  1302. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.107.2 → cranelift-codegen-meta-0.108.1}/src/error.rs +0 -0
  1303. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.107.2 → cranelift-codegen-meta-0.108.1}/src/isa/arm64.rs +0 -0
  1304. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.107.2 → cranelift-codegen-meta-0.108.1}/src/isa/mod.rs +0 -0
  1305. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.107.2 → cranelift-codegen-meta-0.108.1}/src/isa/s390x.rs +0 -0
  1306. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.107.2 → cranelift-codegen-meta-0.108.1}/src/shared/entities.rs +0 -0
  1307. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.107.2 → cranelift-codegen-meta-0.108.1}/src/shared/formats.rs +0 -0
  1308. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.107.2 → cranelift-codegen-meta-0.108.1}/src/shared/immediates.rs +0 -0
  1309. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.107.2 → cranelift-codegen-meta-0.108.1}/src/shared/instructions.rs +0 -0
  1310. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.107.2 → cranelift-codegen-meta-0.108.1}/src/shared/mod.rs +0 -0
  1311. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.107.2 → cranelift-codegen-meta-0.108.1}/src/shared/types.rs +0 -0
  1312. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.107.2 → cranelift-codegen-meta-0.108.1}/src/unique_table.rs +0 -0
  1313. /data/ext/cargo-vendor/{cranelift-codegen-shared-0.107.2 → cranelift-codegen-shared-0.108.1}/LICENSE +0 -0
  1314. /data/ext/cargo-vendor/{cranelift-codegen-shared-0.107.2 → cranelift-codegen-shared-0.108.1}/README.md +0 -0
  1315. /data/ext/cargo-vendor/{cranelift-codegen-shared-0.107.2 → cranelift-codegen-shared-0.108.1}/src/constant_hash.rs +0 -0
  1316. /data/ext/cargo-vendor/{cranelift-codegen-shared-0.107.2 → cranelift-codegen-shared-0.108.1}/src/constants.rs +0 -0
  1317. /data/ext/cargo-vendor/{cranelift-codegen-shared-0.107.2 → cranelift-codegen-shared-0.108.1}/src/lib.rs +0 -0
  1318. /data/ext/cargo-vendor/{cranelift-control-0.107.2 → cranelift-control-0.108.1}/LICENSE +0 -0
  1319. /data/ext/cargo-vendor/{cranelift-control-0.107.2 → cranelift-control-0.108.1}/README.md +0 -0
  1320. /data/ext/cargo-vendor/{cranelift-control-0.107.2 → cranelift-control-0.108.1}/src/chaos.rs +0 -0
  1321. /data/ext/cargo-vendor/{cranelift-control-0.107.2 → cranelift-control-0.108.1}/src/lib.rs +0 -0
  1322. /data/ext/cargo-vendor/{cranelift-control-0.107.2 → cranelift-control-0.108.1}/src/zero_sized.rs +0 -0
  1323. /data/ext/cargo-vendor/{cranelift-entity-0.107.2 → cranelift-entity-0.108.1}/LICENSE +0 -0
  1324. /data/ext/cargo-vendor/{cranelift-entity-0.107.2 → cranelift-entity-0.108.1}/README.md +0 -0
  1325. /data/ext/cargo-vendor/{cranelift-entity-0.107.2 → cranelift-entity-0.108.1}/src/boxed_slice.rs +0 -0
  1326. /data/ext/cargo-vendor/{cranelift-entity-0.107.2 → cranelift-entity-0.108.1}/src/iter.rs +0 -0
  1327. /data/ext/cargo-vendor/{cranelift-entity-0.107.2 → cranelift-entity-0.108.1}/src/keys.rs +0 -0
  1328. /data/ext/cargo-vendor/{cranelift-entity-0.107.2 → cranelift-entity-0.108.1}/src/list.rs +0 -0
  1329. /data/ext/cargo-vendor/{cranelift-entity-0.107.2 → cranelift-entity-0.108.1}/src/map.rs +0 -0
  1330. /data/ext/cargo-vendor/{cranelift-entity-0.107.2 → cranelift-entity-0.108.1}/src/packed_option.rs +0 -0
  1331. /data/ext/cargo-vendor/{cranelift-entity-0.107.2 → cranelift-entity-0.108.1}/src/primary.rs +0 -0
  1332. /data/ext/cargo-vendor/{cranelift-entity-0.107.2 → cranelift-entity-0.108.1}/src/set.rs +0 -0
  1333. /data/ext/cargo-vendor/{cranelift-entity-0.107.2 → cranelift-entity-0.108.1}/src/sparse.rs +0 -0
  1334. /data/ext/cargo-vendor/{cranelift-entity-0.107.2 → cranelift-entity-0.108.1}/src/unsigned.rs +0 -0
  1335. /data/ext/cargo-vendor/{cranelift-frontend-0.107.2 → cranelift-frontend-0.108.1}/LICENSE +0 -0
  1336. /data/ext/cargo-vendor/{cranelift-frontend-0.107.2 → cranelift-frontend-0.108.1}/README.md +0 -0
  1337. /data/ext/cargo-vendor/{cranelift-frontend-0.107.2 → cranelift-frontend-0.108.1}/src/frontend.rs +0 -0
  1338. /data/ext/cargo-vendor/{cranelift-frontend-0.107.2 → cranelift-frontend-0.108.1}/src/lib.rs +0 -0
  1339. /data/ext/cargo-vendor/{cranelift-frontend-0.107.2 → cranelift-frontend-0.108.1}/src/ssa.rs +0 -0
  1340. /data/ext/cargo-vendor/{cranelift-frontend-0.107.2 → cranelift-frontend-0.108.1}/src/variable.rs +0 -0
  1341. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/README.md +0 -0
  1342. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/build.rs +0 -0
  1343. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/isle_examples/fail/bad_converters.isle +0 -0
  1344. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/isle_examples/fail/bound_var_type_mismatch.isle +0 -0
  1345. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/isle_examples/fail/converter_extractor_constructor.isle +0 -0
  1346. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/isle_examples/fail/error1.isle +0 -0
  1347. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/isle_examples/fail/extra_parens.isle +0 -0
  1348. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/isle_examples/fail/impure_expression.isle +0 -0
  1349. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/isle_examples/fail/impure_rhs.isle +0 -0
  1350. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/isle_examples/fail/multi_internal_etor.isle +0 -0
  1351. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/isle_examples/fail/multi_prio.isle +0 -0
  1352. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/isle_examples/link/borrows.isle +0 -0
  1353. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/isle_examples/link/borrows_main.rs +0 -0
  1354. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/isle_examples/link/iflets.isle +0 -0
  1355. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/isle_examples/link/iflets_main.rs +0 -0
  1356. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/isle_examples/link/multi_constructor.isle +0 -0
  1357. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/isle_examples/link/multi_constructor_main.rs +0 -0
  1358. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/isle_examples/link/multi_extractor.isle +0 -0
  1359. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/isle_examples/link/multi_extractor_main.rs +0 -0
  1360. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/isle_examples/link/test.isle +0 -0
  1361. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/isle_examples/link/test_main.rs +0 -0
  1362. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/isle_examples/pass/bound_var.isle +0 -0
  1363. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/isle_examples/pass/construct_and_extract.isle +0 -0
  1364. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/isle_examples/pass/conversions.isle +0 -0
  1365. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/isle_examples/pass/conversions_extern.isle +0 -0
  1366. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/isle_examples/pass/let.isle +0 -0
  1367. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/isle_examples/pass/nodebug.isle +0 -0
  1368. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/isle_examples/pass/prio_trie_bug.isle +0 -0
  1369. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/isle_examples/pass/test2.isle +0 -0
  1370. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/isle_examples/pass/test3.isle +0 -0
  1371. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/isle_examples/pass/test4.isle +0 -0
  1372. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/isle_examples/pass/tutorial.isle +0 -0
  1373. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/isle_examples/run/iconst.isle +0 -0
  1374. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/isle_examples/run/iconst_main.rs +0 -0
  1375. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/isle_examples/run/let_shadowing.isle +0 -0
  1376. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/isle_examples/run/let_shadowing_main.rs +0 -0
  1377. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/src/ast.rs +0 -0
  1378. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/src/compile.rs +0 -0
  1379. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/src/error.rs +0 -0
  1380. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/src/lexer.rs +0 -0
  1381. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/src/log.rs +0 -0
  1382. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/src/overlap.rs +0 -0
  1383. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/src/parser.rs +0 -0
  1384. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/tests/run_tests.rs +0 -0
  1385. /data/ext/cargo-vendor/{cranelift-native-0.107.2 → cranelift-native-0.108.1}/LICENSE +0 -0
  1386. /data/ext/cargo-vendor/{cranelift-native-0.107.2 → cranelift-native-0.108.1}/README.md +0 -0
  1387. /data/ext/cargo-vendor/{cranelift-native-0.107.2 → cranelift-native-0.108.1}/src/lib.rs +0 -0
  1388. /data/ext/cargo-vendor/{cranelift-native-0.107.2 → cranelift-native-0.108.1}/src/riscv.rs +0 -0
  1389. /data/ext/cargo-vendor/{cranelift-wasm-0.107.2 → cranelift-wasm-0.108.1}/LICENSE +0 -0
  1390. /data/ext/cargo-vendor/{cranelift-wasm-0.107.2 → cranelift-wasm-0.108.1}/README.md +0 -0
  1391. /data/ext/cargo-vendor/{cranelift-wasm-0.107.2 → cranelift-wasm-0.108.1}/src/code_translator/bounds_checks.rs +0 -0
  1392. /data/ext/cargo-vendor/{cranelift-wasm-0.107.2 → cranelift-wasm-0.108.1}/src/environ/mod.rs +0 -0
  1393. /data/ext/cargo-vendor/{cranelift-wasm-0.107.2 → cranelift-wasm-0.108.1}/src/func_translator.rs +0 -0
  1394. /data/ext/cargo-vendor/{cranelift-wasm-0.107.2 → cranelift-wasm-0.108.1}/src/heap.rs +0 -0
  1395. /data/ext/cargo-vendor/{cranelift-wasm-0.107.2 → cranelift-wasm-0.108.1}/src/lib.rs +0 -0
  1396. /data/ext/cargo-vendor/{cranelift-wasm-0.107.2 → cranelift-wasm-0.108.1}/src/module_translator.rs +0 -0
  1397. /data/ext/cargo-vendor/{cranelift-wasm-0.107.2 → cranelift-wasm-0.108.1}/src/state.rs +0 -0
  1398. /data/ext/cargo-vendor/{cranelift-wasm-0.107.2 → cranelift-wasm-0.108.1}/src/table.rs +0 -0
  1399. /data/ext/cargo-vendor/{cranelift-wasm-0.107.2 → cranelift-wasm-0.108.1}/src/translation_utils.rs +0 -0
  1400. /data/ext/cargo-vendor/{deterministic-wasi-ctx-0.1.21 → deterministic-wasi-ctx-0.1.22}/README.md +0 -0
  1401. /data/ext/cargo-vendor/{deterministic-wasi-ctx-0.1.21 → deterministic-wasi-ctx-0.1.22}/src/clocks.rs +0 -0
  1402. /data/ext/cargo-vendor/{deterministic-wasi-ctx-0.1.21 → deterministic-wasi-ctx-0.1.22}/src/lib.rs +0 -0
  1403. /data/ext/cargo-vendor/{deterministic-wasi-ctx-0.1.21 → deterministic-wasi-ctx-0.1.22}/src/noop_scheduler.rs +0 -0
  1404. /data/ext/cargo-vendor/{deterministic-wasi-ctx-0.1.21 → deterministic-wasi-ctx-0.1.22}/tests/clocks.rs +0 -0
  1405. /data/ext/cargo-vendor/{deterministic-wasi-ctx-0.1.21 → deterministic-wasi-ctx-0.1.22}/tests/common/mod.rs +0 -0
  1406. /data/ext/cargo-vendor/{deterministic-wasi-ctx-0.1.21 → deterministic-wasi-ctx-0.1.22}/tests/random.rs +0 -0
  1407. /data/ext/cargo-vendor/{deterministic-wasi-ctx-0.1.21 → deterministic-wasi-ctx-0.1.22}/tests/scheduler.rs +0 -0
  1408. /data/ext/cargo-vendor/{rb-sys-0.9.97 → rb-sys-0.9.100}/LICENSE-APACHE +0 -0
  1409. /data/ext/cargo-vendor/{rb-sys-0.9.97 → rb-sys-0.9.100}/LICENSE-MIT +0 -0
  1410. /data/ext/cargo-vendor/{rb-sys-0.9.97 → rb-sys-0.9.100}/bin/release.sh +0 -0
  1411. /data/ext/cargo-vendor/{rb-sys-0.9.97 → rb-sys-0.9.100}/build/features.rs +0 -0
  1412. /data/ext/cargo-vendor/{rb-sys-0.9.97 → rb-sys-0.9.100}/build/version.rs +0 -0
  1413. /data/ext/cargo-vendor/{rb-sys-0.9.97 → rb-sys-0.9.100}/readme.md +0 -0
  1414. /data/ext/cargo-vendor/{rb-sys-0.9.97 → rb-sys-0.9.100}/src/hidden.rs +0 -0
  1415. /data/ext/cargo-vendor/{rb-sys-0.9.97 → rb-sys-0.9.100}/src/lib.rs +0 -0
  1416. /data/ext/cargo-vendor/{rb-sys-0.9.97 → rb-sys-0.9.100}/src/macros.rs +0 -0
  1417. /data/ext/cargo-vendor/{rb-sys-0.9.97 → rb-sys-0.9.100}/src/memory.rs +0 -0
  1418. /data/ext/cargo-vendor/{rb-sys-0.9.97 → rb-sys-0.9.100}/src/ruby_abi_version.rs +0 -0
  1419. /data/ext/cargo-vendor/{rb-sys-0.9.97 → rb-sys-0.9.100}/src/special_consts.rs +0 -0
  1420. /data/ext/cargo-vendor/{rb-sys-0.9.97 → rb-sys-0.9.100}/src/stable_api/compiled.c +0 -0
  1421. /data/ext/cargo-vendor/{rb-sys-0.9.97 → rb-sys-0.9.100}/src/stable_api/compiled.rs +0 -0
  1422. /data/ext/cargo-vendor/{rb-sys-0.9.97 → rb-sys-0.9.100}/src/stable_api/ruby_2_6.rs +0 -0
  1423. /data/ext/cargo-vendor/{rb-sys-0.9.97 → rb-sys-0.9.100}/src/stable_api/ruby_2_7.rs +0 -0
  1424. /data/ext/cargo-vendor/{rb-sys-0.9.97 → rb-sys-0.9.100}/src/stable_api/ruby_3_0.rs +0 -0
  1425. /data/ext/cargo-vendor/{rb-sys-0.9.97 → rb-sys-0.9.100}/src/stable_api/ruby_3_1.rs +0 -0
  1426. /data/ext/cargo-vendor/{rb-sys-0.9.97 → rb-sys-0.9.100}/src/stable_api/ruby_3_2.rs +0 -0
  1427. /data/ext/cargo-vendor/{rb-sys-0.9.97 → rb-sys-0.9.100}/src/stable_api/ruby_3_3.rs +0 -0
  1428. /data/ext/cargo-vendor/{rb-sys-0.9.97 → rb-sys-0.9.100}/src/stable_api.rs +0 -0
  1429. /data/ext/cargo-vendor/{rb-sys-0.9.97 → rb-sys-0.9.100}/src/symbol.rs +0 -0
  1430. /data/ext/cargo-vendor/{rb-sys-0.9.97 → rb-sys-0.9.100}/src/utils.rs +0 -0
  1431. /data/ext/cargo-vendor/{rb-sys-0.9.97 → rb-sys-0.9.100}/src/value_type.rs +0 -0
  1432. /data/ext/cargo-vendor/{rb-sys-build-0.9.97 → rb-sys-build-0.9.100}/LICENSE-APACHE +0 -0
  1433. /data/ext/cargo-vendor/{rb-sys-build-0.9.97 → rb-sys-build-0.9.100}/LICENSE-MIT +0 -0
  1434. /data/ext/cargo-vendor/{rb-sys-build-0.9.97 → rb-sys-build-0.9.100}/src/bindings/sanitizer.rs +0 -0
  1435. /data/ext/cargo-vendor/{rb-sys-build-0.9.97 → rb-sys-build-0.9.100}/src/bindings/wrapper.h +0 -0
  1436. /data/ext/cargo-vendor/{rb-sys-build-0.9.97 → rb-sys-build-0.9.100}/src/lib.rs +0 -0
  1437. /data/ext/cargo-vendor/{rb-sys-build-0.9.97 → rb-sys-build-0.9.100}/src/rb_config/flags.rs +0 -0
  1438. /data/ext/cargo-vendor/{rb-sys-build-0.9.97 → rb-sys-build-0.9.100}/src/rb_config/library.rs +0 -0
  1439. /data/ext/cargo-vendor/{rb-sys-build-0.9.97 → rb-sys-build-0.9.100}/src/rb_config/search_path.rs +0 -0
  1440. /data/ext/cargo-vendor/{rb-sys-build-0.9.97 → rb-sys-build-0.9.100}/src/rb_config.rs +0 -0
  1441. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/LICENSE +0 -0
  1442. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/README.md +0 -0
  1443. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/src/clocks.rs +0 -0
  1444. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/src/ctx.rs +0 -0
  1445. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/src/dir.rs +0 -0
  1446. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/src/error.rs +0 -0
  1447. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/src/file.rs +0 -0
  1448. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/src/lib.rs +0 -0
  1449. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/src/pipe.rs +0 -0
  1450. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/src/random.rs +0 -0
  1451. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/src/sched/subscription.rs +0 -0
  1452. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/src/sched.rs +0 -0
  1453. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/src/snapshots/mod.rs +0 -0
  1454. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/src/snapshots/preview_0.rs +0 -0
  1455. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/src/snapshots/preview_1/error.rs +0 -0
  1456. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/src/snapshots/preview_1.rs +0 -0
  1457. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/src/string_array.rs +0 -0
  1458. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/src/sync/clocks.rs +0 -0
  1459. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/src/sync/dir.rs +0 -0
  1460. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/src/sync/file.rs +0 -0
  1461. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/src/sync/mod.rs +0 -0
  1462. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/src/sync/net.rs +0 -0
  1463. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/src/sync/sched/unix.rs +0 -0
  1464. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/src/sync/sched/windows.rs +0 -0
  1465. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/src/sync/sched.rs +0 -0
  1466. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/src/sync/stdio.rs +0 -0
  1467. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/src/table.rs +0 -0
  1468. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/src/tokio/dir.rs +0 -0
  1469. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/src/tokio/file.rs +0 -0
  1470. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/src/tokio/mod.rs +0 -0
  1471. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/src/tokio/net.rs +0 -0
  1472. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/src/tokio/sched/unix.rs +0 -0
  1473. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/src/tokio/sched/windows.rs +0 -0
  1474. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/src/tokio/sched.rs +0 -0
  1475. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/src/tokio/stdio.rs +0 -0
  1476. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/witx/preview0/typenames.witx +0 -0
  1477. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/witx/preview0/wasi_unstable.witx +0 -0
  1478. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/witx/preview1/typenames.witx +0 -0
  1479. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/witx/preview1/wasi_snapshot_preview1.witx +0 -0
  1480. /data/ext/cargo-vendor/{wasm-encoder-0.202.0 → wasm-encoder-0.207.0}/LICENSE +0 -0
  1481. /data/ext/cargo-vendor/{wasm-encoder-0.202.0 → wasm-encoder-0.207.0}/README.md +0 -0
  1482. /data/ext/cargo-vendor/{wasm-encoder-0.202.0 → wasm-encoder-0.207.0}/src/component/aliases.rs +0 -0
  1483. /data/ext/cargo-vendor/{wasm-encoder-0.202.0 → wasm-encoder-0.207.0}/src/component/builder.rs +0 -0
  1484. /data/ext/cargo-vendor/{wasm-encoder-0.202.0 → wasm-encoder-0.207.0}/src/component/canonicals.rs +0 -0
  1485. /data/ext/cargo-vendor/{wasm-encoder-0.202.0 → wasm-encoder-0.207.0}/src/component/components.rs +0 -0
  1486. /data/ext/cargo-vendor/{wasm-encoder-0.202.0 → wasm-encoder-0.207.0}/src/component/exports.rs +0 -0
  1487. /data/ext/cargo-vendor/{wasm-encoder-0.202.0 → wasm-encoder-0.207.0}/src/component/imports.rs +0 -0
  1488. /data/ext/cargo-vendor/{wasm-encoder-0.202.0 → wasm-encoder-0.207.0}/src/component/instances.rs +0 -0
  1489. /data/ext/cargo-vendor/{wasm-encoder-0.202.0 → wasm-encoder-0.207.0}/src/component/modules.rs +0 -0
  1490. /data/ext/cargo-vendor/{wasm-encoder-0.202.0 → wasm-encoder-0.207.0}/src/component/names.rs +0 -0
  1491. /data/ext/cargo-vendor/{wasm-encoder-0.202.0 → wasm-encoder-0.207.0}/src/component/start.rs +0 -0
  1492. /data/ext/cargo-vendor/{wasm-encoder-0.202.0 → wasm-encoder-0.207.0}/src/component/types.rs +0 -0
  1493. /data/ext/cargo-vendor/{wasm-encoder-0.202.0 → wasm-encoder-0.207.0}/src/component.rs +0 -0
  1494. /data/ext/cargo-vendor/{wasm-encoder-0.202.0 → wasm-encoder-0.207.0}/src/core/custom.rs +0 -0
  1495. /data/ext/cargo-vendor/{wasm-encoder-0.202.0 → wasm-encoder-0.207.0}/src/core/dump.rs +0 -0
  1496. /data/ext/cargo-vendor/{wasm-encoder-0.202.0 → wasm-encoder-0.207.0}/src/core/exports.rs +0 -0
  1497. /data/ext/cargo-vendor/{wasm-encoder-0.202.0 → wasm-encoder-0.207.0}/src/core/functions.rs +0 -0
  1498. /data/ext/cargo-vendor/{wasm-encoder-0.202.0 → wasm-encoder-0.207.0}/src/core/linking.rs +0 -0
  1499. /data/ext/cargo-vendor/{wasm-encoder-0.202.0 → wasm-encoder-0.207.0}/src/core/names.rs +0 -0
  1500. /data/ext/cargo-vendor/{wasm-encoder-0.202.0 → wasm-encoder-0.207.0}/src/core/producers.rs +0 -0
  1501. /data/ext/cargo-vendor/{wasm-encoder-0.202.0 → wasm-encoder-0.207.0}/src/core/start.rs +0 -0
  1502. /data/ext/cargo-vendor/{wasm-encoder-0.202.0 → wasm-encoder-0.207.0}/src/core/tags.rs +0 -0
  1503. /data/ext/cargo-vendor/{wasm-encoder-0.202.0 → wasm-encoder-0.207.0}/src/core.rs +0 -0
  1504. /data/ext/cargo-vendor/{wasm-encoder-0.202.0 → wasm-encoder-0.207.0}/src/lib.rs +0 -0
  1505. /data/ext/cargo-vendor/{wasm-encoder-0.202.0 → wasm-encoder-0.207.0}/src/raw.rs +0 -0
  1506. /data/ext/cargo-vendor/{wasmparser-0.202.0 → wasmparser-0.207.0}/README.md +0 -0
  1507. /data/ext/cargo-vendor/{wasmparser-0.202.0 → wasmparser-0.207.0}/benches/benchmark.rs +0 -0
  1508. /data/ext/cargo-vendor/{wasmparser-0.202.0 → wasmparser-0.207.0}/examples/simple.rs +0 -0
  1509. /data/ext/cargo-vendor/{wasmparser-0.202.0 → wasmparser-0.207.0}/src/readers/component/aliases.rs +0 -0
  1510. /data/ext/cargo-vendor/{wasmparser-0.202.0 → wasmparser-0.207.0}/src/readers/component/exports.rs +0 -0
  1511. /data/ext/cargo-vendor/{wasmparser-0.202.0 → wasmparser-0.207.0}/src/readers/component/imports.rs +0 -0
  1512. /data/ext/cargo-vendor/{wasmparser-0.202.0 → wasmparser-0.207.0}/src/readers/component.rs +0 -0
  1513. /data/ext/cargo-vendor/{wasmparser-0.202.0 → wasmparser-0.207.0}/src/readers/core/branch_hinting.rs +0 -0
  1514. /data/ext/cargo-vendor/{wasmparser-0.202.0 → wasmparser-0.207.0}/src/readers/core/exports.rs +0 -0
  1515. /data/ext/cargo-vendor/{wasmparser-0.202.0 → wasmparser-0.207.0}/src/readers/core/functions.rs +0 -0
  1516. /data/ext/cargo-vendor/{wasmparser-0.202.0 → wasmparser-0.207.0}/src/readers/core/imports.rs +0 -0
  1517. /data/ext/cargo-vendor/{wasmparser-0.202.0 → wasmparser-0.207.0}/src/readers/core/init.rs +0 -0
  1518. /data/ext/cargo-vendor/{wasmparser-0.202.0 → wasmparser-0.207.0}/src/readers/core/producers.rs +0 -0
  1519. /data/ext/cargo-vendor/{wasmparser-0.202.0 → wasmparser-0.207.0}/src/readers/core/tags.rs +0 -0
  1520. /data/ext/cargo-vendor/{wasmparser-0.202.0 → wasmparser-0.207.0}/tests/big-module.rs +0 -0
  1521. /data/ext/cargo-vendor/{wasmparser-0.202.0 → wasmprinter-0.207.0}/LICENSE +0 -0
  1522. /data/ext/cargo-vendor/{wasmprinter-0.202.0 → wasmprinter-0.207.0}/README.md +0 -0
  1523. /data/ext/cargo-vendor/{wasmprinter-0.202.0 → wasmtime-21.0.1}/LICENSE +0 -0
  1524. /data/ext/cargo-vendor/{wasmtime-20.0.2 → wasmtime-21.0.1}/README.md +0 -0
  1525. /data/ext/cargo-vendor/{wasmtime-runtime-20.0.2/proptest-regressions → wasmtime-21.0.1/proptest-regressions/runtime/vm}/instance/allocator/pooling/memory_pool.txt +0 -0
  1526. /data/ext/cargo-vendor/{wasmtime-20.0.2 → wasmtime-21.0.1}/src/runtime/gc/disabled/i31.rs +0 -0
  1527. /data/ext/cargo-vendor/{wasmtime-20.0.2 → wasmtime-21.0.1}/src/runtime/gc/disabled.rs +0 -0
  1528. /data/ext/cargo-vendor/{wasmtime-20.0.2 → wasmtime-21.0.1}/src/runtime/gc/enabled.rs +0 -0
  1529. /data/ext/cargo-vendor/{wasmtime-20.0.2 → wasmtime-21.0.1}/src/runtime/uninhabited.rs +0 -0
  1530. /data/ext/cargo-vendor/{wasmtime-runtime-20.0.2/src → wasmtime-21.0.1/src/runtime/vm}/arch/mod.rs +0 -0
  1531. /data/ext/cargo-vendor/{wasmtime-runtime-20.0.2/src → wasmtime-21.0.1/src/runtime/vm}/arch/riscv64.rs +0 -0
  1532. /data/ext/cargo-vendor/{wasmtime-runtime-20.0.2/src → wasmtime-21.0.1/src/runtime/vm}/arch/s390x.S +0 -0
  1533. /data/ext/cargo-vendor/{wasmtime-runtime-20.0.2/src → wasmtime-21.0.1/src/runtime/vm}/arch/s390x.rs +0 -0
  1534. /data/ext/cargo-vendor/{wasmtime-runtime-20.0.2/src → wasmtime-21.0.1/src/runtime/vm}/helpers.c +0 -0
  1535. /data/ext/cargo-vendor/{wasmtime-runtime-20.0.2/src → wasmtime-21.0.1/src/runtime/vm}/mpk/disabled.rs +0 -0
  1536. /data/ext/cargo-vendor/{wasmtime-runtime-20.0.2/src → wasmtime-21.0.1/src/runtime/vm}/sys/custom/unwind.rs +0 -0
  1537. /data/ext/cargo-vendor/{wasmtime-runtime-20.0.2/src → wasmtime-21.0.1/src/runtime/vm}/sys/miri/unwind.rs +0 -0
  1538. /data/ext/cargo-vendor/{wasmtime-runtime-20.0.2/src → wasmtime-21.0.1/src/runtime/vm}/sys/miri/vm.rs +0 -0
  1539. /data/ext/cargo-vendor/{wasmtime-runtime-20.0.2/src → wasmtime-21.0.1/src/runtime/vm}/sys/unix/macos_traphandlers.rs +0 -0
  1540. /data/ext/cargo-vendor/{wasmtime-runtime-20.0.2/src → wasmtime-21.0.1/src/runtime/vm}/sys/windows/unwind.rs +0 -0
  1541. /data/ext/cargo-vendor/{wasmtime-runtime-20.0.2/src → wasmtime-21.0.1/src/runtime/vm}/sys/windows/vm.rs +0 -0
  1542. /data/ext/cargo-vendor/{wasmtime-runtime-20.0.2/src → wasmtime-21.0.1/src/runtime/vm}/threads/mod.rs +0 -0
  1543. /data/ext/cargo-vendor/{wasmtime-20.0.2 → wasmtime-cache-21.0.1}/LICENSE +0 -0
  1544. /data/ext/cargo-vendor/{wasmtime-cache-20.0.2 → wasmtime-cache-21.0.1}/build.rs +0 -0
  1545. /data/ext/cargo-vendor/{wasmtime-cache-20.0.2 → wasmtime-cache-21.0.1}/src/config/tests.rs +0 -0
  1546. /data/ext/cargo-vendor/{wasmtime-cache-20.0.2 → wasmtime-cache-21.0.1}/src/config.rs +0 -0
  1547. /data/ext/cargo-vendor/{wasmtime-cache-20.0.2 → wasmtime-cache-21.0.1}/src/tests.rs +0 -0
  1548. /data/ext/cargo-vendor/{wasmtime-cache-20.0.2 → wasmtime-cache-21.0.1}/src/worker/tests/system_time_stub.rs +0 -0
  1549. /data/ext/cargo-vendor/{wasmtime-cache-20.0.2 → wasmtime-cache-21.0.1}/src/worker/tests.rs +0 -0
  1550. /data/ext/cargo-vendor/{wasmtime-cache-20.0.2 → wasmtime-cache-21.0.1}/src/worker.rs +0 -0
  1551. /data/ext/cargo-vendor/{wasmtime-cache-20.0.2 → wasmtime-cache-21.0.1}/tests/cache_write_default_config.rs +0 -0
  1552. /data/ext/cargo-vendor/{wasmtime-component-macro-20.0.2 → wasmtime-component-macro-21.0.1}/build.rs +0 -0
  1553. /data/ext/cargo-vendor/{wasmtime-component-macro-20.0.2 → wasmtime-component-macro-21.0.1}/src/lib.rs +0 -0
  1554. /data/ext/cargo-vendor/{wasmtime-component-macro-20.0.2 → wasmtime-component-macro-21.0.1}/tests/codegen/char.wit +0 -0
  1555. /data/ext/cargo-vendor/{wasmtime-component-macro-20.0.2 → wasmtime-component-macro-21.0.1}/tests/codegen/conventions.wit +0 -0
  1556. /data/ext/cargo-vendor/{wasmtime-component-macro-20.0.2 → wasmtime-component-macro-21.0.1}/tests/codegen/dead-code.wit +0 -0
  1557. /data/ext/cargo-vendor/{wasmtime-component-macro-20.0.2 → wasmtime-component-macro-21.0.1}/tests/codegen/direct-import.wit +0 -0
  1558. /data/ext/cargo-vendor/{wasmtime-component-macro-20.0.2 → wasmtime-component-macro-21.0.1}/tests/codegen/empty.wit +0 -0
  1559. /data/ext/cargo-vendor/{wasmtime-component-macro-20.0.2 → wasmtime-component-macro-21.0.1}/tests/codegen/flags.wit +0 -0
  1560. /data/ext/cargo-vendor/{wasmtime-component-macro-20.0.2 → wasmtime-component-macro-21.0.1}/tests/codegen/floats.wit +0 -0
  1561. /data/ext/cargo-vendor/{wasmtime-component-macro-20.0.2 → wasmtime-component-macro-21.0.1}/tests/codegen/function-new.wit +0 -0
  1562. /data/ext/cargo-vendor/{wasmtime-component-macro-20.0.2 → wasmtime-component-macro-21.0.1}/tests/codegen/integers.wit +0 -0
  1563. /data/ext/cargo-vendor/{wasmtime-component-macro-20.0.2 → wasmtime-component-macro-21.0.1}/tests/codegen/lists.wit +0 -0
  1564. /data/ext/cargo-vendor/{wasmtime-component-macro-20.0.2 → wasmtime-component-macro-21.0.1}/tests/codegen/many-arguments.wit +0 -0
  1565. /data/ext/cargo-vendor/{wasmtime-component-macro-20.0.2 → wasmtime-component-macro-21.0.1}/tests/codegen/multi-return.wit +0 -0
  1566. /data/ext/cargo-vendor/{wasmtime-component-macro-20.0.2 → wasmtime-component-macro-21.0.1}/tests/codegen/multiversion/deps/v1/root.wit +0 -0
  1567. /data/ext/cargo-vendor/{wasmtime-component-macro-20.0.2 → wasmtime-component-macro-21.0.1}/tests/codegen/multiversion/deps/v2/root.wit +0 -0
  1568. /data/ext/cargo-vendor/{wasmtime-component-macro-20.0.2 → wasmtime-component-macro-21.0.1}/tests/codegen/multiversion/root.wit +0 -0
  1569. /data/ext/cargo-vendor/{wasmtime-component-macro-20.0.2 → wasmtime-component-macro-21.0.1}/tests/codegen/records.wit +0 -0
  1570. /data/ext/cargo-vendor/{wasmtime-component-macro-20.0.2 → wasmtime-component-macro-21.0.1}/tests/codegen/rename.wit +0 -0
  1571. /data/ext/cargo-vendor/{wasmtime-component-macro-20.0.2 → wasmtime-component-macro-21.0.1}/tests/codegen/resources-export.wit +0 -0
  1572. /data/ext/cargo-vendor/{wasmtime-component-macro-20.0.2 → wasmtime-component-macro-21.0.1}/tests/codegen/resources-import.wit +0 -0
  1573. /data/ext/cargo-vendor/{wasmtime-component-macro-20.0.2 → wasmtime-component-macro-21.0.1}/tests/codegen/share-types.wit +0 -0
  1574. /data/ext/cargo-vendor/{wasmtime-component-macro-20.0.2 → wasmtime-component-macro-21.0.1}/tests/codegen/simple-functions.wit +0 -0
  1575. /data/ext/cargo-vendor/{wasmtime-component-macro-20.0.2 → wasmtime-component-macro-21.0.1}/tests/codegen/simple-lists.wit +0 -0
  1576. /data/ext/cargo-vendor/{wasmtime-component-macro-20.0.2 → wasmtime-component-macro-21.0.1}/tests/codegen/simple-wasi.wit +0 -0
  1577. /data/ext/cargo-vendor/{wasmtime-component-macro-20.0.2 → wasmtime-component-macro-21.0.1}/tests/codegen/small-anonymous.wit +0 -0
  1578. /data/ext/cargo-vendor/{wasmtime-component-macro-20.0.2 → wasmtime-component-macro-21.0.1}/tests/codegen/smoke-default.wit +0 -0
  1579. /data/ext/cargo-vendor/{wasmtime-component-macro-20.0.2 → wasmtime-component-macro-21.0.1}/tests/codegen/smoke-export.wit +0 -0
  1580. /data/ext/cargo-vendor/{wasmtime-component-macro-20.0.2 → wasmtime-component-macro-21.0.1}/tests/codegen/smoke.wit +0 -0
  1581. /data/ext/cargo-vendor/{wasmtime-component-macro-20.0.2 → wasmtime-component-macro-21.0.1}/tests/codegen/strings.wit +0 -0
  1582. /data/ext/cargo-vendor/{wasmtime-component-macro-20.0.2 → wasmtime-component-macro-21.0.1}/tests/codegen/unversioned-foo.wit +0 -0
  1583. /data/ext/cargo-vendor/{wasmtime-component-macro-20.0.2 → wasmtime-component-macro-21.0.1}/tests/codegen/use-paths.wit +0 -0
  1584. /data/ext/cargo-vendor/{wasmtime-component-macro-20.0.2 → wasmtime-component-macro-21.0.1}/tests/codegen/variants.wit +0 -0
  1585. /data/ext/cargo-vendor/{wasmtime-component-macro-20.0.2 → wasmtime-component-macro-21.0.1}/tests/codegen/wat.wit +0 -0
  1586. /data/ext/cargo-vendor/{wasmtime-component-macro-20.0.2 → wasmtime-component-macro-21.0.1}/tests/codegen/worlds-with-types.wit +0 -0
  1587. /data/ext/cargo-vendor/{wasmtime-cache-20.0.2 → wasmtime-cranelift-21.0.1}/LICENSE +0 -0
  1588. /data/ext/cargo-vendor/{wasmtime-cranelift-20.0.2 → wasmtime-cranelift-21.0.1}/SECURITY.md +0 -0
  1589. /data/ext/cargo-vendor/{wasmtime-cranelift-20.0.2 → wasmtime-cranelift-21.0.1}/src/builder.rs +0 -0
  1590. /data/ext/cargo-vendor/{wasmtime-cranelift-20.0.2 → wasmtime-cranelift-21.0.1}/src/compiled_function.rs +0 -0
  1591. /data/ext/cargo-vendor/{wasmtime-cranelift-20.0.2 → wasmtime-cranelift-21.0.1}/src/debug/transform/address_transform.rs +0 -0
  1592. /data/ext/cargo-vendor/{wasmtime-cranelift-20.0.2 → wasmtime-cranelift-21.0.1}/src/debug/transform/range_info_builder.rs +0 -0
  1593. /data/ext/cargo-vendor/{wasmtime-cranelift-20.0.2 → wasmtime-cranelift-21.0.1}/src/debug/transform/refs.rs +0 -0
  1594. /data/ext/cargo-vendor/{wasmtime-cranelift-20.0.2 → wasmtime-cranelift-21.0.1}/src/debug/transform/simulate.rs +0 -0
  1595. /data/ext/cargo-vendor/{wasmtime-cranelift-20.0.2 → wasmtime-cranelift-21.0.1}/src/gc/disabled.rs +0 -0
  1596. /data/ext/cargo-vendor/{wasmtime-cranelift-20.0.2 → wasmtime-cranelift-21.0.1}/src/isa_builder.rs +0 -0
  1597. /data/ext/cargo-vendor/{wasmtime-cranelift-20.0.2 → wasmtime-cranelift-21.0.1}/src/obj.rs +0 -0
  1598. /data/ext/cargo-vendor/{wasmtime-cranelift-20.0.2 → wasmtime-environ-21.0.1}/LICENSE +0 -0
  1599. /data/ext/cargo-vendor/{wasmtime-environ-20.0.2 → wasmtime-environ-21.0.1}/src/address_map.rs +0 -0
  1600. /data/ext/cargo-vendor/{wasmtime-environ-20.0.2 → wasmtime-environ-21.0.1}/src/builtin.rs +0 -0
  1601. /data/ext/cargo-vendor/{wasmtime-environ-20.0.2 → wasmtime-environ-21.0.1}/src/component/artifacts.rs +0 -0
  1602. /data/ext/cargo-vendor/{wasmtime-environ-20.0.2 → wasmtime-environ-21.0.1}/src/component/translate/inline.rs +0 -0
  1603. /data/ext/cargo-vendor/{wasmtime-environ-20.0.2 → wasmtime-environ-21.0.1}/src/component/vmcomponent_offsets.rs +0 -0
  1604. /data/ext/cargo-vendor/{wasmtime-environ-20.0.2 → wasmtime-environ-21.0.1}/src/gc.rs +0 -0
  1605. /data/ext/cargo-vendor/{wasmtime-environ-20.0.2 → wasmtime-environ-21.0.1}/src/obj.rs +0 -0
  1606. /data/ext/cargo-vendor/{wasmtime-environ-20.0.2 → wasmtime-environ-21.0.1}/src/ref_bits.rs +0 -0
  1607. /data/ext/cargo-vendor/{wasmtime-environ-20.0.2 → wasmtime-fiber-21.0.1}/LICENSE +0 -0
  1608. /data/ext/cargo-vendor/{wasmtime-fiber-20.0.2 → wasmtime-fiber-21.0.1}/src/unix/aarch64.rs +0 -0
  1609. /data/ext/cargo-vendor/{wasmtime-fiber-20.0.2 → wasmtime-fiber-21.0.1}/src/unix/arm.rs +0 -0
  1610. /data/ext/cargo-vendor/{wasmtime-fiber-20.0.2 → wasmtime-fiber-21.0.1}/src/unix/riscv64.rs +0 -0
  1611. /data/ext/cargo-vendor/{wasmtime-fiber-20.0.2 → wasmtime-fiber-21.0.1}/src/unix/s390x.S +0 -0
  1612. /data/ext/cargo-vendor/{wasmtime-fiber-20.0.2 → wasmtime-fiber-21.0.1}/src/unix/x86.rs +0 -0
  1613. /data/ext/cargo-vendor/{wasmtime-fiber-20.0.2 → wasmtime-fiber-21.0.1}/src/unix/x86_64.rs +0 -0
  1614. /data/ext/cargo-vendor/{wasmtime-fiber-20.0.2 → wasmtime-fiber-21.0.1}/src/windows.c +0 -0
  1615. /data/ext/cargo-vendor/{wasmtime-jit-debug-20.0.2 → wasmtime-jit-debug-21.0.1}/README.md +0 -0
  1616. /data/ext/cargo-vendor/{wasmtime-jit-debug-20.0.2 → wasmtime-jit-debug-21.0.1}/src/gdb_jit_int.rs +0 -0
  1617. /data/ext/cargo-vendor/{wasmtime-jit-debug-20.0.2 → wasmtime-jit-debug-21.0.1}/src/lib.rs +0 -0
  1618. /data/ext/cargo-vendor/{wasmtime-jit-debug-20.0.2 → wasmtime-jit-debug-21.0.1}/src/perf_jitdump.rs +0 -0
  1619. /data/ext/cargo-vendor/{wasmtime-fiber-20.0.2 → wasmtime-types-21.0.1}/LICENSE +0 -0
  1620. /data/ext/cargo-vendor/{wasmtime-versioned-export-macros-20.0.2 → wasmtime-versioned-export-macros-21.0.1}/src/lib.rs +0 -0
  1621. /data/ext/cargo-vendor/{wasmtime-runtime-20.0.2 → wasmtime-wasi-21.0.1}/LICENSE +0 -0
  1622. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/README.md +0 -0
  1623. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/src/clocks/host.rs +0 -0
  1624. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/src/clocks.rs +0 -0
  1625. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/src/error.rs +0 -0
  1626. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/src/host/clocks.rs +0 -0
  1627. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/src/host/env.rs +0 -0
  1628. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/src/host/exit.rs +0 -0
  1629. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/src/host/filesystem/sync.rs +0 -0
  1630. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/src/host/filesystem.rs +0 -0
  1631. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/src/host/instance_network.rs +0 -0
  1632. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/src/host/io.rs +0 -0
  1633. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/src/host/mod.rs +0 -0
  1634. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/src/host/network.rs +0 -0
  1635. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/src/host/random.rs +0 -0
  1636. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/src/host/tcp.rs +0 -0
  1637. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/src/host/tcp_create_socket.rs +0 -0
  1638. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/src/host/udp.rs +0 -0
  1639. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/src/host/udp_create_socket.rs +0 -0
  1640. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/src/ip_name_lookup.rs +0 -0
  1641. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/src/network.rs +0 -0
  1642. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/src/pipe.rs +0 -0
  1643. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/src/poll.rs +0 -0
  1644. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/src/random.rs +0 -0
  1645. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/src/runtime.rs +0 -0
  1646. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/src/stdio/worker_thread_stdin.rs +0 -0
  1647. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/src/stdio.rs +0 -0
  1648. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/src/stream.rs +0 -0
  1649. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/src/tcp.rs +0 -0
  1650. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/src/udp.rs +0 -0
  1651. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/src/write_stream.rs +0 -0
  1652. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/tests/process_stdin.rs +0 -0
  1653. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/wit/command-extended.wit +0 -0
  1654. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/wit/deps/cli/command.wit +0 -0
  1655. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/wit/deps/cli/environment.wit +0 -0
  1656. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/wit/deps/cli/exit.wit +0 -0
  1657. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/wit/deps/cli/imports.wit +0 -0
  1658. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/wit/deps/cli/run.wit +0 -0
  1659. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/wit/deps/cli/stdio.wit +0 -0
  1660. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/wit/deps/cli/terminal.wit +0 -0
  1661. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/wit/deps/clocks/monotonic-clock.wit +0 -0
  1662. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/wit/deps/clocks/wall-clock.wit +0 -0
  1663. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/wit/deps/clocks/world.wit +0 -0
  1664. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/wit/deps/filesystem/preopens.wit +0 -0
  1665. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/wit/deps/filesystem/types.wit +0 -0
  1666. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/wit/deps/filesystem/world.wit +0 -0
  1667. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/wit/deps/http/handler.wit +0 -0
  1668. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/wit/deps/http/proxy.wit +0 -0
  1669. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/wit/deps/http/types.wit +0 -0
  1670. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/wit/deps/io/error.wit +0 -0
  1671. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/wit/deps/io/poll.wit +0 -0
  1672. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/wit/deps/io/streams.wit +0 -0
  1673. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/wit/deps/io/world.wit +0 -0
  1674. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/wit/deps/random/insecure-seed.wit +0 -0
  1675. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/wit/deps/random/insecure.wit +0 -0
  1676. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/wit/deps/random/random.wit +0 -0
  1677. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/wit/deps/random/world.wit +0 -0
  1678. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/wit/deps/sockets/instance-network.wit +0 -0
  1679. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/wit/deps/sockets/ip-name-lookup.wit +0 -0
  1680. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/wit/deps/sockets/network.wit +0 -0
  1681. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/wit/deps/sockets/tcp-create-socket.wit +0 -0
  1682. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/wit/deps/sockets/tcp.wit +0 -0
  1683. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/wit/deps/sockets/udp-create-socket.wit +0 -0
  1684. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/wit/deps/sockets/udp.wit +0 -0
  1685. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/wit/deps/sockets/world.wit +0 -0
  1686. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/wit/test.wit +0 -0
  1687. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/witx/preview0/typenames.witx +0 -0
  1688. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/witx/preview0/wasi_unstable.witx +0 -0
  1689. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/witx/preview1/typenames.witx +0 -0
  1690. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/witx/preview1/wasi_snapshot_preview1.witx +0 -0
  1691. /data/ext/cargo-vendor/{wasmtime-winch-20.0.2 → wasmtime-winch-21.0.1}/LICENSE +0 -0
  1692. /data/ext/cargo-vendor/{wasmtime-winch-20.0.2 → wasmtime-winch-21.0.1}/src/builder.rs +0 -0
  1693. /data/ext/cargo-vendor/{wasmtime-winch-20.0.2 → wasmtime-winch-21.0.1}/src/lib.rs +0 -0
  1694. /data/ext/cargo-vendor/{wasmtime-wit-bindgen-20.0.2 → wasmtime-wit-bindgen-21.0.1}/src/source.rs +0 -0
  1695. /data/ext/cargo-vendor/{wasmtime-wit-bindgen-20.0.2 → wasmtime-wit-bindgen-21.0.1}/src/types.rs +0 -0
  1696. /data/ext/cargo-vendor/{wasmtime-types-20.0.2 → wiggle-21.0.1}/LICENSE +0 -0
  1697. /data/ext/cargo-vendor/{wiggle-20.0.2 → wiggle-21.0.1}/README.md +0 -0
  1698. /data/ext/cargo-vendor/{wiggle-20.0.2 → wiggle-21.0.1}/src/borrow.rs +0 -0
  1699. /data/ext/cargo-vendor/{wiggle-20.0.2 → wiggle-21.0.1}/src/error.rs +0 -0
  1700. /data/ext/cargo-vendor/{wiggle-20.0.2 → wiggle-21.0.1}/src/guest_type.rs +0 -0
  1701. /data/ext/cargo-vendor/{wiggle-20.0.2 → wiggle-21.0.1}/src/lib.rs +0 -0
  1702. /data/ext/cargo-vendor/{wiggle-20.0.2 → wiggle-21.0.1}/src/region.rs +0 -0
  1703. /data/ext/cargo-vendor/{wiggle-20.0.2 → wiggle-21.0.1}/src/wasmtime.rs +0 -0
  1704. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wiggle-generate-21.0.1}/LICENSE +0 -0
  1705. /data/ext/cargo-vendor/{wiggle-generate-20.0.2 → wiggle-generate-21.0.1}/README.md +0 -0
  1706. /data/ext/cargo-vendor/{wiggle-generate-20.0.2 → wiggle-generate-21.0.1}/src/codegen_settings.rs +0 -0
  1707. /data/ext/cargo-vendor/{wiggle-generate-20.0.2 → wiggle-generate-21.0.1}/src/config.rs +0 -0
  1708. /data/ext/cargo-vendor/{wiggle-generate-20.0.2 → wiggle-generate-21.0.1}/src/funcs.rs +0 -0
  1709. /data/ext/cargo-vendor/{wiggle-generate-20.0.2 → wiggle-generate-21.0.1}/src/lib.rs +0 -0
  1710. /data/ext/cargo-vendor/{wiggle-generate-20.0.2 → wiggle-generate-21.0.1}/src/lifetimes.rs +0 -0
  1711. /data/ext/cargo-vendor/{wiggle-generate-20.0.2 → wiggle-generate-21.0.1}/src/module_trait.rs +0 -0
  1712. /data/ext/cargo-vendor/{wiggle-generate-20.0.2 → wiggle-generate-21.0.1}/src/names.rs +0 -0
  1713. /data/ext/cargo-vendor/{wiggle-generate-20.0.2 → wiggle-generate-21.0.1}/src/types/error.rs +0 -0
  1714. /data/ext/cargo-vendor/{wiggle-generate-20.0.2 → wiggle-generate-21.0.1}/src/types/flags.rs +0 -0
  1715. /data/ext/cargo-vendor/{wiggle-generate-20.0.2 → wiggle-generate-21.0.1}/src/types/handle.rs +0 -0
  1716. /data/ext/cargo-vendor/{wiggle-generate-20.0.2 → wiggle-generate-21.0.1}/src/types/mod.rs +0 -0
  1717. /data/ext/cargo-vendor/{wiggle-generate-20.0.2 → wiggle-generate-21.0.1}/src/types/record.rs +0 -0
  1718. /data/ext/cargo-vendor/{wiggle-generate-20.0.2 → wiggle-generate-21.0.1}/src/types/variant.rs +0 -0
  1719. /data/ext/cargo-vendor/{wiggle-generate-20.0.2 → wiggle-generate-21.0.1}/src/wasmtime.rs +0 -0
  1720. /data/ext/cargo-vendor/{wiggle-20.0.2 → wiggle-macro-21.0.1}/LICENSE +0 -0
  1721. /data/ext/cargo-vendor/{wiggle-macro-20.0.2 → wiggle-macro-21.0.1}/src/lib.rs +0 -0
  1722. /data/ext/cargo-vendor/{winch-codegen-0.18.2 → winch-codegen-0.19.1}/LICENSE +0 -0
  1723. /data/ext/cargo-vendor/{winch-codegen-0.18.2 → winch-codegen-0.19.1}/build.rs +0 -0
  1724. /data/ext/cargo-vendor/{winch-codegen-0.18.2 → winch-codegen-0.19.1}/src/abi/local.rs +0 -0
  1725. /data/ext/cargo-vendor/{winch-codegen-0.18.2 → winch-codegen-0.19.1}/src/abi/mod.rs +0 -0
  1726. /data/ext/cargo-vendor/{winch-codegen-0.18.2 → winch-codegen-0.19.1}/src/codegen/bounds.rs +0 -0
  1727. /data/ext/cargo-vendor/{winch-codegen-0.18.2 → winch-codegen-0.19.1}/src/codegen/builtin.rs +0 -0
  1728. /data/ext/cargo-vendor/{winch-codegen-0.18.2 → winch-codegen-0.19.1}/src/codegen/call.rs +0 -0
  1729. /data/ext/cargo-vendor/{winch-codegen-0.18.2 → winch-codegen-0.19.1}/src/codegen/control.rs +0 -0
  1730. /data/ext/cargo-vendor/{winch-codegen-0.18.2 → winch-codegen-0.19.1}/src/frame/mod.rs +0 -0
  1731. /data/ext/cargo-vendor/{winch-codegen-0.18.2 → winch-codegen-0.19.1}/src/isa/mod.rs +0 -0
  1732. /data/ext/cargo-vendor/{winch-codegen-0.18.2 → winch-codegen-0.19.1}/src/isa/x64/abi.rs +0 -0
  1733. /data/ext/cargo-vendor/{winch-codegen-0.18.2 → winch-codegen-0.19.1}/src/isa/x64/address.rs +0 -0
  1734. /data/ext/cargo-vendor/{winch-codegen-0.18.2 → winch-codegen-0.19.1}/src/isa/x64/mod.rs +0 -0
  1735. /data/ext/cargo-vendor/{winch-codegen-0.18.2 → winch-codegen-0.19.1}/src/isa/x64/regs.rs +0 -0
  1736. /data/ext/cargo-vendor/{winch-codegen-0.18.2 → winch-codegen-0.19.1}/src/lib.rs +0 -0
  1737. /data/ext/cargo-vendor/{winch-codegen-0.18.2 → winch-codegen-0.19.1}/src/stack.rs +0 -0
  1738. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/README.md +0 -0
  1739. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/src/abi.rs +0 -0
  1740. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/src/ast/lex.rs +0 -0
  1741. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/src/ast/toposort.rs +0 -0
  1742. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/src/ast.rs +0 -0
  1743. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/src/docs.rs +0 -0
  1744. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/src/serde_.rs +0 -0
  1745. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/src/sizealign.rs +0 -0
  1746. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/all.rs +0 -0
  1747. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/comments.wit +0 -0
  1748. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/comments.wit.json +0 -0
  1749. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/complex-include/deps/bar/root.wit +0 -0
  1750. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/complex-include/deps/baz/root.wit +0 -0
  1751. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/complex-include/root.wit +0 -0
  1752. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/complex-include.wit.json +0 -0
  1753. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/cross-package-resource/deps/foo/foo.wit +0 -0
  1754. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/cross-package-resource/foo.wit +0 -0
  1755. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/cross-package-resource.wit.json +0 -0
  1756. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/diamond1/deps/dep1/types.wit +0 -0
  1757. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/diamond1/deps/dep2/types.wit +0 -0
  1758. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/diamond1/join.wit +0 -0
  1759. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/diamond1.wit.json +0 -0
  1760. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/disambiguate-diamond/shared1.wit +0 -0
  1761. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/disambiguate-diamond/shared2.wit +0 -0
  1762. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/disambiguate-diamond/world.wit +0 -0
  1763. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/disambiguate-diamond.wit.json +0 -0
  1764. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/empty.wit +0 -0
  1765. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/empty.wit.json +0 -0
  1766. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/foreign-deps/deps/another-pkg/other-doc.wit +0 -0
  1767. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/foreign-deps/deps/corp/saas.wit +0 -0
  1768. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/foreign-deps/deps/different-pkg/the-doc.wit +0 -0
  1769. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/foreign-deps/deps/foreign-pkg/the-doc.wit +0 -0
  1770. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/foreign-deps/deps/some-pkg/some-doc.wit +0 -0
  1771. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/foreign-deps/deps/wasi/clocks.wit +0 -0
  1772. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/foreign-deps/deps/wasi/filesystem.wit +0 -0
  1773. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/foreign-deps/root.wit +0 -0
  1774. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/foreign-deps-union/deps/another-pkg/other-doc.wit +0 -0
  1775. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/foreign-deps-union/deps/corp/saas.wit +0 -0
  1776. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/foreign-deps-union/deps/different-pkg/the-doc.wit +0 -0
  1777. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/foreign-deps-union/deps/foreign-pkg/the-doc.wit +0 -0
  1778. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/foreign-deps-union/deps/some-pkg/some-doc.wit +0 -0
  1779. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/foreign-deps-union/deps/wasi/clocks.wit +0 -0
  1780. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/foreign-deps-union/deps/wasi/filesystem.wit +0 -0
  1781. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/foreign-deps-union/deps/wasi/wasi.wit +0 -0
  1782. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/foreign-deps-union/root.wit +0 -0
  1783. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/foreign-deps-union.wit.json +0 -0
  1784. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/foreign-deps.wit.json +0 -0
  1785. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/functions.wit +0 -0
  1786. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/functions.wit.json +0 -0
  1787. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/ignore-files-deps/deps/bar/types.wit +0 -0
  1788. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/ignore-files-deps/deps/ignore-me.txt +0 -0
  1789. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/ignore-files-deps/world.wit +0 -0
  1790. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/ignore-files-deps.wit.json +0 -0
  1791. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/import-export-overlap1.wit +0 -0
  1792. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/import-export-overlap1.wit.json +0 -0
  1793. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/import-export-overlap2.wit +0 -0
  1794. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/import-export-overlap2.wit.json +0 -0
  1795. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/include-reps.wit +0 -0
  1796. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/include-reps.wit.json +0 -0
  1797. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/kebab-name-include-with.wit +0 -0
  1798. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/kebab-name-include-with.wit.json +0 -0
  1799. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/kinds-of-deps/a.wit +0 -0
  1800. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/kinds-of-deps/deps/b/root.wit +0 -0
  1801. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/kinds-of-deps/deps/c.wit +0 -0
  1802. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/kinds-of-deps/deps/d.wat +0 -0
  1803. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/kinds-of-deps/deps/e.wasm +0 -0
  1804. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/kinds-of-deps.wit.json +0 -0
  1805. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/many-names/a.wit +0 -0
  1806. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/many-names/b.wit +0 -0
  1807. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/many-names.wit.json +0 -0
  1808. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/multi-file/bar.wit +0 -0
  1809. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/multi-file/cycle-a.wit +0 -0
  1810. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/multi-file/cycle-b.wit +0 -0
  1811. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/multi-file/foo.wit +0 -0
  1812. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/multi-file.wit.json +0 -0
  1813. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/name-both-resource-and-type/deps/dep/foo.wit +0 -0
  1814. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/name-both-resource-and-type/foo.wit +0 -0
  1815. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/name-both-resource-and-type.wit.json +0 -0
  1816. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/package-syntax1.wit +0 -0
  1817. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/package-syntax1.wit.json +0 -0
  1818. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/package-syntax3.wit +0 -0
  1819. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/package-syntax3.wit.json +0 -0
  1820. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/package-syntax4.wit +0 -0
  1821. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/package-syntax4.wit.json +0 -0
  1822. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/alias-no-type.wit +0 -0
  1823. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/alias-no-type.wit.result +0 -0
  1824. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/async.wit.result +0 -0
  1825. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/async1.wit.result +0 -0
  1826. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-function.wit +0 -0
  1827. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-function.wit.result +0 -0
  1828. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-function2.wit +0 -0
  1829. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-function2.wit.result +0 -0
  1830. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-include1.wit +0 -0
  1831. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-include1.wit.result +0 -0
  1832. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-include2.wit +0 -0
  1833. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-include2.wit.result +0 -0
  1834. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-include3.wit +0 -0
  1835. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-include3.wit.result +0 -0
  1836. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-list.wit +0 -0
  1837. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-list.wit.result +0 -0
  1838. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-pkg1/root.wit +0 -0
  1839. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-pkg1.wit.result +0 -0
  1840. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-pkg2/deps/bar/empty.wit +0 -0
  1841. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-pkg2/root.wit +0 -0
  1842. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-pkg2.wit.result +0 -0
  1843. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-pkg3/deps/bar/baz.wit +0 -0
  1844. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-pkg3/root.wit +0 -0
  1845. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-pkg3.wit.result +0 -0
  1846. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-pkg4/deps/bar/baz.wit +0 -0
  1847. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-pkg4/root.wit +0 -0
  1848. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-pkg4.wit.result +0 -0
  1849. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-pkg5/deps/bar/baz.wit +0 -0
  1850. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-pkg5/root.wit +0 -0
  1851. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-pkg5.wit.result +0 -0
  1852. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-pkg6/deps/bar/baz.wit +0 -0
  1853. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-pkg6/root.wit +0 -0
  1854. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-pkg6.wit.result +0 -0
  1855. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-resource1.wit +0 -0
  1856. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-resource1.wit.result +0 -0
  1857. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-resource10.wit +0 -0
  1858. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-resource10.wit.result +0 -0
  1859. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-resource11.wit +0 -0
  1860. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-resource11.wit.result +0 -0
  1861. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-resource12.wit +0 -0
  1862. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-resource12.wit.result +0 -0
  1863. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-resource13.wit +0 -0
  1864. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-resource13.wit.result +0 -0
  1865. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-resource14.wit +0 -0
  1866. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-resource14.wit.result +0 -0
  1867. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-resource15/deps/foo/foo.wit +0 -0
  1868. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-resource15/foo.wit +0 -0
  1869. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-resource15.wit.result +0 -0
  1870. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-resource2.wit +0 -0
  1871. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-resource2.wit.result +0 -0
  1872. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-resource3.wit +0 -0
  1873. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-resource3.wit.result +0 -0
  1874. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-resource4.wit +0 -0
  1875. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-resource4.wit.result +0 -0
  1876. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-resource5.wit +0 -0
  1877. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-resource5.wit.result +0 -0
  1878. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-resource6.wit +0 -0
  1879. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-resource6.wit.result +0 -0
  1880. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-resource7.wit +0 -0
  1881. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-resource7.wit.result +0 -0
  1882. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-resource8.wit +0 -0
  1883. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-resource8.wit.result +0 -0
  1884. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-resource9.wit +0 -0
  1885. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-resource9.wit.result +0 -0
  1886. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-world-type1.wit +0 -0
  1887. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-world-type1.wit.result +0 -0
  1888. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/conflicting-package/a.wit +0 -0
  1889. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/conflicting-package/b.wit +0 -0
  1890. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/conflicting-package.wit.result +0 -0
  1891. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/cycle.wit +0 -0
  1892. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/cycle.wit.result +0 -0
  1893. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/cycle2.wit +0 -0
  1894. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/cycle2.wit.result +0 -0
  1895. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/cycle3.wit +0 -0
  1896. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/cycle3.wit.result +0 -0
  1897. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/cycle4.wit +0 -0
  1898. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/cycle4.wit.result +0 -0
  1899. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/cycle5.wit +0 -0
  1900. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/cycle5.wit.result +0 -0
  1901. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/dangling-type.wit +0 -0
  1902. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/dangling-type.wit.result +0 -0
  1903. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/duplicate-function-params.wit +0 -0
  1904. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/duplicate-function-params.wit.result +0 -0
  1905. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/duplicate-functions.wit +0 -0
  1906. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/duplicate-functions.wit.result +0 -0
  1907. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/duplicate-interface.wit +0 -0
  1908. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/duplicate-interface.wit.result +0 -0
  1909. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/duplicate-interface2/foo.wit +0 -0
  1910. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/duplicate-interface2/foo2.wit +0 -0
  1911. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/duplicate-interface2.wit.result +0 -0
  1912. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/duplicate-type.wit +0 -0
  1913. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/duplicate-type.wit.result +0 -0
  1914. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/empty-enum.wit +0 -0
  1915. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/empty-enum.wit.result +0 -0
  1916. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/empty-variant1.wit +0 -0
  1917. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/empty-variant1.wit.result +0 -0
  1918. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/export-twice.wit +0 -0
  1919. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/export-twice.wit.result +0 -0
  1920. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/import-and-export1.wit +0 -0
  1921. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/import-and-export1.wit.result +0 -0
  1922. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/import-and-export2.wit +0 -0
  1923. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/import-and-export2.wit.result +0 -0
  1924. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/import-and-export3.wit +0 -0
  1925. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/import-and-export3.wit.result +0 -0
  1926. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/import-and-export4.wit +0 -0
  1927. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/import-and-export4.wit.result +0 -0
  1928. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/import-and-export5.wit +0 -0
  1929. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/import-and-export5.wit.result +0 -0
  1930. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/import-twice.wit +0 -0
  1931. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/import-twice.wit.result +0 -0
  1932. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/include-cycle.wit +0 -0
  1933. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/include-cycle.wit.result +0 -0
  1934. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/include-foreign/deps/bar/empty.wit +0 -0
  1935. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/include-foreign/root.wit +0 -0
  1936. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/include-foreign.wit.result +0 -0
  1937. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/include-with-id.wit +0 -0
  1938. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/include-with-id.wit.result +0 -0
  1939. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/include-with-on-id.wit +0 -0
  1940. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/include-with-on-id.wit.result +0 -0
  1941. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/invalid-toplevel.wit +0 -0
  1942. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/invalid-toplevel.wit.result +0 -0
  1943. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/invalid-type-reference.wit +0 -0
  1944. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/invalid-type-reference.wit.result +0 -0
  1945. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/invalid-type-reference2.wit +0 -0
  1946. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/invalid-type-reference2.wit.result +0 -0
  1947. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/kebab-name-include-not-found.wit +0 -0
  1948. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/kebab-name-include-not-found.wit.result +0 -0
  1949. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/kebab-name-include.wit +0 -0
  1950. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/kebab-name-include.wit.result +0 -0
  1951. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/keyword.wit +0 -0
  1952. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/keyword.wit.result +0 -0
  1953. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/missing-package.wit +0 -0
  1954. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/missing-package.wit.result +0 -0
  1955. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/multiple-package-docs/a.wit +0 -0
  1956. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/multiple-package-docs/b.wit +0 -0
  1957. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/multiple-package-docs.wit.result +0 -0
  1958. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/no-access-to-sibling-use/bar.wit +0 -0
  1959. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/no-access-to-sibling-use/foo.wit +0 -0
  1960. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/no-access-to-sibling-use.wit.result +0 -0
  1961. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/non-existance-world-include/deps/bar/baz.wit +0 -0
  1962. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/non-existance-world-include/root.wit +0 -0
  1963. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/non-existance-world-include.wit.result +0 -0
  1964. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/pkg-cycle/deps/a1/root.wit +0 -0
  1965. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/pkg-cycle/root.wit +0 -0
  1966. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/pkg-cycle.wit.result +0 -0
  1967. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/pkg-cycle2/deps/a1/root.wit +0 -0
  1968. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/pkg-cycle2/deps/a2/root.wit +0 -0
  1969. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/pkg-cycle2/root.wit +0 -0
  1970. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/pkg-cycle2.wit.result +0 -0
  1971. /data/ext/cargo-vendor/{wit-parser-0.202.0/tests/ui → wit-parser-0.207.0/tests/ui/parse-fail}/resources-multiple-returns-borrow.wit +0 -0
  1972. /data/ext/cargo-vendor/{wit-parser-0.202.0/tests/ui → wit-parser-0.207.0/tests/ui/parse-fail}/resources-return-borrow.wit +0 -0
  1973. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/type-and-resource-same-name/deps/dep/foo.wit +0 -0
  1974. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/type-and-resource-same-name/foo.wit +0 -0
  1975. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/type-and-resource-same-name.wit.result +0 -0
  1976. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/undefined-typed.wit +0 -0
  1977. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/undefined-typed.wit.result +0 -0
  1978. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/unknown-interface.wit +0 -0
  1979. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/unknown-interface.wit.result +0 -0
  1980. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/unresolved-interface1.wit +0 -0
  1981. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/unresolved-interface1.wit.result +0 -0
  1982. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/unresolved-interface2.wit +0 -0
  1983. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/unresolved-interface2.wit.result +0 -0
  1984. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/unresolved-interface3.wit +0 -0
  1985. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/unresolved-interface3.wit.result +0 -0
  1986. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/unresolved-interface4.wit +0 -0
  1987. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/unresolved-interface4.wit.result +0 -0
  1988. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/unresolved-use1.wit +0 -0
  1989. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/unresolved-use1.wit.result +0 -0
  1990. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/unresolved-use10/bar.wit +0 -0
  1991. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/unresolved-use10/foo.wit +0 -0
  1992. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/unresolved-use10.wit.result +0 -0
  1993. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/unresolved-use2.wit +0 -0
  1994. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/unresolved-use2.wit.result +0 -0
  1995. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/unresolved-use3.wit +0 -0
  1996. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/unresolved-use3.wit.result +0 -0
  1997. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/unresolved-use7.wit +0 -0
  1998. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/unresolved-use7.wit.result +0 -0
  1999. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/unresolved-use8.wit +0 -0
  2000. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/unresolved-use8.wit.result +0 -0
  2001. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/unresolved-use9.wit +0 -0
  2002. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/unresolved-use9.wit.result +0 -0
  2003. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/unterminated-string.wit.result +0 -0
  2004. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/use-and-include-world/deps/bar/baz.wit +0 -0
  2005. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/use-and-include-world/root.wit +0 -0
  2006. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/use-and-include-world.wit.result +0 -0
  2007. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/use-conflict.wit +0 -0
  2008. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/use-conflict.wit.result +0 -0
  2009. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/use-conflict2.wit +0 -0
  2010. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/use-conflict2.wit.result +0 -0
  2011. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/use-conflict3.wit +0 -0
  2012. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/use-conflict3.wit.result +0 -0
  2013. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/use-cycle1.wit +0 -0
  2014. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/use-cycle1.wit.result +0 -0
  2015. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/use-cycle4.wit +0 -0
  2016. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/use-cycle4.wit.result +0 -0
  2017. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/use-shadow1.wit +0 -0
  2018. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/use-shadow1.wit.result +0 -0
  2019. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/use-world/deps/bar/baz.wit +0 -0
  2020. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/use-world/root.wit +0 -0
  2021. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/use-world.wit.result +0 -0
  2022. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/world-interface-clash.wit +0 -0
  2023. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/world-interface-clash.wit.result +0 -0
  2024. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/world-same-fields2.wit +0 -0
  2025. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/world-same-fields2.wit.result +0 -0
  2026. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/world-same-fields3.wit +0 -0
  2027. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/world-same-fields3.wit.result +0 -0
  2028. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/world-top-level-func.wit +0 -0
  2029. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/world-top-level-func.wit.result +0 -0
  2030. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/world-top-level-func2.wit +0 -0
  2031. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/world-top-level-func2.wit.result +0 -0
  2032. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/random.wit +0 -0
  2033. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/random.wit.json +0 -0
  2034. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/resources-empty.wit +0 -0
  2035. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/resources-empty.wit.json +0 -0
  2036. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/resources-multiple-returns-own.wit +0 -0
  2037. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/resources-multiple-returns-own.wit.json +0 -0
  2038. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/resources-multiple.wit +0 -0
  2039. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/resources-multiple.wit.json +0 -0
  2040. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/resources-return-own.wit +0 -0
  2041. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/resources-return-own.wit.json +0 -0
  2042. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/resources.wit +0 -0
  2043. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/resources.wit.json +0 -0
  2044. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/resources1.wit +0 -0
  2045. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/resources1.wit.json +0 -0
  2046. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/same-name-import-export.wit +0 -0
  2047. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/same-name-import-export.wit.json +0 -0
  2048. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/shared-types.wit +0 -0
  2049. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/shared-types.wit.json +0 -0
  2050. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/simple-wasm-text.wat +0 -0
  2051. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/simple-wasm-text.wit.json +0 -0
  2052. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/stress-export-elaborate.wit +0 -0
  2053. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/stress-export-elaborate.wit.json +0 -0
  2054. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/type-then-eof.wit +0 -0
  2055. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/type-then-eof.wit.json +0 -0
  2056. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/types.wit +0 -0
  2057. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/types.wit.json +0 -0
  2058. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/union-fuzz-1.wit +0 -0
  2059. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/union-fuzz-1.wit.json +0 -0
  2060. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/union-fuzz-2.wit +0 -0
  2061. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/union-fuzz-2.wit.json +0 -0
  2062. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/use-chain.wit +0 -0
  2063. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/use-chain.wit.json +0 -0
  2064. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/use.wit +0 -0
  2065. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/use.wit.json +0 -0
  2066. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/versions/deps/a1/foo.wit +0 -0
  2067. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/versions/deps/a2/foo.wit +0 -0
  2068. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/versions/foo.wit +0 -0
  2069. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/versions.wit.json +0 -0
  2070. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/wasi.wit +0 -0
  2071. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/wasi.wit.json +0 -0
  2072. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/world-diamond.wit +0 -0
  2073. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/world-diamond.wit.json +0 -0
  2074. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/world-iface-no-collide.wit +0 -0
  2075. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/world-iface-no-collide.wit.json +0 -0
  2076. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/world-implicit-import1.wit +0 -0
  2077. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/world-implicit-import1.wit.json +0 -0
  2078. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/world-implicit-import2.wit +0 -0
  2079. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/world-implicit-import2.wit.json +0 -0
  2080. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/world-implicit-import3.wit +0 -0
  2081. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/world-implicit-import3.wit.json +0 -0
  2082. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/world-same-fields4.wit +0 -0
  2083. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/world-same-fields4.wit.json +0 -0
  2084. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/world-top-level-funcs.wit +0 -0
  2085. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/world-top-level-funcs.wit.json +0 -0
  2086. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/worlds-union-dedup.wit +0 -0
  2087. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/worlds-union-dedup.wit.json +0 -0
  2088. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/worlds-with-types.wit +0 -0
  2089. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/worlds-with-types.wit.json +0 -0
@@ -0,0 +1,4311 @@
1
+ use crate::ir;
2
+ use crate::ir::immediates::{Ieee32, Ieee64};
3
+ use crate::ir::KnownSymbol;
4
+ use crate::isa::x64::encoding::evex::{EvexInstruction, EvexVectorLength, RegisterOrAmode};
5
+ use crate::isa::x64::encoding::rex::{
6
+ emit_simm, emit_std_enc_enc, emit_std_enc_mem, emit_std_reg_mem, emit_std_reg_reg, int_reg_enc,
7
+ low8_will_sign_extend_to_32, low8_will_sign_extend_to_64, reg_enc, LegacyPrefixes, OpcodeMap,
8
+ RexFlags,
9
+ };
10
+ use crate::isa::x64::encoding::vex::{VexInstruction, VexVectorLength};
11
+ use crate::isa::x64::inst::args::*;
12
+ use crate::isa::x64::inst::*;
13
+
14
+ /// A small helper to generate a signed conversion instruction.
15
+ fn emit_signed_cvt(
16
+ sink: &mut MachBuffer<Inst>,
17
+ info: &EmitInfo,
18
+ state: &mut EmitState,
19
+ // Required to be RealRegs.
20
+ src: Reg,
21
+ dst: Writable<Reg>,
22
+ to_f64: bool,
23
+ ) {
24
+ // Handle an unsigned int, which is the "easy" case: a signed conversion will do the
25
+ // right thing.
26
+ let op = if to_f64 {
27
+ SseOpcode::Cvtsi2sd
28
+ } else {
29
+ SseOpcode::Cvtsi2ss
30
+ };
31
+ Inst::CvtIntToFloat {
32
+ op,
33
+ dst: Writable::from_reg(Xmm::new(dst.to_reg()).unwrap()),
34
+ src1: Xmm::new(dst.to_reg()).unwrap(),
35
+ src2: GprMem::new(RegMem::reg(src)).unwrap(),
36
+ src2_size: OperandSize::Size64,
37
+ }
38
+ .emit(&[], sink, info, state);
39
+ }
40
+
41
+ /// Emits a one way conditional jump if CC is set (true).
42
+ fn one_way_jmp(sink: &mut MachBuffer<Inst>, cc: CC, label: MachLabel) {
43
+ let cond_start = sink.cur_offset();
44
+ let cond_disp_off = cond_start + 2;
45
+ sink.use_label_at_offset(cond_disp_off, label, LabelUse::JmpRel32);
46
+ sink.put1(0x0F);
47
+ sink.put1(0x80 + cc.get_enc());
48
+ sink.put4(0x0);
49
+ }
50
+
51
+ /// Emits a relocation, attaching the current source location as well.
52
+ fn emit_reloc(sink: &mut MachBuffer<Inst>, kind: Reloc, name: &ExternalName, addend: Addend) {
53
+ sink.add_reloc(kind, name, addend);
54
+ }
55
+
56
+ /// The top-level emit function.
57
+ ///
58
+ /// Important! Do not add improved (shortened) encoding cases to existing
59
+ /// instructions without also adding tests for those improved encodings. That
60
+ /// is a dangerous game that leads to hard-to-track-down errors in the emitted
61
+ /// code.
62
+ ///
63
+ /// For all instructions, make sure to have test coverage for all of the
64
+ /// following situations. Do this by creating the cross product resulting from
65
+ /// applying the following rules to each operand:
66
+ ///
67
+ /// (1) for any insn that mentions a register: one test using a register from
68
+ /// the group [rax, rcx, rdx, rbx, rsp, rbp, rsi, rdi] and a second one
69
+ /// using a register from the group [r8, r9, r10, r11, r12, r13, r14, r15].
70
+ /// This helps detect incorrect REX prefix construction.
71
+ ///
72
+ /// (2) for any insn that mentions a byte register: one test for each of the
73
+ /// four encoding groups [al, cl, dl, bl], [spl, bpl, sil, dil],
74
+ /// [r8b .. r11b] and [r12b .. r15b]. This checks that
75
+ /// apparently-redundant REX prefixes are retained when required.
76
+ ///
77
+ /// (3) for any insn that contains an immediate field, check the following
78
+ /// cases: field is zero, field is in simm8 range (-128 .. 127), field is
79
+ /// in simm32 range (-0x8000_0000 .. 0x7FFF_FFFF). This is because some
80
+ /// instructions that require a 32-bit immediate have a short-form encoding
81
+ /// when the imm is in simm8 range.
82
+ ///
83
+ /// Rules (1), (2) and (3) don't apply for registers within address expressions
84
+ /// (`Addr`s). Those are already pretty well tested, and the registers in them
85
+ /// don't have any effect on the containing instruction (apart from possibly
86
+ /// require REX prefix bits).
87
+ ///
88
+ /// When choosing registers for a test, avoid using registers with the same
89
+ /// offset within a given group. For example, don't use rax and r8, since they
90
+ /// both have the lowest 3 bits as 000, and so the test won't detect errors
91
+ /// where those 3-bit register sub-fields are confused by the emitter. Instead
92
+ /// use (eg) rax (lo3 = 000) and r9 (lo3 = 001). Similarly, don't use (eg) cl
93
+ /// and bpl since they have the same offset in their group; use instead (eg) cl
94
+ /// and sil.
95
+ ///
96
+ /// For all instructions, also add a test that uses only low-half registers
97
+ /// (rax .. rdi, xmm0 .. xmm7) etc, so as to check that any redundant REX
98
+ /// prefixes are correctly omitted. This low-half restriction must apply to
99
+ /// _all_ registers in the insn, even those in address expressions.
100
+ ///
101
+ /// Following these rules creates large numbers of test cases, but it's the
102
+ /// only way to make the emitter reliable.
103
+ ///
104
+ /// Known possible improvements:
105
+ ///
106
+ /// * there's a shorter encoding for shl/shr/sar by a 1-bit immediate. (Do we
107
+ /// care?)
108
+ pub(crate) fn emit(
109
+ inst: &Inst,
110
+ allocs: &mut AllocationConsumer,
111
+ sink: &mut MachBuffer<Inst>,
112
+ info: &EmitInfo,
113
+ state: &mut EmitState,
114
+ ) {
115
+ let matches_isa_flags = |iset_requirement: &InstructionSet| -> bool {
116
+ match iset_requirement {
117
+ // Cranelift assumes SSE2 at least.
118
+ InstructionSet::SSE | InstructionSet::SSE2 => true,
119
+ InstructionSet::SSSE3 => info.isa_flags.use_ssse3(),
120
+ InstructionSet::SSE41 => info.isa_flags.use_sse41(),
121
+ InstructionSet::SSE42 => info.isa_flags.use_sse42(),
122
+ InstructionSet::Popcnt => info.isa_flags.use_popcnt(),
123
+ InstructionSet::Lzcnt => info.isa_flags.use_lzcnt(),
124
+ InstructionSet::BMI1 => info.isa_flags.use_bmi1(),
125
+ InstructionSet::BMI2 => info.isa_flags.has_bmi2(),
126
+ InstructionSet::FMA => info.isa_flags.has_fma(),
127
+ InstructionSet::AVX => info.isa_flags.has_avx(),
128
+ InstructionSet::AVX2 => info.isa_flags.has_avx2(),
129
+ InstructionSet::AVX512BITALG => info.isa_flags.has_avx512bitalg(),
130
+ InstructionSet::AVX512DQ => info.isa_flags.has_avx512dq(),
131
+ InstructionSet::AVX512F => info.isa_flags.has_avx512f(),
132
+ InstructionSet::AVX512VBMI => info.isa_flags.has_avx512vbmi(),
133
+ InstructionSet::AVX512VL => info.isa_flags.has_avx512vl(),
134
+ }
135
+ };
136
+
137
+ // Certain instructions may be present in more than one ISA feature set; we must at least match
138
+ // one of them in the target CPU.
139
+ let isa_requirements = inst.available_in_any_isa();
140
+ if !isa_requirements.is_empty() && !isa_requirements.iter().all(matches_isa_flags) {
141
+ panic!(
142
+ "Cannot emit inst '{:?}' for target; failed to match ISA requirements: {:?}",
143
+ inst, isa_requirements
144
+ )
145
+ }
146
+
147
+ match inst {
148
+ Inst::AluRmiR {
149
+ size,
150
+ op,
151
+ src1,
152
+ src2,
153
+ dst: reg_g,
154
+ } => {
155
+ let src1 = allocs.next(src1.to_reg());
156
+ let reg_g = allocs.next(reg_g.to_reg().to_reg());
157
+ debug_assert_eq!(src1, reg_g);
158
+ let src2 = src2.clone().to_reg_mem_imm().with_allocs(allocs);
159
+
160
+ let prefix = if *size == OperandSize::Size16 {
161
+ LegacyPrefixes::_66
162
+ } else {
163
+ LegacyPrefixes::None
164
+ };
165
+
166
+ let mut rex = RexFlags::from(*size);
167
+ let (opcode_r, opcode_m, subopcode_i) = match op {
168
+ AluRmiROpcode::Add => (0x01, 0x03, 0),
169
+ AluRmiROpcode::Adc => (0x11, 0x03, 0),
170
+ AluRmiROpcode::Sub => (0x29, 0x2B, 5),
171
+ AluRmiROpcode::Sbb => (0x19, 0x2B, 5),
172
+ AluRmiROpcode::And => (0x21, 0x23, 4),
173
+ AluRmiROpcode::Or => (0x09, 0x0B, 1),
174
+ AluRmiROpcode::Xor => (0x31, 0x33, 6),
175
+ };
176
+
177
+ let (opcode_r, opcode_m) = if *size == OperandSize::Size8 {
178
+ (opcode_r - 1, opcode_m - 1)
179
+ } else {
180
+ (opcode_r, opcode_m)
181
+ };
182
+
183
+ if *size == OperandSize::Size8 {
184
+ debug_assert!(reg_g.is_real());
185
+ rex.always_emit_if_8bit_needed(reg_g);
186
+ }
187
+
188
+ match src2 {
189
+ RegMemImm::Reg { reg: reg_e } => {
190
+ if *size == OperandSize::Size8 {
191
+ debug_assert!(reg_e.is_real());
192
+ rex.always_emit_if_8bit_needed(reg_e);
193
+ }
194
+
195
+ // GCC/llvm use the swapped operand encoding (viz., the R/RM vs RM/R
196
+ // duality). Do this too, so as to be able to compare generated machine
197
+ // code easily.
198
+ emit_std_reg_reg(sink, prefix, opcode_r, 1, reg_e, reg_g, rex);
199
+ }
200
+
201
+ RegMemImm::Mem { addr } => {
202
+ let amode = addr.finalize(state, sink);
203
+ // Here we revert to the "normal" G-E ordering.
204
+ emit_std_reg_mem(sink, prefix, opcode_m, 1, reg_g, &amode, rex, 0);
205
+ }
206
+
207
+ RegMemImm::Imm { simm32 } => {
208
+ let imm_size = if *size == OperandSize::Size8 {
209
+ 1
210
+ } else {
211
+ if low8_will_sign_extend_to_32(simm32) {
212
+ 1
213
+ } else {
214
+ if *size == OperandSize::Size16 {
215
+ 2
216
+ } else {
217
+ 4
218
+ }
219
+ }
220
+ };
221
+
222
+ let opcode = if *size == OperandSize::Size8 {
223
+ 0x80
224
+ } else if low8_will_sign_extend_to_32(simm32) {
225
+ 0x83
226
+ } else {
227
+ 0x81
228
+ };
229
+
230
+ // And also here we use the "normal" G-E ordering.
231
+ let enc_g = int_reg_enc(reg_g);
232
+ emit_std_enc_enc(sink, prefix, opcode, 1, subopcode_i, enc_g, rex);
233
+ emit_simm(sink, imm_size, simm32);
234
+ }
235
+ }
236
+ }
237
+
238
+ Inst::AluConstOp { op, size, dst } => {
239
+ let dst = allocs.next(dst.to_reg().to_reg());
240
+ emit(
241
+ &Inst::AluRmiR {
242
+ size: *size,
243
+ op: *op,
244
+ dst: Writable::from_reg(Gpr::new(dst).unwrap()),
245
+ src1: Gpr::new(dst).unwrap(),
246
+ src2: Gpr::new(dst).unwrap().into(),
247
+ },
248
+ allocs,
249
+ sink,
250
+ info,
251
+ state,
252
+ );
253
+ }
254
+
255
+ Inst::AluRM {
256
+ size,
257
+ src1_dst,
258
+ src2,
259
+ op,
260
+ } => {
261
+ let src2 = allocs.next(src2.to_reg());
262
+ let src1_dst = src1_dst.finalize(state, sink).with_allocs(allocs);
263
+
264
+ let opcode = match op {
265
+ AluRmiROpcode::Add => 0x01,
266
+ AluRmiROpcode::Sub => 0x29,
267
+ AluRmiROpcode::And => 0x21,
268
+ AluRmiROpcode::Or => 0x09,
269
+ AluRmiROpcode::Xor => 0x31,
270
+ _ => panic!("Unsupported read-modify-write ALU opcode"),
271
+ };
272
+
273
+ let prefix = if *size == OperandSize::Size16 {
274
+ LegacyPrefixes::_66
275
+ } else {
276
+ LegacyPrefixes::None
277
+ };
278
+ let opcode = if *size == OperandSize::Size8 {
279
+ opcode - 1
280
+ } else {
281
+ opcode
282
+ };
283
+
284
+ let mut rex = RexFlags::from(*size);
285
+ if *size == OperandSize::Size8 {
286
+ debug_assert!(src2.is_real());
287
+ rex.always_emit_if_8bit_needed(src2);
288
+ }
289
+
290
+ let enc_g = int_reg_enc(src2);
291
+ emit_std_enc_mem(sink, prefix, opcode, 1, enc_g, &src1_dst, rex, 0);
292
+ }
293
+
294
+ Inst::AluRmRVex {
295
+ size,
296
+ op,
297
+ dst,
298
+ src1,
299
+ src2,
300
+ } => {
301
+ use AluRmROpcode::*;
302
+ use LegacyPrefixes as LP;
303
+
304
+ let dst = allocs.next(dst.to_reg().to_reg());
305
+ let src1 = allocs.next(src1.to_reg());
306
+ let src2 = match src2.clone().to_reg_mem().with_allocs(allocs) {
307
+ RegMem::Reg { reg } => {
308
+ RegisterOrAmode::Register(reg.to_real_reg().unwrap().hw_enc().into())
309
+ }
310
+ RegMem::Mem { addr } => RegisterOrAmode::Amode(addr.finalize(state, sink)),
311
+ };
312
+
313
+ let w = match size {
314
+ OperandSize::Size32 => false,
315
+ OperandSize::Size64 => true,
316
+
317
+ // the other cases would be rejected by isle constructors
318
+ _ => unreachable!(),
319
+ };
320
+
321
+ let (prefix, opcode) = match op {
322
+ Andn => (LP::None, 0xf2),
323
+ Sarx => (LP::_F3, 0xf7),
324
+ Shrx => (LP::_F2, 0xf7),
325
+ Shlx => (LP::_66, 0xf7),
326
+ Bzhi => (LP::None, 0xf5),
327
+ };
328
+
329
+ VexInstruction::new()
330
+ .prefix(prefix)
331
+ .map(OpcodeMap::_0F38)
332
+ .w(w)
333
+ .reg(dst.to_real_reg().unwrap().hw_enc())
334
+ .vvvv(src1.to_real_reg().unwrap().hw_enc())
335
+ .rm(src2)
336
+ .opcode(opcode)
337
+ .encode(sink);
338
+ }
339
+
340
+ Inst::UnaryRmR { size, op, src, dst } => {
341
+ let dst = allocs.next(dst.to_reg().to_reg());
342
+ let rex_flags = RexFlags::from(*size);
343
+ use UnaryRmROpcode::*;
344
+ let prefix = match size {
345
+ OperandSize::Size16 => match op {
346
+ Bsr | Bsf => LegacyPrefixes::_66,
347
+ Lzcnt | Tzcnt | Popcnt => LegacyPrefixes::_66F3,
348
+ },
349
+ OperandSize::Size32 | OperandSize::Size64 => match op {
350
+ Bsr | Bsf => LegacyPrefixes::None,
351
+ Lzcnt | Tzcnt | Popcnt => LegacyPrefixes::_F3,
352
+ },
353
+ _ => unreachable!(),
354
+ };
355
+
356
+ let (opcode, num_opcodes) = match op {
357
+ Bsr => (0x0fbd, 2),
358
+ Bsf => (0x0fbc, 2),
359
+ Lzcnt => (0x0fbd, 2),
360
+ Tzcnt => (0x0fbc, 2),
361
+ Popcnt => (0x0fb8, 2),
362
+ };
363
+
364
+ match src.clone().into() {
365
+ RegMem::Reg { reg: src } => {
366
+ let src = allocs.next(src);
367
+ emit_std_reg_reg(sink, prefix, opcode, num_opcodes, dst, src, rex_flags);
368
+ }
369
+ RegMem::Mem { addr: src } => {
370
+ let amode = src.finalize(state, sink).with_allocs(allocs);
371
+ emit_std_reg_mem(sink, prefix, opcode, num_opcodes, dst, &amode, rex_flags, 0);
372
+ }
373
+ }
374
+ }
375
+
376
+ Inst::UnaryRmRVex { size, op, src, dst } => {
377
+ let dst = allocs.next(dst.to_reg().to_reg());
378
+ let src = match src.clone().to_reg_mem().with_allocs(allocs) {
379
+ RegMem::Reg { reg } => {
380
+ RegisterOrAmode::Register(reg.to_real_reg().unwrap().hw_enc().into())
381
+ }
382
+ RegMem::Mem { addr } => RegisterOrAmode::Amode(addr.finalize(state, sink)),
383
+ };
384
+
385
+ let (opcode, opcode_ext) = match op {
386
+ UnaryRmRVexOpcode::Blsr => (0xF3, 1),
387
+ UnaryRmRVexOpcode::Blsmsk => (0xF3, 2),
388
+ UnaryRmRVexOpcode::Blsi => (0xF3, 3),
389
+ };
390
+
391
+ VexInstruction::new()
392
+ .map(OpcodeMap::_0F38)
393
+ .w(*size == OperandSize::Size64)
394
+ .opcode(opcode)
395
+ .reg(opcode_ext)
396
+ .vvvv(dst.to_real_reg().unwrap().hw_enc())
397
+ .rm(src)
398
+ .encode(sink);
399
+ }
400
+
401
+ Inst::UnaryRmRImmVex {
402
+ size,
403
+ op,
404
+ src,
405
+ dst,
406
+ imm,
407
+ } => {
408
+ let dst = allocs.next(dst.to_reg().to_reg());
409
+ let src = match src.clone().to_reg_mem().with_allocs(allocs) {
410
+ RegMem::Reg { reg } => {
411
+ RegisterOrAmode::Register(reg.to_real_reg().unwrap().hw_enc().into())
412
+ }
413
+ RegMem::Mem { addr } => RegisterOrAmode::Amode(addr.finalize(state, sink)),
414
+ };
415
+
416
+ let opcode = match op {
417
+ UnaryRmRImmVexOpcode::Rorx => 0xF0,
418
+ };
419
+
420
+ VexInstruction::new()
421
+ .prefix(LegacyPrefixes::_F2)
422
+ .map(OpcodeMap::_0F3A)
423
+ .w(*size == OperandSize::Size64)
424
+ .opcode(opcode)
425
+ .reg(dst.to_real_reg().unwrap().hw_enc())
426
+ .rm(src)
427
+ .imm(*imm)
428
+ .encode(sink);
429
+ }
430
+
431
+ Inst::Not { size, src, dst } => {
432
+ let src = allocs.next(src.to_reg());
433
+ let dst = allocs.next(dst.to_reg().to_reg());
434
+ debug_assert_eq!(src, dst);
435
+ let rex_flags = RexFlags::from((*size, dst));
436
+ let (opcode, prefix) = match size {
437
+ OperandSize::Size8 => (0xF6, LegacyPrefixes::None),
438
+ OperandSize::Size16 => (0xF7, LegacyPrefixes::_66),
439
+ OperandSize::Size32 => (0xF7, LegacyPrefixes::None),
440
+ OperandSize::Size64 => (0xF7, LegacyPrefixes::None),
441
+ };
442
+
443
+ let subopcode = 2;
444
+ let enc_src = int_reg_enc(dst);
445
+ emit_std_enc_enc(sink, prefix, opcode, 1, subopcode, enc_src, rex_flags)
446
+ }
447
+
448
+ Inst::Neg { size, src, dst } => {
449
+ let src = allocs.next(src.to_reg());
450
+ let dst = allocs.next(dst.to_reg().to_reg());
451
+ debug_assert_eq!(src, dst);
452
+ let rex_flags = RexFlags::from((*size, dst));
453
+ let (opcode, prefix) = match size {
454
+ OperandSize::Size8 => (0xF6, LegacyPrefixes::None),
455
+ OperandSize::Size16 => (0xF7, LegacyPrefixes::_66),
456
+ OperandSize::Size32 => (0xF7, LegacyPrefixes::None),
457
+ OperandSize::Size64 => (0xF7, LegacyPrefixes::None),
458
+ };
459
+
460
+ let subopcode = 3;
461
+ let enc_src = int_reg_enc(dst);
462
+ emit_std_enc_enc(sink, prefix, opcode, 1, subopcode, enc_src, rex_flags)
463
+ }
464
+
465
+ Inst::Div {
466
+ sign,
467
+ trap,
468
+ divisor,
469
+ ..
470
+ }
471
+ | Inst::Div8 {
472
+ sign,
473
+ trap,
474
+ divisor,
475
+ ..
476
+ } => {
477
+ let divisor = divisor.clone().to_reg_mem().with_allocs(allocs);
478
+ let size = match inst {
479
+ Inst::Div {
480
+ size,
481
+ dividend_lo,
482
+ dividend_hi,
483
+ dst_quotient,
484
+ dst_remainder,
485
+ ..
486
+ } => {
487
+ let dividend_lo = allocs.next(dividend_lo.to_reg());
488
+ let dividend_hi = allocs.next(dividend_hi.to_reg());
489
+ let dst_quotient = allocs.next(dst_quotient.to_reg().to_reg());
490
+ let dst_remainder = allocs.next(dst_remainder.to_reg().to_reg());
491
+ debug_assert_eq!(dividend_lo, regs::rax());
492
+ debug_assert_eq!(dividend_hi, regs::rdx());
493
+ debug_assert_eq!(dst_quotient, regs::rax());
494
+ debug_assert_eq!(dst_remainder, regs::rdx());
495
+ *size
496
+ }
497
+ Inst::Div8 { dividend, dst, .. } => {
498
+ let dividend = allocs.next(dividend.to_reg());
499
+ let dst = allocs.next(dst.to_reg().to_reg());
500
+ debug_assert_eq!(dividend, regs::rax());
501
+ debug_assert_eq!(dst, regs::rax());
502
+ OperandSize::Size8
503
+ }
504
+ _ => unreachable!(),
505
+ };
506
+
507
+ let (opcode, prefix) = match size {
508
+ OperandSize::Size8 => (0xF6, LegacyPrefixes::None),
509
+ OperandSize::Size16 => (0xF7, LegacyPrefixes::_66),
510
+ OperandSize::Size32 => (0xF7, LegacyPrefixes::None),
511
+ OperandSize::Size64 => (0xF7, LegacyPrefixes::None),
512
+ };
513
+
514
+ sink.add_trap(*trap);
515
+
516
+ let subopcode = match sign {
517
+ DivSignedness::Signed => 7,
518
+ DivSignedness::Unsigned => 6,
519
+ };
520
+ match divisor {
521
+ RegMem::Reg { reg } => {
522
+ let src = int_reg_enc(reg);
523
+ emit_std_enc_enc(
524
+ sink,
525
+ prefix,
526
+ opcode,
527
+ 1,
528
+ subopcode,
529
+ src,
530
+ RexFlags::from((size, reg)),
531
+ )
532
+ }
533
+ RegMem::Mem { addr: src } => {
534
+ let amode = src.finalize(state, sink);
535
+ emit_std_enc_mem(
536
+ sink,
537
+ prefix,
538
+ opcode,
539
+ 1,
540
+ subopcode,
541
+ &amode,
542
+ RexFlags::from(size),
543
+ 0,
544
+ );
545
+ }
546
+ }
547
+ }
548
+
549
+ Inst::Mul {
550
+ signed,
551
+ size,
552
+ src1,
553
+ src2,
554
+ dst_lo,
555
+ dst_hi,
556
+ } => {
557
+ let src1 = allocs.next(src1.to_reg());
558
+ let dst_lo = allocs.next(dst_lo.to_reg().to_reg());
559
+ let dst_hi = allocs.next(dst_hi.to_reg().to_reg());
560
+ debug_assert_eq!(src1, regs::rax());
561
+ debug_assert_eq!(dst_lo, regs::rax());
562
+ debug_assert_eq!(dst_hi, regs::rdx());
563
+ let src2 = src2.clone().to_reg_mem().with_allocs(allocs);
564
+
565
+ let rex_flags = RexFlags::from(*size);
566
+ let prefix = match size {
567
+ OperandSize::Size16 => LegacyPrefixes::_66,
568
+ OperandSize::Size32 => LegacyPrefixes::None,
569
+ OperandSize::Size64 => LegacyPrefixes::None,
570
+ _ => unreachable!(),
571
+ };
572
+
573
+ let subopcode = if *signed { 5 } else { 4 };
574
+ match src2 {
575
+ RegMem::Reg { reg } => {
576
+ let src = int_reg_enc(reg);
577
+ emit_std_enc_enc(sink, prefix, 0xF7, 1, subopcode, src, rex_flags)
578
+ }
579
+ RegMem::Mem { addr: src } => {
580
+ let amode = src.finalize(state, sink);
581
+ emit_std_enc_mem(sink, prefix, 0xF7, 1, subopcode, &amode, rex_flags, 0);
582
+ }
583
+ }
584
+ }
585
+ Inst::Mul8 {
586
+ signed,
587
+ src1,
588
+ src2,
589
+ dst,
590
+ } => {
591
+ let src1 = allocs.next(src1.to_reg());
592
+ let dst = allocs.next(dst.to_reg().to_reg());
593
+ debug_assert_eq!(src1, regs::rax());
594
+ debug_assert_eq!(dst, regs::rax());
595
+ let src2 = src2.clone().to_reg_mem().with_allocs(allocs);
596
+
597
+ let mut rex_flags = RexFlags::from(OperandSize::Size8);
598
+ let prefix = LegacyPrefixes::None;
599
+ let subopcode = if *signed { 5 } else { 4 };
600
+ match src2 {
601
+ RegMem::Reg { reg } => {
602
+ // The intel manual states:
603
+ //
604
+ // > r/m8 can not be encoded to access the following byte
605
+ // > registers if a REX prefix is used: AH, BH, CH, DH
606
+ //
607
+ // And apparently that also means that a REX prefix must be
608
+ // used if it's not one of those registers.
609
+ if !(reg == regs::rax()
610
+ || reg == regs::rbx()
611
+ || reg == regs::rcx()
612
+ || reg == regs::rdx())
613
+ {
614
+ rex_flags.always_emit();
615
+ }
616
+ let src = int_reg_enc(reg);
617
+ emit_std_enc_enc(sink, prefix, 0xF6, 1, subopcode, src, rex_flags)
618
+ }
619
+ RegMem::Mem { addr } => {
620
+ let amode = addr.finalize(state, sink);
621
+ emit_std_enc_mem(sink, prefix, 0xF6, 1, subopcode, &amode, rex_flags, 0);
622
+ }
623
+ }
624
+ }
625
+ Inst::IMul {
626
+ size,
627
+ src1,
628
+ src2,
629
+ dst,
630
+ } => {
631
+ let src1 = allocs.next(src1.to_reg());
632
+ let dst = allocs.next(dst.to_reg().to_reg());
633
+ debug_assert_eq!(src1, dst);
634
+ let src2 = src2.clone().to_reg_mem().with_allocs(allocs);
635
+
636
+ let rex = RexFlags::from(*size);
637
+ let prefix = LegacyPrefixes::None;
638
+ match src2 {
639
+ RegMem::Reg { reg } => {
640
+ emit_std_reg_reg(sink, prefix, 0x0FAF, 2, dst, reg, rex);
641
+ }
642
+
643
+ RegMem::Mem { addr } => {
644
+ let amode = addr.finalize(state, sink);
645
+ emit_std_reg_mem(sink, prefix, 0x0FAF, 2, dst, &amode, rex, 0);
646
+ }
647
+ }
648
+ }
649
+
650
+ Inst::IMulImm {
651
+ size,
652
+ src1,
653
+ src2,
654
+ dst,
655
+ } => {
656
+ let dst = allocs.next(dst.to_reg().to_reg());
657
+ let src1 = src1.clone().to_reg_mem().with_allocs(allocs);
658
+
659
+ let rex = RexFlags::from(*size);
660
+ let prefix = match size {
661
+ // NB: the intel manual doesn't seem to mention this prefix as
662
+ // being required
663
+ OperandSize::Size16 => LegacyPrefixes::_66,
664
+ _ => LegacyPrefixes::None,
665
+ };
666
+ let imm_size = if i8::try_from(*src2).is_ok() {
667
+ 1
668
+ } else {
669
+ if *size == OperandSize::Size16 {
670
+ 2
671
+ } else {
672
+ 4
673
+ }
674
+ };
675
+ let opcode = if imm_size == 1 { 0x6B } else { 0x69 };
676
+ match src1 {
677
+ RegMem::Reg { reg } => {
678
+ emit_std_reg_reg(sink, prefix, opcode, 1, dst, reg, rex);
679
+ }
680
+
681
+ RegMem::Mem { addr } => {
682
+ let amode = addr.finalize(state, sink);
683
+ emit_std_reg_mem(sink, prefix, opcode, 1, dst, &amode, rex, imm_size);
684
+ }
685
+ }
686
+ emit_simm(sink, imm_size, *src2 as u32);
687
+ }
688
+
689
+ Inst::SignExtendData { size, src, dst } => {
690
+ let src = allocs.next(src.to_reg());
691
+ let dst = allocs.next(dst.to_reg().to_reg());
692
+ debug_assert_eq!(src, regs::rax());
693
+ if *size == OperandSize::Size8 {
694
+ debug_assert_eq!(dst, regs::rax());
695
+ } else {
696
+ debug_assert_eq!(dst, regs::rdx());
697
+ }
698
+ match size {
699
+ OperandSize::Size8 => {
700
+ sink.put1(0x66);
701
+ sink.put1(0x98);
702
+ }
703
+ OperandSize::Size16 => {
704
+ sink.put1(0x66);
705
+ sink.put1(0x99);
706
+ }
707
+ OperandSize::Size32 => sink.put1(0x99),
708
+ OperandSize::Size64 => {
709
+ sink.put1(0x48);
710
+ sink.put1(0x99);
711
+ }
712
+ }
713
+ }
714
+
715
+ Inst::CheckedSRemSeq { divisor, .. } | Inst::CheckedSRemSeq8 { divisor, .. } => {
716
+ let divisor = allocs.next(divisor.to_reg());
717
+
718
+ // Validate that the register constraints of the dividend and the
719
+ // destination are all as expected.
720
+ let (dst, size) = match inst {
721
+ Inst::CheckedSRemSeq {
722
+ dividend_lo,
723
+ dividend_hi,
724
+ dst_quotient,
725
+ dst_remainder,
726
+ size,
727
+ ..
728
+ } => {
729
+ let dividend_lo = allocs.next(dividend_lo.to_reg());
730
+ let dividend_hi = allocs.next(dividend_hi.to_reg());
731
+ let dst_quotient = allocs.next(dst_quotient.to_reg().to_reg());
732
+ let dst_remainder = allocs.next(dst_remainder.to_reg().to_reg());
733
+ debug_assert_eq!(dividend_lo, regs::rax());
734
+ debug_assert_eq!(dividend_hi, regs::rdx());
735
+ debug_assert_eq!(dst_quotient, regs::rax());
736
+ debug_assert_eq!(dst_remainder, regs::rdx());
737
+ (regs::rdx(), *size)
738
+ }
739
+ Inst::CheckedSRemSeq8 { dividend, dst, .. } => {
740
+ let dividend = allocs.next(dividend.to_reg());
741
+ let dst = allocs.next(dst.to_reg().to_reg());
742
+ debug_assert_eq!(dividend, regs::rax());
743
+ debug_assert_eq!(dst, regs::rax());
744
+ (regs::rax(), OperandSize::Size8)
745
+ }
746
+ _ => unreachable!(),
747
+ };
748
+
749
+ // Generates the following code sequence:
750
+ //
751
+ // cmp -1 %divisor
752
+ // jnz $do_op
753
+ //
754
+ // ;; for srem, result is 0
755
+ // mov #0, %dst
756
+ // j $done
757
+ //
758
+ // $do_op:
759
+ // idiv %divisor
760
+ //
761
+ // $done:
762
+
763
+ let do_op = sink.get_label();
764
+ let done_label = sink.get_label();
765
+
766
+ // Check if the divisor is -1, and if it isn't then immediately
767
+ // go to the `idiv`.
768
+ let inst = Inst::cmp_rmi_r(size, divisor, RegMemImm::imm(0xffffffff));
769
+ inst.emit(&[], sink, info, state);
770
+ one_way_jmp(sink, CC::NZ, do_op);
771
+
772
+ // ... otherwise the divisor is -1 and the result is always 0. This
773
+ // is written to the destination register which will be %rax for
774
+ // 8-bit srem and %rdx otherwise.
775
+ //
776
+ // Note that for 16-to-64-bit srem operations this leaves the
777
+ // second destination, %rax, unchanged. This isn't semantically
778
+ // correct if a lowering actually tries to use the `dst_quotient`
779
+ // output but for srem only the `dst_remainder` output is used for
780
+ // now.
781
+ let inst = Inst::imm(OperandSize::Size64, 0, Writable::from_reg(dst));
782
+ inst.emit(&[], sink, info, state);
783
+ let inst = Inst::jmp_known(done_label);
784
+ inst.emit(&[], sink, info, state);
785
+
786
+ // Here the `idiv` is executed, which is different depending on the
787
+ // size
788
+ sink.bind_label(do_op, state.ctrl_plane_mut());
789
+ let inst = match size {
790
+ OperandSize::Size8 => Inst::div8(
791
+ DivSignedness::Signed,
792
+ TrapCode::IntegerDivisionByZero,
793
+ RegMem::reg(divisor),
794
+ Gpr::new(regs::rax()).unwrap(),
795
+ Writable::from_reg(Gpr::new(regs::rax()).unwrap()),
796
+ ),
797
+ _ => Inst::div(
798
+ size,
799
+ DivSignedness::Signed,
800
+ TrapCode::IntegerDivisionByZero,
801
+ RegMem::reg(divisor),
802
+ Gpr::new(regs::rax()).unwrap(),
803
+ Gpr::new(regs::rdx()).unwrap(),
804
+ Writable::from_reg(Gpr::new(regs::rax()).unwrap()),
805
+ Writable::from_reg(Gpr::new(regs::rdx()).unwrap()),
806
+ ),
807
+ };
808
+ inst.emit(&[], sink, info, state);
809
+
810
+ sink.bind_label(done_label, state.ctrl_plane_mut());
811
+ }
812
+
813
+ Inst::Imm {
814
+ dst_size,
815
+ simm64,
816
+ dst,
817
+ } => {
818
+ let dst = allocs.next(dst.to_reg().to_reg());
819
+ let enc_dst = int_reg_enc(dst);
820
+ if *dst_size == OperandSize::Size64 {
821
+ if low32_will_sign_extend_to_64(*simm64) {
822
+ // Sign-extended move imm32.
823
+ emit_std_enc_enc(
824
+ sink,
825
+ LegacyPrefixes::None,
826
+ 0xC7,
827
+ 1,
828
+ /* subopcode */ 0,
829
+ enc_dst,
830
+ RexFlags::set_w(),
831
+ );
832
+ sink.put4(*simm64 as u32);
833
+ } else {
834
+ sink.put1(0x48 | ((enc_dst >> 3) & 1));
835
+ sink.put1(0xB8 | (enc_dst & 7));
836
+ sink.put8(*simm64);
837
+ }
838
+ } else {
839
+ if ((enc_dst >> 3) & 1) == 1 {
840
+ sink.put1(0x41);
841
+ }
842
+ sink.put1(0xB8 | (enc_dst & 7));
843
+ sink.put4(*simm64 as u32);
844
+ }
845
+ }
846
+
847
+ Inst::MovImmM { size, simm32, dst } => {
848
+ let dst = &dst.finalize(state, sink).with_allocs(allocs);
849
+ let default_rex = RexFlags::clear_w();
850
+ let default_opcode = 0xC7;
851
+ let bytes = size.to_bytes();
852
+ let prefix = LegacyPrefixes::None;
853
+
854
+ let (opcode, rex, size, prefix) = match *size {
855
+ // In the 8-bit case, we don't need to enforce REX flags via
856
+ // `always_emit_if_8bit_needed()` since the destination
857
+ // operand is a memory operand, not a possibly 8-bit register.
858
+ OperandSize::Size8 => (0xC6, default_rex, bytes, prefix),
859
+ OperandSize::Size16 => (0xC7, default_rex, bytes, LegacyPrefixes::_66),
860
+ OperandSize::Size64 => (default_opcode, RexFlags::from(*size), bytes, prefix),
861
+
862
+ _ => (default_opcode, default_rex, bytes, prefix),
863
+ };
864
+
865
+ // 8-bit C6 /0 ib
866
+ // 16-bit 0x66 C7 /0 iw
867
+ // 32-bit C7 /0 id
868
+ // 64-bit REX.W C7 /0 id
869
+ emit_std_enc_mem(sink, prefix, opcode, 1, /*subopcode*/ 0, dst, rex, 0);
870
+ emit_simm(sink, size, *simm32 as u32);
871
+ }
872
+
873
+ Inst::MovRR { size, src, dst } => {
874
+ let src = allocs.next(src.to_reg());
875
+ let dst = allocs.next(dst.to_reg().to_reg());
876
+ emit_std_reg_reg(
877
+ sink,
878
+ LegacyPrefixes::None,
879
+ 0x89,
880
+ 1,
881
+ src,
882
+ dst,
883
+ RexFlags::from(*size),
884
+ );
885
+ }
886
+
887
+ Inst::MovFromPReg { src, dst } => {
888
+ allocs.next_fixed_nonallocatable(*src);
889
+ let src: Reg = (*src).into();
890
+ debug_assert!([regs::rsp(), regs::rbp(), regs::pinned_reg()].contains(&src));
891
+ let src = Gpr::new(src).unwrap();
892
+ let size = OperandSize::Size64;
893
+ let dst = allocs.next(dst.to_reg().to_reg());
894
+ let dst = WritableGpr::from_writable_reg(Writable::from_reg(dst)).unwrap();
895
+ Inst::MovRR { size, src, dst }.emit(&[], sink, info, state);
896
+ }
897
+
898
+ Inst::MovToPReg { src, dst } => {
899
+ let src = allocs.next(src.to_reg());
900
+ let src = Gpr::new(src).unwrap();
901
+ allocs.next_fixed_nonallocatable(*dst);
902
+ let dst: Reg = (*dst).into();
903
+ debug_assert!([regs::rsp(), regs::rbp(), regs::pinned_reg()].contains(&dst));
904
+ let dst = WritableGpr::from_writable_reg(Writable::from_reg(dst)).unwrap();
905
+ let size = OperandSize::Size64;
906
+ Inst::MovRR { size, src, dst }.emit(&[], sink, info, state);
907
+ }
908
+
909
+ Inst::MovzxRmR { ext_mode, src, dst } => {
910
+ let dst = allocs.next(dst.to_reg().to_reg());
911
+ let (opcodes, num_opcodes, mut rex_flags) = match ext_mode {
912
+ ExtMode::BL => {
913
+ // MOVZBL is (REX.W==0) 0F B6 /r
914
+ (0x0FB6, 2, RexFlags::clear_w())
915
+ }
916
+ ExtMode::BQ => {
917
+ // MOVZBQ is (REX.W==1) 0F B6 /r
918
+ // I'm not sure why the Intel manual offers different
919
+ // encodings for MOVZBQ than for MOVZBL. AIUI they should
920
+ // achieve the same, since MOVZBL is just going to zero out
921
+ // the upper half of the destination anyway.
922
+ (0x0FB6, 2, RexFlags::set_w())
923
+ }
924
+ ExtMode::WL => {
925
+ // MOVZWL is (REX.W==0) 0F B7 /r
926
+ (0x0FB7, 2, RexFlags::clear_w())
927
+ }
928
+ ExtMode::WQ => {
929
+ // MOVZWQ is (REX.W==1) 0F B7 /r
930
+ (0x0FB7, 2, RexFlags::set_w())
931
+ }
932
+ ExtMode::LQ => {
933
+ // This is just a standard 32 bit load, and we rely on the
934
+ // default zero-extension rule to perform the extension.
935
+ // Note that in reg/reg mode, gcc seems to use the swapped form R/RM, which we
936
+ // don't do here, since it's the same encoding size.
937
+ // MOV r/m32, r32 is (REX.W==0) 8B /r
938
+ (0x8B, 1, RexFlags::clear_w())
939
+ }
940
+ };
941
+
942
+ match src.clone().to_reg_mem() {
943
+ RegMem::Reg { reg: src } => {
944
+ let src = allocs.next(src);
945
+ match ext_mode {
946
+ ExtMode::BL | ExtMode::BQ => {
947
+ // A redundant REX prefix must be emitted for certain register inputs.
948
+ rex_flags.always_emit_if_8bit_needed(src);
949
+ }
950
+ _ => {}
951
+ }
952
+ emit_std_reg_reg(
953
+ sink,
954
+ LegacyPrefixes::None,
955
+ opcodes,
956
+ num_opcodes,
957
+ dst,
958
+ src,
959
+ rex_flags,
960
+ )
961
+ }
962
+
963
+ RegMem::Mem { addr: src } => {
964
+ let src = &src.finalize(state, sink).with_allocs(allocs);
965
+
966
+ emit_std_reg_mem(
967
+ sink,
968
+ LegacyPrefixes::None,
969
+ opcodes,
970
+ num_opcodes,
971
+ dst,
972
+ src,
973
+ rex_flags,
974
+ 0,
975
+ )
976
+ }
977
+ }
978
+ }
979
+
980
+ Inst::Mov64MR { src, dst } => {
981
+ let dst = allocs.next(dst.to_reg().to_reg());
982
+ let src = &src.finalize(state, sink).with_allocs(allocs);
983
+
984
+ emit_std_reg_mem(
985
+ sink,
986
+ LegacyPrefixes::None,
987
+ 0x8B,
988
+ 1,
989
+ dst,
990
+ src,
991
+ RexFlags::set_w(),
992
+ 0,
993
+ )
994
+ }
995
+
996
+ Inst::LoadEffectiveAddress { addr, dst, size } => {
997
+ let dst = allocs.next(dst.to_reg().to_reg());
998
+ let amode = addr.finalize(state, sink).with_allocs(allocs);
999
+
1000
+ // If this `lea` can actually get encoded as an `add` then do that
1001
+ // instead. Currently all candidate `iadd`s become an `lea`
1002
+ // pseudo-instruction here but maximizing the sue of `lea` is not
1003
+ // necessarily optimal. The `lea` instruction goes through dedicated
1004
+ // address units on cores which are finite and disjoint from the
1005
+ // general ALU, so if everything uses `lea` then those units can get
1006
+ // saturated while leaving the ALU idle.
1007
+ //
1008
+ // To help make use of more parts of a cpu, this attempts to use
1009
+ // `add` when it's semantically equivalent to `lea`, or otherwise
1010
+ // when the `dst` register is the same as the `base` or `index`
1011
+ // register.
1012
+ //
1013
+ // FIXME: ideally regalloc is informed of this constraint. Register
1014
+ // allocation of `lea` should "attempt" to put the `base` in the
1015
+ // same register as `dst` but not at the expense of generating a
1016
+ // `mov` instruction. Currently that's not possible but perhaps one
1017
+ // day it may be worth it.
1018
+ match amode {
1019
+ // If `base == dst` then this is `add $imm, %dst`, so encode
1020
+ // that instead.
1021
+ Amode::ImmReg {
1022
+ simm32,
1023
+ base,
1024
+ flags: _,
1025
+ } if base == dst => {
1026
+ let inst = Inst::alu_rmi_r(
1027
+ *size,
1028
+ AluRmiROpcode::Add,
1029
+ RegMemImm::imm(simm32 as u32),
1030
+ Writable::from_reg(dst),
1031
+ );
1032
+ inst.emit(&[], sink, info, state);
1033
+ }
1034
+ // If the offset is 0 and the shift is 0 (meaning multiplication
1035
+ // by 1) then:
1036
+ //
1037
+ // * If `base == dst`, then this is `add %index, %base`
1038
+ // * If `index == dst`, then this is `add %base, %index`
1039
+ //
1040
+ // Encode the appropriate instruction here in that case.
1041
+ Amode::ImmRegRegShift {
1042
+ simm32: 0,
1043
+ base,
1044
+ index,
1045
+ shift: 0,
1046
+ flags: _,
1047
+ } if base == dst || index == dst => {
1048
+ let (dst, operand) = if base == dst {
1049
+ (base, index)
1050
+ } else {
1051
+ (index, base)
1052
+ };
1053
+ let inst = Inst::alu_rmi_r(
1054
+ *size,
1055
+ AluRmiROpcode::Add,
1056
+ RegMemImm::reg(operand.to_reg()),
1057
+ Writable::from_reg(dst.to_reg()),
1058
+ );
1059
+ inst.emit(&[], sink, info, state);
1060
+ }
1061
+
1062
+ // If `lea`'s 3-operand mode is leveraged by regalloc, or if
1063
+ // it's fancy like imm-plus-shift-plus-base, then `lea` is
1064
+ // actually emitted.
1065
+ _ => {
1066
+ let flags = match size {
1067
+ OperandSize::Size32 => RexFlags::clear_w(),
1068
+ OperandSize::Size64 => RexFlags::set_w(),
1069
+ _ => unreachable!(),
1070
+ };
1071
+ emit_std_reg_mem(sink, LegacyPrefixes::None, 0x8D, 1, dst, &amode, flags, 0);
1072
+ }
1073
+ };
1074
+ }
1075
+
1076
+ Inst::MovsxRmR { ext_mode, src, dst } => {
1077
+ let dst = allocs.next(dst.to_reg().to_reg());
1078
+ let (opcodes, num_opcodes, mut rex_flags) = match ext_mode {
1079
+ ExtMode::BL => {
1080
+ // MOVSBL is (REX.W==0) 0F BE /r
1081
+ (0x0FBE, 2, RexFlags::clear_w())
1082
+ }
1083
+ ExtMode::BQ => {
1084
+ // MOVSBQ is (REX.W==1) 0F BE /r
1085
+ (0x0FBE, 2, RexFlags::set_w())
1086
+ }
1087
+ ExtMode::WL => {
1088
+ // MOVSWL is (REX.W==0) 0F BF /r
1089
+ (0x0FBF, 2, RexFlags::clear_w())
1090
+ }
1091
+ ExtMode::WQ => {
1092
+ // MOVSWQ is (REX.W==1) 0F BF /r
1093
+ (0x0FBF, 2, RexFlags::set_w())
1094
+ }
1095
+ ExtMode::LQ => {
1096
+ // MOVSLQ is (REX.W==1) 63 /r
1097
+ (0x63, 1, RexFlags::set_w())
1098
+ }
1099
+ };
1100
+
1101
+ match src.clone().to_reg_mem() {
1102
+ RegMem::Reg { reg: src } => {
1103
+ let src = allocs.next(src);
1104
+ match ext_mode {
1105
+ ExtMode::BL | ExtMode::BQ => {
1106
+ // A redundant REX prefix must be emitted for certain register inputs.
1107
+ rex_flags.always_emit_if_8bit_needed(src);
1108
+ }
1109
+ _ => {}
1110
+ }
1111
+ emit_std_reg_reg(
1112
+ sink,
1113
+ LegacyPrefixes::None,
1114
+ opcodes,
1115
+ num_opcodes,
1116
+ dst,
1117
+ src,
1118
+ rex_flags,
1119
+ )
1120
+ }
1121
+
1122
+ RegMem::Mem { addr: src } => {
1123
+ let src = &src.finalize(state, sink).with_allocs(allocs);
1124
+
1125
+ emit_std_reg_mem(
1126
+ sink,
1127
+ LegacyPrefixes::None,
1128
+ opcodes,
1129
+ num_opcodes,
1130
+ dst,
1131
+ src,
1132
+ rex_flags,
1133
+ 0,
1134
+ )
1135
+ }
1136
+ }
1137
+ }
1138
+
1139
+ Inst::MovRM { size, src, dst } => {
1140
+ let src = allocs.next(src.to_reg());
1141
+ let dst = &dst.finalize(state, sink).with_allocs(allocs);
1142
+
1143
+ let prefix = match size {
1144
+ OperandSize::Size16 => LegacyPrefixes::_66,
1145
+ _ => LegacyPrefixes::None,
1146
+ };
1147
+
1148
+ let opcode = match size {
1149
+ OperandSize::Size8 => 0x88,
1150
+ _ => 0x89,
1151
+ };
1152
+
1153
+ // This is one of the few places where the presence of a
1154
+ // redundant REX prefix changes the meaning of the
1155
+ // instruction.
1156
+ let rex = RexFlags::from((*size, src));
1157
+
1158
+ // 8-bit: MOV r8, r/m8 is (REX.W==0) 88 /r
1159
+ // 16-bit: MOV r16, r/m16 is 66 (REX.W==0) 89 /r
1160
+ // 32-bit: MOV r32, r/m32 is (REX.W==0) 89 /r
1161
+ // 64-bit: MOV r64, r/m64 is (REX.W==1) 89 /r
1162
+ emit_std_reg_mem(sink, prefix, opcode, 1, src, dst, rex, 0);
1163
+ }
1164
+
1165
+ Inst::ShiftR {
1166
+ size,
1167
+ kind,
1168
+ src,
1169
+ num_bits,
1170
+ dst,
1171
+ } => {
1172
+ let src = allocs.next(src.to_reg());
1173
+ let dst = allocs.next(dst.to_reg().to_reg());
1174
+ debug_assert_eq!(src, dst);
1175
+ let subopcode = match kind {
1176
+ ShiftKind::RotateLeft => 0,
1177
+ ShiftKind::RotateRight => 1,
1178
+ ShiftKind::ShiftLeft => 4,
1179
+ ShiftKind::ShiftRightLogical => 5,
1180
+ ShiftKind::ShiftRightArithmetic => 7,
1181
+ };
1182
+ let enc_dst = int_reg_enc(dst);
1183
+ let rex_flags = RexFlags::from((*size, dst));
1184
+ match num_bits.as_imm8_reg() {
1185
+ &Imm8Reg::Reg { reg } => {
1186
+ let reg = allocs.next(reg);
1187
+ debug_assert_eq!(reg, regs::rcx());
1188
+ let (opcode, prefix) = match size {
1189
+ OperandSize::Size8 => (0xD2, LegacyPrefixes::None),
1190
+ OperandSize::Size16 => (0xD3, LegacyPrefixes::_66),
1191
+ OperandSize::Size32 => (0xD3, LegacyPrefixes::None),
1192
+ OperandSize::Size64 => (0xD3, LegacyPrefixes::None),
1193
+ };
1194
+
1195
+ // SHL/SHR/SAR %cl, reg8 is (REX.W==0) D2 /subopcode
1196
+ // SHL/SHR/SAR %cl, reg16 is 66 (REX.W==0) D3 /subopcode
1197
+ // SHL/SHR/SAR %cl, reg32 is (REX.W==0) D3 /subopcode
1198
+ // SHL/SHR/SAR %cl, reg64 is (REX.W==1) D3 /subopcode
1199
+ emit_std_enc_enc(sink, prefix, opcode, 1, subopcode, enc_dst, rex_flags);
1200
+ }
1201
+
1202
+ &Imm8Reg::Imm8 { imm: num_bits } => {
1203
+ let (opcode, prefix) = match size {
1204
+ OperandSize::Size8 => (0xC0, LegacyPrefixes::None),
1205
+ OperandSize::Size16 => (0xC1, LegacyPrefixes::_66),
1206
+ OperandSize::Size32 => (0xC1, LegacyPrefixes::None),
1207
+ OperandSize::Size64 => (0xC1, LegacyPrefixes::None),
1208
+ };
1209
+
1210
+ // SHL/SHR/SAR $ib, reg8 is (REX.W==0) C0 /subopcode
1211
+ // SHL/SHR/SAR $ib, reg16 is 66 (REX.W==0) C1 /subopcode
1212
+ // SHL/SHR/SAR $ib, reg32 is (REX.W==0) C1 /subopcode ib
1213
+ // SHL/SHR/SAR $ib, reg64 is (REX.W==1) C1 /subopcode ib
1214
+ // When the shift amount is 1, there's an even shorter encoding, but we don't
1215
+ // bother with that nicety here.
1216
+ emit_std_enc_enc(sink, prefix, opcode, 1, subopcode, enc_dst, rex_flags);
1217
+ sink.put1(num_bits);
1218
+ }
1219
+ }
1220
+ }
1221
+
1222
+ Inst::XmmRmiReg {
1223
+ opcode,
1224
+ src1,
1225
+ src2,
1226
+ dst,
1227
+ } => {
1228
+ let src1 = allocs.next(src1.to_reg());
1229
+ let dst = allocs.next(dst.to_reg().to_reg());
1230
+ debug_assert_eq!(src1, dst);
1231
+ let rex = RexFlags::clear_w();
1232
+ let prefix = LegacyPrefixes::_66;
1233
+ let src2 = src2.clone().to_reg_mem_imm();
1234
+ if let RegMemImm::Imm { simm32 } = src2 {
1235
+ let (opcode_bytes, reg_digit) = match opcode {
1236
+ SseOpcode::Psllw => (0x0F71, 6),
1237
+ SseOpcode::Pslld => (0x0F72, 6),
1238
+ SseOpcode::Psllq => (0x0F73, 6),
1239
+ SseOpcode::Psraw => (0x0F71, 4),
1240
+ SseOpcode::Psrad => (0x0F72, 4),
1241
+ SseOpcode::Psrlw => (0x0F71, 2),
1242
+ SseOpcode::Psrld => (0x0F72, 2),
1243
+ SseOpcode::Psrlq => (0x0F73, 2),
1244
+ _ => panic!("invalid opcode: {}", opcode),
1245
+ };
1246
+ let dst_enc = reg_enc(dst);
1247
+ emit_std_enc_enc(sink, prefix, opcode_bytes, 2, reg_digit, dst_enc, rex);
1248
+ let imm = (simm32)
1249
+ .try_into()
1250
+ .expect("the immediate must be convertible to a u8");
1251
+ sink.put1(imm);
1252
+ } else {
1253
+ let opcode_bytes = match opcode {
1254
+ SseOpcode::Psllw => 0x0FF1,
1255
+ SseOpcode::Pslld => 0x0FF2,
1256
+ SseOpcode::Psllq => 0x0FF3,
1257
+ SseOpcode::Psraw => 0x0FE1,
1258
+ SseOpcode::Psrad => 0x0FE2,
1259
+ SseOpcode::Psrlw => 0x0FD1,
1260
+ SseOpcode::Psrld => 0x0FD2,
1261
+ SseOpcode::Psrlq => 0x0FD3,
1262
+ _ => panic!("invalid opcode: {}", opcode),
1263
+ };
1264
+
1265
+ match src2 {
1266
+ RegMemImm::Reg { reg } => {
1267
+ let reg = allocs.next(reg);
1268
+ emit_std_reg_reg(sink, prefix, opcode_bytes, 2, dst, reg, rex);
1269
+ }
1270
+ RegMemImm::Mem { addr } => {
1271
+ let addr = &addr.finalize(state, sink).with_allocs(allocs);
1272
+ emit_std_reg_mem(sink, prefix, opcode_bytes, 2, dst, addr, rex, 0);
1273
+ }
1274
+ RegMemImm::Imm { .. } => unreachable!(),
1275
+ }
1276
+ };
1277
+ }
1278
+
1279
+ Inst::CmpRmiR {
1280
+ size,
1281
+ src1: reg_g,
1282
+ src2: src_e,
1283
+ opcode,
1284
+ } => {
1285
+ let reg_g = allocs.next(reg_g.to_reg());
1286
+
1287
+ let is_cmp = match opcode {
1288
+ CmpOpcode::Cmp => true,
1289
+ CmpOpcode::Test => false,
1290
+ };
1291
+
1292
+ let mut prefix = LegacyPrefixes::None;
1293
+ if *size == OperandSize::Size16 {
1294
+ prefix = LegacyPrefixes::_66;
1295
+ }
1296
+ // A redundant REX prefix can change the meaning of this instruction.
1297
+ let mut rex = RexFlags::from((*size, reg_g));
1298
+
1299
+ match src_e.clone().to_reg_mem_imm() {
1300
+ RegMemImm::Reg { reg: reg_e } => {
1301
+ let reg_e = allocs.next(reg_e);
1302
+ if *size == OperandSize::Size8 {
1303
+ // Check whether the E register forces the use of a redundant REX.
1304
+ rex.always_emit_if_8bit_needed(reg_e);
1305
+ }
1306
+
1307
+ // Use the swapped operands encoding for CMP, to stay consistent with the output of
1308
+ // gcc/llvm.
1309
+ let opcode = match (*size, is_cmp) {
1310
+ (OperandSize::Size8, true) => 0x38,
1311
+ (_, true) => 0x39,
1312
+ (OperandSize::Size8, false) => 0x84,
1313
+ (_, false) => 0x85,
1314
+ };
1315
+ emit_std_reg_reg(sink, prefix, opcode, 1, reg_e, reg_g, rex);
1316
+ }
1317
+
1318
+ RegMemImm::Mem { addr } => {
1319
+ let addr = &addr.finalize(state, sink).with_allocs(allocs);
1320
+ // Whereas here we revert to the "normal" G-E ordering for CMP.
1321
+ let opcode = match (*size, is_cmp) {
1322
+ (OperandSize::Size8, true) => 0x3A,
1323
+ (_, true) => 0x3B,
1324
+ (OperandSize::Size8, false) => 0x84,
1325
+ (_, false) => 0x85,
1326
+ };
1327
+ emit_std_reg_mem(sink, prefix, opcode, 1, reg_g, addr, rex, 0);
1328
+ }
1329
+
1330
+ RegMemImm::Imm { simm32 } => {
1331
+ // FIXME JRS 2020Feb11: there are shorter encodings for
1332
+ // cmp $imm, rax/eax/ax/al.
1333
+ let use_imm8 = is_cmp && low8_will_sign_extend_to_32(simm32);
1334
+
1335
+ // And also here we use the "normal" G-E ordering.
1336
+ let opcode = if is_cmp {
1337
+ if *size == OperandSize::Size8 {
1338
+ 0x80
1339
+ } else if use_imm8 {
1340
+ 0x83
1341
+ } else {
1342
+ 0x81
1343
+ }
1344
+ } else {
1345
+ if *size == OperandSize::Size8 {
1346
+ 0xF6
1347
+ } else {
1348
+ 0xF7
1349
+ }
1350
+ };
1351
+ let subopcode = if is_cmp { 7 } else { 0 };
1352
+
1353
+ let enc_g = int_reg_enc(reg_g);
1354
+ emit_std_enc_enc(sink, prefix, opcode, 1, subopcode, enc_g, rex);
1355
+ emit_simm(sink, if use_imm8 { 1 } else { size.to_bytes() }, simm32);
1356
+ }
1357
+ }
1358
+ }
1359
+
1360
+ Inst::Setcc { cc, dst } => {
1361
+ let dst = allocs.next(dst.to_reg().to_reg());
1362
+ let opcode = 0x0f90 + cc.get_enc() as u32;
1363
+ let mut rex_flags = RexFlags::clear_w();
1364
+ rex_flags.always_emit();
1365
+ emit_std_enc_enc(
1366
+ sink,
1367
+ LegacyPrefixes::None,
1368
+ opcode,
1369
+ 2,
1370
+ 0,
1371
+ reg_enc(dst),
1372
+ rex_flags,
1373
+ );
1374
+ }
1375
+
1376
+ Inst::Bswap { size, src, dst } => {
1377
+ let src = allocs.next(src.to_reg());
1378
+ let dst = allocs.next(dst.to_reg().to_reg());
1379
+ debug_assert_eq!(src, dst);
1380
+ let enc_reg = int_reg_enc(dst);
1381
+
1382
+ // BSWAP reg32 is (REX.W==0) 0F C8
1383
+ // BSWAP reg64 is (REX.W==1) 0F C8
1384
+ let rex_flags = RexFlags::from(*size);
1385
+ rex_flags.emit_one_op(sink, enc_reg);
1386
+
1387
+ sink.put1(0x0F);
1388
+ sink.put1(0xC8 | (enc_reg & 7));
1389
+ }
1390
+
1391
+ Inst::Cmove {
1392
+ size,
1393
+ cc,
1394
+ consequent,
1395
+ alternative,
1396
+ dst,
1397
+ } => {
1398
+ let alternative = allocs.next(alternative.to_reg());
1399
+ let dst = allocs.next(dst.to_reg().to_reg());
1400
+ debug_assert_eq!(alternative, dst);
1401
+ let rex_flags = RexFlags::from(*size);
1402
+ let prefix = match size {
1403
+ OperandSize::Size16 => LegacyPrefixes::_66,
1404
+ OperandSize::Size32 => LegacyPrefixes::None,
1405
+ OperandSize::Size64 => LegacyPrefixes::None,
1406
+ _ => unreachable!("invalid size spec for cmove"),
1407
+ };
1408
+ let opcode = 0x0F40 + cc.get_enc() as u32;
1409
+ match consequent.clone().to_reg_mem() {
1410
+ RegMem::Reg { reg } => {
1411
+ let reg = allocs.next(reg);
1412
+ emit_std_reg_reg(sink, prefix, opcode, 2, dst, reg, rex_flags);
1413
+ }
1414
+ RegMem::Mem { addr } => {
1415
+ let addr = &addr.finalize(state, sink).with_allocs(allocs);
1416
+ emit_std_reg_mem(sink, prefix, opcode, 2, dst, addr, rex_flags, 0);
1417
+ }
1418
+ }
1419
+ }
1420
+
1421
+ Inst::XmmCmove {
1422
+ ty,
1423
+ cc,
1424
+ consequent,
1425
+ alternative,
1426
+ dst,
1427
+ } => {
1428
+ let alternative = allocs.next(alternative.to_reg());
1429
+ let dst = allocs.next(dst.to_reg().to_reg());
1430
+ debug_assert_eq!(alternative, dst);
1431
+ let consequent = allocs.next(consequent.clone().to_reg());
1432
+
1433
+ // Lowering of the Select IR opcode when the input is an fcmp relies on the fact that
1434
+ // this doesn't clobber flags. Make sure to not do so here.
1435
+ let next = sink.get_label();
1436
+
1437
+ // Jump if cc is *not* set.
1438
+ one_way_jmp(sink, cc.invert(), next);
1439
+
1440
+ let op = match *ty {
1441
+ types::F64 => SseOpcode::Movsd,
1442
+ types::F32 => SseOpcode::Movsd,
1443
+ types::F32X4 => SseOpcode::Movaps,
1444
+ types::F64X2 => SseOpcode::Movapd,
1445
+ ty => {
1446
+ debug_assert!(ty.is_vector() && ty.bytes() == 16);
1447
+ SseOpcode::Movdqa
1448
+ }
1449
+ };
1450
+ let inst = Inst::xmm_unary_rm_r(op, consequent.into(), Writable::from_reg(dst));
1451
+ inst.emit(&[], sink, info, state);
1452
+
1453
+ sink.bind_label(next, state.ctrl_plane_mut());
1454
+ }
1455
+
1456
+ Inst::Push64 { src } => {
1457
+ let src = src.clone().to_reg_mem_imm().with_allocs(allocs);
1458
+
1459
+ match src {
1460
+ RegMemImm::Reg { reg } => {
1461
+ let enc_reg = int_reg_enc(reg);
1462
+ let rex = 0x40 | ((enc_reg >> 3) & 1);
1463
+ if rex != 0x40 {
1464
+ sink.put1(rex);
1465
+ }
1466
+ sink.put1(0x50 | (enc_reg & 7));
1467
+ }
1468
+
1469
+ RegMemImm::Mem { addr } => {
1470
+ let addr = &addr.finalize(state, sink);
1471
+ emit_std_enc_mem(
1472
+ sink,
1473
+ LegacyPrefixes::None,
1474
+ 0xFF,
1475
+ 1,
1476
+ 6, /*subopcode*/
1477
+ addr,
1478
+ RexFlags::clear_w(),
1479
+ 0,
1480
+ );
1481
+ }
1482
+
1483
+ RegMemImm::Imm { simm32 } => {
1484
+ if low8_will_sign_extend_to_64(simm32) {
1485
+ sink.put1(0x6A);
1486
+ sink.put1(simm32 as u8);
1487
+ } else {
1488
+ sink.put1(0x68);
1489
+ sink.put4(simm32);
1490
+ }
1491
+ }
1492
+ }
1493
+ }
1494
+
1495
+ Inst::Pop64 { dst } => {
1496
+ let dst = allocs.next(dst.to_reg().to_reg());
1497
+ let enc_dst = int_reg_enc(dst);
1498
+ if enc_dst >= 8 {
1499
+ // 0x41 == REX.{W=0, B=1}. It seems that REX.W is irrelevant here.
1500
+ sink.put1(0x41);
1501
+ }
1502
+ sink.put1(0x58 + (enc_dst & 7));
1503
+ }
1504
+
1505
+ Inst::StackProbeLoop {
1506
+ tmp,
1507
+ frame_size,
1508
+ guard_size,
1509
+ } => {
1510
+ assert!(info.flags.enable_probestack());
1511
+ assert!(guard_size.is_power_of_two());
1512
+
1513
+ let tmp = allocs.next_writable(*tmp);
1514
+
1515
+ // Number of probes that we need to perform
1516
+ let probe_count = align_to(*frame_size, *guard_size) / guard_size;
1517
+
1518
+ // The inline stack probe loop has 3 phases:
1519
+ //
1520
+ // We generate the "guard area" register which is essentially the frame_size aligned to
1521
+ // guard_size. We copy the stack pointer and subtract the guard area from it. This
1522
+ // gets us a register that we can use to compare when looping.
1523
+ //
1524
+ // After that we emit the loop. Essentially we just adjust the stack pointer one guard_size'd
1525
+ // distance at a time and then touch the stack by writing anything to it. We use the previously
1526
+ // created "guard area" register to know when to stop looping.
1527
+ //
1528
+ // When we have touched all the pages that we need, we have to restore the stack pointer
1529
+ // to where it was before.
1530
+ //
1531
+ // Generate the following code:
1532
+ // mov tmp_reg, rsp
1533
+ // sub tmp_reg, guard_size * probe_count
1534
+ // .loop_start:
1535
+ // sub rsp, guard_size
1536
+ // mov [rsp], rsp
1537
+ // cmp rsp, tmp_reg
1538
+ // jne .loop_start
1539
+ // add rsp, guard_size * probe_count
1540
+
1541
+ // Create the guard bound register
1542
+ // mov tmp_reg, rsp
1543
+ let inst = Inst::gen_move(tmp, regs::rsp(), types::I64);
1544
+ inst.emit(&[], sink, info, state);
1545
+
1546
+ // sub tmp_reg, GUARD_SIZE * probe_count
1547
+ let inst = Inst::alu_rmi_r(
1548
+ OperandSize::Size64,
1549
+ AluRmiROpcode::Sub,
1550
+ RegMemImm::imm(guard_size * probe_count),
1551
+ tmp,
1552
+ );
1553
+ inst.emit(&[], sink, info, state);
1554
+
1555
+ // Emit the main loop!
1556
+ let loop_start = sink.get_label();
1557
+ sink.bind_label(loop_start, state.ctrl_plane_mut());
1558
+
1559
+ // sub rsp, GUARD_SIZE
1560
+ let inst = Inst::alu_rmi_r(
1561
+ OperandSize::Size64,
1562
+ AluRmiROpcode::Sub,
1563
+ RegMemImm::imm(*guard_size),
1564
+ Writable::from_reg(regs::rsp()),
1565
+ );
1566
+ inst.emit(&[], sink, info, state);
1567
+
1568
+ // TODO: `mov [rsp], 0` would be better, but we don't have that instruction
1569
+ // Probe the stack! We don't use Inst::gen_store_stack here because we need a predictable
1570
+ // instruction size.
1571
+ // mov [rsp], rsp
1572
+ let inst = Inst::mov_r_m(
1573
+ OperandSize::Size32, // Use Size32 since it saves us one byte
1574
+ regs::rsp(),
1575
+ SyntheticAmode::Real(Amode::imm_reg(0, regs::rsp())),
1576
+ );
1577
+ inst.emit(&[], sink, info, state);
1578
+
1579
+ // Compare and jump if we are not done yet
1580
+ // cmp rsp, tmp_reg
1581
+ let inst = Inst::cmp_rmi_r(
1582
+ OperandSize::Size64,
1583
+ tmp.to_reg(),
1584
+ RegMemImm::reg(regs::rsp()),
1585
+ );
1586
+ inst.emit(&[], sink, info, state);
1587
+
1588
+ // jne .loop_start
1589
+ // TODO: Encoding the JmpIf as a short jump saves us 4 bytes here.
1590
+ one_way_jmp(sink, CC::NZ, loop_start);
1591
+
1592
+ // The regular prologue code is going to emit a `sub` after this, so we need to
1593
+ // reset the stack pointer
1594
+ //
1595
+ // TODO: It would be better if we could avoid the `add` + `sub` that is generated here
1596
+ // and in the stack adj portion of the prologue
1597
+ //
1598
+ // add rsp, GUARD_SIZE * probe_count
1599
+ let inst = Inst::alu_rmi_r(
1600
+ OperandSize::Size64,
1601
+ AluRmiROpcode::Add,
1602
+ RegMemImm::imm(guard_size * probe_count),
1603
+ Writable::from_reg(regs::rsp()),
1604
+ );
1605
+ inst.emit(&[], sink, info, state);
1606
+ }
1607
+
1608
+ Inst::CallKnown { dest, opcode, info } => {
1609
+ if let Some(s) = state.take_stack_map() {
1610
+ sink.add_stack_map(StackMapExtent::UpcomingBytes(5), s);
1611
+ }
1612
+ sink.put1(0xE8);
1613
+ // The addend adjusts for the difference between the end of the instruction and the
1614
+ // beginning of the immediate field.
1615
+ emit_reloc(sink, Reloc::X86CallPCRel4, &dest, -4);
1616
+ sink.put4(0);
1617
+ if opcode.is_call() {
1618
+ sink.add_call_site(*opcode);
1619
+ }
1620
+
1621
+ if let Some(call_info) = info {
1622
+ let callee_pop_size = i64::from(call_info.callee_pop_size);
1623
+ state.adjust_virtual_sp_offset(-callee_pop_size);
1624
+ }
1625
+ }
1626
+
1627
+ Inst::ReturnCallKnown {
1628
+ callee,
1629
+ info: call_info,
1630
+ } => {
1631
+ emit_return_call_common_sequence(allocs, sink, info, state, &call_info);
1632
+
1633
+ // Finally, jump to the callee!
1634
+ //
1635
+ // Note: this is not `Inst::Jmp { .. }.emit(..)` because we have
1636
+ // different metadata in this case: we don't have a label for the
1637
+ // target, but rather a function relocation.
1638
+ sink.put1(0xE9);
1639
+ // The addend adjusts for the difference between the end of the instruction and the
1640
+ // beginning of the immediate field.
1641
+ emit_reloc(sink, Reloc::X86CallPCRel4, &callee, -4);
1642
+ sink.put4(0);
1643
+ sink.add_call_site(ir::Opcode::ReturnCall);
1644
+ }
1645
+
1646
+ Inst::ReturnCallUnknown {
1647
+ callee,
1648
+ info: call_info,
1649
+ } => {
1650
+ let callee = allocs.next(*callee);
1651
+
1652
+ emit_return_call_common_sequence(allocs, sink, info, state, &call_info);
1653
+
1654
+ Inst::JmpUnknown {
1655
+ target: RegMem::reg(callee),
1656
+ }
1657
+ .emit(&[], sink, info, state);
1658
+ sink.add_call_site(ir::Opcode::ReturnCallIndirect);
1659
+ }
1660
+
1661
+ Inst::CallUnknown { dest, opcode, info } => {
1662
+ let dest = dest.with_allocs(allocs);
1663
+
1664
+ let start_offset = sink.cur_offset();
1665
+ match dest {
1666
+ RegMem::Reg { reg } => {
1667
+ let reg_enc = int_reg_enc(reg);
1668
+ emit_std_enc_enc(
1669
+ sink,
1670
+ LegacyPrefixes::None,
1671
+ 0xFF,
1672
+ 1,
1673
+ 2, /*subopcode*/
1674
+ reg_enc,
1675
+ RexFlags::clear_w(),
1676
+ );
1677
+ }
1678
+
1679
+ RegMem::Mem { addr } => {
1680
+ let addr = &addr.finalize(state, sink);
1681
+ emit_std_enc_mem(
1682
+ sink,
1683
+ LegacyPrefixes::None,
1684
+ 0xFF,
1685
+ 1,
1686
+ 2, /*subopcode*/
1687
+ addr,
1688
+ RexFlags::clear_w(),
1689
+ 0,
1690
+ );
1691
+ }
1692
+ }
1693
+ if let Some(s) = state.take_stack_map() {
1694
+ sink.add_stack_map(StackMapExtent::StartedAtOffset(start_offset), s);
1695
+ }
1696
+ if opcode.is_call() {
1697
+ sink.add_call_site(*opcode);
1698
+ }
1699
+
1700
+ if let Some(call_info) = info {
1701
+ let callee_pop_size = i64::from(call_info.callee_pop_size);
1702
+ state.adjust_virtual_sp_offset(-callee_pop_size);
1703
+ }
1704
+ }
1705
+
1706
+ Inst::Args { .. } => {}
1707
+ Inst::Rets { .. } => {}
1708
+
1709
+ Inst::Ret {
1710
+ stack_bytes_to_pop: 0,
1711
+ } => sink.put1(0xC3),
1712
+
1713
+ Inst::Ret { stack_bytes_to_pop } => {
1714
+ sink.put1(0xC2);
1715
+ sink.put2(u16::try_from(*stack_bytes_to_pop).unwrap());
1716
+ }
1717
+
1718
+ Inst::JmpKnown { dst } => {
1719
+ let br_start = sink.cur_offset();
1720
+ let br_disp_off = br_start + 1;
1721
+ let br_end = br_start + 5;
1722
+
1723
+ sink.use_label_at_offset(br_disp_off, *dst, LabelUse::JmpRel32);
1724
+ sink.add_uncond_branch(br_start, br_end, *dst);
1725
+
1726
+ sink.put1(0xE9);
1727
+ // Placeholder for the label value.
1728
+ sink.put4(0x0);
1729
+ }
1730
+
1731
+ Inst::JmpIf { cc, taken } => {
1732
+ let cond_start = sink.cur_offset();
1733
+ let cond_disp_off = cond_start + 2;
1734
+
1735
+ sink.use_label_at_offset(cond_disp_off, *taken, LabelUse::JmpRel32);
1736
+ // Since this is not a terminator, don't enroll in the branch inversion mechanism.
1737
+
1738
+ sink.put1(0x0F);
1739
+ sink.put1(0x80 + cc.get_enc());
1740
+ // Placeholder for the label value.
1741
+ sink.put4(0x0);
1742
+ }
1743
+
1744
+ Inst::JmpCond {
1745
+ cc,
1746
+ taken,
1747
+ not_taken,
1748
+ } => {
1749
+ // If taken.
1750
+ let cond_start = sink.cur_offset();
1751
+ let cond_disp_off = cond_start + 2;
1752
+ let cond_end = cond_start + 6;
1753
+
1754
+ sink.use_label_at_offset(cond_disp_off, *taken, LabelUse::JmpRel32);
1755
+ let inverted: [u8; 6] = [0x0F, 0x80 + (cc.invert().get_enc()), 0x00, 0x00, 0x00, 0x00];
1756
+ sink.add_cond_branch(cond_start, cond_end, *taken, &inverted[..]);
1757
+
1758
+ sink.put1(0x0F);
1759
+ sink.put1(0x80 + cc.get_enc());
1760
+ // Placeholder for the label value.
1761
+ sink.put4(0x0);
1762
+
1763
+ // If not taken.
1764
+ let uncond_start = sink.cur_offset();
1765
+ let uncond_disp_off = uncond_start + 1;
1766
+ let uncond_end = uncond_start + 5;
1767
+
1768
+ sink.use_label_at_offset(uncond_disp_off, *not_taken, LabelUse::JmpRel32);
1769
+ sink.add_uncond_branch(uncond_start, uncond_end, *not_taken);
1770
+
1771
+ sink.put1(0xE9);
1772
+ // Placeholder for the label value.
1773
+ sink.put4(0x0);
1774
+ }
1775
+
1776
+ Inst::JmpUnknown { target } => {
1777
+ let target = target.with_allocs(allocs);
1778
+
1779
+ match target {
1780
+ RegMem::Reg { reg } => {
1781
+ let reg_enc = int_reg_enc(reg);
1782
+ emit_std_enc_enc(
1783
+ sink,
1784
+ LegacyPrefixes::None,
1785
+ 0xFF,
1786
+ 1,
1787
+ 4, /*subopcode*/
1788
+ reg_enc,
1789
+ RexFlags::clear_w(),
1790
+ );
1791
+ }
1792
+
1793
+ RegMem::Mem { addr } => {
1794
+ let addr = &addr.finalize(state, sink);
1795
+ emit_std_enc_mem(
1796
+ sink,
1797
+ LegacyPrefixes::None,
1798
+ 0xFF,
1799
+ 1,
1800
+ 4, /*subopcode*/
1801
+ addr,
1802
+ RexFlags::clear_w(),
1803
+ 0,
1804
+ );
1805
+ }
1806
+ }
1807
+ }
1808
+
1809
+ Inst::JmpTableSeq {
1810
+ idx,
1811
+ tmp1,
1812
+ tmp2,
1813
+ ref targets,
1814
+ default_target,
1815
+ ..
1816
+ } => {
1817
+ let idx = allocs.next(*idx);
1818
+ let tmp1 = Writable::from_reg(allocs.next(tmp1.to_reg()));
1819
+ let tmp2 = Writable::from_reg(allocs.next(tmp2.to_reg()));
1820
+
1821
+ // This sequence is *one* instruction in the vcode, and is expanded only here at
1822
+ // emission time, because we cannot allow the regalloc to insert spills/reloads in
1823
+ // the middle; we depend on hardcoded PC-rel addressing below.
1824
+ //
1825
+ // We don't have to worry about emitting islands, because the only label-use type has a
1826
+ // maximum range of 2 GB. If we later consider using shorter-range label references,
1827
+ // this will need to be revisited.
1828
+
1829
+ // We generate the following sequence. Note that the only read of %idx is before the
1830
+ // write to %tmp2, so regalloc may use the same register for both; fix x64/inst/mod.rs
1831
+ // if you change this.
1832
+ // lea start_of_jump_table_offset(%rip), %tmp1
1833
+ // movslq [%tmp1, %idx, 4], %tmp2 ;; shift of 2, viz. multiply index by 4
1834
+ // addq %tmp2, %tmp1
1835
+ // j *%tmp1
1836
+ // $start_of_jump_table:
1837
+ // -- jump table entries
1838
+
1839
+ // Load base address of jump table.
1840
+ let start_of_jumptable = sink.get_label();
1841
+ let inst = Inst::lea(Amode::rip_relative(start_of_jumptable), tmp1);
1842
+ inst.emit(&[], sink, info, state);
1843
+
1844
+ // Load value out of the jump table. It's a relative offset to the target block, so it
1845
+ // might be negative; use a sign-extension.
1846
+ let inst = Inst::movsx_rm_r(
1847
+ ExtMode::LQ,
1848
+ RegMem::mem(Amode::imm_reg_reg_shift(
1849
+ 0,
1850
+ Gpr::new(tmp1.to_reg()).unwrap(),
1851
+ Gpr::new(idx).unwrap(),
1852
+ 2,
1853
+ )),
1854
+ tmp2,
1855
+ );
1856
+ inst.emit(&[], sink, info, state);
1857
+
1858
+ // Add base of jump table to jump-table-sourced block offset.
1859
+ let inst = Inst::alu_rmi_r(
1860
+ OperandSize::Size64,
1861
+ AluRmiROpcode::Add,
1862
+ RegMemImm::reg(tmp2.to_reg()),
1863
+ tmp1,
1864
+ );
1865
+ inst.emit(&[], sink, info, state);
1866
+
1867
+ // Branch to computed address.
1868
+ let inst = Inst::jmp_unknown(RegMem::reg(tmp1.to_reg()));
1869
+ inst.emit(&[], sink, info, state);
1870
+
1871
+ // Emit jump table (table of 32-bit offsets).
1872
+ sink.bind_label(start_of_jumptable, state.ctrl_plane_mut());
1873
+ let jt_off = sink.cur_offset();
1874
+ for &target in targets.iter().chain(std::iter::once(default_target)) {
1875
+ let word_off = sink.cur_offset();
1876
+ // off_into_table is an addend here embedded in the label to be later patched at
1877
+ // the end of codegen. The offset is initially relative to this jump table entry;
1878
+ // with the extra addend, it'll be relative to the jump table's start, after
1879
+ // patching.
1880
+ let off_into_table = word_off - jt_off;
1881
+ sink.use_label_at_offset(word_off, target, LabelUse::PCRel32);
1882
+ sink.put4(off_into_table);
1883
+ }
1884
+ }
1885
+
1886
+ Inst::TrapIf { cc, trap_code } => {
1887
+ let trap_label = sink.defer_trap(*trap_code, state.take_stack_map());
1888
+ one_way_jmp(sink, *cc, trap_label);
1889
+ }
1890
+
1891
+ Inst::TrapIfAnd {
1892
+ cc1,
1893
+ cc2,
1894
+ trap_code,
1895
+ } => {
1896
+ let trap_label = sink.defer_trap(*trap_code, state.take_stack_map());
1897
+ let else_label = sink.get_label();
1898
+
1899
+ // Jump to the end if the first condition isn't true, and then if
1900
+ // the second condition is true go to the trap.
1901
+ one_way_jmp(sink, cc1.invert(), else_label);
1902
+ one_way_jmp(sink, *cc2, trap_label);
1903
+
1904
+ sink.bind_label(else_label, state.ctrl_plane_mut());
1905
+ }
1906
+
1907
+ Inst::TrapIfOr {
1908
+ cc1,
1909
+ cc2,
1910
+ trap_code,
1911
+ } => {
1912
+ let trap_label = sink.defer_trap(*trap_code, state.take_stack_map());
1913
+
1914
+ // Emit two jumps to the same trap if either condition code is true.
1915
+ one_way_jmp(sink, *cc1, trap_label);
1916
+ one_way_jmp(sink, *cc2, trap_label);
1917
+ }
1918
+
1919
+ Inst::XmmUnaryRmR { op, src, dst } => {
1920
+ emit(
1921
+ &Inst::XmmUnaryRmRUnaligned {
1922
+ op: *op,
1923
+ src: XmmMem::new(src.clone().into()).unwrap(),
1924
+ dst: *dst,
1925
+ },
1926
+ allocs,
1927
+ sink,
1928
+ info,
1929
+ state,
1930
+ );
1931
+ }
1932
+
1933
+ Inst::XmmUnaryRmRUnaligned {
1934
+ op,
1935
+ src: src_e,
1936
+ dst: reg_g,
1937
+ } => {
1938
+ let reg_g = allocs.next(reg_g.to_reg().to_reg());
1939
+ let src_e = src_e.clone().to_reg_mem().with_allocs(allocs);
1940
+
1941
+ let rex = RexFlags::clear_w();
1942
+
1943
+ let (prefix, opcode, num_opcodes) = match op {
1944
+ SseOpcode::Cvtdq2pd => (LegacyPrefixes::_F3, 0x0FE6, 2),
1945
+ SseOpcode::Cvtpd2ps => (LegacyPrefixes::_66, 0x0F5A, 2),
1946
+ SseOpcode::Cvtps2pd => (LegacyPrefixes::None, 0x0F5A, 2),
1947
+ SseOpcode::Cvtdq2ps => (LegacyPrefixes::None, 0x0F5B, 2),
1948
+ SseOpcode::Cvttpd2dq => (LegacyPrefixes::_66, 0x0FE6, 2),
1949
+ SseOpcode::Cvttps2dq => (LegacyPrefixes::_F3, 0x0F5B, 2),
1950
+ SseOpcode::Movaps => (LegacyPrefixes::None, 0x0F28, 2),
1951
+ SseOpcode::Movapd => (LegacyPrefixes::_66, 0x0F28, 2),
1952
+ SseOpcode::Movdqa => (LegacyPrefixes::_66, 0x0F6F, 2),
1953
+ SseOpcode::Movdqu => (LegacyPrefixes::_F3, 0x0F6F, 2),
1954
+ SseOpcode::Movsd => (LegacyPrefixes::_F2, 0x0F10, 2),
1955
+ SseOpcode::Movss => (LegacyPrefixes::_F3, 0x0F10, 2),
1956
+ SseOpcode::Movups => (LegacyPrefixes::None, 0x0F10, 2),
1957
+ SseOpcode::Movupd => (LegacyPrefixes::_66, 0x0F10, 2),
1958
+ SseOpcode::Pabsb => (LegacyPrefixes::_66, 0x0F381C, 3),
1959
+ SseOpcode::Pabsw => (LegacyPrefixes::_66, 0x0F381D, 3),
1960
+ SseOpcode::Pabsd => (LegacyPrefixes::_66, 0x0F381E, 3),
1961
+ SseOpcode::Pmovsxbd => (LegacyPrefixes::_66, 0x0F3821, 3),
1962
+ SseOpcode::Pmovsxbw => (LegacyPrefixes::_66, 0x0F3820, 3),
1963
+ SseOpcode::Pmovsxbq => (LegacyPrefixes::_66, 0x0F3822, 3),
1964
+ SseOpcode::Pmovsxwd => (LegacyPrefixes::_66, 0x0F3823, 3),
1965
+ SseOpcode::Pmovsxwq => (LegacyPrefixes::_66, 0x0F3824, 3),
1966
+ SseOpcode::Pmovsxdq => (LegacyPrefixes::_66, 0x0F3825, 3),
1967
+ SseOpcode::Pmovzxbd => (LegacyPrefixes::_66, 0x0F3831, 3),
1968
+ SseOpcode::Pmovzxbw => (LegacyPrefixes::_66, 0x0F3830, 3),
1969
+ SseOpcode::Pmovzxbq => (LegacyPrefixes::_66, 0x0F3832, 3),
1970
+ SseOpcode::Pmovzxwd => (LegacyPrefixes::_66, 0x0F3833, 3),
1971
+ SseOpcode::Pmovzxwq => (LegacyPrefixes::_66, 0x0F3834, 3),
1972
+ SseOpcode::Pmovzxdq => (LegacyPrefixes::_66, 0x0F3835, 3),
1973
+ SseOpcode::Sqrtps => (LegacyPrefixes::None, 0x0F51, 2),
1974
+ SseOpcode::Sqrtpd => (LegacyPrefixes::_66, 0x0F51, 2),
1975
+ SseOpcode::Movddup => (LegacyPrefixes::_F2, 0x0F12, 2),
1976
+ _ => unimplemented!("Opcode {:?} not implemented", op),
1977
+ };
1978
+
1979
+ match src_e {
1980
+ RegMem::Reg { reg: reg_e } => {
1981
+ emit_std_reg_reg(sink, prefix, opcode, num_opcodes, reg_g, reg_e, rex);
1982
+ }
1983
+ RegMem::Mem { addr } => {
1984
+ let addr = &addr.finalize(state, sink);
1985
+ emit_std_reg_mem(sink, prefix, opcode, num_opcodes, reg_g, addr, rex, 0);
1986
+ }
1987
+ };
1988
+ }
1989
+
1990
+ Inst::XmmUnaryRmRImm { op, src, dst, imm } => {
1991
+ let dst = allocs.next(dst.to_reg().to_reg());
1992
+ let src = src.clone().to_reg_mem().with_allocs(allocs);
1993
+ let rex = RexFlags::clear_w();
1994
+
1995
+ let (prefix, opcode, len) = match op {
1996
+ SseOpcode::Roundps => (LegacyPrefixes::_66, 0x0F3A08, 3),
1997
+ SseOpcode::Roundss => (LegacyPrefixes::_66, 0x0F3A0A, 3),
1998
+ SseOpcode::Roundpd => (LegacyPrefixes::_66, 0x0F3A09, 3),
1999
+ SseOpcode::Roundsd => (LegacyPrefixes::_66, 0x0F3A0B, 3),
2000
+ SseOpcode::Pshufd => (LegacyPrefixes::_66, 0x0F70, 2),
2001
+ SseOpcode::Pshuflw => (LegacyPrefixes::_F2, 0x0F70, 2),
2002
+ SseOpcode::Pshufhw => (LegacyPrefixes::_F3, 0x0F70, 2),
2003
+ _ => unimplemented!("Opcode {:?} not implemented", op),
2004
+ };
2005
+ match src {
2006
+ RegMem::Reg { reg } => {
2007
+ emit_std_reg_reg(sink, prefix, opcode, len, dst, reg, rex);
2008
+ }
2009
+ RegMem::Mem { addr } => {
2010
+ let addr = &addr.finalize(state, sink);
2011
+ // N.B.: bytes_at_end == 1, because of the `imm` byte below.
2012
+ emit_std_reg_mem(sink, prefix, opcode, len, dst, addr, rex, 1);
2013
+ }
2014
+ }
2015
+ sink.put1(*imm);
2016
+ }
2017
+
2018
+ Inst::XmmUnaryRmREvex { op, src, dst } => {
2019
+ let dst = allocs.next(dst.to_reg().to_reg());
2020
+ let src = match src.clone().to_reg_mem().with_allocs(allocs) {
2021
+ RegMem::Reg { reg } => {
2022
+ RegisterOrAmode::Register(reg.to_real_reg().unwrap().hw_enc().into())
2023
+ }
2024
+ RegMem::Mem { addr } => RegisterOrAmode::Amode(addr.finalize(state, sink)),
2025
+ };
2026
+
2027
+ let (prefix, map, w, opcode) = match op {
2028
+ Avx512Opcode::Vcvtudq2ps => (LegacyPrefixes::_F2, OpcodeMap::_0F, false, 0x7a),
2029
+ Avx512Opcode::Vpabsq => (LegacyPrefixes::_66, OpcodeMap::_0F38, true, 0x1f),
2030
+ Avx512Opcode::Vpopcntb => (LegacyPrefixes::_66, OpcodeMap::_0F38, false, 0x54),
2031
+ _ => unimplemented!("Opcode {:?} not implemented", op),
2032
+ };
2033
+ EvexInstruction::new()
2034
+ .length(EvexVectorLength::V128)
2035
+ .prefix(prefix)
2036
+ .map(map)
2037
+ .w(w)
2038
+ .opcode(opcode)
2039
+ .tuple_type(op.tuple_type())
2040
+ .reg(dst.to_real_reg().unwrap().hw_enc())
2041
+ .rm(src)
2042
+ .encode(sink);
2043
+ }
2044
+
2045
+ Inst::XmmUnaryRmRImmEvex { op, src, dst, imm } => {
2046
+ let dst = allocs.next(dst.to_reg().to_reg());
2047
+ let src = match src.clone().to_reg_mem().with_allocs(allocs) {
2048
+ RegMem::Reg { reg } => {
2049
+ RegisterOrAmode::Register(reg.to_real_reg().unwrap().hw_enc().into())
2050
+ }
2051
+ RegMem::Mem { addr } => RegisterOrAmode::Amode(addr.finalize(state, sink)),
2052
+ };
2053
+
2054
+ let (opcode, opcode_ext, w) = match op {
2055
+ Avx512Opcode::VpsraqImm => (0x72, 4, true),
2056
+ _ => unimplemented!("Opcode {:?} not implemented", op),
2057
+ };
2058
+ EvexInstruction::new()
2059
+ .length(EvexVectorLength::V128)
2060
+ .prefix(LegacyPrefixes::_66)
2061
+ .map(OpcodeMap::_0F)
2062
+ .w(w)
2063
+ .opcode(opcode)
2064
+ .reg(opcode_ext)
2065
+ .vvvvv(dst.to_real_reg().unwrap().hw_enc())
2066
+ .tuple_type(op.tuple_type())
2067
+ .rm(src)
2068
+ .imm(*imm)
2069
+ .encode(sink);
2070
+ }
2071
+
2072
+ Inst::XmmRmR {
2073
+ op,
2074
+ src1,
2075
+ src2,
2076
+ dst,
2077
+ } => emit(
2078
+ &Inst::XmmRmRUnaligned {
2079
+ op: *op,
2080
+ dst: *dst,
2081
+ src1: *src1,
2082
+ src2: XmmMem::new(src2.clone().to_reg_mem()).unwrap(),
2083
+ },
2084
+ allocs,
2085
+ sink,
2086
+ info,
2087
+ state,
2088
+ ),
2089
+
2090
+ Inst::XmmRmRUnaligned {
2091
+ op,
2092
+ src1,
2093
+ src2: src_e,
2094
+ dst: reg_g,
2095
+ } => {
2096
+ let src1 = allocs.next(src1.to_reg());
2097
+ let reg_g = allocs.next(reg_g.to_reg().to_reg());
2098
+ let src_e = src_e.clone().to_reg_mem().with_allocs(allocs);
2099
+ debug_assert_eq!(src1, reg_g);
2100
+
2101
+ let rex = RexFlags::clear_w();
2102
+ let (prefix, opcode, length) = match op {
2103
+ SseOpcode::Addps => (LegacyPrefixes::None, 0x0F58, 2),
2104
+ SseOpcode::Addpd => (LegacyPrefixes::_66, 0x0F58, 2),
2105
+ SseOpcode::Addss => (LegacyPrefixes::_F3, 0x0F58, 2),
2106
+ SseOpcode::Addsd => (LegacyPrefixes::_F2, 0x0F58, 2),
2107
+ SseOpcode::Andps => (LegacyPrefixes::None, 0x0F54, 2),
2108
+ SseOpcode::Andpd => (LegacyPrefixes::_66, 0x0F54, 2),
2109
+ SseOpcode::Andnps => (LegacyPrefixes::None, 0x0F55, 2),
2110
+ SseOpcode::Andnpd => (LegacyPrefixes::_66, 0x0F55, 2),
2111
+ SseOpcode::Divps => (LegacyPrefixes::None, 0x0F5E, 2),
2112
+ SseOpcode::Divpd => (LegacyPrefixes::_66, 0x0F5E, 2),
2113
+ SseOpcode::Divss => (LegacyPrefixes::_F3, 0x0F5E, 2),
2114
+ SseOpcode::Divsd => (LegacyPrefixes::_F2, 0x0F5E, 2),
2115
+ SseOpcode::Maxps => (LegacyPrefixes::None, 0x0F5F, 2),
2116
+ SseOpcode::Maxpd => (LegacyPrefixes::_66, 0x0F5F, 2),
2117
+ SseOpcode::Maxss => (LegacyPrefixes::_F3, 0x0F5F, 2),
2118
+ SseOpcode::Maxsd => (LegacyPrefixes::_F2, 0x0F5F, 2),
2119
+ SseOpcode::Minps => (LegacyPrefixes::None, 0x0F5D, 2),
2120
+ SseOpcode::Minpd => (LegacyPrefixes::_66, 0x0F5D, 2),
2121
+ SseOpcode::Minss => (LegacyPrefixes::_F3, 0x0F5D, 2),
2122
+ SseOpcode::Minsd => (LegacyPrefixes::_F2, 0x0F5D, 2),
2123
+ SseOpcode::Movlhps => (LegacyPrefixes::None, 0x0F16, 2),
2124
+ SseOpcode::Movsd => (LegacyPrefixes::_F2, 0x0F10, 2),
2125
+ SseOpcode::Mulps => (LegacyPrefixes::None, 0x0F59, 2),
2126
+ SseOpcode::Mulpd => (LegacyPrefixes::_66, 0x0F59, 2),
2127
+ SseOpcode::Mulss => (LegacyPrefixes::_F3, 0x0F59, 2),
2128
+ SseOpcode::Mulsd => (LegacyPrefixes::_F2, 0x0F59, 2),
2129
+ SseOpcode::Orpd => (LegacyPrefixes::_66, 0x0F56, 2),
2130
+ SseOpcode::Orps => (LegacyPrefixes::None, 0x0F56, 2),
2131
+ SseOpcode::Packssdw => (LegacyPrefixes::_66, 0x0F6B, 2),
2132
+ SseOpcode::Packsswb => (LegacyPrefixes::_66, 0x0F63, 2),
2133
+ SseOpcode::Packusdw => (LegacyPrefixes::_66, 0x0F382B, 3),
2134
+ SseOpcode::Packuswb => (LegacyPrefixes::_66, 0x0F67, 2),
2135
+ SseOpcode::Paddb => (LegacyPrefixes::_66, 0x0FFC, 2),
2136
+ SseOpcode::Paddd => (LegacyPrefixes::_66, 0x0FFE, 2),
2137
+ SseOpcode::Paddq => (LegacyPrefixes::_66, 0x0FD4, 2),
2138
+ SseOpcode::Paddw => (LegacyPrefixes::_66, 0x0FFD, 2),
2139
+ SseOpcode::Paddsb => (LegacyPrefixes::_66, 0x0FEC, 2),
2140
+ SseOpcode::Paddsw => (LegacyPrefixes::_66, 0x0FED, 2),
2141
+ SseOpcode::Paddusb => (LegacyPrefixes::_66, 0x0FDC, 2),
2142
+ SseOpcode::Paddusw => (LegacyPrefixes::_66, 0x0FDD, 2),
2143
+ SseOpcode::Pmaddubsw => (LegacyPrefixes::_66, 0x0F3804, 3),
2144
+ SseOpcode::Pand => (LegacyPrefixes::_66, 0x0FDB, 2),
2145
+ SseOpcode::Pandn => (LegacyPrefixes::_66, 0x0FDF, 2),
2146
+ SseOpcode::Pavgb => (LegacyPrefixes::_66, 0x0FE0, 2),
2147
+ SseOpcode::Pavgw => (LegacyPrefixes::_66, 0x0FE3, 2),
2148
+ SseOpcode::Pcmpeqb => (LegacyPrefixes::_66, 0x0F74, 2),
2149
+ SseOpcode::Pcmpeqw => (LegacyPrefixes::_66, 0x0F75, 2),
2150
+ SseOpcode::Pcmpeqd => (LegacyPrefixes::_66, 0x0F76, 2),
2151
+ SseOpcode::Pcmpeqq => (LegacyPrefixes::_66, 0x0F3829, 3),
2152
+ SseOpcode::Pcmpgtb => (LegacyPrefixes::_66, 0x0F64, 2),
2153
+ SseOpcode::Pcmpgtw => (LegacyPrefixes::_66, 0x0F65, 2),
2154
+ SseOpcode::Pcmpgtd => (LegacyPrefixes::_66, 0x0F66, 2),
2155
+ SseOpcode::Pcmpgtq => (LegacyPrefixes::_66, 0x0F3837, 3),
2156
+ SseOpcode::Pmaddwd => (LegacyPrefixes::_66, 0x0FF5, 2),
2157
+ SseOpcode::Pmaxsb => (LegacyPrefixes::_66, 0x0F383C, 3),
2158
+ SseOpcode::Pmaxsw => (LegacyPrefixes::_66, 0x0FEE, 2),
2159
+ SseOpcode::Pmaxsd => (LegacyPrefixes::_66, 0x0F383D, 3),
2160
+ SseOpcode::Pmaxub => (LegacyPrefixes::_66, 0x0FDE, 2),
2161
+ SseOpcode::Pmaxuw => (LegacyPrefixes::_66, 0x0F383E, 3),
2162
+ SseOpcode::Pmaxud => (LegacyPrefixes::_66, 0x0F383F, 3),
2163
+ SseOpcode::Pminsb => (LegacyPrefixes::_66, 0x0F3838, 3),
2164
+ SseOpcode::Pminsw => (LegacyPrefixes::_66, 0x0FEA, 2),
2165
+ SseOpcode::Pminsd => (LegacyPrefixes::_66, 0x0F3839, 3),
2166
+ SseOpcode::Pminub => (LegacyPrefixes::_66, 0x0FDA, 2),
2167
+ SseOpcode::Pminuw => (LegacyPrefixes::_66, 0x0F383A, 3),
2168
+ SseOpcode::Pminud => (LegacyPrefixes::_66, 0x0F383B, 3),
2169
+ SseOpcode::Pmuldq => (LegacyPrefixes::_66, 0x0F3828, 3),
2170
+ SseOpcode::Pmulhw => (LegacyPrefixes::_66, 0x0FE5, 2),
2171
+ SseOpcode::Pmulhrsw => (LegacyPrefixes::_66, 0x0F380B, 3),
2172
+ SseOpcode::Pmulhuw => (LegacyPrefixes::_66, 0x0FE4, 2),
2173
+ SseOpcode::Pmulld => (LegacyPrefixes::_66, 0x0F3840, 3),
2174
+ SseOpcode::Pmullw => (LegacyPrefixes::_66, 0x0FD5, 2),
2175
+ SseOpcode::Pmuludq => (LegacyPrefixes::_66, 0x0FF4, 2),
2176
+ SseOpcode::Por => (LegacyPrefixes::_66, 0x0FEB, 2),
2177
+ SseOpcode::Pshufb => (LegacyPrefixes::_66, 0x0F3800, 3),
2178
+ SseOpcode::Psubb => (LegacyPrefixes::_66, 0x0FF8, 2),
2179
+ SseOpcode::Psubd => (LegacyPrefixes::_66, 0x0FFA, 2),
2180
+ SseOpcode::Psubq => (LegacyPrefixes::_66, 0x0FFB, 2),
2181
+ SseOpcode::Psubw => (LegacyPrefixes::_66, 0x0FF9, 2),
2182
+ SseOpcode::Psubsb => (LegacyPrefixes::_66, 0x0FE8, 2),
2183
+ SseOpcode::Psubsw => (LegacyPrefixes::_66, 0x0FE9, 2),
2184
+ SseOpcode::Psubusb => (LegacyPrefixes::_66, 0x0FD8, 2),
2185
+ SseOpcode::Psubusw => (LegacyPrefixes::_66, 0x0FD9, 2),
2186
+ SseOpcode::Punpckhbw => (LegacyPrefixes::_66, 0x0F68, 2),
2187
+ SseOpcode::Punpckhwd => (LegacyPrefixes::_66, 0x0F69, 2),
2188
+ SseOpcode::Punpcklbw => (LegacyPrefixes::_66, 0x0F60, 2),
2189
+ SseOpcode::Punpcklwd => (LegacyPrefixes::_66, 0x0F61, 2),
2190
+ SseOpcode::Punpckldq => (LegacyPrefixes::_66, 0x0F62, 2),
2191
+ SseOpcode::Punpcklqdq => (LegacyPrefixes::_66, 0x0F6C, 2),
2192
+ SseOpcode::Punpckhdq => (LegacyPrefixes::_66, 0x0F6A, 2),
2193
+ SseOpcode::Punpckhqdq => (LegacyPrefixes::_66, 0x0F6D, 2),
2194
+ SseOpcode::Pxor => (LegacyPrefixes::_66, 0x0FEF, 2),
2195
+ SseOpcode::Subps => (LegacyPrefixes::None, 0x0F5C, 2),
2196
+ SseOpcode::Subpd => (LegacyPrefixes::_66, 0x0F5C, 2),
2197
+ SseOpcode::Subss => (LegacyPrefixes::_F3, 0x0F5C, 2),
2198
+ SseOpcode::Subsd => (LegacyPrefixes::_F2, 0x0F5C, 2),
2199
+ SseOpcode::Unpcklps => (LegacyPrefixes::None, 0x0F14, 2),
2200
+ SseOpcode::Unpckhps => (LegacyPrefixes::None, 0x0F15, 2),
2201
+ SseOpcode::Xorps => (LegacyPrefixes::None, 0x0F57, 2),
2202
+ SseOpcode::Xorpd => (LegacyPrefixes::_66, 0x0F57, 2),
2203
+ SseOpcode::Phaddw => (LegacyPrefixes::_66, 0x0F3801, 3),
2204
+ SseOpcode::Phaddd => (LegacyPrefixes::_66, 0x0F3802, 3),
2205
+ SseOpcode::Movss => (LegacyPrefixes::_F3, 0x0F10, 2),
2206
+ SseOpcode::Cvtss2sd => (LegacyPrefixes::_F3, 0x0F5A, 2),
2207
+ SseOpcode::Cvtsd2ss => (LegacyPrefixes::_F2, 0x0F5A, 2),
2208
+ SseOpcode::Sqrtss => (LegacyPrefixes::_F3, 0x0F51, 2),
2209
+ SseOpcode::Sqrtsd => (LegacyPrefixes::_F2, 0x0F51, 2),
2210
+ SseOpcode::Unpcklpd => (LegacyPrefixes::_66, 0x0F14, 2),
2211
+ _ => unimplemented!("Opcode {:?} not implemented", op),
2212
+ };
2213
+
2214
+ match src_e {
2215
+ RegMem::Reg { reg: reg_e } => {
2216
+ emit_std_reg_reg(sink, prefix, opcode, length, reg_g, reg_e, rex);
2217
+ }
2218
+ RegMem::Mem { addr } => {
2219
+ let addr = &addr.finalize(state, sink);
2220
+ emit_std_reg_mem(sink, prefix, opcode, length, reg_g, addr, rex, 0);
2221
+ }
2222
+ }
2223
+ }
2224
+
2225
+ Inst::XmmRmRBlend {
2226
+ op,
2227
+ src1,
2228
+ src2,
2229
+ dst,
2230
+ mask,
2231
+ } => {
2232
+ let src1 = allocs.next(src1.to_reg());
2233
+ let mask = allocs.next(mask.to_reg());
2234
+ debug_assert_eq!(mask, regs::xmm0());
2235
+ let reg_g = allocs.next(dst.to_reg().to_reg());
2236
+ debug_assert_eq!(src1, reg_g);
2237
+ let src_e = src2.clone().to_reg_mem().with_allocs(allocs);
2238
+
2239
+ let rex = RexFlags::clear_w();
2240
+ let (prefix, opcode, length) = match op {
2241
+ SseOpcode::Blendvps => (LegacyPrefixes::_66, 0x0F3814, 3),
2242
+ SseOpcode::Blendvpd => (LegacyPrefixes::_66, 0x0F3815, 3),
2243
+ SseOpcode::Pblendvb => (LegacyPrefixes::_66, 0x0F3810, 3),
2244
+ _ => unimplemented!("Opcode {:?} not implemented", op),
2245
+ };
2246
+
2247
+ match src_e {
2248
+ RegMem::Reg { reg: reg_e } => {
2249
+ emit_std_reg_reg(sink, prefix, opcode, length, reg_g, reg_e, rex);
2250
+ }
2251
+ RegMem::Mem { addr } => {
2252
+ let addr = &addr.finalize(state, sink);
2253
+ emit_std_reg_mem(sink, prefix, opcode, length, reg_g, addr, rex, 0);
2254
+ }
2255
+ }
2256
+ }
2257
+
2258
+ Inst::XmmRmiRVex {
2259
+ op,
2260
+ src1,
2261
+ src2,
2262
+ dst,
2263
+ } => {
2264
+ use LegacyPrefixes as LP;
2265
+ use OpcodeMap as OM;
2266
+
2267
+ let dst = allocs.next(dst.to_reg().to_reg());
2268
+ let src1 = allocs.next(src1.to_reg());
2269
+ let src2 = src2.clone().to_reg_mem_imm().with_allocs(allocs);
2270
+
2271
+ // When the opcode is commutative, src1 is xmm{0..7}, and src2 is
2272
+ // xmm{8..15}, then we can swap the operands to save one byte on the
2273
+ // instruction's encoding.
2274
+ let (src1, src2) = match (src1, src2) {
2275
+ (src1, RegMemImm::Reg { reg: src2 })
2276
+ if op.is_commutative()
2277
+ && src1.to_real_reg().unwrap().hw_enc() < 8
2278
+ && src2.to_real_reg().unwrap().hw_enc() >= 8 =>
2279
+ {
2280
+ (src2, RegMemImm::Reg { reg: src1 })
2281
+ }
2282
+ (src1, src2) => (src1, src2),
2283
+ };
2284
+
2285
+ let src2 = match src2 {
2286
+ // For opcodes where one of the operands is an immediate the
2287
+ // encoding is a bit different, notably the usage of
2288
+ // `opcode_ext`, so handle that specially here.
2289
+ RegMemImm::Imm { simm32 } => {
2290
+ let (opcode, opcode_ext, prefix) = match op {
2291
+ AvxOpcode::Vpsrlw => (0x71, 2, LegacyPrefixes::_66),
2292
+ AvxOpcode::Vpsrld => (0x72, 2, LegacyPrefixes::_66),
2293
+ AvxOpcode::Vpsrlq => (0x73, 2, LegacyPrefixes::_66),
2294
+ AvxOpcode::Vpsllw => (0x71, 6, LegacyPrefixes::_66),
2295
+ AvxOpcode::Vpslld => (0x72, 6, LegacyPrefixes::_66),
2296
+ AvxOpcode::Vpsllq => (0x73, 6, LegacyPrefixes::_66),
2297
+ AvxOpcode::Vpsraw => (0x71, 4, LegacyPrefixes::_66),
2298
+ AvxOpcode::Vpsrad => (0x72, 4, LegacyPrefixes::_66),
2299
+ _ => panic!("unexpected rmi_r_vex opcode with immediate {op:?}"),
2300
+ };
2301
+ VexInstruction::new()
2302
+ .length(VexVectorLength::V128)
2303
+ .prefix(prefix)
2304
+ .map(OpcodeMap::_0F)
2305
+ .opcode(opcode)
2306
+ .opcode_ext(opcode_ext)
2307
+ .vvvv(dst.to_real_reg().unwrap().hw_enc())
2308
+ .prefix(LegacyPrefixes::_66)
2309
+ .rm(src1.to_real_reg().unwrap().hw_enc())
2310
+ .imm(simm32.try_into().unwrap())
2311
+ .encode(sink);
2312
+ return;
2313
+ }
2314
+ RegMemImm::Reg { reg } => {
2315
+ RegisterOrAmode::Register(reg.to_real_reg().unwrap().hw_enc().into())
2316
+ }
2317
+ RegMemImm::Mem { addr } => RegisterOrAmode::Amode(addr.finalize(state, sink)),
2318
+ };
2319
+
2320
+ let (prefix, map, opcode) = match op {
2321
+ AvxOpcode::Vminps => (LP::None, OM::_0F, 0x5D),
2322
+ AvxOpcode::Vminpd => (LP::_66, OM::_0F, 0x5D),
2323
+ AvxOpcode::Vmaxps => (LP::None, OM::_0F, 0x5F),
2324
+ AvxOpcode::Vmaxpd => (LP::_66, OM::_0F, 0x5F),
2325
+ AvxOpcode::Vandnps => (LP::None, OM::_0F, 0x55),
2326
+ AvxOpcode::Vandnpd => (LP::_66, OM::_0F, 0x55),
2327
+ AvxOpcode::Vpandn => (LP::_66, OM::_0F, 0xDF),
2328
+ AvxOpcode::Vpsrlw => (LP::_66, OM::_0F, 0xD1),
2329
+ AvxOpcode::Vpsrld => (LP::_66, OM::_0F, 0xD2),
2330
+ AvxOpcode::Vpsrlq => (LP::_66, OM::_0F, 0xD3),
2331
+ AvxOpcode::Vpaddb => (LP::_66, OM::_0F, 0xFC),
2332
+ AvxOpcode::Vpaddw => (LP::_66, OM::_0F, 0xFD),
2333
+ AvxOpcode::Vpaddd => (LP::_66, OM::_0F, 0xFE),
2334
+ AvxOpcode::Vpaddq => (LP::_66, OM::_0F, 0xD4),
2335
+ AvxOpcode::Vpaddsb => (LP::_66, OM::_0F, 0xEC),
2336
+ AvxOpcode::Vpaddsw => (LP::_66, OM::_0F, 0xED),
2337
+ AvxOpcode::Vpaddusb => (LP::_66, OM::_0F, 0xDC),
2338
+ AvxOpcode::Vpaddusw => (LP::_66, OM::_0F, 0xDD),
2339
+ AvxOpcode::Vpsubb => (LP::_66, OM::_0F, 0xF8),
2340
+ AvxOpcode::Vpsubw => (LP::_66, OM::_0F, 0xF9),
2341
+ AvxOpcode::Vpsubd => (LP::_66, OM::_0F, 0xFA),
2342
+ AvxOpcode::Vpsubq => (LP::_66, OM::_0F, 0xFB),
2343
+ AvxOpcode::Vpsubsb => (LP::_66, OM::_0F, 0xE8),
2344
+ AvxOpcode::Vpsubsw => (LP::_66, OM::_0F, 0xE9),
2345
+ AvxOpcode::Vpsubusb => (LP::_66, OM::_0F, 0xD8),
2346
+ AvxOpcode::Vpsubusw => (LP::_66, OM::_0F, 0xD9),
2347
+ AvxOpcode::Vpavgb => (LP::_66, OM::_0F, 0xE0),
2348
+ AvxOpcode::Vpavgw => (LP::_66, OM::_0F, 0xE3),
2349
+ AvxOpcode::Vpand => (LP::_66, OM::_0F, 0xDB),
2350
+ AvxOpcode::Vandps => (LP::None, OM::_0F, 0x54),
2351
+ AvxOpcode::Vandpd => (LP::_66, OM::_0F, 0x54),
2352
+ AvxOpcode::Vpor => (LP::_66, OM::_0F, 0xEB),
2353
+ AvxOpcode::Vorps => (LP::None, OM::_0F, 0x56),
2354
+ AvxOpcode::Vorpd => (LP::_66, OM::_0F, 0x56),
2355
+ AvxOpcode::Vpxor => (LP::_66, OM::_0F, 0xEF),
2356
+ AvxOpcode::Vxorps => (LP::None, OM::_0F, 0x57),
2357
+ AvxOpcode::Vxorpd => (LP::_66, OM::_0F, 0x57),
2358
+ AvxOpcode::Vpmullw => (LP::_66, OM::_0F, 0xD5),
2359
+ AvxOpcode::Vpmulld => (LP::_66, OM::_0F38, 0x40),
2360
+ AvxOpcode::Vpmulhw => (LP::_66, OM::_0F, 0xE5),
2361
+ AvxOpcode::Vpmulhrsw => (LP::_66, OM::_0F38, 0x0B),
2362
+ AvxOpcode::Vpmulhuw => (LP::_66, OM::_0F, 0xE4),
2363
+ AvxOpcode::Vpmuldq => (LP::_66, OM::_0F38, 0x28),
2364
+ AvxOpcode::Vpmuludq => (LP::_66, OM::_0F, 0xF4),
2365
+ AvxOpcode::Vpunpckhwd => (LP::_66, OM::_0F, 0x69),
2366
+ AvxOpcode::Vpunpcklwd => (LP::_66, OM::_0F, 0x61),
2367
+ AvxOpcode::Vunpcklps => (LP::None, OM::_0F, 0x14),
2368
+ AvxOpcode::Vunpckhps => (LP::None, OM::_0F, 0x15),
2369
+ AvxOpcode::Vaddps => (LP::None, OM::_0F, 0x58),
2370
+ AvxOpcode::Vaddpd => (LP::_66, OM::_0F, 0x58),
2371
+ AvxOpcode::Vsubps => (LP::None, OM::_0F, 0x5C),
2372
+ AvxOpcode::Vsubpd => (LP::_66, OM::_0F, 0x5C),
2373
+ AvxOpcode::Vmulps => (LP::None, OM::_0F, 0x59),
2374
+ AvxOpcode::Vmulpd => (LP::_66, OM::_0F, 0x59),
2375
+ AvxOpcode::Vdivps => (LP::None, OM::_0F, 0x5E),
2376
+ AvxOpcode::Vdivpd => (LP::_66, OM::_0F, 0x5E),
2377
+ AvxOpcode::Vpcmpeqb => (LP::_66, OM::_0F, 0x74),
2378
+ AvxOpcode::Vpcmpeqw => (LP::_66, OM::_0F, 0x75),
2379
+ AvxOpcode::Vpcmpeqd => (LP::_66, OM::_0F, 0x76),
2380
+ AvxOpcode::Vpcmpeqq => (LP::_66, OM::_0F38, 0x29),
2381
+ AvxOpcode::Vpcmpgtb => (LP::_66, OM::_0F, 0x64),
2382
+ AvxOpcode::Vpcmpgtw => (LP::_66, OM::_0F, 0x65),
2383
+ AvxOpcode::Vpcmpgtd => (LP::_66, OM::_0F, 0x66),
2384
+ AvxOpcode::Vpcmpgtq => (LP::_66, OM::_0F38, 0x37),
2385
+ AvxOpcode::Vmovlhps => (LP::None, OM::_0F, 0x16),
2386
+ AvxOpcode::Vpminsb => (LP::_66, OM::_0F38, 0x38),
2387
+ AvxOpcode::Vpminsw => (LP::_66, OM::_0F, 0xEA),
2388
+ AvxOpcode::Vpminsd => (LP::_66, OM::_0F38, 0x39),
2389
+ AvxOpcode::Vpmaxsb => (LP::_66, OM::_0F38, 0x3C),
2390
+ AvxOpcode::Vpmaxsw => (LP::_66, OM::_0F, 0xEE),
2391
+ AvxOpcode::Vpmaxsd => (LP::_66, OM::_0F38, 0x3D),
2392
+ AvxOpcode::Vpminub => (LP::_66, OM::_0F, 0xDA),
2393
+ AvxOpcode::Vpminuw => (LP::_66, OM::_0F38, 0x3A),
2394
+ AvxOpcode::Vpminud => (LP::_66, OM::_0F38, 0x3B),
2395
+ AvxOpcode::Vpmaxub => (LP::_66, OM::_0F, 0xDE),
2396
+ AvxOpcode::Vpmaxuw => (LP::_66, OM::_0F38, 0x3E),
2397
+ AvxOpcode::Vpmaxud => (LP::_66, OM::_0F38, 0x3F),
2398
+ AvxOpcode::Vpunpcklbw => (LP::_66, OM::_0F, 0x60),
2399
+ AvxOpcode::Vpunpckhbw => (LP::_66, OM::_0F, 0x68),
2400
+ AvxOpcode::Vpacksswb => (LP::_66, OM::_0F, 0x63),
2401
+ AvxOpcode::Vpackssdw => (LP::_66, OM::_0F, 0x6B),
2402
+ AvxOpcode::Vpackuswb => (LP::_66, OM::_0F, 0x67),
2403
+ AvxOpcode::Vpackusdw => (LP::_66, OM::_0F38, 0x2B),
2404
+ AvxOpcode::Vpmaddwd => (LP::_66, OM::_0F, 0xF5),
2405
+ AvxOpcode::Vpmaddubsw => (LP::_66, OM::_0F38, 0x04),
2406
+ AvxOpcode::Vpshufb => (LP::_66, OM::_0F38, 0x00),
2407
+ AvxOpcode::Vpsllw => (LP::_66, OM::_0F, 0xF1),
2408
+ AvxOpcode::Vpslld => (LP::_66, OM::_0F, 0xF2),
2409
+ AvxOpcode::Vpsllq => (LP::_66, OM::_0F, 0xF3),
2410
+ AvxOpcode::Vpsraw => (LP::_66, OM::_0F, 0xE1),
2411
+ AvxOpcode::Vpsrad => (LP::_66, OM::_0F, 0xE2),
2412
+ AvxOpcode::Vaddss => (LP::_F3, OM::_0F, 0x58),
2413
+ AvxOpcode::Vaddsd => (LP::_F2, OM::_0F, 0x58),
2414
+ AvxOpcode::Vmulss => (LP::_F3, OM::_0F, 0x59),
2415
+ AvxOpcode::Vmulsd => (LP::_F2, OM::_0F, 0x59),
2416
+ AvxOpcode::Vsubss => (LP::_F3, OM::_0F, 0x5C),
2417
+ AvxOpcode::Vsubsd => (LP::_F2, OM::_0F, 0x5C),
2418
+ AvxOpcode::Vdivss => (LP::_F3, OM::_0F, 0x5E),
2419
+ AvxOpcode::Vdivsd => (LP::_F2, OM::_0F, 0x5E),
2420
+ AvxOpcode::Vminss => (LP::_F3, OM::_0F, 0x5D),
2421
+ AvxOpcode::Vminsd => (LP::_F2, OM::_0F, 0x5D),
2422
+ AvxOpcode::Vmaxss => (LP::_F3, OM::_0F, 0x5F),
2423
+ AvxOpcode::Vmaxsd => (LP::_F2, OM::_0F, 0x5F),
2424
+ AvxOpcode::Vphaddw => (LP::_66, OM::_0F38, 0x01),
2425
+ AvxOpcode::Vphaddd => (LP::_66, OM::_0F38, 0x02),
2426
+ AvxOpcode::Vpunpckldq => (LP::_66, OM::_0F, 0x62),
2427
+ AvxOpcode::Vpunpckhdq => (LP::_66, OM::_0F, 0x6A),
2428
+ AvxOpcode::Vpunpcklqdq => (LP::_66, OM::_0F, 0x6C),
2429
+ AvxOpcode::Vpunpckhqdq => (LP::_66, OM::_0F, 0x6D),
2430
+ AvxOpcode::Vmovsd => (LP::_F2, OM::_0F, 0x10),
2431
+ AvxOpcode::Vmovss => (LP::_F3, OM::_0F, 0x10),
2432
+ AvxOpcode::Vcvtss2sd => (LP::_F3, OM::_0F, 0x5A),
2433
+ AvxOpcode::Vcvtsd2ss => (LP::_F2, OM::_0F, 0x5A),
2434
+ AvxOpcode::Vsqrtss => (LP::_F3, OM::_0F, 0x51),
2435
+ AvxOpcode::Vsqrtsd => (LP::_F2, OM::_0F, 0x51),
2436
+ AvxOpcode::Vunpcklpd => (LP::_66, OM::_0F, 0x14),
2437
+ _ => panic!("unexpected rmir vex opcode {op:?}"),
2438
+ };
2439
+ VexInstruction::new()
2440
+ .length(VexVectorLength::V128)
2441
+ .prefix(prefix)
2442
+ .map(map)
2443
+ .opcode(opcode)
2444
+ .reg(dst.to_real_reg().unwrap().hw_enc())
2445
+ .vvvv(src1.to_real_reg().unwrap().hw_enc())
2446
+ .rm(src2)
2447
+ .encode(sink);
2448
+ }
2449
+
2450
+ Inst::XmmRmRImmVex {
2451
+ op,
2452
+ src1,
2453
+ src2,
2454
+ dst,
2455
+ imm,
2456
+ } => {
2457
+ let dst = allocs.next(dst.to_reg().to_reg());
2458
+ let src1 = allocs.next(src1.to_reg());
2459
+ let src2 = match src2.clone().to_reg_mem().with_allocs(allocs) {
2460
+ RegMem::Reg { reg } => {
2461
+ RegisterOrAmode::Register(reg.to_real_reg().unwrap().hw_enc().into())
2462
+ }
2463
+ RegMem::Mem { addr } => RegisterOrAmode::Amode(addr.finalize(state, sink)),
2464
+ };
2465
+
2466
+ let (w, prefix, map, opcode) = match op {
2467
+ AvxOpcode::Vcmpps => (false, LegacyPrefixes::None, OpcodeMap::_0F, 0xC2),
2468
+ AvxOpcode::Vcmppd => (false, LegacyPrefixes::_66, OpcodeMap::_0F, 0xC2),
2469
+ AvxOpcode::Vpalignr => (false, LegacyPrefixes::_66, OpcodeMap::_0F3A, 0x0F),
2470
+ AvxOpcode::Vinsertps => (false, LegacyPrefixes::_66, OpcodeMap::_0F3A, 0x21),
2471
+ AvxOpcode::Vshufps => (false, LegacyPrefixes::None, OpcodeMap::_0F, 0xC6),
2472
+ AvxOpcode::Vpblendw => (false, LegacyPrefixes::_66, OpcodeMap::_0F3A, 0x0E),
2473
+ _ => panic!("unexpected rmr_imm_vex opcode {op:?}"),
2474
+ };
2475
+
2476
+ VexInstruction::new()
2477
+ .length(VexVectorLength::V128)
2478
+ .prefix(prefix)
2479
+ .map(map)
2480
+ .w(w)
2481
+ .opcode(opcode)
2482
+ .reg(dst.to_real_reg().unwrap().hw_enc())
2483
+ .vvvv(src1.to_real_reg().unwrap().hw_enc())
2484
+ .rm(src2)
2485
+ .imm(*imm)
2486
+ .encode(sink);
2487
+ }
2488
+
2489
+ Inst::XmmVexPinsr {
2490
+ op,
2491
+ src1,
2492
+ src2,
2493
+ dst,
2494
+ imm,
2495
+ } => {
2496
+ let dst = allocs.next(dst.to_reg().to_reg());
2497
+ let src1 = allocs.next(src1.to_reg());
2498
+ let src2 = match src2.clone().to_reg_mem().with_allocs(allocs) {
2499
+ RegMem::Reg { reg } => {
2500
+ RegisterOrAmode::Register(reg.to_real_reg().unwrap().hw_enc().into())
2501
+ }
2502
+ RegMem::Mem { addr } => RegisterOrAmode::Amode(addr.finalize(state, sink)),
2503
+ };
2504
+
2505
+ let (w, map, opcode) = match op {
2506
+ AvxOpcode::Vpinsrb => (false, OpcodeMap::_0F3A, 0x20),
2507
+ AvxOpcode::Vpinsrw => (false, OpcodeMap::_0F, 0xC4),
2508
+ AvxOpcode::Vpinsrd => (false, OpcodeMap::_0F3A, 0x22),
2509
+ AvxOpcode::Vpinsrq => (true, OpcodeMap::_0F3A, 0x22),
2510
+ _ => panic!("unexpected vex_pinsr opcode {op:?}"),
2511
+ };
2512
+
2513
+ VexInstruction::new()
2514
+ .length(VexVectorLength::V128)
2515
+ .prefix(LegacyPrefixes::_66)
2516
+ .map(map)
2517
+ .w(w)
2518
+ .opcode(opcode)
2519
+ .reg(dst.to_real_reg().unwrap().hw_enc())
2520
+ .vvvv(src1.to_real_reg().unwrap().hw_enc())
2521
+ .rm(src2)
2522
+ .imm(*imm)
2523
+ .encode(sink);
2524
+ }
2525
+
2526
+ Inst::XmmRmRVex3 {
2527
+ op,
2528
+ src1,
2529
+ src2,
2530
+ src3,
2531
+ dst,
2532
+ } => {
2533
+ let src1 = allocs.next(src1.to_reg());
2534
+ let dst = allocs.next(dst.to_reg().to_reg());
2535
+ debug_assert_eq!(src1, dst);
2536
+ let src2 = allocs.next(src2.to_reg());
2537
+ let src3 = match src3.clone().to_reg_mem().with_allocs(allocs) {
2538
+ RegMem::Reg { reg } => {
2539
+ RegisterOrAmode::Register(reg.to_real_reg().unwrap().hw_enc().into())
2540
+ }
2541
+ RegMem::Mem { addr } => RegisterOrAmode::Amode(addr.finalize(state, sink)),
2542
+ };
2543
+
2544
+ let (w, map, opcode) = match op {
2545
+ AvxOpcode::Vfmadd132ss => (false, OpcodeMap::_0F38, 0x99),
2546
+ AvxOpcode::Vfmadd213ss => (false, OpcodeMap::_0F38, 0xA9),
2547
+ AvxOpcode::Vfnmadd132ss => (false, OpcodeMap::_0F38, 0x9D),
2548
+ AvxOpcode::Vfnmadd213ss => (false, OpcodeMap::_0F38, 0xAD),
2549
+ AvxOpcode::Vfmadd132sd => (true, OpcodeMap::_0F38, 0x99),
2550
+ AvxOpcode::Vfmadd213sd => (true, OpcodeMap::_0F38, 0xA9),
2551
+ AvxOpcode::Vfnmadd132sd => (true, OpcodeMap::_0F38, 0x9D),
2552
+ AvxOpcode::Vfnmadd213sd => (true, OpcodeMap::_0F38, 0xAD),
2553
+ AvxOpcode::Vfmadd132ps => (false, OpcodeMap::_0F38, 0x98),
2554
+ AvxOpcode::Vfmadd213ps => (false, OpcodeMap::_0F38, 0xA8),
2555
+ AvxOpcode::Vfnmadd132ps => (false, OpcodeMap::_0F38, 0x9C),
2556
+ AvxOpcode::Vfnmadd213ps => (false, OpcodeMap::_0F38, 0xAC),
2557
+ AvxOpcode::Vfmadd132pd => (true, OpcodeMap::_0F38, 0x98),
2558
+ AvxOpcode::Vfmadd213pd => (true, OpcodeMap::_0F38, 0xA8),
2559
+ AvxOpcode::Vfnmadd132pd => (true, OpcodeMap::_0F38, 0x9C),
2560
+ AvxOpcode::Vfnmadd213pd => (true, OpcodeMap::_0F38, 0xAC),
2561
+ AvxOpcode::Vblendvps => (false, OpcodeMap::_0F3A, 0x4A),
2562
+ AvxOpcode::Vblendvpd => (false, OpcodeMap::_0F3A, 0x4B),
2563
+ AvxOpcode::Vpblendvb => (false, OpcodeMap::_0F3A, 0x4C),
2564
+ _ => unreachable!(),
2565
+ };
2566
+
2567
+ VexInstruction::new()
2568
+ .length(VexVectorLength::V128)
2569
+ .prefix(LegacyPrefixes::_66)
2570
+ .map(map)
2571
+ .w(w)
2572
+ .opcode(opcode)
2573
+ .reg(dst.to_real_reg().unwrap().hw_enc())
2574
+ .rm(src3)
2575
+ .vvvv(src2.to_real_reg().unwrap().hw_enc())
2576
+ .encode(sink);
2577
+ }
2578
+
2579
+ Inst::XmmRmRBlendVex {
2580
+ op,
2581
+ src1,
2582
+ src2,
2583
+ mask,
2584
+ dst,
2585
+ } => {
2586
+ let dst = allocs.next(dst.to_reg().to_reg());
2587
+ let src1 = allocs.next(src1.to_reg());
2588
+ let src2 = match src2.clone().to_reg_mem().with_allocs(allocs) {
2589
+ RegMem::Reg { reg } => {
2590
+ RegisterOrAmode::Register(reg.to_real_reg().unwrap().hw_enc().into())
2591
+ }
2592
+ RegMem::Mem { addr } => RegisterOrAmode::Amode(addr.finalize(state, sink)),
2593
+ };
2594
+ let mask = allocs.next(mask.to_reg());
2595
+
2596
+ let opcode = match op {
2597
+ AvxOpcode::Vblendvps => 0x4A,
2598
+ AvxOpcode::Vblendvpd => 0x4B,
2599
+ AvxOpcode::Vpblendvb => 0x4C,
2600
+ _ => unreachable!(),
2601
+ };
2602
+
2603
+ VexInstruction::new()
2604
+ .length(VexVectorLength::V128)
2605
+ .prefix(LegacyPrefixes::_66)
2606
+ .map(OpcodeMap::_0F3A)
2607
+ .opcode(opcode)
2608
+ .reg(dst.to_real_reg().unwrap().hw_enc())
2609
+ .vvvv(src1.to_real_reg().unwrap().hw_enc())
2610
+ .rm(src2)
2611
+ .imm(mask.to_real_reg().unwrap().hw_enc() << 4)
2612
+ .encode(sink);
2613
+ }
2614
+
2615
+ Inst::XmmUnaryRmRVex { op, src, dst } => {
2616
+ let dst = allocs.next(dst.to_reg().to_reg());
2617
+ let src = match src.clone().to_reg_mem().with_allocs(allocs) {
2618
+ RegMem::Reg { reg } => {
2619
+ RegisterOrAmode::Register(reg.to_real_reg().unwrap().hw_enc().into())
2620
+ }
2621
+ RegMem::Mem { addr } => RegisterOrAmode::Amode(addr.finalize(state, sink)),
2622
+ };
2623
+
2624
+ let (prefix, map, opcode) = match op {
2625
+ AvxOpcode::Vpmovsxbw => (LegacyPrefixes::_66, OpcodeMap::_0F38, 0x20),
2626
+ AvxOpcode::Vpmovzxbw => (LegacyPrefixes::_66, OpcodeMap::_0F38, 0x30),
2627
+ AvxOpcode::Vpmovsxwd => (LegacyPrefixes::_66, OpcodeMap::_0F38, 0x23),
2628
+ AvxOpcode::Vpmovzxwd => (LegacyPrefixes::_66, OpcodeMap::_0F38, 0x33),
2629
+ AvxOpcode::Vpmovsxdq => (LegacyPrefixes::_66, OpcodeMap::_0F38, 0x25),
2630
+ AvxOpcode::Vpmovzxdq => (LegacyPrefixes::_66, OpcodeMap::_0F38, 0x35),
2631
+ AvxOpcode::Vpabsb => (LegacyPrefixes::_66, OpcodeMap::_0F38, 0x1C),
2632
+ AvxOpcode::Vpabsw => (LegacyPrefixes::_66, OpcodeMap::_0F38, 0x1D),
2633
+ AvxOpcode::Vpabsd => (LegacyPrefixes::_66, OpcodeMap::_0F38, 0x1E),
2634
+ AvxOpcode::Vsqrtps => (LegacyPrefixes::None, OpcodeMap::_0F, 0x51),
2635
+ AvxOpcode::Vsqrtpd => (LegacyPrefixes::_66, OpcodeMap::_0F, 0x51),
2636
+ AvxOpcode::Vcvtdq2pd => (LegacyPrefixes::_F3, OpcodeMap::_0F, 0xE6),
2637
+ AvxOpcode::Vcvtdq2ps => (LegacyPrefixes::None, OpcodeMap::_0F, 0x5B),
2638
+ AvxOpcode::Vcvtpd2ps => (LegacyPrefixes::_66, OpcodeMap::_0F, 0x5A),
2639
+ AvxOpcode::Vcvtps2pd => (LegacyPrefixes::None, OpcodeMap::_0F, 0x5A),
2640
+ AvxOpcode::Vcvttpd2dq => (LegacyPrefixes::_66, OpcodeMap::_0F, 0xE6),
2641
+ AvxOpcode::Vcvttps2dq => (LegacyPrefixes::_F3, OpcodeMap::_0F, 0x5B),
2642
+ AvxOpcode::Vmovdqu => (LegacyPrefixes::_F3, OpcodeMap::_0F, 0x6F),
2643
+ AvxOpcode::Vmovups => (LegacyPrefixes::None, OpcodeMap::_0F, 0x10),
2644
+ AvxOpcode::Vmovupd => (LegacyPrefixes::_66, OpcodeMap::_0F, 0x10),
2645
+
2646
+ // Note that for `vmov{s,d}` the `inst.isle` rules should
2647
+ // statically ensure that only `Amode` operands are used here.
2648
+ // Otherwise the other encodings of `vmovss` are more like
2649
+ // 2-operand instructions which this unary encoding does not
2650
+ // have.
2651
+ AvxOpcode::Vmovss => match &src {
2652
+ RegisterOrAmode::Amode(_) => (LegacyPrefixes::_F3, OpcodeMap::_0F, 0x10),
2653
+ _ => unreachable!(),
2654
+ },
2655
+ AvxOpcode::Vmovsd => match &src {
2656
+ RegisterOrAmode::Amode(_) => (LegacyPrefixes::_F2, OpcodeMap::_0F, 0x10),
2657
+ _ => unreachable!(),
2658
+ },
2659
+
2660
+ AvxOpcode::Vpbroadcastb => (LegacyPrefixes::_66, OpcodeMap::_0F38, 0x78),
2661
+ AvxOpcode::Vpbroadcastw => (LegacyPrefixes::_66, OpcodeMap::_0F38, 0x79),
2662
+ AvxOpcode::Vpbroadcastd => (LegacyPrefixes::_66, OpcodeMap::_0F38, 0x58),
2663
+ AvxOpcode::Vbroadcastss => (LegacyPrefixes::_66, OpcodeMap::_0F38, 0x18),
2664
+ AvxOpcode::Vmovddup => (LegacyPrefixes::_F2, OpcodeMap::_0F, 0x12),
2665
+
2666
+ _ => panic!("unexpected rmr_imm_vex opcode {op:?}"),
2667
+ };
2668
+
2669
+ VexInstruction::new()
2670
+ .length(VexVectorLength::V128)
2671
+ .prefix(prefix)
2672
+ .map(map)
2673
+ .opcode(opcode)
2674
+ .reg(dst.to_real_reg().unwrap().hw_enc())
2675
+ .rm(src)
2676
+ .encode(sink);
2677
+ }
2678
+
2679
+ Inst::XmmUnaryRmRImmVex { op, src, dst, imm } => {
2680
+ let dst = allocs.next(dst.to_reg().to_reg());
2681
+ let src = match src.clone().to_reg_mem().with_allocs(allocs) {
2682
+ RegMem::Reg { reg } => {
2683
+ RegisterOrAmode::Register(reg.to_real_reg().unwrap().hw_enc().into())
2684
+ }
2685
+ RegMem::Mem { addr } => RegisterOrAmode::Amode(addr.finalize(state, sink)),
2686
+ };
2687
+
2688
+ let (prefix, map, opcode) = match op {
2689
+ AvxOpcode::Vroundps => (LegacyPrefixes::_66, OpcodeMap::_0F3A, 0x08),
2690
+ AvxOpcode::Vroundpd => (LegacyPrefixes::_66, OpcodeMap::_0F3A, 0x09),
2691
+ AvxOpcode::Vpshuflw => (LegacyPrefixes::_F2, OpcodeMap::_0F, 0x70),
2692
+ AvxOpcode::Vpshufhw => (LegacyPrefixes::_F3, OpcodeMap::_0F, 0x70),
2693
+ AvxOpcode::Vpshufd => (LegacyPrefixes::_66, OpcodeMap::_0F, 0x70),
2694
+ AvxOpcode::Vroundss => (LegacyPrefixes::_66, OpcodeMap::_0F3A, 0x0A),
2695
+ AvxOpcode::Vroundsd => (LegacyPrefixes::_66, OpcodeMap::_0F3A, 0x0B),
2696
+ _ => panic!("unexpected rmr_imm_vex opcode {op:?}"),
2697
+ };
2698
+
2699
+ let vex = VexInstruction::new()
2700
+ .length(VexVectorLength::V128)
2701
+ .prefix(prefix)
2702
+ .map(map)
2703
+ .opcode(opcode)
2704
+ .reg(dst.to_real_reg().unwrap().hw_enc())
2705
+ .rm(src)
2706
+ .imm(*imm);
2707
+
2708
+ // See comments in similar block above in `XmmUnaryRmRVex` for what
2709
+ // this is doing.
2710
+ let vex = match op {
2711
+ AvxOpcode::Vroundss | AvxOpcode::Vroundsd => {
2712
+ vex.vvvv(dst.to_real_reg().unwrap().hw_enc())
2713
+ }
2714
+ _ => vex,
2715
+ };
2716
+ vex.encode(sink);
2717
+ }
2718
+
2719
+ Inst::XmmMovRMVex { op, src, dst } => {
2720
+ let src = allocs.next(src.to_reg());
2721
+ let dst = dst.with_allocs(allocs).finalize(state, sink);
2722
+
2723
+ let (prefix, map, opcode) = match op {
2724
+ AvxOpcode::Vmovdqu => (LegacyPrefixes::_F3, OpcodeMap::_0F, 0x7F),
2725
+ AvxOpcode::Vmovss => (LegacyPrefixes::_F3, OpcodeMap::_0F, 0x11),
2726
+ AvxOpcode::Vmovsd => (LegacyPrefixes::_F2, OpcodeMap::_0F, 0x11),
2727
+ AvxOpcode::Vmovups => (LegacyPrefixes::None, OpcodeMap::_0F, 0x11),
2728
+ AvxOpcode::Vmovupd => (LegacyPrefixes::_66, OpcodeMap::_0F, 0x11),
2729
+ _ => unimplemented!("Opcode {:?} not implemented", op),
2730
+ };
2731
+ VexInstruction::new()
2732
+ .length(VexVectorLength::V128)
2733
+ .prefix(prefix)
2734
+ .map(map)
2735
+ .opcode(opcode)
2736
+ .rm(dst)
2737
+ .reg(src.to_real_reg().unwrap().hw_enc())
2738
+ .encode(sink);
2739
+ }
2740
+
2741
+ Inst::XmmMovRMImmVex { op, src, dst, imm } => {
2742
+ let src = allocs.next(src.to_reg());
2743
+ let dst = dst.with_allocs(allocs).finalize(state, sink);
2744
+
2745
+ let (w, prefix, map, opcode) = match op {
2746
+ AvxOpcode::Vpextrb => (false, LegacyPrefixes::_66, OpcodeMap::_0F3A, 0x14),
2747
+ AvxOpcode::Vpextrw => (false, LegacyPrefixes::_66, OpcodeMap::_0F3A, 0x15),
2748
+ AvxOpcode::Vpextrd => (false, LegacyPrefixes::_66, OpcodeMap::_0F3A, 0x16),
2749
+ AvxOpcode::Vpextrq => (true, LegacyPrefixes::_66, OpcodeMap::_0F3A, 0x16),
2750
+ _ => unimplemented!("Opcode {:?} not implemented", op),
2751
+ };
2752
+ VexInstruction::new()
2753
+ .length(VexVectorLength::V128)
2754
+ .w(w)
2755
+ .prefix(prefix)
2756
+ .map(map)
2757
+ .opcode(opcode)
2758
+ .rm(dst)
2759
+ .reg(src.to_real_reg().unwrap().hw_enc())
2760
+ .imm(*imm)
2761
+ .encode(sink);
2762
+ }
2763
+
2764
+ Inst::XmmToGprImmVex { op, src, dst, imm } => {
2765
+ let src = allocs.next(src.to_reg());
2766
+ let dst = allocs.next(dst.to_reg().to_reg());
2767
+
2768
+ let (w, prefix, map, opcode) = match op {
2769
+ AvxOpcode::Vpextrb => (false, LegacyPrefixes::_66, OpcodeMap::_0F3A, 0x14),
2770
+ AvxOpcode::Vpextrw => (false, LegacyPrefixes::_66, OpcodeMap::_0F3A, 0x15),
2771
+ AvxOpcode::Vpextrd => (false, LegacyPrefixes::_66, OpcodeMap::_0F3A, 0x16),
2772
+ AvxOpcode::Vpextrq => (true, LegacyPrefixes::_66, OpcodeMap::_0F3A, 0x16),
2773
+ _ => unimplemented!("Opcode {:?} not implemented", op),
2774
+ };
2775
+ VexInstruction::new()
2776
+ .length(VexVectorLength::V128)
2777
+ .w(w)
2778
+ .prefix(prefix)
2779
+ .map(map)
2780
+ .opcode(opcode)
2781
+ .rm(dst.to_real_reg().unwrap().hw_enc())
2782
+ .reg(src.to_real_reg().unwrap().hw_enc())
2783
+ .imm(*imm)
2784
+ .encode(sink);
2785
+ }
2786
+
2787
+ Inst::XmmToGprVex {
2788
+ op,
2789
+ src,
2790
+ dst,
2791
+ dst_size,
2792
+ } => {
2793
+ let src = allocs.next(src.to_reg());
2794
+ let dst = allocs.next(dst.to_reg().to_reg());
2795
+
2796
+ let (prefix, map, opcode) = match op {
2797
+ // vmovd/vmovq are differentiated by `w`
2798
+ AvxOpcode::Vmovd | AvxOpcode::Vmovq => (LegacyPrefixes::_66, OpcodeMap::_0F, 0x7E),
2799
+ AvxOpcode::Vmovmskps => (LegacyPrefixes::None, OpcodeMap::_0F, 0x50),
2800
+ AvxOpcode::Vmovmskpd => (LegacyPrefixes::_66, OpcodeMap::_0F, 0x50),
2801
+ AvxOpcode::Vpmovmskb => (LegacyPrefixes::_66, OpcodeMap::_0F, 0xD7),
2802
+ _ => unimplemented!("Opcode {:?} not implemented", op),
2803
+ };
2804
+ let w = match dst_size {
2805
+ OperandSize::Size64 => true,
2806
+ _ => false,
2807
+ };
2808
+ let mut vex = VexInstruction::new()
2809
+ .length(VexVectorLength::V128)
2810
+ .w(w)
2811
+ .prefix(prefix)
2812
+ .map(map)
2813
+ .opcode(opcode);
2814
+ vex = match op {
2815
+ // The `vmovq/vmovd` reverse the order of the destination/source
2816
+ // relative to other opcodes using this shape of instruction.
2817
+ AvxOpcode::Vmovd | AvxOpcode::Vmovq => vex
2818
+ .rm(dst.to_real_reg().unwrap().hw_enc())
2819
+ .reg(src.to_real_reg().unwrap().hw_enc()),
2820
+ _ => vex
2821
+ .rm(src.to_real_reg().unwrap().hw_enc())
2822
+ .reg(dst.to_real_reg().unwrap().hw_enc()),
2823
+ };
2824
+ vex.encode(sink);
2825
+ }
2826
+
2827
+ Inst::GprToXmmVex {
2828
+ op,
2829
+ src,
2830
+ dst,
2831
+ src_size,
2832
+ } => {
2833
+ let dst = allocs.next(dst.to_reg().to_reg());
2834
+ let src = match src.clone().to_reg_mem().with_allocs(allocs) {
2835
+ RegMem::Reg { reg } => {
2836
+ RegisterOrAmode::Register(reg.to_real_reg().unwrap().hw_enc().into())
2837
+ }
2838
+ RegMem::Mem { addr } => RegisterOrAmode::Amode(addr.finalize(state, sink)),
2839
+ };
2840
+
2841
+ let (prefix, map, opcode) = match op {
2842
+ // vmovd/vmovq are differentiated by `w`
2843
+ AvxOpcode::Vmovd | AvxOpcode::Vmovq => (LegacyPrefixes::_66, OpcodeMap::_0F, 0x6E),
2844
+ _ => unimplemented!("Opcode {:?} not implemented", op),
2845
+ };
2846
+ let w = match src_size {
2847
+ OperandSize::Size64 => true,
2848
+ _ => false,
2849
+ };
2850
+ VexInstruction::new()
2851
+ .length(VexVectorLength::V128)
2852
+ .w(w)
2853
+ .prefix(prefix)
2854
+ .map(map)
2855
+ .opcode(opcode)
2856
+ .rm(src)
2857
+ .reg(dst.to_real_reg().unwrap().hw_enc())
2858
+ .encode(sink);
2859
+ }
2860
+
2861
+ Inst::XmmCmpRmRVex { op, src1, src2 } => {
2862
+ let src1 = allocs.next(src1.to_reg());
2863
+ let src2 = match src2.clone().to_reg_mem().with_allocs(allocs) {
2864
+ RegMem::Reg { reg } => {
2865
+ RegisterOrAmode::Register(reg.to_real_reg().unwrap().hw_enc().into())
2866
+ }
2867
+ RegMem::Mem { addr } => RegisterOrAmode::Amode(addr.finalize(state, sink)),
2868
+ };
2869
+
2870
+ let (prefix, map, opcode) = match op {
2871
+ AvxOpcode::Vucomiss => (LegacyPrefixes::None, OpcodeMap::_0F, 0x2E),
2872
+ AvxOpcode::Vucomisd => (LegacyPrefixes::_66, OpcodeMap::_0F, 0x2E),
2873
+ AvxOpcode::Vptest => (LegacyPrefixes::_66, OpcodeMap::_0F38, 0x17),
2874
+ _ => unimplemented!("Opcode {:?} not implemented", op),
2875
+ };
2876
+
2877
+ VexInstruction::new()
2878
+ .length(VexVectorLength::V128)
2879
+ .prefix(prefix)
2880
+ .map(map)
2881
+ .opcode(opcode)
2882
+ .rm(src2)
2883
+ .reg(src1.to_real_reg().unwrap().hw_enc())
2884
+ .encode(sink);
2885
+ }
2886
+
2887
+ Inst::XmmRmREvex {
2888
+ op,
2889
+ src1,
2890
+ src2,
2891
+ dst,
2892
+ }
2893
+ | Inst::XmmRmREvex3 {
2894
+ op,
2895
+ src1: _, // `dst` reuses `src1`.
2896
+ src2: src1,
2897
+ src3: src2,
2898
+ dst,
2899
+ } => {
2900
+ let reused_src = match inst {
2901
+ Inst::XmmRmREvex3 { src1, .. } => Some(allocs.next(src1.to_reg())),
2902
+ _ => None,
2903
+ };
2904
+ let src1 = allocs.next(src1.to_reg());
2905
+ let src2 = match src2.clone().to_reg_mem().with_allocs(allocs) {
2906
+ RegMem::Reg { reg } => {
2907
+ RegisterOrAmode::Register(reg.to_real_reg().unwrap().hw_enc().into())
2908
+ }
2909
+ RegMem::Mem { addr } => RegisterOrAmode::Amode(addr.finalize(state, sink)),
2910
+ };
2911
+ let dst = allocs.next(dst.to_reg().to_reg());
2912
+ if let Some(src1) = reused_src {
2913
+ debug_assert_eq!(src1, dst);
2914
+ }
2915
+
2916
+ let (w, opcode, map) = match op {
2917
+ Avx512Opcode::Vpermi2b => (false, 0x75, OpcodeMap::_0F38),
2918
+ Avx512Opcode::Vpmullq => (true, 0x40, OpcodeMap::_0F38),
2919
+ Avx512Opcode::Vpsraq => (true, 0xE2, OpcodeMap::_0F),
2920
+ _ => unimplemented!("Opcode {:?} not implemented", op),
2921
+ };
2922
+ EvexInstruction::new()
2923
+ .length(EvexVectorLength::V128)
2924
+ .prefix(LegacyPrefixes::_66)
2925
+ .map(map)
2926
+ .w(w)
2927
+ .opcode(opcode)
2928
+ .tuple_type(op.tuple_type())
2929
+ .reg(dst.to_real_reg().unwrap().hw_enc())
2930
+ .vvvvv(src1.to_real_reg().unwrap().hw_enc())
2931
+ .rm(src2)
2932
+ .encode(sink);
2933
+ }
2934
+
2935
+ Inst::XmmMinMaxSeq {
2936
+ size,
2937
+ is_min,
2938
+ lhs,
2939
+ rhs,
2940
+ dst,
2941
+ } => {
2942
+ let rhs = allocs.next(rhs.to_reg());
2943
+ let lhs = allocs.next(lhs.to_reg());
2944
+ let dst = allocs.next(dst.to_reg().to_reg());
2945
+ debug_assert_eq!(rhs, dst);
2946
+
2947
+ // Generates the following sequence:
2948
+ // cmpss/cmpsd %lhs, %rhs_dst
2949
+ // jnz do_min_max
2950
+ // jp propagate_nan
2951
+ //
2952
+ // ;; ordered and equal: propagate the sign bit (for -0 vs 0):
2953
+ // {and,or}{ss,sd} %lhs, %rhs_dst
2954
+ // j done
2955
+ //
2956
+ // ;; to get the desired NaN behavior (signalling NaN transformed into a quiet NaN, the
2957
+ // ;; NaN value is returned), we add both inputs.
2958
+ // propagate_nan:
2959
+ // add{ss,sd} %lhs, %rhs_dst
2960
+ // j done
2961
+ //
2962
+ // do_min_max:
2963
+ // {min,max}{ss,sd} %lhs, %rhs_dst
2964
+ //
2965
+ // done:
2966
+ let done = sink.get_label();
2967
+ let propagate_nan = sink.get_label();
2968
+ let do_min_max = sink.get_label();
2969
+
2970
+ let (add_op, cmp_op, and_op, or_op, min_max_op) = match size {
2971
+ OperandSize::Size32 => (
2972
+ SseOpcode::Addss,
2973
+ SseOpcode::Ucomiss,
2974
+ SseOpcode::Andps,
2975
+ SseOpcode::Orps,
2976
+ if *is_min {
2977
+ SseOpcode::Minss
2978
+ } else {
2979
+ SseOpcode::Maxss
2980
+ },
2981
+ ),
2982
+ OperandSize::Size64 => (
2983
+ SseOpcode::Addsd,
2984
+ SseOpcode::Ucomisd,
2985
+ SseOpcode::Andpd,
2986
+ SseOpcode::Orpd,
2987
+ if *is_min {
2988
+ SseOpcode::Minsd
2989
+ } else {
2990
+ SseOpcode::Maxsd
2991
+ },
2992
+ ),
2993
+ _ => unreachable!(),
2994
+ };
2995
+
2996
+ let inst = Inst::xmm_cmp_rm_r(cmp_op, dst, RegMem::reg(lhs));
2997
+ inst.emit(&[], sink, info, state);
2998
+
2999
+ one_way_jmp(sink, CC::NZ, do_min_max);
3000
+ one_way_jmp(sink, CC::P, propagate_nan);
3001
+
3002
+ // Ordered and equal. The operands are bit-identical unless they are zero
3003
+ // and negative zero. These instructions merge the sign bits in that
3004
+ // case, and are no-ops otherwise.
3005
+ let op = if *is_min { or_op } else { and_op };
3006
+ let inst = Inst::xmm_rm_r(op, RegMem::reg(lhs), Writable::from_reg(dst));
3007
+ inst.emit(&[], sink, info, state);
3008
+
3009
+ let inst = Inst::jmp_known(done);
3010
+ inst.emit(&[], sink, info, state);
3011
+
3012
+ // x86's min/max are not symmetric; if either operand is a NaN, they return the
3013
+ // read-only operand: perform an addition between the two operands, which has the
3014
+ // desired NaN propagation effects.
3015
+ sink.bind_label(propagate_nan, state.ctrl_plane_mut());
3016
+ let inst = Inst::xmm_rm_r(add_op, RegMem::reg(lhs), Writable::from_reg(dst));
3017
+ inst.emit(&[], sink, info, state);
3018
+
3019
+ one_way_jmp(sink, CC::P, done);
3020
+
3021
+ sink.bind_label(do_min_max, state.ctrl_plane_mut());
3022
+
3023
+ let inst = Inst::xmm_rm_r(min_max_op, RegMem::reg(lhs), Writable::from_reg(dst));
3024
+ inst.emit(&[], sink, info, state);
3025
+
3026
+ sink.bind_label(done, state.ctrl_plane_mut());
3027
+ }
3028
+
3029
+ Inst::XmmRmRImm {
3030
+ op,
3031
+ src1,
3032
+ src2,
3033
+ dst,
3034
+ imm,
3035
+ size,
3036
+ } => {
3037
+ let src1 = allocs.next(*src1);
3038
+ let dst = allocs.next(dst.to_reg());
3039
+ let src2 = src2.with_allocs(allocs);
3040
+ debug_assert_eq!(src1, dst);
3041
+
3042
+ let (prefix, opcode, len) = match op {
3043
+ SseOpcode::Cmpps => (LegacyPrefixes::None, 0x0FC2, 2),
3044
+ SseOpcode::Cmppd => (LegacyPrefixes::_66, 0x0FC2, 2),
3045
+ SseOpcode::Cmpss => (LegacyPrefixes::_F3, 0x0FC2, 2),
3046
+ SseOpcode::Cmpsd => (LegacyPrefixes::_F2, 0x0FC2, 2),
3047
+ SseOpcode::Insertps => (LegacyPrefixes::_66, 0x0F3A21, 3),
3048
+ SseOpcode::Palignr => (LegacyPrefixes::_66, 0x0F3A0F, 3),
3049
+ SseOpcode::Pinsrb => (LegacyPrefixes::_66, 0x0F3A20, 3),
3050
+ SseOpcode::Pinsrw => (LegacyPrefixes::_66, 0x0FC4, 2),
3051
+ SseOpcode::Pinsrd => (LegacyPrefixes::_66, 0x0F3A22, 3),
3052
+ SseOpcode::Shufps => (LegacyPrefixes::None, 0x0FC6, 2),
3053
+ SseOpcode::Pblendw => (LegacyPrefixes::_66, 0x0F3A0E, 3),
3054
+ _ => unimplemented!("Opcode {:?} not implemented", op),
3055
+ };
3056
+ let rex = RexFlags::from(*size);
3057
+ let regs_swapped = match *op {
3058
+ // These opcodes (and not the SSE2 version of PEXTRW) flip the operand
3059
+ // encoding: `dst` in ModRM's r/m, `src` in ModRM's reg field.
3060
+ SseOpcode::Pextrb | SseOpcode::Pextrd => true,
3061
+ // The rest of the opcodes have the customary encoding: `dst` in ModRM's reg,
3062
+ // `src` in ModRM's r/m field.
3063
+ _ => false,
3064
+ };
3065
+ match src2 {
3066
+ RegMem::Reg { reg } => {
3067
+ if regs_swapped {
3068
+ emit_std_reg_reg(sink, prefix, opcode, len, reg, dst, rex);
3069
+ } else {
3070
+ emit_std_reg_reg(sink, prefix, opcode, len, dst, reg, rex);
3071
+ }
3072
+ }
3073
+ RegMem::Mem { addr } => {
3074
+ let addr = &addr.finalize(state, sink);
3075
+ assert!(
3076
+ !regs_swapped,
3077
+ "No existing way to encode a mem argument in the ModRM r/m field."
3078
+ );
3079
+ // N.B.: bytes_at_end == 1, because of the `imm` byte below.
3080
+ emit_std_reg_mem(sink, prefix, opcode, len, dst, addr, rex, 1);
3081
+ }
3082
+ }
3083
+ sink.put1(*imm);
3084
+ }
3085
+
3086
+ Inst::XmmUninitializedValue { .. } => {
3087
+ // This instruction format only exists to declare a register as a `def`; no code is
3088
+ // emitted.
3089
+ }
3090
+
3091
+ Inst::XmmMovRM { op, src, dst } => {
3092
+ let src = allocs.next(src.to_reg());
3093
+ let dst = dst.with_allocs(allocs);
3094
+
3095
+ let (prefix, opcode) = match op {
3096
+ SseOpcode::Movaps => (LegacyPrefixes::None, 0x0F29),
3097
+ SseOpcode::Movapd => (LegacyPrefixes::_66, 0x0F29),
3098
+ SseOpcode::Movdqu => (LegacyPrefixes::_F3, 0x0F7F),
3099
+ SseOpcode::Movss => (LegacyPrefixes::_F3, 0x0F11),
3100
+ SseOpcode::Movsd => (LegacyPrefixes::_F2, 0x0F11),
3101
+ SseOpcode::Movups => (LegacyPrefixes::None, 0x0F11),
3102
+ SseOpcode::Movupd => (LegacyPrefixes::_66, 0x0F11),
3103
+ _ => unimplemented!("Opcode {:?} not implemented", op),
3104
+ };
3105
+ let dst = &dst.finalize(state, sink);
3106
+ emit_std_reg_mem(sink, prefix, opcode, 2, src, dst, RexFlags::clear_w(), 0);
3107
+ }
3108
+
3109
+ Inst::XmmMovRMImm { op, src, dst, imm } => {
3110
+ let src = allocs.next(src.to_reg());
3111
+ let dst = dst.with_allocs(allocs);
3112
+
3113
+ let (w, prefix, opcode) = match op {
3114
+ SseOpcode::Pextrb => (false, LegacyPrefixes::_66, 0x0F3A14),
3115
+ SseOpcode::Pextrw => (false, LegacyPrefixes::_66, 0x0F3A15),
3116
+ SseOpcode::Pextrd => (false, LegacyPrefixes::_66, 0x0F3A16),
3117
+ SseOpcode::Pextrq => (true, LegacyPrefixes::_66, 0x0F3A16),
3118
+ _ => unimplemented!("Opcode {:?} not implemented", op),
3119
+ };
3120
+ let rex = if w {
3121
+ RexFlags::set_w()
3122
+ } else {
3123
+ RexFlags::clear_w()
3124
+ };
3125
+ let dst = &dst.finalize(state, sink);
3126
+ emit_std_reg_mem(sink, prefix, opcode, 3, src, dst, rex, 1);
3127
+ sink.put1(*imm);
3128
+ }
3129
+
3130
+ Inst::XmmToGpr {
3131
+ op,
3132
+ src,
3133
+ dst,
3134
+ dst_size,
3135
+ } => {
3136
+ let src = allocs.next(src.to_reg());
3137
+ let dst = allocs.next(dst.to_reg().to_reg());
3138
+
3139
+ let (prefix, opcode, dst_first) = match op {
3140
+ SseOpcode::Cvttss2si => (LegacyPrefixes::_F3, 0x0F2C, true),
3141
+ SseOpcode::Cvttsd2si => (LegacyPrefixes::_F2, 0x0F2C, true),
3142
+ // Movd and movq use the same opcode; the presence of the REX prefix (set below)
3143
+ // actually determines which is used.
3144
+ SseOpcode::Movd | SseOpcode::Movq => (LegacyPrefixes::_66, 0x0F7E, false),
3145
+ SseOpcode::Movmskps => (LegacyPrefixes::None, 0x0F50, true),
3146
+ SseOpcode::Movmskpd => (LegacyPrefixes::_66, 0x0F50, true),
3147
+ SseOpcode::Pmovmskb => (LegacyPrefixes::_66, 0x0FD7, true),
3148
+ _ => panic!("unexpected opcode {:?}", op),
3149
+ };
3150
+ let rex = RexFlags::from(*dst_size);
3151
+ let (src, dst) = if dst_first { (dst, src) } else { (src, dst) };
3152
+
3153
+ emit_std_reg_reg(sink, prefix, opcode, 2, src, dst, rex);
3154
+ }
3155
+
3156
+ Inst::XmmToGprImm { op, src, dst, imm } => {
3157
+ use OperandSize as OS;
3158
+
3159
+ let src = allocs.next(src.to_reg());
3160
+ let dst = allocs.next(dst.to_reg().to_reg());
3161
+
3162
+ let (prefix, opcode, opcode_bytes, dst_size, dst_first) = match op {
3163
+ SseOpcode::Pextrb => (LegacyPrefixes::_66, 0x0F3A14, 3, OS::Size32, false),
3164
+ SseOpcode::Pextrw => (LegacyPrefixes::_66, 0x0FC5, 2, OS::Size32, true),
3165
+ SseOpcode::Pextrd => (LegacyPrefixes::_66, 0x0F3A16, 3, OS::Size32, false),
3166
+ SseOpcode::Pextrq => (LegacyPrefixes::_66, 0x0F3A16, 3, OS::Size64, false),
3167
+ _ => panic!("unexpected opcode {:?}", op),
3168
+ };
3169
+ let rex = RexFlags::from(dst_size);
3170
+ let (src, dst) = if dst_first { (dst, src) } else { (src, dst) };
3171
+
3172
+ emit_std_reg_reg(sink, prefix, opcode, opcode_bytes, src, dst, rex);
3173
+ sink.put1(*imm);
3174
+ }
3175
+
3176
+ Inst::GprToXmm {
3177
+ op,
3178
+ src: src_e,
3179
+ dst: reg_g,
3180
+ src_size,
3181
+ } => {
3182
+ let reg_g = allocs.next(reg_g.to_reg().to_reg());
3183
+ let src_e = src_e.clone().to_reg_mem().with_allocs(allocs);
3184
+
3185
+ let (prefix, opcode) = match op {
3186
+ // Movd and movq use the same opcode; the presence of the REX prefix (set below)
3187
+ // actually determines which is used.
3188
+ SseOpcode::Movd | SseOpcode::Movq => (LegacyPrefixes::_66, 0x0F6E),
3189
+ _ => panic!("unexpected opcode {:?}", op),
3190
+ };
3191
+ let rex = RexFlags::from(*src_size);
3192
+ match src_e {
3193
+ RegMem::Reg { reg: reg_e } => {
3194
+ emit_std_reg_reg(sink, prefix, opcode, 2, reg_g, reg_e, rex);
3195
+ }
3196
+ RegMem::Mem { addr } => {
3197
+ let addr = &addr.finalize(state, sink);
3198
+ emit_std_reg_mem(sink, prefix, opcode, 2, reg_g, addr, rex, 0);
3199
+ }
3200
+ }
3201
+ }
3202
+
3203
+ Inst::XmmCmpRmR { op, src1, src2 } => {
3204
+ let src1 = allocs.next(src1.to_reg());
3205
+ let src2 = src2.clone().to_reg_mem().with_allocs(allocs);
3206
+
3207
+ let rex = RexFlags::clear_w();
3208
+ let (prefix, opcode, len) = match op {
3209
+ SseOpcode::Ptest => (LegacyPrefixes::_66, 0x0F3817, 3),
3210
+ SseOpcode::Ucomisd => (LegacyPrefixes::_66, 0x0F2E, 2),
3211
+ SseOpcode::Ucomiss => (LegacyPrefixes::None, 0x0F2E, 2),
3212
+ _ => unimplemented!("Emit xmm cmp rm r"),
3213
+ };
3214
+
3215
+ match src2 {
3216
+ RegMem::Reg { reg } => {
3217
+ emit_std_reg_reg(sink, prefix, opcode, len, src1, reg, rex);
3218
+ }
3219
+ RegMem::Mem { addr } => {
3220
+ let addr = &addr.finalize(state, sink);
3221
+ emit_std_reg_mem(sink, prefix, opcode, len, src1, addr, rex, 0);
3222
+ }
3223
+ }
3224
+ }
3225
+
3226
+ Inst::CvtIntToFloat {
3227
+ op,
3228
+ src1,
3229
+ src2,
3230
+ dst,
3231
+ src2_size,
3232
+ } => {
3233
+ let src1 = allocs.next(src1.to_reg());
3234
+ let dst = allocs.next(dst.to_reg().to_reg());
3235
+ assert_eq!(src1, dst);
3236
+ let src2 = src2.clone().to_reg_mem().with_allocs(allocs);
3237
+
3238
+ let (prefix, opcode) = match op {
3239
+ SseOpcode::Cvtsi2ss => (LegacyPrefixes::_F3, 0x0F2A),
3240
+ SseOpcode::Cvtsi2sd => (LegacyPrefixes::_F2, 0x0F2A),
3241
+ _ => panic!("unexpected opcode {:?}", op),
3242
+ };
3243
+ let rex = RexFlags::from(*src2_size);
3244
+ match src2 {
3245
+ RegMem::Reg { reg: src2 } => {
3246
+ emit_std_reg_reg(sink, prefix, opcode, 2, dst, src2, rex);
3247
+ }
3248
+ RegMem::Mem { addr } => {
3249
+ let addr = &addr.finalize(state, sink);
3250
+ emit_std_reg_mem(sink, prefix, opcode, 2, dst, addr, rex, 0);
3251
+ }
3252
+ }
3253
+ }
3254
+
3255
+ Inst::CvtIntToFloatVex {
3256
+ op,
3257
+ src1,
3258
+ src2,
3259
+ dst,
3260
+ src2_size,
3261
+ } => {
3262
+ let dst = allocs.next(dst.to_reg().to_reg());
3263
+ let src1 = allocs.next(src1.to_reg());
3264
+ let src2 = match src2.clone().to_reg_mem().with_allocs(allocs) {
3265
+ RegMem::Reg { reg } => {
3266
+ RegisterOrAmode::Register(reg.to_real_reg().unwrap().hw_enc().into())
3267
+ }
3268
+ RegMem::Mem { addr } => RegisterOrAmode::Amode(addr.finalize(state, sink)),
3269
+ };
3270
+
3271
+ let (prefix, map, opcode) = match op {
3272
+ AvxOpcode::Vcvtsi2ss => (LegacyPrefixes::_F3, OpcodeMap::_0F, 0x2A),
3273
+ AvxOpcode::Vcvtsi2sd => (LegacyPrefixes::_F2, OpcodeMap::_0F, 0x2A),
3274
+ _ => unimplemented!("Opcode {:?} not implemented", op),
3275
+ };
3276
+ let w = match src2_size {
3277
+ OperandSize::Size64 => true,
3278
+ _ => false,
3279
+ };
3280
+ VexInstruction::new()
3281
+ .length(VexVectorLength::V128)
3282
+ .w(w)
3283
+ .prefix(prefix)
3284
+ .map(map)
3285
+ .opcode(opcode)
3286
+ .rm(src2)
3287
+ .reg(dst.to_real_reg().unwrap().hw_enc())
3288
+ .vvvv(src1.to_real_reg().unwrap().hw_enc())
3289
+ .encode(sink);
3290
+ }
3291
+
3292
+ Inst::CvtUint64ToFloatSeq {
3293
+ dst_size,
3294
+ src,
3295
+ dst,
3296
+ tmp_gpr1,
3297
+ tmp_gpr2,
3298
+ } => {
3299
+ let src = allocs.next(src.to_reg());
3300
+ let dst = allocs.next(dst.to_reg().to_reg());
3301
+ let tmp_gpr1 = allocs.next(tmp_gpr1.to_reg().to_reg());
3302
+ let tmp_gpr2 = allocs.next(tmp_gpr2.to_reg().to_reg());
3303
+
3304
+ // Note: this sequence is specific to 64-bit mode; a 32-bit mode would require a
3305
+ // different sequence.
3306
+ //
3307
+ // Emit the following sequence:
3308
+ //
3309
+ // cmp 0, %src
3310
+ // jl handle_negative
3311
+ //
3312
+ // ;; handle positive, which can't overflow
3313
+ // cvtsi2sd/cvtsi2ss %src, %dst
3314
+ // j done
3315
+ //
3316
+ // ;; handle negative: see below for an explanation of what it's doing.
3317
+ // handle_negative:
3318
+ // mov %src, %tmp_gpr1
3319
+ // shr $1, %tmp_gpr1
3320
+ // mov %src, %tmp_gpr2
3321
+ // and $1, %tmp_gpr2
3322
+ // or %tmp_gpr1, %tmp_gpr2
3323
+ // cvtsi2sd/cvtsi2ss %tmp_gpr2, %dst
3324
+ // addsd/addss %dst, %dst
3325
+ //
3326
+ // done:
3327
+
3328
+ assert_ne!(src, tmp_gpr1);
3329
+ assert_ne!(src, tmp_gpr2);
3330
+ assert_ne!(tmp_gpr1, tmp_gpr2);
3331
+
3332
+ let handle_negative = sink.get_label();
3333
+ let done = sink.get_label();
3334
+
3335
+ // If x seen as a signed int64 is not negative, a signed-conversion will do the right
3336
+ // thing.
3337
+ // TODO use tst src, src here.
3338
+ let inst = Inst::cmp_rmi_r(OperandSize::Size64, src, RegMemImm::imm(0));
3339
+ inst.emit(&[], sink, info, state);
3340
+
3341
+ one_way_jmp(sink, CC::L, handle_negative);
3342
+
3343
+ // Handle a positive int64, which is the "easy" case: a signed conversion will do the
3344
+ // right thing.
3345
+ emit_signed_cvt(
3346
+ sink,
3347
+ info,
3348
+ state,
3349
+ src,
3350
+ Writable::from_reg(dst),
3351
+ *dst_size == OperandSize::Size64,
3352
+ );
3353
+
3354
+ let inst = Inst::jmp_known(done);
3355
+ inst.emit(&[], sink, info, state);
3356
+
3357
+ sink.bind_label(handle_negative, state.ctrl_plane_mut());
3358
+
3359
+ // Divide x by two to get it in range for the signed conversion, keep the LSB, and
3360
+ // scale it back up on the FP side.
3361
+ let inst = Inst::gen_move(Writable::from_reg(tmp_gpr1), src, types::I64);
3362
+ inst.emit(&[], sink, info, state);
3363
+
3364
+ // tmp_gpr1 := src >> 1
3365
+ let inst = Inst::shift_r(
3366
+ OperandSize::Size64,
3367
+ ShiftKind::ShiftRightLogical,
3368
+ Imm8Gpr::new(Imm8Reg::Imm8 { imm: 1 }).unwrap(),
3369
+ tmp_gpr1,
3370
+ Writable::from_reg(tmp_gpr1),
3371
+ );
3372
+ inst.emit(&[], sink, info, state);
3373
+
3374
+ let inst = Inst::gen_move(Writable::from_reg(tmp_gpr2), src, types::I64);
3375
+ inst.emit(&[], sink, info, state);
3376
+
3377
+ let inst = Inst::alu_rmi_r(
3378
+ OperandSize::Size64,
3379
+ AluRmiROpcode::And,
3380
+ RegMemImm::imm(1),
3381
+ Writable::from_reg(tmp_gpr2),
3382
+ );
3383
+ inst.emit(&[], sink, info, state);
3384
+
3385
+ let inst = Inst::alu_rmi_r(
3386
+ OperandSize::Size64,
3387
+ AluRmiROpcode::Or,
3388
+ RegMemImm::reg(tmp_gpr1),
3389
+ Writable::from_reg(tmp_gpr2),
3390
+ );
3391
+ inst.emit(&[], sink, info, state);
3392
+
3393
+ emit_signed_cvt(
3394
+ sink,
3395
+ info,
3396
+ state,
3397
+ tmp_gpr2,
3398
+ Writable::from_reg(dst),
3399
+ *dst_size == OperandSize::Size64,
3400
+ );
3401
+
3402
+ let add_op = if *dst_size == OperandSize::Size64 {
3403
+ SseOpcode::Addsd
3404
+ } else {
3405
+ SseOpcode::Addss
3406
+ };
3407
+ let inst = Inst::xmm_rm_r(add_op, RegMem::reg(dst), Writable::from_reg(dst));
3408
+ inst.emit(&[], sink, info, state);
3409
+
3410
+ sink.bind_label(done, state.ctrl_plane_mut());
3411
+ }
3412
+
3413
+ Inst::CvtFloatToSintSeq {
3414
+ src_size,
3415
+ dst_size,
3416
+ is_saturating,
3417
+ src,
3418
+ dst,
3419
+ tmp_gpr,
3420
+ tmp_xmm,
3421
+ } => {
3422
+ let src = allocs.next(src.to_reg());
3423
+ let dst = allocs.next(dst.to_reg().to_reg());
3424
+ let tmp_gpr = allocs.next(tmp_gpr.to_reg().to_reg());
3425
+ let tmp_xmm = allocs.next(tmp_xmm.to_reg().to_reg());
3426
+
3427
+ // Emits the following common sequence:
3428
+ //
3429
+ // cvttss2si/cvttsd2si %src, %dst
3430
+ // cmp %dst, 1
3431
+ // jno done
3432
+ //
3433
+ // Then, for saturating conversions:
3434
+ //
3435
+ // ;; check for NaN
3436
+ // cmpss/cmpsd %src, %src
3437
+ // jnp not_nan
3438
+ // xor %dst, %dst
3439
+ //
3440
+ // ;; positive inputs get saturated to INT_MAX; negative ones to INT_MIN, which is
3441
+ // ;; already in %dst.
3442
+ // xorpd %tmp_xmm, %tmp_xmm
3443
+ // cmpss/cmpsd %src, %tmp_xmm
3444
+ // jnb done
3445
+ // mov/movaps $INT_MAX, %dst
3446
+ //
3447
+ // done:
3448
+ //
3449
+ // Then, for non-saturating conversions:
3450
+ //
3451
+ // ;; check for NaN
3452
+ // cmpss/cmpsd %src, %src
3453
+ // jnp not_nan
3454
+ // ud2 trap BadConversionToInteger
3455
+ //
3456
+ // ;; check if INT_MIN was the correct result, against a magic constant:
3457
+ // not_nan:
3458
+ // movaps/mov $magic, %tmp_gpr
3459
+ // movq/movd %tmp_gpr, %tmp_xmm
3460
+ // cmpss/cmpsd %tmp_xmm, %src
3461
+ // jnb/jnbe $check_positive
3462
+ // ud2 trap IntegerOverflow
3463
+ //
3464
+ // ;; if positive, it was a real overflow
3465
+ // check_positive:
3466
+ // xorpd %tmp_xmm, %tmp_xmm
3467
+ // cmpss/cmpsd %src, %tmp_xmm
3468
+ // jnb done
3469
+ // ud2 trap IntegerOverflow
3470
+ //
3471
+ // done:
3472
+
3473
+ let (cast_op, cmp_op, trunc_op) = match src_size {
3474
+ OperandSize::Size64 => (SseOpcode::Movq, SseOpcode::Ucomisd, SseOpcode::Cvttsd2si),
3475
+ OperandSize::Size32 => (SseOpcode::Movd, SseOpcode::Ucomiss, SseOpcode::Cvttss2si),
3476
+ _ => unreachable!(),
3477
+ };
3478
+
3479
+ let done = sink.get_label();
3480
+
3481
+ // The truncation.
3482
+ let inst = Inst::xmm_to_gpr(trunc_op, src, Writable::from_reg(dst), *dst_size);
3483
+ inst.emit(&[], sink, info, state);
3484
+
3485
+ // Compare against 1, in case of overflow the dst operand was INT_MIN.
3486
+ let inst = Inst::cmp_rmi_r(*dst_size, dst, RegMemImm::imm(1));
3487
+ inst.emit(&[], sink, info, state);
3488
+
3489
+ one_way_jmp(sink, CC::NO, done); // no overflow => done
3490
+
3491
+ // Check for NaN.
3492
+
3493
+ let inst = Inst::xmm_cmp_rm_r(cmp_op, src, RegMem::reg(src));
3494
+ inst.emit(&[], sink, info, state);
3495
+
3496
+ if *is_saturating {
3497
+ let not_nan = sink.get_label();
3498
+ one_way_jmp(sink, CC::NP, not_nan); // go to not_nan if not a NaN
3499
+
3500
+ // For NaN, emit 0.
3501
+ let inst = Inst::alu_rmi_r(
3502
+ *dst_size,
3503
+ AluRmiROpcode::Xor,
3504
+ RegMemImm::reg(dst),
3505
+ Writable::from_reg(dst),
3506
+ );
3507
+ inst.emit(&[], sink, info, state);
3508
+
3509
+ let inst = Inst::jmp_known(done);
3510
+ inst.emit(&[], sink, info, state);
3511
+
3512
+ sink.bind_label(not_nan, state.ctrl_plane_mut());
3513
+
3514
+ // If the input was positive, saturate to INT_MAX.
3515
+
3516
+ // Zero out tmp_xmm.
3517
+ let inst = Inst::xmm_rm_r(
3518
+ SseOpcode::Xorpd,
3519
+ RegMem::reg(tmp_xmm),
3520
+ Writable::from_reg(tmp_xmm),
3521
+ );
3522
+ inst.emit(&[], sink, info, state);
3523
+
3524
+ let inst = Inst::xmm_cmp_rm_r(cmp_op, tmp_xmm, RegMem::reg(src));
3525
+ inst.emit(&[], sink, info, state);
3526
+
3527
+ // Jump if >= to done.
3528
+ one_way_jmp(sink, CC::NB, done);
3529
+
3530
+ // Otherwise, put INT_MAX.
3531
+ if *dst_size == OperandSize::Size64 {
3532
+ let inst = Inst::imm(
3533
+ OperandSize::Size64,
3534
+ 0x7fffffffffffffff,
3535
+ Writable::from_reg(dst),
3536
+ );
3537
+ inst.emit(&[], sink, info, state);
3538
+ } else {
3539
+ let inst = Inst::imm(OperandSize::Size32, 0x7fffffff, Writable::from_reg(dst));
3540
+ inst.emit(&[], sink, info, state);
3541
+ }
3542
+ } else {
3543
+ let inst = Inst::trap_if(CC::P, TrapCode::BadConversionToInteger);
3544
+ inst.emit(&[], sink, info, state);
3545
+
3546
+ // Check if INT_MIN was the correct result: determine the smallest floating point
3547
+ // number that would convert to INT_MIN, put it in a temporary register, and compare
3548
+ // against the src register.
3549
+ // If the src register is less (or in some cases, less-or-equal) than the threshold,
3550
+ // trap!
3551
+
3552
+ let mut no_overflow_cc = CC::NB; // >=
3553
+ let output_bits = dst_size.to_bits();
3554
+ match *src_size {
3555
+ OperandSize::Size32 => {
3556
+ let cst = Ieee32::pow2(output_bits - 1).neg().bits();
3557
+ let inst =
3558
+ Inst::imm(OperandSize::Size32, cst as u64, Writable::from_reg(tmp_gpr));
3559
+ inst.emit(&[], sink, info, state);
3560
+ }
3561
+ OperandSize::Size64 => {
3562
+ // An f64 can represent `i32::min_value() - 1` exactly with precision to spare,
3563
+ // so there are values less than -2^(N-1) that convert correctly to INT_MIN.
3564
+ let cst = if output_bits < 64 {
3565
+ no_overflow_cc = CC::NBE; // >
3566
+ Ieee64::fcvt_to_sint_negative_overflow(output_bits)
3567
+ } else {
3568
+ Ieee64::pow2(output_bits - 1).neg()
3569
+ };
3570
+ let inst =
3571
+ Inst::imm(OperandSize::Size64, cst.bits(), Writable::from_reg(tmp_gpr));
3572
+ inst.emit(&[], sink, info, state);
3573
+ }
3574
+ _ => unreachable!(),
3575
+ }
3576
+
3577
+ let inst = Inst::gpr_to_xmm(
3578
+ cast_op,
3579
+ RegMem::reg(tmp_gpr),
3580
+ *src_size,
3581
+ Writable::from_reg(tmp_xmm),
3582
+ );
3583
+ inst.emit(&[], sink, info, state);
3584
+
3585
+ let inst = Inst::xmm_cmp_rm_r(cmp_op, src, RegMem::reg(tmp_xmm));
3586
+ inst.emit(&[], sink, info, state);
3587
+
3588
+ // no trap if src >= or > threshold
3589
+ let inst = Inst::trap_if(no_overflow_cc.invert(), TrapCode::IntegerOverflow);
3590
+ inst.emit(&[], sink, info, state);
3591
+
3592
+ // If positive, it was a real overflow.
3593
+
3594
+ // Zero out the tmp_xmm register.
3595
+ let inst = Inst::xmm_rm_r(
3596
+ SseOpcode::Xorpd,
3597
+ RegMem::reg(tmp_xmm),
3598
+ Writable::from_reg(tmp_xmm),
3599
+ );
3600
+ inst.emit(&[], sink, info, state);
3601
+
3602
+ let inst = Inst::xmm_cmp_rm_r(cmp_op, tmp_xmm, RegMem::reg(src));
3603
+ inst.emit(&[], sink, info, state);
3604
+
3605
+ // no trap if 0 >= src
3606
+ let inst = Inst::trap_if(CC::B, TrapCode::IntegerOverflow);
3607
+ inst.emit(&[], sink, info, state);
3608
+ }
3609
+
3610
+ sink.bind_label(done, state.ctrl_plane_mut());
3611
+ }
3612
+
3613
+ Inst::CvtFloatToUintSeq {
3614
+ src_size,
3615
+ dst_size,
3616
+ is_saturating,
3617
+ src,
3618
+ dst,
3619
+ tmp_gpr,
3620
+ tmp_xmm,
3621
+ tmp_xmm2,
3622
+ } => {
3623
+ let src = allocs.next(src.to_reg());
3624
+ let dst = allocs.next(dst.to_reg().to_reg());
3625
+ let tmp_gpr = allocs.next(tmp_gpr.to_reg().to_reg());
3626
+ let tmp_xmm = allocs.next(tmp_xmm.to_reg().to_reg());
3627
+ let tmp_xmm2 = allocs.next(tmp_xmm2.to_reg().to_reg());
3628
+
3629
+ // The only difference in behavior between saturating and non-saturating is how we
3630
+ // handle errors. Emits the following sequence:
3631
+ //
3632
+ // movaps/mov 2**(int_width - 1), %tmp_gpr
3633
+ // movq/movd %tmp_gpr, %tmp_xmm
3634
+ // cmpss/cmpsd %tmp_xmm, %src
3635
+ // jnb is_large
3636
+ //
3637
+ // ;; check for NaN inputs
3638
+ // jnp not_nan
3639
+ // -- non-saturating: ud2 trap BadConversionToInteger
3640
+ // -- saturating: xor %dst, %dst; j done
3641
+ //
3642
+ // not_nan:
3643
+ // cvttss2si/cvttsd2si %src, %dst
3644
+ // cmp 0, %dst
3645
+ // jnl done
3646
+ // -- non-saturating: ud2 trap IntegerOverflow
3647
+ // -- saturating: xor %dst, %dst; j done
3648
+ //
3649
+ // is_large:
3650
+ // mov %src, %tmp_xmm2
3651
+ // subss/subsd %tmp_xmm, %tmp_xmm2
3652
+ // cvttss2si/cvttss2sd %tmp_x, %dst
3653
+ // cmp 0, %dst
3654
+ // jnl next_is_large
3655
+ // -- non-saturating: ud2 trap IntegerOverflow
3656
+ // -- saturating: movaps $UINT_MAX, %dst; j done
3657
+ //
3658
+ // next_is_large:
3659
+ // add 2**(int_width -1), %dst ;; 2 instructions for 64-bits integers
3660
+ //
3661
+ // done:
3662
+
3663
+ assert_ne!(tmp_xmm, src, "tmp_xmm clobbers src!");
3664
+
3665
+ let (sub_op, cast_op, cmp_op, trunc_op) = match src_size {
3666
+ OperandSize::Size32 => (
3667
+ SseOpcode::Subss,
3668
+ SseOpcode::Movd,
3669
+ SseOpcode::Ucomiss,
3670
+ SseOpcode::Cvttss2si,
3671
+ ),
3672
+ OperandSize::Size64 => (
3673
+ SseOpcode::Subsd,
3674
+ SseOpcode::Movq,
3675
+ SseOpcode::Ucomisd,
3676
+ SseOpcode::Cvttsd2si,
3677
+ ),
3678
+ _ => unreachable!(),
3679
+ };
3680
+
3681
+ let done = sink.get_label();
3682
+
3683
+ let cst = match src_size {
3684
+ OperandSize::Size32 => Ieee32::pow2(dst_size.to_bits() - 1).bits() as u64,
3685
+ OperandSize::Size64 => Ieee64::pow2(dst_size.to_bits() - 1).bits(),
3686
+ _ => unreachable!(),
3687
+ };
3688
+
3689
+ let inst = Inst::imm(*src_size, cst, Writable::from_reg(tmp_gpr));
3690
+ inst.emit(&[], sink, info, state);
3691
+
3692
+ let inst = Inst::gpr_to_xmm(
3693
+ cast_op,
3694
+ RegMem::reg(tmp_gpr),
3695
+ *src_size,
3696
+ Writable::from_reg(tmp_xmm),
3697
+ );
3698
+ inst.emit(&[], sink, info, state);
3699
+
3700
+ let inst = Inst::xmm_cmp_rm_r(cmp_op, src, RegMem::reg(tmp_xmm));
3701
+ inst.emit(&[], sink, info, state);
3702
+
3703
+ let handle_large = sink.get_label();
3704
+ one_way_jmp(sink, CC::NB, handle_large); // jump to handle_large if src >= large_threshold
3705
+
3706
+ if *is_saturating {
3707
+ // If not NaN jump over this 0-return, otherwise return 0
3708
+ let not_nan = sink.get_label();
3709
+ one_way_jmp(sink, CC::NP, not_nan);
3710
+ let inst = Inst::alu_rmi_r(
3711
+ *dst_size,
3712
+ AluRmiROpcode::Xor,
3713
+ RegMemImm::reg(dst),
3714
+ Writable::from_reg(dst),
3715
+ );
3716
+ inst.emit(&[], sink, info, state);
3717
+
3718
+ let inst = Inst::jmp_known(done);
3719
+ inst.emit(&[], sink, info, state);
3720
+ sink.bind_label(not_nan, state.ctrl_plane_mut());
3721
+ } else {
3722
+ // Trap.
3723
+ let inst = Inst::trap_if(CC::P, TrapCode::BadConversionToInteger);
3724
+ inst.emit(&[], sink, info, state);
3725
+ }
3726
+
3727
+ // Actual truncation for small inputs: if the result is not positive, then we had an
3728
+ // overflow.
3729
+
3730
+ let inst = Inst::xmm_to_gpr(trunc_op, src, Writable::from_reg(dst), *dst_size);
3731
+ inst.emit(&[], sink, info, state);
3732
+
3733
+ let inst = Inst::cmp_rmi_r(*dst_size, dst, RegMemImm::imm(0));
3734
+ inst.emit(&[], sink, info, state);
3735
+
3736
+ one_way_jmp(sink, CC::NL, done); // if dst >= 0, jump to done
3737
+
3738
+ if *is_saturating {
3739
+ // The input was "small" (< 2**(width -1)), so the only way to get an integer
3740
+ // overflow is because the input was too small: saturate to the min value, i.e. 0.
3741
+ let inst = Inst::alu_rmi_r(
3742
+ *dst_size,
3743
+ AluRmiROpcode::Xor,
3744
+ RegMemImm::reg(dst),
3745
+ Writable::from_reg(dst),
3746
+ );
3747
+ inst.emit(&[], sink, info, state);
3748
+
3749
+ let inst = Inst::jmp_known(done);
3750
+ inst.emit(&[], sink, info, state);
3751
+ } else {
3752
+ // Trap.
3753
+ let inst = Inst::trap(TrapCode::IntegerOverflow);
3754
+ inst.emit(&[], sink, info, state);
3755
+ }
3756
+
3757
+ // Now handle large inputs.
3758
+
3759
+ sink.bind_label(handle_large, state.ctrl_plane_mut());
3760
+
3761
+ let inst = Inst::gen_move(Writable::from_reg(tmp_xmm2), src, types::F64);
3762
+ inst.emit(&[], sink, info, state);
3763
+
3764
+ let inst = Inst::xmm_rm_r(sub_op, RegMem::reg(tmp_xmm), Writable::from_reg(tmp_xmm2));
3765
+ inst.emit(&[], sink, info, state);
3766
+
3767
+ let inst = Inst::xmm_to_gpr(trunc_op, tmp_xmm2, Writable::from_reg(dst), *dst_size);
3768
+ inst.emit(&[], sink, info, state);
3769
+
3770
+ let inst = Inst::cmp_rmi_r(*dst_size, dst, RegMemImm::imm(0));
3771
+ inst.emit(&[], sink, info, state);
3772
+
3773
+ if *is_saturating {
3774
+ let next_is_large = sink.get_label();
3775
+ one_way_jmp(sink, CC::NL, next_is_large); // if dst >= 0, jump to next_is_large
3776
+
3777
+ // The input was "large" (>= 2**(width -1)), so the only way to get an integer
3778
+ // overflow is because the input was too large: saturate to the max value.
3779
+ let inst = Inst::imm(
3780
+ OperandSize::Size64,
3781
+ if *dst_size == OperandSize::Size64 {
3782
+ u64::max_value()
3783
+ } else {
3784
+ u32::max_value() as u64
3785
+ },
3786
+ Writable::from_reg(dst),
3787
+ );
3788
+ inst.emit(&[], sink, info, state);
3789
+
3790
+ let inst = Inst::jmp_known(done);
3791
+ inst.emit(&[], sink, info, state);
3792
+ sink.bind_label(next_is_large, state.ctrl_plane_mut());
3793
+ } else {
3794
+ let inst = Inst::trap_if(CC::L, TrapCode::IntegerOverflow);
3795
+ inst.emit(&[], sink, info, state);
3796
+ }
3797
+
3798
+ if *dst_size == OperandSize::Size64 {
3799
+ let inst = Inst::imm(OperandSize::Size64, 1 << 63, Writable::from_reg(tmp_gpr));
3800
+ inst.emit(&[], sink, info, state);
3801
+
3802
+ let inst = Inst::alu_rmi_r(
3803
+ OperandSize::Size64,
3804
+ AluRmiROpcode::Add,
3805
+ RegMemImm::reg(tmp_gpr),
3806
+ Writable::from_reg(dst),
3807
+ );
3808
+ inst.emit(&[], sink, info, state);
3809
+ } else {
3810
+ let inst = Inst::alu_rmi_r(
3811
+ OperandSize::Size32,
3812
+ AluRmiROpcode::Add,
3813
+ RegMemImm::imm(1 << 31),
3814
+ Writable::from_reg(dst),
3815
+ );
3816
+ inst.emit(&[], sink, info, state);
3817
+ }
3818
+
3819
+ sink.bind_label(done, state.ctrl_plane_mut());
3820
+ }
3821
+
3822
+ Inst::LoadExtName {
3823
+ dst,
3824
+ name,
3825
+ offset,
3826
+ distance,
3827
+ } => {
3828
+ let dst = allocs.next(dst.to_reg());
3829
+
3830
+ if info.flags.is_pic() {
3831
+ // Generates: movq symbol@GOTPCREL(%rip), %dst
3832
+ let enc_dst = int_reg_enc(dst);
3833
+ sink.put1(0x48 | ((enc_dst >> 3) & 1) << 2);
3834
+ sink.put1(0x8B);
3835
+ sink.put1(0x05 | ((enc_dst & 7) << 3));
3836
+ emit_reloc(sink, Reloc::X86GOTPCRel4, name, -4);
3837
+ sink.put4(0);
3838
+ // Offset in the relocation above applies to the address of the *GOT entry*, not
3839
+ // the loaded address; so we emit a separate add or sub instruction if needed.
3840
+ if *offset < 0 {
3841
+ assert!(*offset >= -i32::MAX as i64);
3842
+ sink.put1(0x48 | ((enc_dst >> 3) & 1));
3843
+ sink.put1(0x81);
3844
+ sink.put1(0xe8 | (enc_dst & 7));
3845
+ sink.put4((-*offset) as u32);
3846
+ } else if *offset > 0 {
3847
+ assert!(*offset <= i32::MAX as i64);
3848
+ sink.put1(0x48 | ((enc_dst >> 3) & 1));
3849
+ sink.put1(0x81);
3850
+ sink.put1(0xc0 | (enc_dst & 7));
3851
+ sink.put4(*offset as u32);
3852
+ }
3853
+ } else if distance == &RelocDistance::Near {
3854
+ // If we know the distance to the name is within 2GB (e.g., a module-local function),
3855
+ // we can generate a RIP-relative address, with a relocation.
3856
+ // Generates: lea $name(%rip), $dst
3857
+ let enc_dst = int_reg_enc(dst);
3858
+ sink.put1(0x48 | ((enc_dst >> 3) & 1) << 2);
3859
+ sink.put1(0x8D);
3860
+ sink.put1(0x05 | ((enc_dst & 7) << 3));
3861
+ emit_reloc(sink, Reloc::X86CallPCRel4, name, -4);
3862
+ sink.put4(0);
3863
+ } else {
3864
+ // The full address can be encoded in the register, with a relocation.
3865
+ // Generates: movabsq $name, %dst
3866
+ let enc_dst = int_reg_enc(dst);
3867
+ sink.put1(0x48 | ((enc_dst >> 3) & 1));
3868
+ sink.put1(0xB8 | (enc_dst & 7));
3869
+ emit_reloc(sink, Reloc::Abs8, name, *offset);
3870
+ sink.put8(0);
3871
+ }
3872
+ }
3873
+
3874
+ Inst::LockCmpxchg {
3875
+ ty,
3876
+ replacement,
3877
+ expected,
3878
+ mem,
3879
+ dst_old,
3880
+ } => {
3881
+ let replacement = allocs.next(*replacement);
3882
+ let expected = allocs.next(*expected);
3883
+ let dst_old = allocs.next(dst_old.to_reg());
3884
+ let mem = mem.with_allocs(allocs);
3885
+
3886
+ debug_assert_eq!(expected, regs::rax());
3887
+ debug_assert_eq!(dst_old, regs::rax());
3888
+
3889
+ // lock cmpxchg{b,w,l,q} %replacement, (mem)
3890
+ // Note that 0xF0 is the Lock prefix.
3891
+ let (prefix, opcodes) = match *ty {
3892
+ types::I8 => (LegacyPrefixes::_F0, 0x0FB0),
3893
+ types::I16 => (LegacyPrefixes::_66F0, 0x0FB1),
3894
+ types::I32 => (LegacyPrefixes::_F0, 0x0FB1),
3895
+ types::I64 => (LegacyPrefixes::_F0, 0x0FB1),
3896
+ _ => unreachable!(),
3897
+ };
3898
+ let rex = RexFlags::from((OperandSize::from_ty(*ty), replacement));
3899
+ let amode = mem.finalize(state, sink);
3900
+ emit_std_reg_mem(sink, prefix, opcodes, 2, replacement, &amode, rex, 0);
3901
+ }
3902
+
3903
+ Inst::AtomicRmwSeq {
3904
+ ty,
3905
+ op,
3906
+ mem,
3907
+ operand,
3908
+ temp,
3909
+ dst_old,
3910
+ } => {
3911
+ let operand = allocs.next(*operand);
3912
+ let temp = allocs.next_writable(*temp);
3913
+ let dst_old = allocs.next_writable(*dst_old);
3914
+ debug_assert_eq!(dst_old.to_reg(), regs::rax());
3915
+ let mem = mem.finalize(state, sink).with_allocs(allocs);
3916
+
3917
+ // Emit this:
3918
+ // mov{zbq,zwq,zlq,q} (%r_address), %rax // rax = old value
3919
+ // again:
3920
+ // movq %rax, %r_temp // rax = old value, r_temp = old value
3921
+ // `op`q %r_operand, %r_temp // rax = old value, r_temp = new value
3922
+ // lock cmpxchg{b,w,l,q} %r_temp, (%r_address) // try to store new value
3923
+ // jnz again // If this is taken, rax will have a "revised" old value
3924
+ //
3925
+ // Operand conventions: IN: %r_address, %r_operand OUT: %rax (old
3926
+ // value), %r_temp (trashed), %rflags (trashed)
3927
+ //
3928
+ // In the case where the operation is 'xchg', the "`op`q"
3929
+ // instruction is instead: movq %r_operand,
3930
+ // %r_temp so that we simply write in the destination, the "2nd
3931
+ // arg for `op`".
3932
+ //
3933
+ // TODO: this sequence can be significantly improved (e.g., to `lock
3934
+ // <op>`) when it is known that `dst_old` is not used later, see
3935
+ // https://github.com/bytecodealliance/wasmtime/issues/2153.
3936
+ let again_label = sink.get_label();
3937
+
3938
+ // mov{zbq,zwq,zlq,q} (%r_address), %rax
3939
+ // No need to call `add_trap` here, since the `i1` emit will do that.
3940
+ let i1 = Inst::load(*ty, mem.clone(), dst_old, ExtKind::ZeroExtend);
3941
+ i1.emit(&[], sink, info, state);
3942
+
3943
+ // again:
3944
+ sink.bind_label(again_label, state.ctrl_plane_mut());
3945
+
3946
+ // movq %rax, %r_temp
3947
+ let i2 = Inst::mov_r_r(OperandSize::Size64, dst_old.to_reg(), temp);
3948
+ i2.emit(&[], sink, info, state);
3949
+
3950
+ let operand_rmi = RegMemImm::reg(operand);
3951
+ use inst_common::MachAtomicRmwOp as RmwOp;
3952
+ match op {
3953
+ RmwOp::Xchg => {
3954
+ // movq %r_operand, %r_temp
3955
+ let i3 = Inst::mov_r_r(OperandSize::Size64, operand, temp);
3956
+ i3.emit(&[], sink, info, state);
3957
+ }
3958
+ RmwOp::Nand => {
3959
+ // andq %r_operand, %r_temp
3960
+ let i3 =
3961
+ Inst::alu_rmi_r(OperandSize::Size64, AluRmiROpcode::And, operand_rmi, temp);
3962
+ i3.emit(&[], sink, info, state);
3963
+
3964
+ // notq %r_temp
3965
+ let i4 = Inst::not(OperandSize::Size64, temp);
3966
+ i4.emit(&[], sink, info, state);
3967
+ }
3968
+ RmwOp::Umin | RmwOp::Umax | RmwOp::Smin | RmwOp::Smax => {
3969
+ // cmp %r_temp, %r_operand
3970
+ let i3 = Inst::cmp_rmi_r(
3971
+ OperandSize::from_ty(*ty),
3972
+ operand,
3973
+ RegMemImm::reg(temp.to_reg()),
3974
+ );
3975
+ i3.emit(&[], sink, info, state);
3976
+
3977
+ // cmovcc %r_operand, %r_temp
3978
+ let cc = match op {
3979
+ RmwOp::Umin => CC::BE,
3980
+ RmwOp::Umax => CC::NB,
3981
+ RmwOp::Smin => CC::LE,
3982
+ RmwOp::Smax => CC::NL,
3983
+ _ => unreachable!(),
3984
+ };
3985
+ let i4 = Inst::cmove(OperandSize::Size64, cc, RegMem::reg(operand), temp);
3986
+ i4.emit(&[], sink, info, state);
3987
+ }
3988
+ _ => {
3989
+ // opq %r_operand, %r_temp
3990
+ let alu_op = match op {
3991
+ RmwOp::Add => AluRmiROpcode::Add,
3992
+ RmwOp::Sub => AluRmiROpcode::Sub,
3993
+ RmwOp::And => AluRmiROpcode::And,
3994
+ RmwOp::Or => AluRmiROpcode::Or,
3995
+ RmwOp::Xor => AluRmiROpcode::Xor,
3996
+ RmwOp::Xchg
3997
+ | RmwOp::Nand
3998
+ | RmwOp::Umin
3999
+ | RmwOp::Umax
4000
+ | RmwOp::Smin
4001
+ | RmwOp::Smax => unreachable!(),
4002
+ };
4003
+ let i3 = Inst::alu_rmi_r(OperandSize::Size64, alu_op, operand_rmi, temp);
4004
+ i3.emit(&[], sink, info, state);
4005
+ }
4006
+ }
4007
+
4008
+ // lock cmpxchg{b,w,l,q} %r_temp, (%r_address)
4009
+ // No need to call `add_trap` here, since the `i4` emit will do that.
4010
+ let i4 = Inst::LockCmpxchg {
4011
+ ty: *ty,
4012
+ replacement: temp.to_reg(),
4013
+ expected: dst_old.to_reg(),
4014
+ mem: mem.into(),
4015
+ dst_old,
4016
+ };
4017
+ i4.emit(&[], sink, info, state);
4018
+
4019
+ // jnz again
4020
+ one_way_jmp(sink, CC::NZ, again_label);
4021
+ }
4022
+
4023
+ Inst::Fence { kind } => {
4024
+ sink.put1(0x0F);
4025
+ sink.put1(0xAE);
4026
+ match kind {
4027
+ FenceKind::MFence => sink.put1(0xF0), // mfence = 0F AE F0
4028
+ FenceKind::LFence => sink.put1(0xE8), // lfence = 0F AE E8
4029
+ FenceKind::SFence => sink.put1(0xF8), // sfence = 0F AE F8
4030
+ }
4031
+ }
4032
+
4033
+ Inst::Hlt => {
4034
+ sink.put1(0xcc);
4035
+ }
4036
+
4037
+ Inst::Ud2 { trap_code } => {
4038
+ sink.add_trap(*trap_code);
4039
+ if let Some(s) = state.take_stack_map() {
4040
+ sink.add_stack_map(StackMapExtent::UpcomingBytes(2), s);
4041
+ }
4042
+ sink.put_data(Inst::TRAP_OPCODE);
4043
+ }
4044
+
4045
+ Inst::VirtualSPOffsetAdj { offset } => {
4046
+ state.adjust_virtual_sp_offset(*offset);
4047
+ }
4048
+
4049
+ Inst::Nop { len } => {
4050
+ // These encodings can all be found in Intel's architecture manual, at the NOP
4051
+ // instruction description.
4052
+ let mut len = *len;
4053
+ while len != 0 {
4054
+ let emitted = u8::min(len, 9);
4055
+ match emitted {
4056
+ 0 => {}
4057
+ 1 => sink.put1(0x90), // NOP
4058
+ 2 => {
4059
+ // 66 NOP
4060
+ sink.put1(0x66);
4061
+ sink.put1(0x90);
4062
+ }
4063
+ 3 => {
4064
+ // NOP [EAX]
4065
+ sink.put1(0x0F);
4066
+ sink.put1(0x1F);
4067
+ sink.put1(0x00);
4068
+ }
4069
+ 4 => {
4070
+ // NOP 0(EAX), with 0 a 1-byte immediate.
4071
+ sink.put1(0x0F);
4072
+ sink.put1(0x1F);
4073
+ sink.put1(0x40);
4074
+ sink.put1(0x00);
4075
+ }
4076
+ 5 => {
4077
+ // NOP [EAX, EAX, 1]
4078
+ sink.put1(0x0F);
4079
+ sink.put1(0x1F);
4080
+ sink.put1(0x44);
4081
+ sink.put1(0x00);
4082
+ sink.put1(0x00);
4083
+ }
4084
+ 6 => {
4085
+ // 66 NOP [EAX, EAX, 1]
4086
+ sink.put1(0x66);
4087
+ sink.put1(0x0F);
4088
+ sink.put1(0x1F);
4089
+ sink.put1(0x44);
4090
+ sink.put1(0x00);
4091
+ sink.put1(0x00);
4092
+ }
4093
+ 7 => {
4094
+ // NOP 0[EAX], but 0 is a 4 bytes immediate.
4095
+ sink.put1(0x0F);
4096
+ sink.put1(0x1F);
4097
+ sink.put1(0x80);
4098
+ sink.put1(0x00);
4099
+ sink.put1(0x00);
4100
+ sink.put1(0x00);
4101
+ sink.put1(0x00);
4102
+ }
4103
+ 8 => {
4104
+ // NOP 0[EAX, EAX, 1], with 0 a 4 bytes immediate.
4105
+ sink.put1(0x0F);
4106
+ sink.put1(0x1F);
4107
+ sink.put1(0x84);
4108
+ sink.put1(0x00);
4109
+ sink.put1(0x00);
4110
+ sink.put1(0x00);
4111
+ sink.put1(0x00);
4112
+ sink.put1(0x00);
4113
+ }
4114
+ 9 => {
4115
+ // 66 NOP 0[EAX, EAX, 1], with 0 a 4 bytes immediate.
4116
+ sink.put1(0x66);
4117
+ sink.put1(0x0F);
4118
+ sink.put1(0x1F);
4119
+ sink.put1(0x84);
4120
+ sink.put1(0x00);
4121
+ sink.put1(0x00);
4122
+ sink.put1(0x00);
4123
+ sink.put1(0x00);
4124
+ sink.put1(0x00);
4125
+ }
4126
+ _ => unreachable!(),
4127
+ }
4128
+ len -= emitted;
4129
+ }
4130
+ }
4131
+
4132
+ Inst::ElfTlsGetAddr { ref symbol, dst } => {
4133
+ let dst = allocs.next(dst.to_reg().to_reg());
4134
+ debug_assert_eq!(dst, regs::rax());
4135
+
4136
+ // N.B.: Must be exactly this byte sequence; the linker requires it,
4137
+ // because it must know how to rewrite the bytes.
4138
+
4139
+ // data16 lea gv@tlsgd(%rip),%rdi
4140
+ sink.put1(0x66); // data16
4141
+ sink.put1(0b01001000); // REX.W
4142
+ sink.put1(0x8d); // LEA
4143
+ sink.put1(0x3d); // ModRM byte
4144
+ emit_reloc(sink, Reloc::ElfX86_64TlsGd, symbol, -4);
4145
+ sink.put4(0); // offset
4146
+
4147
+ // data16 data16 callq __tls_get_addr-4
4148
+ sink.put1(0x66); // data16
4149
+ sink.put1(0x66); // data16
4150
+ sink.put1(0b01001000); // REX.W
4151
+ sink.put1(0xe8); // CALL
4152
+ emit_reloc(
4153
+ sink,
4154
+ Reloc::X86CallPLTRel4,
4155
+ &ExternalName::LibCall(LibCall::ElfTlsGetAddr),
4156
+ -4,
4157
+ );
4158
+ sink.put4(0); // offset
4159
+ }
4160
+
4161
+ Inst::MachOTlsGetAddr { ref symbol, dst } => {
4162
+ let dst = allocs.next(dst.to_reg().to_reg());
4163
+ debug_assert_eq!(dst, regs::rax());
4164
+
4165
+ // movq gv@tlv(%rip), %rdi
4166
+ sink.put1(0x48); // REX.w
4167
+ sink.put1(0x8b); // MOV
4168
+ sink.put1(0x3d); // ModRM byte
4169
+ emit_reloc(sink, Reloc::MachOX86_64Tlv, symbol, -4);
4170
+ sink.put4(0); // offset
4171
+
4172
+ // callq *(%rdi)
4173
+ sink.put1(0xff);
4174
+ sink.put1(0x17);
4175
+ }
4176
+
4177
+ Inst::CoffTlsGetAddr {
4178
+ ref symbol,
4179
+ dst,
4180
+ tmp,
4181
+ } => {
4182
+ let dst = allocs.next(dst.to_reg().to_reg());
4183
+ debug_assert_eq!(dst, regs::rax());
4184
+
4185
+ // tmp is used below directly as %rcx
4186
+ let tmp = allocs.next(tmp.to_reg().to_reg());
4187
+ debug_assert_eq!(tmp, regs::rcx());
4188
+
4189
+ // See: https://gcc.godbolt.org/z/M8or9x6ss
4190
+ // And: https://github.com/bjorn3/rustc_codegen_cranelift/issues/388#issuecomment-532930282
4191
+
4192
+ // Emit the following sequence
4193
+ // movl (%rip), %eax ; IMAGE_REL_AMD64_REL32 _tls_index
4194
+ // movq %gs:88, %rcx
4195
+ // movq (%rcx,%rax,8), %rax
4196
+ // leaq (%rax), %rax ; Reloc: IMAGE_REL_AMD64_SECREL symbol
4197
+
4198
+ // Load TLS index for current thread
4199
+ // movl (%rip), %eax
4200
+ sink.put1(0x8b); // mov
4201
+ sink.put1(0x05);
4202
+ emit_reloc(
4203
+ sink,
4204
+ Reloc::X86PCRel4,
4205
+ &ExternalName::KnownSymbol(KnownSymbol::CoffTlsIndex),
4206
+ -4,
4207
+ );
4208
+ sink.put4(0); // offset
4209
+
4210
+ // movq %gs:88, %rcx
4211
+ // Load the TLS Storage Array pointer
4212
+ // The gs segment register refers to the base address of the TEB on x64.
4213
+ // 0x58 is the offset in the TEB for the ThreadLocalStoragePointer member on x64:
4214
+ sink.put_data(&[
4215
+ 0x65, 0x48, // REX.W
4216
+ 0x8b, // MOV
4217
+ 0x0c, 0x25, 0x58, // 0x58 - ThreadLocalStoragePointer offset
4218
+ 0x00, 0x00, 0x00,
4219
+ ]);
4220
+
4221
+ // movq (%rcx,%rax,8), %rax
4222
+ // Load the actual TLS entry for this thread.
4223
+ // Computes ThreadLocalStoragePointer + _tls_index*8
4224
+ sink.put_data(&[0x48, 0x8b, 0x04, 0xc1]);
4225
+
4226
+ // leaq (%rax), %rax
4227
+ sink.put1(0x48);
4228
+ sink.put1(0x8d);
4229
+ sink.put1(0x80);
4230
+ emit_reloc(sink, Reloc::X86SecRel, symbol, 0);
4231
+ sink.put4(0); // offset
4232
+ }
4233
+
4234
+ Inst::Unwind { ref inst } => {
4235
+ sink.add_unwind(inst.clone());
4236
+ }
4237
+
4238
+ Inst::DummyUse { .. } => {
4239
+ // Nothing.
4240
+ }
4241
+ }
4242
+
4243
+ state.clear_post_insn();
4244
+ }
4245
+
4246
+ /// Emit the common sequence used for both direct and indirect tail calls:
4247
+ ///
4248
+ /// * Copy the new frame's stack arguments over the top of our current frame.
4249
+ ///
4250
+ /// * Restore the old frame pointer.
4251
+ ///
4252
+ /// * Initialize the tail callee's stack pointer (simultaneously deallocating
4253
+ /// the temporary stack space we allocated when creating the new frame's stack
4254
+ /// arguments).
4255
+ ///
4256
+ /// * Move the return address into its stack slot.
4257
+ fn emit_return_call_common_sequence(
4258
+ allocs: &mut AllocationConsumer,
4259
+ sink: &mut MachBuffer<Inst>,
4260
+ info: &EmitInfo,
4261
+ state: &mut EmitState,
4262
+ call_info: &ReturnCallInfo,
4263
+ ) {
4264
+ assert!(
4265
+ info.flags.preserve_frame_pointers(),
4266
+ "frame pointers aren't fundamentally required for tail calls, \
4267
+ but the current implementation relies on them being present"
4268
+ );
4269
+
4270
+ let tmp = allocs.next_writable(call_info.tmp.to_writable_reg());
4271
+
4272
+ for u in call_info.uses.iter() {
4273
+ let _ = allocs.next(u.vreg);
4274
+ }
4275
+
4276
+ for inst in
4277
+ X64ABIMachineSpec::gen_clobber_restore(CallConv::Tail, &info.flags, state.frame_layout())
4278
+ {
4279
+ inst.emit(&[], sink, info, state);
4280
+ }
4281
+
4282
+ for inst in X64ABIMachineSpec::gen_epilogue_frame_restore(
4283
+ CallConv::Tail,
4284
+ &info.flags,
4285
+ &info.isa_flags,
4286
+ state.frame_layout(),
4287
+ ) {
4288
+ inst.emit(&[], sink, info, state);
4289
+ }
4290
+
4291
+ let incoming_args_diff = state.frame_layout().tail_args_size - call_info.new_stack_arg_size;
4292
+ if incoming_args_diff > 0 {
4293
+ // Move the saved return address up by `incoming_args_diff`
4294
+ Inst::mov64_m_r(Amode::imm_reg(0, regs::rsp()), tmp).emit(&[], sink, info, state);
4295
+ Inst::mov_r_m(
4296
+ OperandSize::Size64,
4297
+ tmp.to_reg(),
4298
+ Amode::imm_reg(i32::try_from(incoming_args_diff).unwrap(), regs::rsp()),
4299
+ )
4300
+ .emit(&[], sink, info, state);
4301
+
4302
+ // Increment the stack pointer to shrink the argument area for the new call.
4303
+ Inst::alu_rmi_r(
4304
+ OperandSize::Size64,
4305
+ AluRmiROpcode::Add,
4306
+ RegMemImm::imm(incoming_args_diff),
4307
+ Writable::from_reg(regs::rsp()),
4308
+ )
4309
+ .emit(&[], sink, info, state);
4310
+ }
4311
+ }