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
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
+(other: String): String
- Implicit
- This member is added by an implicit conversion from BCodePhase to any2stringadd[BCodePhase] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
-
def
->[B](y: B): (BCodePhase, B)
- Implicit
- This member is added by an implicit conversion from BCodePhase to ArrowAssoc[BCodePhase] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
apply(cunit: Global.CompilationUnit): Unit
- Definition Classes
- BCodePhase → GlobalPhase
-
final
def
applyPhase(unit: Global.CompilationUnit): Unit
- Definition Classes
- GlobalPhase
- var arrivalPos: Int
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
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
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
description: String
- Definition Classes
- BCodePhase → Phase
-
def
ensuring(cond: (BCodePhase) ⇒ Boolean, msg: ⇒ Any): BCodePhase
- Implicit
- This member is added by an implicit conversion from BCodePhase to Ensuring[BCodePhase] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: (BCodePhase) ⇒ Boolean): BCodePhase
- Implicit
- This member is added by an implicit conversion from BCodePhase to Ensuring[BCodePhase] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean, msg: ⇒ Any): BCodePhase
- Implicit
- This member is added by an implicit conversion from BCodePhase to Ensuring[BCodePhase] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean): BCodePhase
- Implicit
- This member is added by an implicit conversion from BCodePhase to Ensuring[BCodePhase] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(other: Any): Boolean
- Definition Classes
- Phase → AnyRef → Any
-
def
erasedTypes: Boolean
- Definition Classes
- BCodePhase → Phase
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
flagMask: Long
- Definition Classes
- Phase
-
final
val
flatClasses: Boolean
- Definition Classes
- Phase
-
val
fmask: Long
- Definition Classes
- Phase
-
def
formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from BCodePhase to StringFormat[BCodePhase] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hasNext: Boolean
- Definition Classes
- Phase
-
def
hashCode(): Int
- Definition Classes
- Phase → AnyRef → Any
-
val
id: Id
- Definition Classes
- Phase
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
iterator: collection.Iterator[reflect.internal.Phase]
- Definition Classes
- Phase
-
def
keepsTypeParams: Boolean
- Definition Classes
- Phase
-
def
name: String
- Definition Classes
- BCodePhase → StdPhase → Phase
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
newFlags: Long
- Definition Classes
- StdPhase → Phase
-
def
next: reflect.internal.Phase
- Definition Classes
- Phase
-
def
nextFlags: Long
- Definition Classes
- StdPhase → Phase
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
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
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- Phase → AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
withCurrentUnit(unit: Global.CompilationUnit)(task: ⇒ Unit): Unit
- Definition Classes
- GlobalPhase
-
final
def
withCurrentUnitNoLog(unit: Global.CompilationUnit)(task: ⇒ Unit): Unit
- Definition Classes
- GlobalPhase
-
def
→[B](y: B): (BCodePhase, B)
- Implicit
- This member is added by an implicit conversion from BCodePhase to ArrowAssoc[BCodePhase] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
The Scala compiler and reflection APIs.