mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 00:04:10 -08:00
Got it to compile to WASM
This commit is contained in:
parent
d86ab08843
commit
e204a0ecd0
|
@ -129,7 +129,8 @@ public class WasmGCTypeMapper {
|
|||
}
|
||||
if (result == null) {
|
||||
if (className.equals(Address.class.getName())) {
|
||||
typeCache.put(className, WasmType.INT32);
|
||||
result = WasmType.INT32;
|
||||
typeCache.put(className, result);
|
||||
} else {
|
||||
var cls = classes.get(className);
|
||||
if (cls == null) {
|
||||
|
|
|
@ -187,9 +187,8 @@ public class WasmGCIntrinsics implements WasmGCIntrinsicProvider {
|
|||
|
||||
private void fillLaxMalloc() {
|
||||
laxMallocIntrinsic = new LaxMallocIntrinsic();
|
||||
add(new MethodReference(LaxMalloc.class, "laxMalloc", int.class, Address.class), laxMallocIntrinsic);
|
||||
add(new MethodReference(LaxMalloc.class, "laxCalloc", int.class, Address.class), laxMallocIntrinsic);
|
||||
add(new MethodReference(LaxMalloc.class, "laxFree", Address.class, void.class), laxMallocIntrinsic);
|
||||
add(new MethodReference(LaxMalloc.class, "addrHeap", int.class, Address.class), laxMallocIntrinsic);
|
||||
add(new MethodReference(LaxMalloc.class, "growHeapOuter", int.class, int.class), laxMallocIntrinsic);
|
||||
add(new MethodReference(LaxMalloc.class, "getHeapMinAddr", Address.class), laxMallocIntrinsic);
|
||||
add(new MethodReference(LaxMalloc.class, "getHeapMaxAddr", Address.class), laxMallocIntrinsic);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user