1#[cfg(debug_assertions)]
4pub fn print_beautiful_instruction_name_1_byte(first_byte: u8, pc: usize) {
5 use crate::core::reader::types::opcode::opcode_byte_to_str;
6
7 trace!(
8 "Read instruction {} at wasm_binary[{}]",
9 opcode_byte_to_str(first_byte),
10 pc
11 );
12}
13
14#[cfg(debug_assertions)]
15pub fn print_beautiful_fc_extension(second_byte: u32, pc: usize) {
16 use crate::core::reader::types::opcode::fc_extension_opcode_to_str;
17
18 trace!(
19 "Read instruction {} at wasm_binary[{}]",
20 fc_extension_opcode_to_str(second_byte),
21 pc,
22 );
23}
24
25#[cfg(debug_assertions)]
26pub fn print_beautiful_fd_extension(second_byte: u32, pc: usize) {
27 use crate::core::reader::types::opcode::fd_extension_opcode_to_str;
28
29 trace!(
30 "Read instruction {} at wasm_binary[{}]",
31 fd_extension_opcode_to_str(second_byte),
32 pc,
33 );
34}