aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/java/org/shedlang/compiler/backends/targets/WasmTarget.java9
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;
}