c
org.scalajs.linker.backend.wasmemitter.WasmTransients
WasmBinaryOp
Companion object WasmBinaryOp
final case class WasmBinaryOp(op: Code, lhs: Tree, rhs: Tree) extends Value with Product with Serializable
Wasm binary op.
Wasm features a number of dedicated opcodes for operations that are not
in the IR, but only implemented in user space. We can see WasmBinaryOp
as an extension of ir.Trees.BinaryOp
that covers those.
Unsigned divisions and remainders exhibit always-unchecked undefined behavior when their rhs is 0. It is up to code generating those transient nodes to check for 0 themselves if necessary.
All other Wasm binary ops preserve pureness.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- WasmBinaryOp
- Serializable
- Serializable
- Product
- Equals
- Value
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val lhs: Tree
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val op: Code
-
def
printIR(out: IRTreePrinter): Unit
- Definition Classes
- WasmBinaryOp → Value
- val rhs: Tree
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
val
tpe: Type
- Definition Classes
- WasmBinaryOp → Value
-
def
transform(transformer: Transformer, isStat: Boolean)(implicit pos: Position): Tree
- Definition Classes
- WasmBinaryOp → Value
-
def
traverse(traverser: Traverser): Unit
- Definition Classes
- WasmBinaryOp → Value
-
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( ... ) @native()
- def wasmInstr: SimpleInstr