mirror of
https://github.com/fluencelabs/asmble
synced 2025-07-03 00:11:36 +00:00
Compare commits
3 Commits
0.4.1-fl
...
documentat
Author | SHA1 | Date | |
---|---|---|---|
3b1c314c35 | |||
f1a2d14463 | |||
ab269fdbd8 |
@ -231,6 +231,10 @@ def publishSettings(project, projectName, projectDescription) {
|
|||||||
|
|
||||||
bintray {
|
bintray {
|
||||||
|
|
||||||
|
if(!hasProperty("bintrayUser") || !hasProperty("bintrayKey")) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
user = bintrayUser
|
user = bintrayUser
|
||||||
key = bintrayKey
|
key = bintrayKey
|
||||||
publications = ['MyPublication']
|
publications = ['MyPublication']
|
||||||
|
@ -184,7 +184,7 @@ sealed class Node {
|
|||||||
interface Const<out T : Number> : Args { val value: T }
|
interface Const<out T : Number> : Args { val value: T }
|
||||||
}
|
}
|
||||||
|
|
||||||
// Control instructions [https://www.w3.org/TR/2018/WD-wasm-core-1-20180215/#control-instructions]
|
// Control instructions [https://www.w3.org/TR/wasm-core-1/#control-instructions]
|
||||||
|
|
||||||
object Unreachable : Instr(), Args.None
|
object Unreachable : Instr(), Args.None
|
||||||
object Nop : Instr(), Args.None
|
object Nop : Instr(), Args.None
|
||||||
@ -209,12 +209,12 @@ sealed class Node {
|
|||||||
override val reserved: Boolean
|
override val reserved: Boolean
|
||||||
) : Instr(), Args.ReservedIndex
|
) : Instr(), Args.ReservedIndex
|
||||||
|
|
||||||
// Parametric instructions [https://www.w3.org/TR/2018/WD-wasm-core-1-20180215/#parametric-instructions]
|
// Parametric instructions [https://www.w3.org/TR/wasm-core-1/#parametric-instructions]
|
||||||
|
|
||||||
object Drop : Instr(), Args.None
|
object Drop : Instr(), Args.None
|
||||||
object Select : Instr(), Args.None
|
object Select : Instr(), Args.None
|
||||||
|
|
||||||
// Variable instructions [https://www.w3.org/TR/2018/WD-wasm-core-1-20180215/#variable-instructions]
|
// Variable instructions [https://www.w3.org/TR/wasm-core-1/#variable-instructions]
|
||||||
|
|
||||||
data class GetLocal(override val index: Int) : Instr(), Args.Index
|
data class GetLocal(override val index: Int) : Instr(), Args.Index
|
||||||
data class SetLocal(override val index: Int) : Instr(), Args.Index
|
data class SetLocal(override val index: Int) : Instr(), Args.Index
|
||||||
@ -222,7 +222,7 @@ sealed class Node {
|
|||||||
data class GetGlobal(override val index: Int) : Instr(), Args.Index
|
data class GetGlobal(override val index: Int) : Instr(), Args.Index
|
||||||
data class SetGlobal(override val index: Int) : Instr(), Args.Index
|
data class SetGlobal(override val index: Int) : Instr(), Args.Index
|
||||||
|
|
||||||
// Memory instructions [https://www.w3.org/TR/2018/WD-wasm-core-1-20180215/#memory-instructions]
|
// Memory instructions [https://www.w3.org/TR/wasm-core-1/#memory-instructions]
|
||||||
|
|
||||||
data class I32Load(override val align: Int, override val offset: Long) : Instr(), Args.AlignOffset
|
data class I32Load(override val align: Int, override val offset: Long) : Instr(), Args.AlignOffset
|
||||||
data class I64Load(override val align: Int, override val offset: Long) : Instr(), Args.AlignOffset
|
data class I64Load(override val align: Int, override val offset: Long) : Instr(), Args.AlignOffset
|
||||||
@ -250,7 +250,7 @@ sealed class Node {
|
|||||||
data class MemorySize(override val reserved: Boolean) : Instr(), Args.Reserved
|
data class MemorySize(override val reserved: Boolean) : Instr(), Args.Reserved
|
||||||
data class MemoryGrow(override val reserved: Boolean) : Instr(), Args.Reserved
|
data class MemoryGrow(override val reserved: Boolean) : Instr(), Args.Reserved
|
||||||
|
|
||||||
// Numeric instructions [https://www.w3.org/TR/2018/WD-wasm-core-1-20180215/#numeric-instructions]
|
// Numeric instructions [https://www.w3.org/TR/wasm-core-1/#numeric-instructions]
|
||||||
|
|
||||||
// Constants operators
|
// Constants operators
|
||||||
data class I32Const(override val value: Int) : Instr(), Args.Const<Int>
|
data class I32Const(override val value: Int) : Instr(), Args.Const<Int>
|
||||||
|
@ -4,13 +4,13 @@ import asmble.ast.Node
|
|||||||
import asmble.util.Logger
|
import asmble.util.Logger
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Jvm context of execution a function.
|
* Jvm context of the function execution.
|
||||||
*
|
*
|
||||||
* @param cls Class execution context
|
* @param cls class execution context
|
||||||
* @param node Ast of this function
|
* @param node Ast of this function
|
||||||
* @param insns A list of instructions
|
* @param insns instructions list
|
||||||
* @param memIsLocalVar If true then function use only local variables and don't load
|
* @param memIsLocalVar true if function uses only local variables and doesn't load
|
||||||
* and store from memory.
|
* or store to/from memory.
|
||||||
*/
|
*/
|
||||||
data class FuncContext(
|
data class FuncContext(
|
||||||
val cls: ClsContext,
|
val cls: ClsContext,
|
||||||
|
Reference in New Issue
Block a user