LibWasm: Parse the "extend" set of instructions

This commit is contained in:
Ali Mohammad Pur 2021-06-01 21:55:14 +04:30 committed by Ali Mohammad Pur
commit 02b3238c41
Notes: sideshowbarker 2024-07-18 17:01:06 +09:00
4 changed files with 20 additions and 0 deletions

View file

@ -631,6 +631,11 @@ ParseResult<Vector<Instruction>> Instruction::parse(InputStream& stream, Instruc
case Instructions::i64_reinterpret_f64.value():
case Instructions::f32_reinterpret_i32.value():
case Instructions::f64_reinterpret_i64.value():
case Instructions::i32_extend8_s.value():
case Instructions::i32_extend16_s.value():
case Instructions::i64_extend8_s.value():
case Instructions::i64_extend16_s.value():
case Instructions::i64_extend32_s.value():
return Vector { Instruction { opcode } };
case 0xfc: {
// These are multibyte instructions.