scala.tools.nsc.backend.opt.InlineExceptionHandlers

InlineExceptionHandlersPhase

class InlineExceptionHandlersPhase extends Global.icodes.ICodePhase

Inlining Exception Handlers

Linear Supertypes
Global.icodes.ICodePhase, GlobalPhase, reflect.internal.Phase, AnyRef, Any
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. InlineExceptionHandlersPhase
  2. ICodePhase
  3. GlobalPhase
  4. Phase
  5. AnyRef
  6. Any
Implicitly
  1. by StringAdd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new InlineExceptionHandlersPhase(prev: Phase)

Type Members

  1. type Id = Int

    Definition Classes
    Phase

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 InlineExceptionHandlersPhase to StringAdd[InlineExceptionHandlersPhase] performed by method StringAdd in scala.Predef.
    Definition Classes
    StringAdd
  5. def ->[B](y: B): (InlineExceptionHandlersPhase, B)

    Implicit information
    This member is added by an implicit conversion from InlineExceptionHandlersPhase to ArrowAssoc[InlineExceptionHandlersPhase] performed by method ArrowAssoc 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. def apply(c: Global.icodes.IClass): Unit

    Apply exception handler inlining to a class

    Apply exception handler inlining to a class

    Definition Classes
    InlineExceptionHandlersPhaseICodePhase
  9. def apply(unit: Global.CompilationUnit): Unit

    Definition Classes
    ICodePhaseGlobalPhase
  10. final def applyPhase(unit: Global.CompilationUnit): Unit

    Definition Classes
    GlobalPhase
  11. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  12. def cancelled(unit: Global.CompilationUnit): Boolean

    Is current phase cancelled on this unit?

    Is current phase cancelled on this unit?

    Definition Classes
    GlobalPhase
  13. def checkable: Boolean

    Definition Classes
    Phase
  14. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  15. def description: String

    Definition Classes
    Phase
  16. def ensuring(cond: (InlineExceptionHandlersPhase) ⇒ Boolean, msg: ⇒ Any): InlineExceptionHandlersPhase

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

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

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

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

    Definition Classes
    AnyRef
  21. def equals(other: Any): Boolean

    Definition Classes
    Phase → AnyRef → Any
  22. def erasedTypes: Boolean

    Definition Classes
    ICodePhaseGlobalPhase → Phase
  23. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  24. def findExceptionHandler(thrownException: Global.icodes.TypeKind, handlers: List[Global.icodes.BasicBlock]): Option[(Global.icodes.BasicBlock, Global.icodes.TypeKind)]

    Finds the first exception handler that matches the current exception

    Finds the first exception handler that matches the current exception

    Note the following code:

    try {
      throw new IllegalArgumentException("...")
    } catch {
      case e: RuntimeException => log("RuntimeException")
      case i: IllegalArgumentException => log("IllegalArgumentException")
    }

    will print "RuntimeException" => we need the *first* valid handler

    There's a hidden catch here: say we have the following code:

    try {
      val exception: Throwable =
        if (scala.util.Random.nextInt % 2 == 0)
          new IllegalArgumentException("even")
        else
          new StackOverflowError("odd")
      throw exception
    } catch {
      case e: IllegalArgumentException =>
        println("Correct, IllegalArgumentException")
      case e: StackOverflowError =>
        println("Correct, StackOverflowException")
      case t: Throwable =>
        println("WROOOONG, not Throwable!")
    }

    We don't want to select a handler if there's at least one that's more specific!

  25. def flagMask: Long

    Definition Classes
    Phase
  26. def flatClasses: Boolean

    Definition Classes
    GlobalPhase → Phase
  27. val fmask: Long

    Definition Classes
    Phase
  28. def formatted(fmtstr: String): String

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

    Definition Classes
    AnyRef → Any
  30. def hasNext: Boolean

    Definition Classes
    Phase
  31. def hashCode(): Int

    Definition Classes
    Phase → AnyRef → Any
  32. val id: Id

    Definition Classes
    Phase
  33. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  34. def iterator: collection.Iterator[reflect.internal.Phase]

    Definition Classes
    Phase
  35. def keepsTypeParams: Boolean

    Definition Classes
    Phase
  36. def name: String

    Definition Classes
    InlineExceptionHandlersPhase → Phase
  37. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  38. def newFlags: Long

    Definition Classes
    Phase
  39. def next: reflect.internal.Phase

    Definition Classes
    Phase
  40. def nextFlags: Long

    Definition Classes
    Phase
  41. final def notify(): Unit

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

    Definition Classes
    AnyRef
  43. def refChecked: Boolean

    Definition Classes
    GlobalPhase → Phase
  44. def run(): Unit

    Definition Classes
    GlobalPhase → Phase
  45. def specialized: Boolean

    Definition Classes
    GlobalPhase → Phase
  46. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  47. def toString(): String

    Definition Classes
    Phase → AnyRef → Any
  48. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  51. def [B](y: B): (InlineExceptionHandlersPhase, B)

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

Inherited from Global.icodes.ICodePhase

Inherited from GlobalPhase

Inherited from reflect.internal.Phase

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion StringAdd from InlineExceptionHandlersPhase to StringAdd[InlineExceptionHandlersPhase]

Inherited by implicit conversion StringFormat from InlineExceptionHandlersPhase to StringFormat[InlineExceptionHandlersPhase]

Inherited by implicit conversion Ensuring from InlineExceptionHandlersPhase to Ensuring[InlineExceptionHandlersPhase]

Inherited by implicit conversion ArrowAssoc from InlineExceptionHandlersPhase to ArrowAssoc[InlineExceptionHandlersPhase]

Ungrouped