| Package | Description |
|---|---|
| org.classdump.luna.compiler |
Core compiler classes.
|
| org.classdump.luna.compiler.gen.asm |
Java bytecode generation using the ASM library.
|
| Modifier and Type | Method and Description |
|---|---|
static CompilerSettings |
CompilerSettings.defaultNoAccountingSettings()
Returns the default compiler settings without CPU accounting.
|
static CompilerSettings |
CompilerSettings.defaultSettings()
Returns the default compiler settings.
|
static CompilerSettings |
CompilerSettings.of(CompilerSettings.CPUAccountingMode cpuAccountingMode,
boolean constFolding,
boolean constCaching,
boolean byteStrings,
int nodeSizeLimit)
Returns the compiler settings with the given parameters.
|
CompilerSettings |
LuaCompiler.settings()
Returns the settings used in this compiler instance.
|
CompilerSettings |
CompilerSettings.withByteStrings(boolean mode)
Returns compiler settings derived from this compiler settings by updating
the byte string mode to
mode. |
CompilerSettings |
CompilerSettings.withConstCaching(boolean mode)
Returns compiler settings derived from this compiler settings by updating
the const caching mode to
mode. |
CompilerSettings |
CompilerSettings.withConstFolding(boolean mode)
Returns compiler settings derived from this compiler settings by updating
the const folding mode to
mode. |
CompilerSettings |
CompilerSettings.withCPUAccountingMode(CompilerSettings.CPUAccountingMode mode)
Returns compiler settings derived from this compiler settings by updating
the CPU accounting mode to
mode. |
CompilerSettings |
CompilerSettings.withNodeSizeLimit(int limit)
Returns compiler settings derived from this compiler settings by updating
the node size limit to
limit. |
| Modifier and Type | Method and Description |
|---|---|
static CompilerChunkLoader |
CompilerChunkLoader.of(ClassLoader classLoader,
CompilerSettings compilerSettings,
String rootClassPrefix)
Returns a new instance of
CompilerChunkLoader that uses the specified
class loader classLoader to load classes it compiles using a new instance
of the Lua compiler with the settings compilerSettings,
with every main chunk class having the class name rootClassPrefix followed
by a monotonically-increasing integer suffix. |
static CompilerChunkLoader |
CompilerChunkLoader.of(CompilerSettings compilerSettings,
String rootClassPrefix)
Returns a new instance of
CompilerChunkLoader that uses the class loader
that loaded the CompilerChunkLoader class to load classes it compiles using
a new instance of the Lua compiler with the settings compilerSettings,
with every main chunk class having the class name rootClassPrefix followed
by a monotonically-increasing integer suffix. |
| Constructor and Description |
|---|
LuaCompiler(CompilerSettings settings)
Constructs a new compiler instance with the given settings.
|
| Modifier and Type | Field and Description |
|---|---|
CompilerSettings |
ASMBytecodeEmitter.compilerSettings |
| Constructor and Description |
|---|
ASMBytecodeEmitter(IRFunc fn,
SlotAllocInfo slots,
TypeInfo types,
DependencyInfo deps,
CompilerSettings compilerSettings,
ClassNameTranslator classNameTranslator,
String sourceFile) |
Copyright © 2016–2017. All rights reserved.