scala.tools.nsc.backend.opt.DeadCodeElimination

DeadCode

class DeadCode extends AnyRef

Remove dead code.

Source
DeadCodeElimination.scala
Linear Supertypes
AnyRef, Any
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. DeadCode
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by any2stringfmt
  3. by any2ArrowAssoc
  4. by any2Ensuring
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DeadCode()

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def +(other: String): String

    Implicit information
    This member is added by an implicit conversion from DeadCode to StringAdd performed by method any2stringadd in scala.Predef.
    Definition Classes
    StringAdd
  5. def ->[B](y: B): (DeadCode, B)

    Implicit information
    This member is added by an implicit conversion from DeadCode to ArrowAssoc[DeadCode] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  6. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  7. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  8. var accessedLocals: List[Global.icodes.Local]

    what local variables have been accessed at least once?

  9. def analyzeClass(cls: Global.icodes.IClass): Unit

  10. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  11. val clobbers: Set[(Global.icodes.BasicBlock, Int)]

    Stores that clobber previous stores to array or ref locals.

    Stores that clobber previous stores to array or ref locals. See SI-5313

  12. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  13. def collectRDef(m: Global.icodes.IMethod): Unit

    collect reaching definitions and initial useful instructions for this method.

  14. var defs: Map[(Global.icodes.BasicBlock, Int), Set[(Global.icodes.Local, Global.icodes.BasicBlock, Int)]]

    Use-def chain: give the reaching definitions at the beginning of given instruction.

  15. def dieCodeDie(m: Global.icodes.IMethod): Unit

  16. val dropOf: Map[(Global.icodes.BasicBlock, Int), List[(Global.icodes.BasicBlock, Int)]]

    Map instructions who have a drop on some control path, to that DROP instruction.

  17. def ensuring(cond: (DeadCode) ⇒ Boolean, msg: ⇒ Any): DeadCode

    Implicit information
    This member is added by an implicit conversion from DeadCode to Ensuring[DeadCode] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  18. def ensuring(cond: (DeadCode) ⇒ Boolean): DeadCode

    Implicit information
    This member is added by an implicit conversion from DeadCode to Ensuring[DeadCode] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  19. def ensuring(cond: Boolean, msg: ⇒ Any): DeadCode

    Implicit information
    This member is added by an implicit conversion from DeadCode to Ensuring[DeadCode] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  20. def ensuring(cond: Boolean): DeadCode

    Implicit information
    This member is added by an implicit conversion from DeadCode to Ensuring[DeadCode] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  21. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  22. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  23. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  24. def findClobbers(l: Global.icodes.Local, bb: Global.icodes.BasicBlock, idx: Int): Unit

    Finds and marks all clobbers of the given local starting in the given basic block at the given index

    Finds and marks all clobbers of the given local starting in the given basic block at the given index

    Storing to local variables of reference or array type may be indirectly observable because it may remove a reference to an object which may allow the object to be gc'd. See SI-5313. In this code I call the LOCAL_STORE(s) that immediately follow a LOCAL_STORE and that store to the same local "clobbers." If a LOCAL_STORE is marked useful then its clobbers must go into the set of clobbers, which will be compensated for later

  25. def formatted(fmtstr: String): String

    Implicit information
    This member is added by an implicit conversion from DeadCode to StringFormat performed by method any2stringfmt in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  26. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  27. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  28. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  29. val localStores: Map[(Global.icodes.Local, Global.icodes.BasicBlock), BitSet]

    Map from a local and a basic block to the instructions that store to that local in that basic block

  30. def mark(): Unit

    Mark useful instructions.

    Mark useful instructions. Instructions in the worklist are each inspected and their dependencies are marked useful too, and added to the worklist.

  31. var method: Global.icodes.IMethod

    the current method.

  32. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  33. final def notify(): Unit

    Definition Classes
    AnyRef
  34. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  35. val rdef: icode.ICodes.reachingDefinitions.ReachingDefinitionsAnalysis

  36. def sweep(m: Global.icodes.IMethod): Unit

  37. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  38. def toString(): String

    Definition Classes
    AnyRef → Any
  39. val useful: Map[Global.icodes.BasicBlock, BitSet]

    what instructions have been marked as useful?

  40. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  41. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  42. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  43. val worklist: Set[(Global.icodes.BasicBlock, Int)]

    Useful instructions which have not been scanned yet.

  44. def [B](y: B): (DeadCode, B)

    Implicit information
    This member is added by an implicit conversion from DeadCode to ArrowAssoc[DeadCode] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Shadowed Implict Value Members

  1. val self: Any

    Implicit information
    This member is added by an implicit conversion from DeadCode to StringAdd performed by method any2stringadd in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (deadCode: StringAdd).self
    Definition Classes
    StringAdd
  2. val self: Any

    Implicit information
    This member is added by an implicit conversion from DeadCode to StringFormat performed by method any2stringfmt in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (deadCode: StringFormat).self
    Definition Classes
    StringFormat

Deprecated Value Members

  1. def x: DeadCode

    Implicit information
    This member is added by an implicit conversion from DeadCode to ArrowAssoc[DeadCode] performed by method any2ArrowAssoc in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (deadCode: ArrowAssoc[DeadCode]).x
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use leftOfArrow instead

  2. def x: DeadCode

    Implicit information
    This member is added by an implicit conversion from DeadCode to Ensuring[DeadCode] performed by method any2Ensuring in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (deadCode: Ensuring[DeadCode]).x
    Definition Classes
    Ensuring
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use resultOfEnsuring instead

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from DeadCode to StringAdd

Inherited by implicit conversion any2stringfmt from DeadCode to StringFormat

Inherited by implicit conversion any2ArrowAssoc from DeadCode to ArrowAssoc[DeadCode]

Inherited by implicit conversion any2Ensuring from DeadCode to Ensuring[DeadCode]

Ungrouped