aboutsummaryrefslogtreecommitdiff
path: root/src/zilch/App/object-store.js
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2026-10-19 13:08:25 +0200
committerNathan Reiner <nathan@nathanreiner.xyz>2026-10-19 13:08:25 +0200
commit0790cae660a6602697c63cf8b4ada78aa3661f82 (patch)
tree09ec9852285081fd9a42bebbb0f4913fb6f0118a /src/zilch/App/object-store.js
parent3c1ef9ef717f25341c445dc33a5c9e7b17b74217 (diff)
zilch: export sizeof of shared structs
Diffstat (limited to 'src/zilch/App/object-store.js')
-rw-r--r--src/zilch/App/object-store.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/zilch/App/object-store.js b/src/zilch/App/object-store.js
index 3566c89..33879c6 100644
--- a/src/zilch/App/object-store.js
+++ b/src/zilch/App/object-store.js
@@ -160,17 +160,17 @@ class ObjectStore {
for (let i = 0; i < length; ++i) {
const method = ObjectStore.decodeCall(calls_view, offset.call);
- offset.call += 8;
+ offset.call += wasm.size_of.Call;
let args = new Array(method.num_args).fill().map(_ => {
const value = ObjectStore.decodeValue(values_view, offset.value, results);
- offset.value += 16;
+ offset.value += wasm.size_of.Value;
return value;
});
const result = method.kind(...args);
const result_ptr = results_view.getUint32(offset.result, true);
- offset.result += 4;
+ offset.result += wasm.size_of.Ptr;
results.push(result);