Uses of Class
de.inetsoftware.jwebassembly.module.FunctionName
-
Packages that use FunctionName Package Description de.inetsoftware.jwebassembly.binary de.inetsoftware.jwebassembly.javascript de.inetsoftware.jwebassembly.module de.inetsoftware.jwebassembly.text -
-
Uses of FunctionName in de.inetsoftware.jwebassembly.binary
Fields in de.inetsoftware.jwebassembly.binary declared as FunctionName Modifier and Type Field Description private FunctionName
BinaryModuleWriter. startFunction
Methods in de.inetsoftware.jwebassembly.binary with parameters of type FunctionName Modifier and Type Method Description private Function
BinaryModuleWriter. getFunction(FunctionName name)
Get the function object for the name.protected void
BinaryModuleWriter. prepareImport(FunctionName name, java.lang.String importModule, java.lang.String importName)
Prepare a imported single function in the prepare phase.protected void
BinaryModuleWriter. writeExport(FunctionName name, java.lang.String exportName)
Write an export directiveprotected void
BinaryModuleWriter. writeFunctionCall(FunctionName name, java.lang.String comments)
Write a call to a function.protected void
BinaryModuleWriter. writeGlobalAccess(boolean load, FunctionName name, AnyType type)
Write a global variable operationprotected void
BinaryModuleWriter. writeMethodParamFinish(FunctionName name)
Finish the function parameter.protected void
BinaryModuleWriter. writeMethodParamStart(FunctionName name, FunctionType funcType)
Write the method header.protected void
BinaryModuleWriter. writeMethodStart(FunctionName name, java.lang.String sourceFile)
Start the writing of method/function code.protected void
BinaryModuleWriter. writeVirtualFunctionCall(FunctionName name, AnyType type)
Write a function call to an instance function. -
Uses of FunctionName in de.inetsoftware.jwebassembly.javascript
Subclasses of FunctionName in de.inetsoftware.jwebassembly.javascript Modifier and Type Class Description class
JavaScriptSyntheticFunctionName
Synthetic JavaScript import function. -
Uses of FunctionName in de.inetsoftware.jwebassembly.module
Subclasses of FunctionName in de.inetsoftware.jwebassembly.module Modifier and Type Class Description class
ArraySyntheticFunctionName
Synthetic/dynamic method with a signature as array of types.(package private) class
ImportSyntheticFunctionName
Synthetic/dynamic method based on import annotation.class
MultiArrayFunctionName
Synthetic functions for creating multidimensional dimensional arraysclass
SyntheticFunctionName
Synthetic/dynamic method.(package private) class
WatCodeSyntheticFunctionName
Synthetic/dynamic method based on WAT code (WASM in text form).Fields in de.inetsoftware.jwebassembly.module declared as FunctionName Modifier and Type Field Description private FunctionName
FunctionManager.FunctionState. alias
private FunctionName
WasmOptions. callInterface
private FunctionName
WasmOptions. callVirtual
private static FunctionName
TypeManager. CLASS_CONSTANT_FUNCTION
private FunctionName
WasmGlobalInstruction. clinit
private FunctionName
WasmOptions. get_i32
private FunctionName
TypeManager.LambdaType. methodName
private FunctionName
StaticCodeBuilder.ScanState. name
private FunctionName
WasmCallInstruction. name
private FunctionName
WasmGlobalInstruction. name
FunctionName
WasmOptions. ref_eq
NonGC function for ref_eq polyfill.private FunctionName
StringManager. stringConstantFunction
Fields in de.inetsoftware.jwebassembly.module with type parameters of type FunctionName Modifier and Type Field Description private java.util.Map<TypeManager.StructType,java.util.List<FunctionName>>
TypeManager.StructType. interfaceMethods
private java.util.Map<FunctionName,FunctionManager.FunctionState>
FunctionManager. states
private java.util.List<FunctionName>
TypeManager.StructType. vtable
Methods in de.inetsoftware.jwebassembly.module that return FunctionName Modifier and Type Method Description (package private) FunctionName
StaticCodeBuilder. createStartFunction(java.util.Iterator<FunctionName> writeLaterClinit)
Create a start function for the static class constructors(package private) FunctionName
WasmOptions. getCallInterface()
Get the FunctionName for a virtual call and mark it as used.(package private) FunctionName
WasmOptions. getCallVirtual()
Get the FunctionName for a virtual call and mark it as used.(package private) FunctionName
TypeManager. getClassConstantFunction()
Get the function name to get a constant class.(package private) FunctionName
WasmGlobalInstruction. getFieldName()
The name of the field(package private) FunctionName
WasmCallInstruction. getFunctionName()
Get the function name that should be called(package private) FunctionName
TypeManager.LambdaType. getLambdaMethod()
The real method in the parent class that implements the lambda expressionprivate FunctionName
WasmCodeBuilder. getNonGC(java.lang.String name, int lineNumber)
Get a non GC polyfill function.(package private) FunctionName
StringManager. getStringConstantFunction()
Get the function name object for the#stringConstant(int)
.(package private) FunctionName
FunctionManager. markAsNeeded(FunctionName name, boolean needThisParameter)
Mark a function as used/called and return the real name if there is an alias.(package private) FunctionName
FunctionManager. nextScannLater()
Get the first FunctionName that is required but was not scanned.Methods in de.inetsoftware.jwebassembly.module that return types with arguments of type FunctionName Modifier and Type Method Description (package private) java.util.Iterator<FunctionName>
FunctionManager. getAbstractedFunctions()
Get all FunctionNames that are abstract and used.(package private) java.util.Iterator<FunctionName>
FunctionManager. getNeededImports()
Get all FunctionNames that need imported(package private) java.util.Iterator<FunctionName>
FunctionManager. getWriteLater()
Get all FunctionName that is required but was not written.(package private) java.util.Iterator<FunctionName>
FunctionManager. getWriteLaterClinit()
Get all static constructor FunctionName of used classes.private java.util.Iterator<FunctionName>
FunctionManager. iterator(java.util.function.Predicate<java.util.Map.Entry<FunctionName,FunctionManager.FunctionState>> filter)
get a iterator for function namesMethods in de.inetsoftware.jwebassembly.module with parameters of type FunctionName Modifier and Type Method Description protected void
WasmCodeBuilder. addCallInstruction(FunctionName name, boolean needThisParameter, int javaCodePos, int lineNumber)
Add a static function call.protected void
WasmCodeBuilder. addCallInterfaceInstruction(FunctionName name, int javaCodePos, int lineNumber)
Add interface function callprotected void
WasmCodeBuilder. addCallVirtualInstruction(FunctionName name, int javaCodePos, int lineNumber)
Add a virtual/method function call.protected void
WasmCodeBuilder. addGlobalInstruction(boolean load, FunctionName name, AnyType type, FunctionName clinit, int javaCodePos, int lineNumber)
Add a global instructionprivate void
TypeManager.StructType. addOrUpdateVTable(FunctionManager functions, FunctionName funcName, boolean isDefault)
Add the function to the vtable or replace if already exists(package private) void
FunctionManager. addReplacement(FunctionName name, MethodInfo method)
Add a replacement for a method(package private) java.util.function.Function<java.lang.String,java.lang.Object>
FunctionManager. getImportAnannotation(FunctionName name)
Get the annotation of an import function(package private) int
FunctionManager. getITableIndex(FunctionName name)
Get the index of a function in an interface.private FunctionManager.FunctionState
FunctionManager. getOrCreate(FunctionName name)
Get an existing state or create one.(package private) int
FunctionManager. getVTableIndex(FunctionName name)
Get the index of a virtual function in a type.(package private) boolean
FunctionManager. isKnown(FunctionName name)
Check if this function is already known/registered.(package private) boolean
FunctionManager. isUsed(FunctionName name)
Test if the function is called anywhere.(package private) void
FunctionManager. markAsAbstract(FunctionName name)
Mark the a function as abstract or interface.(package private) void
FunctionManager. markAsImport(FunctionName name, java.util.function.Function<java.lang.String,java.lang.Object> importAnannotation)
Mark the a function as a import function.(package private) void
FunctionManager. markAsImport(FunctionName name, java.util.Map<java.lang.String,java.lang.Object> importAnannotation)
Mark the a function as a import function.(package private) FunctionName
FunctionManager. markAsNeeded(FunctionName name, boolean needThisParameter)
Mark a function as used/called and return the real name if there is an alias.(package private) void
FunctionManager. markAsScanned(FunctionName name)
Mark the a function as scanned in the prepare phase.(package private) void
FunctionManager. markAsWritten(FunctionName name)
Mark the a function as written to the wasm file.(package private) boolean
FunctionManager. needThisParameter(FunctionName name)
If this function need additional to the parameter of the signature an extra "this" parameter.(package private) boolean
FunctionManager. needToScan(FunctionName name)
if the given function is required but was not scanned.(package private) boolean
FunctionManager. needToWrite(FunctionName name)
if the given function is required but was not written.protected abstract void
ModuleWriter. prepareImport(FunctionName name, java.lang.String importModule, java.lang.String importName)
Prepare a imported single function in the prepare phase.(package private) MethodInfo
FunctionManager. replace(FunctionName name, MethodInfo method)
Check if there is a replacement methodprivate StaticCodeBuilder.ScanState
StaticCodeBuilder. scan(FunctionName name, java.util.LinkedHashMap<java.lang.String,FunctionName> constructors)
Scan for for references to other classesprivate boolean
ModuleGenerator. scanFunctionInterfaces(ClassFile classFile, FunctionName next)
Search if there is a default implementation in an interface for the given method.(package private) void
FunctionManager. setAlias(FunctionName name, FunctionName alias)
Set an alias for the method.(package private) void
FunctionManager. setITableIndex(FunctionName name, int itableIdx)
Set the index of a function in an interface.(package private) void
FunctionManager. setVTableIndex(FunctionName name, int vtableIdx)
Set the index of a virtual function in a type.private void
ModuleGenerator. writeExport(FunctionName name, MethodInfo method)
Look for a Export annotation and if there write an export directive.protected abstract void
ModuleWriter. writeExport(FunctionName name, java.lang.String exportName)
Write an export directiveprotected abstract void
ModuleWriter. writeFunctionCall(FunctionName name, java.lang.String comment)
Write a call to a function.protected abstract void
ModuleWriter. writeGlobalAccess(boolean load, FunctionName name, AnyType type)
Write a global variable operationprivate void
ModuleGenerator. writeMethod(FunctionName name, MethodInfo method)
Write the content of a method.private void
ModuleGenerator. writeMethodImpl(FunctionName name, WasmCodeBuilder codeBuilder)
Write the method instruction to the Wasm writer.protected abstract void
ModuleWriter. writeMethodParamFinish(FunctionName name)
Finish the function parameter.protected abstract void
ModuleWriter. writeMethodParamStart(FunctionName name, FunctionType funcType)
Write the method header.private void
ModuleGenerator. writeMethodSignature(FunctionName name, FunctionType funcType, WasmCodeBuilder codeBuilder)
Write the parameter and return signaturesprotected abstract void
ModuleWriter. writeMethodStart(FunctionName name, java.lang.String sourceFile)
Start the writing of method/function code.protected abstract void
ModuleWriter. writeVirtualFunctionCall(FunctionName name, AnyType type)
Write a function call to an instance function.Method parameters in de.inetsoftware.jwebassembly.module with type arguments of type FunctionName Modifier and Type Method Description (package private) FunctionName
StaticCodeBuilder. createStartFunction(java.util.Iterator<FunctionName> writeLaterClinit)
Create a start function for the static class constructorsprivate java.util.Iterator<FunctionName>
FunctionManager. iterator(java.util.function.Predicate<java.util.Map.Entry<FunctionName,FunctionManager.FunctionState>> filter)
get a iterator for function namesprivate StaticCodeBuilder.ScanState
StaticCodeBuilder. scan(FunctionName name, java.util.LinkedHashMap<java.lang.String,FunctionName> constructors)
Scan for for references to other classesvoid
TypeManager.StructType. writeToStream(java.io.ByteArrayOutputStream dataStream, java.util.function.ToIntFunction<FunctionName> getFunctionsID, WasmOptions options)
Write the struct/class meta data to the datastream and set the offset position.Constructors in de.inetsoftware.jwebassembly.module with parameters of type FunctionName Constructor Description LambdaType(java.lang.String name, BootstrapMethod method, java.util.ArrayList<AnyType> params, TypeManager.StructType interfaceType, FunctionName syntheticLambdaFunctionName, java.lang.String interfaceMethodName, TypeManager manager)
Create a lambda typeWasmCallIndirectInstruction(FunctionName name, int javaCodePos, int lineNumber, TypeManager types)
Create an instance of a function call instructionWasmCallInstruction(FunctionName name, int javaCodePos, int lineNumber, TypeManager types, boolean needThisParameter)
Create an instance of a function call instructionWasmCallInstruction(FunctionName name, int javaCodePos, int lineNumber, TypeManager types, boolean needThisParameter, java.lang.String comment)
Create an instance of a function call instructionWasmCallInterfaceInstruction(FunctionName name, int javaCodePos, int lineNumber, TypeManager types, WasmOptions options)
Create an instance of a function call instructionWasmCallVirtualInstruction(FunctionName name, int javaCodePos, int lineNumber, TypeManager types, WasmOptions options)
Create an instance of a function call instructionWasmGlobalInstruction(boolean load, FunctionName name, AnyType type, FunctionName clinit, int javaCodePos, int lineNumber)
Create an instance of a load/store instruction -
Uses of FunctionName in de.inetsoftware.jwebassembly.text
Methods in de.inetsoftware.jwebassembly.text with parameters of type FunctionName Modifier and Type Method Description private Function
TextModuleWriter. getFunction(FunctionName name)
private java.lang.String
TextModuleWriter. normalizeName(FunctionName name)
Normalize the function name for the text formatprotected void
TextModuleWriter. prepareImport(FunctionName name, java.lang.String importModule, java.lang.String importName)
Prepare a imported single function in the prepare phase.protected void
TextModuleWriter. writeExport(FunctionName name, java.lang.String exportName)
Write an export directiveprotected void
TextModuleWriter. writeFunctionCall(FunctionName name, java.lang.String comment)
Write a call to a function.protected void
TextModuleWriter. writeGlobalAccess(boolean load, FunctionName name, AnyType type)
Write a global variable operationprotected void
TextModuleWriter. writeMethodParamFinish(FunctionName name)
Finish the function parameter.protected void
TextModuleWriter. writeMethodParamStart(FunctionName name, FunctionType funcType)
Write the method header.protected void
TextModuleWriter. writeMethodStart(FunctionName name, java.lang.String sourceFile)
Start the writing of method/function code.protected void
TextModuleWriter. writeVirtualFunctionCall(FunctionName name, AnyType type)
Write a function call to an instance function.
-