object optimizedCodegen extends CommonCodegen
- Source
- MatchCodeGen.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- optimizedCodegen
- CommonCodegen
- AbsCodegen
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Type Members
- class OptimizedCasegen extends OptimizedCodegen.CommonCodegen with OptimizedCodegen.Casegen
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
_asInstanceOf(b: Global.Symbol, tp: Global.Type): Global.Tree
- Definition Classes
- CommonCodegen → AbsCodegen
-
def
_equals(checker: Global.Tree, binder: Global.Symbol): Global.Tree
- Definition Classes
- CommonCodegen → AbsCodegen
-
def
_isInstanceOf(b: Global.Symbol, tp: Global.Type): Global.Tree
- Definition Classes
- CommonCodegen → AbsCodegen
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
drop(tgt: Global.Tree)(n: Int): Global.Tree
- Definition Classes
- CommonCodegen → AbsCodegen
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
fun(arg: Global.Symbol, body: Global.Tree): Global.Tree
- Definition Classes
- CommonCodegen
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
def
index(tgt: Global.Tree)(i: Int): Global.Tree
- Definition Classes
- CommonCodegen → AbsCodegen
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
matcher(scrut: Global.Tree, scrutSym: Global.Symbol, restpe: Global.Type)(cases: List[(OptimizedCodegen.Casegen) ⇒ Global.Tree], matchFailGen: Option[(Global.Tree) ⇒ Global.Tree]): Global.Tree
Inline runOrElse and get rid of Option allocations
Inline runOrElse and get rid of Option allocations
runOrElse(scrut: scrutTp)(matcher): resTp = matcher(scrut) getOrElse ${catchAll(
scrut
)} the matcher's optional result is encoded as a flag, keepGoing, where keepGoing == true encodes result.isEmpty, if keepGoing is false, the result Some(x) of the naive translation is encoded as matchRes == x- Definition Classes
- optimizedCodegen → AbsCodegen
-
def
mkZero(tp: Global.Type): Global.Tree
- Definition Classes
- CommonCodegen → AbsCodegen
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
tupleSel(binder: Global.Symbol)(i: Int): Global.Tree
- Definition Classes
- CommonCodegen → AbsCodegen
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
The Scala compiler and reflection APIs.