mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-15 02:44:47 +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
|
||||
*/
|
||||
public enum ValueType {
|
||||
i32,
|
||||
i64,
|
||||
f32,
|
||||
f64
|
||||
i32(-1),
|
||||
i64(-2),
|
||||
f32(-3),
|
||||
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