Mass rename anyref to externref (#2142)

Updates a mess of dependencies and tracks the most recent version of the
reference types specification.
This commit is contained in:
Alex Crichton
2020-05-18 09:36:30 -05:00
committed by GitHub
parent 61e8fc0d38
commit 996e92f3ae
65 changed files with 604 additions and 596 deletions

View File

@ -13,12 +13,12 @@ edition = "2018"
[dependencies]
anyhow = "1.0"
walrus = "0.16.0"
walrus = "0.17.0"
[dev-dependencies]
rayon = "1.0"
wasmprinter = "0.2"
wast = "15.0"
wast = "17.0"
wat = "1.0"
[[test]]

View File

@ -162,12 +162,10 @@ fn xform_one(
round_up_to_alignment(results_size, 8) + 8
}
walrus::ValType::V128 => round_up_to_alignment(results_size, 16) + 16,
walrus::ValType::Anyref | walrus::ValType::Funcref | walrus::ValType::Nullref => {
anyhow::bail!(
"cannot multi-value transform functions that return \
walrus::ValType::Externref | walrus::ValType::Funcref => anyhow::bail!(
"cannot multi-value transform functions that return \
reference types, since they can't go into linear memory"
)
}
),
};
}
// Round up to 16-byte alignment, since that's what LLVM's emitted Wasm code
@ -286,9 +284,7 @@ fn xform_one(
);
offset += 16;
}
walrus::ValType::Anyref | walrus::ValType::Funcref | walrus::ValType::Nullref => {
unreachable!()
}
walrus::ValType::Externref | walrus::ValType::Funcref => unreachable!(),
}
}