scala.tools.nsc.backend.opt.DeadCodeElimination

DeadCode

class DeadCode extends AnyRef

Remove dead code.

Source
DeadCodeElimination.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. DeadCode
  2. AnyRef
  3. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DeadCode ()

Value Members

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

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

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

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def == (arg0: AnyRef): Boolean

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

    Attributes
    final
    Definition Classes
    Any
  6. var accessedLocals : List[Local]

    what local variables have been accessed at least once?

  7. def analyzeClass (cls: IClass): Unit

  8. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  9. def clone (): AnyRef

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

    collect reaching definitions and initial useful instructions for this method.

  11. var defs : Map[(BasicBlock, Int), Set[()]]

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

  12. def dieCodeDie (m: IMethod): Unit

  13. val dropOf : Map[(BasicBlock, Int), (BasicBlock, Int)]

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

  14. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  15. def equals (arg0: Any): Boolean

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

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  17. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef → Any
  18. def hashCode (): Int

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

    Attributes
    final
    Definition Classes
    Any
  20. 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.

  21. var method : IMethod

    the current method.

  22. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  23. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  24. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  25. val rdef : ReachingDefinitionsAnalysis

  26. def sweep (m: IMethod): Unit

  27. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  28. def toString (): String

    Definition Classes
    AnyRef → Any
  29. val useful : Map[BasicBlock, BitSet]

    what instructions have been marked as useful?

  30. def wait (): Unit

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  33. val worklist : Set[(BasicBlock, Int)]

    Useful instructions which have not been scanned yet.

Inherited from AnyRef

Inherited from Any