mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-25 07:27:52 +01:00
Add operation code
This commit is contained in:
parent
1db20a66b6
commit
761a5c1b49
@ -19,8 +19,30 @@ package de.inetsoftware.jwebassembly.module;
|
|||||||
* @author Volker Berlin
|
* @author Volker Berlin
|
||||||
*/
|
*/
|
||||||
public enum ValueType {
|
public enum ValueType {
|
||||||
i32,
|
i32(-1),
|
||||||
i64,
|
i64(-2),
|
||||||
f32,
|
f32(-3),
|
||||||
f64
|
f64(-4),
|
||||||
|
func(-0x20);
|
||||||
|
|
||||||
|
private int code;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create instance of the enum
|
||||||
|
*
|
||||||
|
* @param code
|
||||||
|
* the operation code in WebAssembly
|
||||||
|
*/
|
||||||
|
private ValueType( int code ) {
|
||||||
|
this.code = code;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The operation code in WebAssembly.
|
||||||
|
*
|
||||||
|
* @return the code
|
||||||
|
*/
|
||||||
|
public int getCode() {
|
||||||
|
return code;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user