Class ASMUtil
java.lang.Object
com.bradyrussell.uiscoin.lang.compiler.ASMUtil
public class ASMUtil
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description static boolean
bNoComments
static CompilerFileSystem
defaultFileSystem
-
Constructor Summary
Constructors Constructor Description ASMUtil()
-
Method Summary
Modifier and Type Method Description static java.lang.String
compileHLLToASM(java.lang.String HLL)
static java.lang.String
compileHLLToASM(java.lang.String HLL, CompilerFileSystem fileSystem)
static java.lang.String
compileHLLToSyntaxMarkup(java.lang.String HLL)
static java.lang.String
generateCastAssembly(PrimitiveType From, PrimitiveType To)
static java.lang.String
generateComment(java.lang.String Comment)
static java.lang.String
generateExecuteZippedASM(java.lang.String ASM)
static java.lang.String
generateExecuteZippedBytecode(byte[] ZippedByteCode)
static java.lang.String
generateLoadAddress(int Address)
static java.lang.String
generateLoadArrayElement(int StackElementAddress, java.lang.String ArrayIndexExpressionCastedToIntASM, int SizeOfElement)
static java.lang.String
generatePushASMString(java.lang.String ASMString)
static java.lang.String
generatePushNumberLiteralCast(long LiteralInteger, PrimitiveType CastToType)
static java.lang.String
generatePushNumberLiteralCast(java.lang.String NumberLiteralString, PrimitiveType CastToType)
static java.lang.String
generateStoreAddress(int Address)
static java.lang.String
generateStoreArrayElement(int StackElementAddress, java.lang.String ArrayIndexExpressionCastedToIntASM, int SizeOfElement)
static java.lang.String
performBasicOptimizations(java.lang.String ASMString)
static java.lang.String
resolveIncludes(java.lang.String HLL, CompilerFileSystem fileSystem)
static java.lang.String
resolveIncludes(java.lang.String HLL, CompilerFileSystem fileSystem, int maximumDepth)
-
Field Details
-
bNoComments
public static boolean bNoComments -
defaultFileSystem
-
-
Constructor Details
-
ASMUtil
public ASMUtil()
-
-
Method Details
-
generateComment
public static java.lang.String generateComment(java.lang.String Comment) -
generateLoadAddress
public static java.lang.String generateLoadAddress(int Address) -
generateStoreAddress
public static java.lang.String generateStoreAddress(int Address) -
generatePushASMString
public static java.lang.String generatePushASMString(java.lang.String ASMString) -
generateExecuteZippedBytecode
public static java.lang.String generateExecuteZippedBytecode(byte[] ZippedByteCode) -
generateExecuteZippedASM
public static java.lang.String generateExecuteZippedASM(java.lang.String ASM) -
generateCastAssembly
-
generatePushNumberLiteralCast
public static java.lang.String generatePushNumberLiteralCast(java.lang.String NumberLiteralString, PrimitiveType CastToType) -
generatePushNumberLiteralCast
public static java.lang.String generatePushNumberLiteralCast(long LiteralInteger, PrimitiveType CastToType) -
performBasicOptimizations
public static java.lang.String performBasicOptimizations(java.lang.String ASMString) -
resolveIncludes
public static java.lang.String resolveIncludes(java.lang.String HLL, CompilerFileSystem fileSystem) -
resolveIncludes
public static java.lang.String resolveIncludes(java.lang.String HLL, CompilerFileSystem fileSystem, int maximumDepth) -
compileHLLToASM
public static java.lang.String compileHLLToASM(java.lang.String HLL) -
compileHLLToASM
public static java.lang.String compileHLLToASM(java.lang.String HLL, CompilerFileSystem fileSystem) -
compileHLLToSyntaxMarkup
public static java.lang.String compileHLLToSyntaxMarkup(java.lang.String HLL) -
generateLoadArrayElement
public static java.lang.String generateLoadArrayElement(int StackElementAddress, java.lang.String ArrayIndexExpressionCastedToIntASM, int SizeOfElement) -
generateStoreArrayElement
public static java.lang.String generateStoreArrayElement(int StackElementAddress, java.lang.String ArrayIndexExpressionCastedToIntASM, int SizeOfElement)
-