mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2025-01-09 00:14:10 -08:00
Fix bug in WASM backend
This commit is contained in:
parent
8a91605c56
commit
70cb67c8f0
|
@ -283,15 +283,18 @@ public class WasmClassGenerator {
|
||||||
|
|
||||||
ClassReader cls = processedClassSource.get(name);
|
ClassReader cls = processedClassSource.get(name);
|
||||||
|
|
||||||
if (cls.getSimpleName() != null) {
|
if (cls != null) {
|
||||||
header.setAddress(CLASS_SIMPLE_NAME, stringPool.getStringPointer(cls.getSimpleName()));
|
if (cls.getSimpleName() != null) {
|
||||||
}
|
header.setAddress(CLASS_SIMPLE_NAME, stringPool.getStringPointer(cls.getSimpleName()));
|
||||||
|
}
|
||||||
|
|
||||||
if (cls.getOwnerName() != null && processedClassSource.get(cls.getOwnerName()) != null) {
|
if (cls.getOwnerName() != null && processedClassSource.get(cls.getOwnerName()) != null) {
|
||||||
header.setAddress(CLASS_ENCLOSING_CLASS, getClassPointer(ValueType.object(cls.getOwnerName())));
|
header.setAddress(CLASS_ENCLOSING_CLASS, getClassPointer(ValueType.object(cls.getOwnerName())));
|
||||||
}
|
}
|
||||||
if (cls.getDeclaringClassName() != null && processedClassSource.get(cls.getDeclaringClassName()) != null) {
|
if (cls.getDeclaringClassName() != null && processedClassSource.get(cls.getDeclaringClassName()) != null) {
|
||||||
header.setAddress(CLASS_DECLARING_CLASS, getClassPointer(ValueType.object(cls.getDeclaringClassName())));
|
header.setAddress(CLASS_DECLARING_CLASS,
|
||||||
|
getClassPointer(ValueType.object(cls.getDeclaringClassName())));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (vtable != null) {
|
if (vtable != null) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user