Packages

abstract class InlinerHeuristics extends PerRunInit

Source
InlinerHeuristics.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. InlinerHeuristics
  2. PerRunInit
  3. AnyRef
  4. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new InlinerHeuristics()

Type Members

  1. final case class InlineRequest(callsite: (callGraph)#Callsite, post: List[InlineRequest], reason: String) extends Product with Serializable

Abstract Value Members

  1. abstract val postProcessor: PostProcessor

Concrete Value Members

  1. def canInlineFromSource(sourceFilePath: Option[String], calleeDeclarationClass: InternalName): Boolean
  2. def initialize(): Unit
    Definition Classes
    PerRunInit
  3. def inlineRequest(callsite: (callGraph)#Callsite, selectedRequestsForCallee: Set[InlineRequest]): Option[Either[OptimizerWarning, InlineRequest]]

    Returns the inline request for a callsite if the callsite should be inlined according to the current heuristics (-Yopt-inline-heuristics).

    Returns the inline request for a callsite if the callsite should be inlined according to the current heuristics (-Yopt-inline-heuristics).

    The resulting inline request may contain post-inlining requests of callsites that in turn are also selected as individual inlining requests.

    returns

    None if this callsite should not be inlined according to the active heuristic Some(Left) if the callsite cannot be inlined (for example because that would cause an IllegalAccessError) but should be according to the heuristic TODO: what if a downstream inline request would cause an IAE and we don't create an InlineRequest for the original callsite? new subclass of OptimizerWarning. Some(Right) if the callsite should be and can be inlined

  4. lazy val inlineSourceMatcher: LazyVar[InlineSourceMatcher]
  5. def javaSam(internalName: InternalName): Option[String]
  6. def perRunInit(init: ⇒ Unit): Unit
    Definition Classes
    PerRunInit
  7. def selectCallsitesForInlining: Map[MethodNode, Set[InlineRequest]]

    Select callsites from the call graph that should be inlined, grouped by the containing method.

    Select callsites from the call graph that should be inlined, grouped by the containing method. Cyclic inlining requests are allowed, the inliner will eliminate requests to break cycles.