diff options
| author | Michael Williamson <mike@zwobble.org> | 2026-04-12 10:55:05 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2026-04-12 10:55:05 +0100 |
| commit | 3dad6dca1663e700fbdb8999eb6aca9db2b12d7b (patch) | |
| tree | b871d60901900fcef7710f4e450bf67f7e54e12b /src/main/java | |
| parent | 8831821e326a14e57d08ed9b1c8da1e5e3f7cf9a (diff) | |
Remove old TODO
Diffstat (limited to 'src/main/java')
| -rw-r--r-- | src/main/java/org/shedlang/compiler/backends/targets/WasmTarget.java | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/main/java/org/shedlang/compiler/backends/targets/WasmTarget.java b/src/main/java/org/shedlang/compiler/backends/targets/WasmTarget.java index 42aeea5c..413cead5 100644 --- a/src/main/java/org/shedlang/compiler/backends/targets/WasmTarget.java +++ b/src/main/java/org/shedlang/compiler/backends/targets/WasmTarget.java @@ -68,15 +68,6 @@ public enum WasmTarget { } public WasmValueType functionPtrType() { - // TODO: there's a problem here: wasm64 uses 32-bit function pointers, - // but C uses void* for all pointers, which will be 64-bit on wasm64. - // We could either: - // * Change the C definition of a closure to use a 32-bit int, and cast - // it to a void* on use, or - // * Change the Wasm backend to treat Patio function pointers as 64-bit, - // and convert from 32-bit to 64-bit when referencing table indices. - // We currently do the latter, but may want to consider the former (or - // some other alternative). return sizeT; } |
