Package me.topchetoeu.j2s.compilation
Class CompileResult
java.lang.Object
me.topchetoeu.j2s.compilation.CompileResult
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal List<CompileResult>
final Map<FunctionNode,
Integer> final Map<FunctionNode,
CompileResult> static final me.topchetoeu.j2s.common.Key<Void>
final me.topchetoeu.j2s.common.Environment
final List<me.topchetoeu.j2s.common.Instruction>
int
final FunctionScope
-
Constructor Summary
ConstructorsConstructorDescriptionCompileResult
(me.topchetoeu.j2s.common.Environment env, FunctionScope scope, int length) -
Method Summary
Modifier and TypeMethodDescriptionadd
(me.topchetoeu.j2s.common.Instruction instr) addChild
(FunctionNode node, CompileResult res) all()
me.topchetoeu.j2s.common.FunctionBody
body()
me.topchetoeu.j2s.common.Instruction[]
map()
rootEnvironment
(me.topchetoeu.j2s.common.Key<me.topchetoeu.j2s.common.Environment> env) Returns a compile result with a child of the environment that relates to the given key.set
(int i, me.topchetoeu.j2s.common.Instruction instr) void
setDebug
(me.topchetoeu.j2s.common.Instruction.BreakpointType type) void
setDebug
(me.topchetoeu.j2s.common.Location loc, me.topchetoeu.j2s.common.Instruction.BreakpointType type) setEnvironment
(me.topchetoeu.j2s.common.Environment env) void
setLocation
(int i, me.topchetoeu.j2s.common.Location loc) void
setLocation
(me.topchetoeu.j2s.common.Location type) void
setLocationAndDebug
(int i, me.topchetoeu.j2s.common.Location loc, me.topchetoeu.j2s.common.Instruction.BreakpointType type) void
setLocationAndDebug
(me.topchetoeu.j2s.common.Location loc, me.topchetoeu.j2s.common.Instruction.BreakpointType type) int
size()
int
temp()
-
Field Details
-
DEBUG_LOG
-
instructions
-
children
-
childrenMap
-
childrenIndices
-
map
-
env
public final me.topchetoeu.j2s.common.Environment env -
length
public int length -
scope
-
catchBindings
-
-
Constructor Details
-
CompileResult
-
-
Method Details
-
temp
public int temp() -
add
-
set
-
size
public int size() -
setDebug
public void setDebug(me.topchetoeu.j2s.common.Location loc, me.topchetoeu.j2s.common.Instruction.BreakpointType type) -
setLocation
public void setLocation(int i, me.topchetoeu.j2s.common.Location loc) -
setLocationAndDebug
public void setLocationAndDebug(int i, me.topchetoeu.j2s.common.Location loc, me.topchetoeu.j2s.common.Instruction.BreakpointType type) -
setDebug
public void setDebug(me.topchetoeu.j2s.common.Instruction.BreakpointType type) -
setLocation
public void setLocation(me.topchetoeu.j2s.common.Location type) -
setLocationAndDebug
public void setLocationAndDebug(me.topchetoeu.j2s.common.Location loc, me.topchetoeu.j2s.common.Instruction.BreakpointType type) -
all
-
addChild
-
instructions
public me.topchetoeu.j2s.common.Instruction[] instructions() -
map
public CompilationFunctionMap map(Function<me.topchetoeu.j2s.common.Location, me.topchetoeu.j2s.common.Location> mapper) -
map
-
body
public me.topchetoeu.j2s.common.FunctionBody body() -
subtarget
-
setEnvironment
-
rootEnvironment
public CompileResult rootEnvironment(me.topchetoeu.j2s.common.Key<me.topchetoeu.j2s.common.Environment> env) Returns a compile result with a child of the environment that relates to the given key. In essence, this is used to create a compile result which is back at the root environment of the compilation -
subEnvironment
-