mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-15 18:44:47 +01:00
add field vtable
This commit is contained in:
parent
5691446195
commit
5826d6dded
@ -314,6 +314,8 @@ public class ModuleGenerator {
|
||||
if( superClass != null ) {
|
||||
String superClassName = superClass.getName();
|
||||
listStructFields( superClassName, list );
|
||||
} else {
|
||||
list.add( new NamedStorageType( ValueType.i32, className, ".vtable" ) );
|
||||
}
|
||||
|
||||
for( FieldInfo field : classFile.getFields() ) {
|
||||
|
@ -71,7 +71,21 @@ public class NamedStorageType {
|
||||
* the type manager
|
||||
*/
|
||||
private NamedStorageType( String type, String className, String name, TypeManager types ) {
|
||||
this.type = new ValueTypeParser( type, types ).next();
|
||||
this( new ValueTypeParser( type, types ).next(), className, name );
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new instance
|
||||
*
|
||||
* @param type
|
||||
* the type
|
||||
* @param className
|
||||
* the class name
|
||||
* @param name
|
||||
* the name
|
||||
*/
|
||||
public NamedStorageType( AnyType type, String className, String name ) {
|
||||
this.type = type;
|
||||
this.className = className;
|
||||
this.name = name;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user