| 48 | } |
| 49 | |
| 50 | void WriteOpcode(Stream* stream, Opcode opcode) { |
| 51 | if (opcode.HasPrefix()) { |
| 52 | stream->WriteU8(opcode.GetPrefix(), "prefix"); |
| 53 | WriteU32Leb128(stream, opcode.GetCode(), opcode.GetName()); |
| 54 | } else { |
| 55 | stream->WriteU8(opcode.GetCode(), opcode.GetName()); |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | void WriteType(Stream* stream, Type type, const char* desc) { |
| 60 | if (type.IsNonTypedRef() && !type.IsNullableNonTypedRef()) { |
no test coverage detected