class BCodePhase extends StdPhase
- Alphabetic
- By Inheritance
- BCodePhase
- StdPhase
- GlobalPhase
- Phase
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Type Members
-
type
Id = Int
- Definition Classes
- Phase
- case class Item1 (arrivalPos: Int, cd: Global.ClassDef, cunit: Global.CompilationUnit) extends Product with Serializable
- case class Item2 (arrivalPos: Int, mirror: ClassNode, plain: ClassNode, bean: ClassNode, sourceFilePath: String, outFolder: AbstractFile) extends Product with Serializable
- case class Item3 (arrivalPos: Int, mirror: SubItem3, plain: SubItem3, bean: SubItem3, outFolder: AbstractFile) extends Product with Serializable
- case class SubItem3 (jclassName: String, jclassBytes: Array[Byte]) extends Product with Serializable
- class Worker1 extends AnyRef
- class Worker2 extends AnyRef
Value Members
-
def
apply(cunit: Global.CompilationUnit): Unit
- Definition Classes
- BCodePhase → GlobalPhase
-
final
def
applyPhase(unit: Global.CompilationUnit): Unit
- Definition Classes
- GlobalPhase
- var arrivalPos: Int
-
final
val
assignsFields: Boolean
- Definition Classes
- Phase
-
def
cancelled(unit: Global.CompilationUnit): Boolean
Is current phase cancelled on this unit?
Is current phase cancelled on this unit?
- Definition Classes
- GlobalPhase
-
def
checkable: Boolean
- Definition Classes
- Phase
-
def
description: String
- Definition Classes
- BCodePhase → Phase
-
def
equals(other: Any): Boolean
- Definition Classes
- Phase → AnyRef → Any
-
def
erasedTypes: Boolean
- Definition Classes
- BCodePhase → Phase
-
def
flagMask: Long
- Definition Classes
- Phase
-
final
val
flatClasses: Boolean
- Definition Classes
- Phase
-
val
fmask: Long
- Definition Classes
- Phase
-
def
hasNext: Boolean
- Definition Classes
- Phase
-
def
hashCode(): Int
- Definition Classes
- Phase → AnyRef → Any
-
val
id: Id
- Definition Classes
- Phase
-
def
iterator: collection.Iterator[reflect.internal.Phase]
- Definition Classes
- Phase
-
def
keepsTypeParams: Boolean
- Definition Classes
- Phase
-
def
name: String
- Definition Classes
- BCodePhase → StdPhase → Phase
-
def
newFlags: Long
- Definition Classes
- StdPhase → Phase
-
def
next: reflect.internal.Phase
- Definition Classes
- Phase
-
def
nextFlags: Long
- Definition Classes
- StdPhase → Phase
-
val
prev: reflect.internal.Phase
- Definition Classes
- Phase
-
final
val
refChecked: Boolean
- Definition Classes
- Phase
-
def
run(): Unit
The
run
method is overridden because the backend has a different data flow than the default phase: the backend does not transform compilation units one by one, but on all units in the same run.The
run
method is overridden because the backend has a different data flow than the default phase: the backend does not transform compilation units one by one, but on all units in the same run. This allows cross-unit optimizations and running some stages of the backend concurrently on multiple units.A run of the BCodePhase phase comprises:
(a) set-up steps (most notably supporting maps in
BCodeTypes
, but also "the" writer where class files in byte-array form go)(b) building of ASM ClassNodes, their optimization and serialization.
(c) tear down (closing the classfile-writer and clearing maps)
- Definition Classes
- BCodePhase → GlobalPhase → Phase
-
final
val
specialized: Boolean
- Definition Classes
- Phase
-
def
toString(): String
- Definition Classes
- Phase → AnyRef → Any
-
final
def
withCurrentUnit(unit: Global.CompilationUnit)(task: ⇒ Unit): Unit
- Definition Classes
- GlobalPhase
-
final
def
withCurrentUnitNoLog(unit: Global.CompilationUnit)(task: ⇒ Unit): Unit
- Definition Classes
- GlobalPhase
The Scala compiler and reflection APIs.