This bumps target-lexicon and adds support for the AppleAarch64 calling convention. Specifically for WebAssembly support, we only have to worry about the new stack slots convention. Stack slots don't need to be at least 8-bytes, they can be as small as the data type's size. For instance, if we need stack slots for (i32, i32), they can be located at offsets (+0, +4). Note that they still need to be properly aligned on the data type they're containing, though, so if we need stack slots for (i32, i64), we can't start the i64 slot at the +4 offset (it must start at the +8 offset). Added one test that was failing on the Mac M1, as well as other tests stressing different yet similar situations.
40 lines
1.4 KiB
TOML
40 lines
1.4 KiB
TOML
[package]
|
|
name = "cranelift-wasm"
|
|
version = "0.72.0"
|
|
authors = ["The Cranelift Project Developers"]
|
|
description = "Translator from WebAssembly to Cranelift IR"
|
|
documentation = "https://docs.rs/cranelift-wasm"
|
|
repository = "https://github.com/bytecodealliance/wasmtime"
|
|
license = "Apache-2.0 WITH LLVM-exception"
|
|
categories = ["no-std", "wasm"]
|
|
readme = "README.md"
|
|
keywords = ["webassembly", "wasm"]
|
|
edition = "2018"
|
|
|
|
[dependencies]
|
|
wasmparser = { version = "0.76", default-features = false }
|
|
cranelift-codegen = { path = "../codegen", version = "0.72.0", default-features = false }
|
|
cranelift-entity = { path = "../entity", version = "0.72.0" }
|
|
cranelift-frontend = { path = "../frontend", version = "0.72.0", default-features = false }
|
|
hashbrown = { version = "0.9.1", optional = true }
|
|
itertools = "0.10.0"
|
|
log = { version = "0.4.6", default-features = false }
|
|
serde = { version = "1.0.94", features = ["derive"], optional = true }
|
|
smallvec = "1.6.1"
|
|
thiserror = "1.0.4"
|
|
|
|
[dev-dependencies]
|
|
wat = "1.0.36"
|
|
target-lexicon = "0.12"
|
|
# Enable the riscv feature for cranelift-codegen, as some tests require it
|
|
cranelift-codegen = { path = "../codegen", version = "0.72.0", default-features = false, features = ["riscv"] }
|
|
|
|
[features]
|
|
default = ["std"]
|
|
std = ["cranelift-codegen/std", "cranelift-frontend/std"]
|
|
core = ["hashbrown", "cranelift-codegen/core", "cranelift-frontend/core"]
|
|
enable-serde = ["serde"]
|
|
|
|
[badges]
|
|
maintenance = { status = "experimental" }
|