object Modules
WebAssembly modules and their structure.
- See also
For tags: https://webassembly.github.io/exception-handling/core/syntax/modules.html
- Alphabetic
- By Inheritance
- Modules
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
final
case class
Data(id: DataID, originalName: OriginalName, bytes: Array[Byte], mode: Mode) extends Product with Serializable
A WebAssembly
data
segment definition. -
final
case class
Element(tpe: Type, init: List[Expr], mode: Mode) extends Product with Serializable
A WebAssembly
elem
definition. -
final
case class
Export(name: String, desc: ExportDesc) extends Product with Serializable
A WebAssembly
export
.A WebAssembly
export
.- Note
We do not use any
export
in our current compilation scheme. However, we used them in the past and we will likely reuse them in the future (notably for module splitting). Therefore, we keep them in the codebase not to lose the work done in implementing them.
-
sealed abstract
class
ExportDesc extends AnyRef
A WebAssembly
exportdesc
. -
final
case class
Function(id: FunctionID, originalName: OriginalName, typeID: TypeID, params: List[Local], results: List[Type], locals: List[Local], body: Expr, pos: Position) extends Product with Serializable
A WebAssembly
func
, including names/types for parameters, locals and results.A WebAssembly
func
, including names/types for parameters, locals and results.- Note
The
params
' types and theresults
are not strictly necessary, as they can be derived from thetypeID
by resolving it to a function type. The binary writer ignores them. They are used by the text writer.
-
final
case class
Global(id: GlobalID, originalName: OriginalName, isMutable: Boolean, tpe: Type, init: Expr) extends Product with Serializable
A WebAssembly
global
definition. -
final
case class
Import(module: String, name: String, desc: ImportDesc) extends Product with Serializable
A WebAssembly
import
. -
sealed abstract
class
ImportDesc extends AnyRef
A WebAssembly
importdesc
. -
final
case class
Local(id: LocalID, originalName: OriginalName, tpe: Type) extends Product with Serializable
A local variable declaration within a
Function
. -
final
class
Module extends AnyRef
A WebAssembly
module
.A WebAssembly
module
.Fields are declared in the order of the binary format: https://webassembly.github.io/gc/core/binary/modules.html#sections
-
final
case class
Tag(id: TagID, originalName: OriginalName, typeID: TypeID) extends Product with Serializable
A WebAssembly
tag
definition.
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
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
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()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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()
- object Data extends Serializable
- object Element extends Serializable
- object ExportDesc
- object ImportDesc