1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-20 13:45:06 +00:00

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
parent 6b5d1eedcb
commit 02b3238c41
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.