Bump the wasm-tools crates (#3139)
* Bump the wasm-tools crates Pulls in some updates here and there, mostly for updating crates to the latest version to prepare for later memory64 work. * Update lightbeam
This commit is contained in:
@@ -13,8 +13,8 @@ arbitrary = { version = "1.0.0", features = ["derive"] }
|
||||
env_logger = "0.8.1"
|
||||
log = "0.4.8"
|
||||
rayon = "1.2.1"
|
||||
wasmparser = "0.79"
|
||||
wasmprinter = "0.2.27"
|
||||
wasmparser = "0.80"
|
||||
wasmprinter = "0.2.28"
|
||||
wasmtime = { path = "../wasmtime" }
|
||||
wasmtime-wast = { path = "../wast" }
|
||||
wasm-encoder = "0.5.0"
|
||||
|
||||
@@ -221,10 +221,7 @@ fn predict_rss(wasm: &[u8]) -> Result<usize> {
|
||||
// the minimum amount of memory to our predicted rss.
|
||||
Payload::MemorySection(s) => {
|
||||
for entry in s {
|
||||
let initial = match entry? {
|
||||
MemoryType::M32 { limits, .. } => limits.initial as usize,
|
||||
MemoryType::M64 { limits, .. } => limits.initial as usize,
|
||||
};
|
||||
let initial = entry?.initial as usize;
|
||||
prediction += initial * 64 * 1024;
|
||||
}
|
||||
}
|
||||
@@ -233,7 +230,7 @@ fn predict_rss(wasm: &[u8]) -> Result<usize> {
|
||||
// currently this is 3 pointers per table entry.
|
||||
Payload::TableSection(s) => {
|
||||
for entry in s {
|
||||
let initial = entry?.limits.initial as usize;
|
||||
let initial = entry?.initial as usize;
|
||||
prediction += initial * 3 * mem::size_of::<usize>();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user