mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 08:14:09 -08:00
Make Address class compile to an i32
This commit is contained in:
parent
0d8baace3d
commit
f62a80a1d8
|
@ -24,6 +24,7 @@ import org.teavm.backend.wasm.model.WasmModule;
|
||||||
import org.teavm.backend.wasm.model.WasmPackedType;
|
import org.teavm.backend.wasm.model.WasmPackedType;
|
||||||
import org.teavm.backend.wasm.model.WasmStorageType;
|
import org.teavm.backend.wasm.model.WasmStorageType;
|
||||||
import org.teavm.backend.wasm.model.WasmType;
|
import org.teavm.backend.wasm.model.WasmType;
|
||||||
|
import org.teavm.interop.Address;
|
||||||
import org.teavm.model.ClassReaderSource;
|
import org.teavm.model.ClassReaderSource;
|
||||||
import org.teavm.model.MethodDescriptor;
|
import org.teavm.model.MethodDescriptor;
|
||||||
import org.teavm.model.ValueType;
|
import org.teavm.model.ValueType;
|
||||||
|
@ -127,12 +128,16 @@ public class WasmGCTypeMapper {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (result == null) {
|
if (result == null) {
|
||||||
var cls = classes.get(className);
|
if(className.equals(Address.class.getName())) {
|
||||||
if (cls == null) {
|
typeCache.put(className, WasmType.INT32);
|
||||||
className = "java.lang.Object";
|
}else {
|
||||||
|
var cls = classes.get(className);
|
||||||
|
if (cls == null) {
|
||||||
|
className = "java.lang.Object";
|
||||||
|
}
|
||||||
|
result = classInfoProvider.getClassInfo(className).getType();
|
||||||
|
typeCache.put(className, result);
|
||||||
}
|
}
|
||||||
result = classInfoProvider.getClassInfo(className).getType();
|
|
||||||
typeCache.put(className, result);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user