Package asteroid

Class Phase.LOCAL

  • Enclosing class:
    Phase

    public static class Phase.LOCAL
    extends Object
    Compilation phases available for local transformations. Local transformations are only allowed to access compilation phases from SEMANTIC_ANALYSIS to FINALIZATION. Ealier compilation phases are only allowed to be access by global transformations. The compilation order is:

    • SEMANTIC_ANALYSIS
    • CANONICALIZATION
    • INSTRUCTION_SELECTION
    • CLASS_GENERATION
    • OUTPUT
    • FINALIZATION
    Since:
    0.2.0
    • Field Detail

      • SEMANTIC_ANALYSIS

        public static final CompilePhase SEMANTIC_ANALYSIS
        Consistency and validity checks
        Since:
        0.2.0
      • CANONICALIZATION

        public static final CompilePhase CANONICALIZATION
        Complete building the AST
        Since:
        0.2.0
      • INSTRUCTION_SELECTION

        public static final CompilePhase INSTRUCTION_SELECTION
        Instruction set is chosen, for example Java 6 or Java 7 bytecode level
        Since:
        0.2.0
      • CLASS_GENERATION

        public static final CompilePhase CLASS_GENERATION
        Creates the bytecode of the class in memory
        Since:
        0.2.0
      • OUTPUT

        public static final CompilePhase OUTPUT
        Write the binary output to the file system (*.class file)
        Since:
        0.2.0
      • FINALIZATION

        public static final CompilePhase FINALIZATION
        Perform any last cleanup and closes the file
        Since:
        0.2.0
    • Constructor Detail

      • LOCAL

        public LOCAL()