scala.tools.nsc.backend.opt.InlineExceptionHandlers

InlineExceptionHandlersPhase

class InlineExceptionHandlersPhase extends Global.icodes.ICodePhase

Inlining Exception Handlers

Source
InlineExceptionHandlers.scala
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 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 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 performed by method any2stringadd 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 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. 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 any2Ensuring 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 any2Ensuring 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 any2Ensuring 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 any2Ensuring 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()
  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 performed by method any2stringfmt 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 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 InlineExceptionHandlersPhase 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:
    (inlineExceptionHandlersPhase: StringAdd).self
    Definition Classes
    StringAdd
  2. val self: Any

    Implicit information
    This member is added by an implicit conversion from InlineExceptionHandlersPhase 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:
    (inlineExceptionHandlersPhase: StringFormat).self
    Definition Classes
    StringFormat

Deprecated Value Members

  1. def x: InlineExceptionHandlersPhase

    Implicit information
    This member is added by an implicit conversion from InlineExceptionHandlersPhase to ArrowAssoc[InlineExceptionHandlersPhase] 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:
    (inlineExceptionHandlersPhase: ArrowAssoc[InlineExceptionHandlersPhase]).x
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use leftOfArrow instead

  2. def x: InlineExceptionHandlersPhase

    Implicit information
    This member is added by an implicit conversion from InlineExceptionHandlersPhase to Ensuring[InlineExceptionHandlersPhase] 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:
    (inlineExceptionHandlersPhase: Ensuring[InlineExceptionHandlersPhase]).x
    Definition Classes
    Ensuring
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use resultOfEnsuring instead

Inherited from Global.icodes.ICodePhase

Inherited from GlobalPhase

Inherited from reflect.internal.Phase

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from InlineExceptionHandlersPhase to StringAdd

Inherited by implicit conversion any2stringfmt from InlineExceptionHandlersPhase to StringFormat

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

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

Ungrouped