Add more opcodes to assembler
This commit is contained in:
4
asm.js
4
asm.js
@@ -187,6 +187,9 @@ const opcodes = {
|
|||||||
"i32.shl": 0x74,
|
"i32.shl": 0x74,
|
||||||
"i32.shr_s": 0x75,
|
"i32.shr_s": 0x75,
|
||||||
"i32.shr_u": 0x76,
|
"i32.shr_u": 0x76,
|
||||||
|
"i64.or": 0x84,
|
||||||
|
"i64.shl": 0x86,
|
||||||
|
"i64.extend_i32_u": 0xad,
|
||||||
|
|
||||||
// Threads instructions
|
// Threads instructions
|
||||||
"memory.atomic.notify": [ 0xfe, 0x00 ],
|
"memory.atomic.notify": [ 0xfe, 0x00 ],
|
||||||
@@ -194,6 +197,7 @@ const opcodes = {
|
|||||||
"i32.atomic.load": [ 0xfe, 0x10 ],
|
"i32.atomic.load": [ 0xfe, 0x10 ],
|
||||||
"i32.atomic.load8_u": [ 0xfe, 0x12 ],
|
"i32.atomic.load8_u": [ 0xfe, 0x12 ],
|
||||||
"i32.atomic.store": [ 0xfe, 0x17 ],
|
"i32.atomic.store": [ 0xfe, 0x17 ],
|
||||||
|
"i64.atomic.store": [ 0xfe, 0x18 ],
|
||||||
"i32.atomic.store8": [ 0xfe, 0x19 ],
|
"i32.atomic.store8": [ 0xfe, 0x19 ],
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user