Class CompileResult

java.lang.Object
me.topchetoeu.j2s.compilation.CompileResult

public final class CompileResult extends Object
  • Field Details

  • Constructor Details

    • CompileResult

      public CompileResult(me.topchetoeu.j2s.common.Environment env, FunctionScope scope, int length)
  • Method Details

    • temp

      public int temp()
    • add

      public CompileResult add(me.topchetoeu.j2s.common.Instruction instr)
    • set

      public CompileResult set(int i, me.topchetoeu.j2s.common.Instruction instr)
    • 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

      public Iterable<CompileResult> all()
    • addChild

      public CompileResult addChild(FunctionNode node, CompileResult res)
    • 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

      public CompilationFunctionMap map()
    • body

      public me.topchetoeu.j2s.common.FunctionBody body()
    • subtarget

      public CompileResult subtarget()
    • setEnvironment

      public CompileResult setEnvironment(me.topchetoeu.j2s.common.Environment env)
    • 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

      public CompileResult subEnvironment()