diff options
Diffstat (limited to 'src/wasm-binary.h')
-rw-r--r-- | src/wasm-binary.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/wasm-binary.h b/src/wasm-binary.h index d22205a0a..4c4789b69 100644 --- a/src/wasm-binary.h +++ b/src/wasm-binary.h @@ -338,6 +338,8 @@ enum EncodedType { f32 = -0x3, // 0x7d f64 = -0x4, // 0x7c v128 = -0x5, // 0x7b + i8 = -0x6, // 0x7a + i16 = -0x7, // 0x79 // function reference type funcref = -0x10, // 0x70 // opaque host reference type @@ -1252,7 +1254,12 @@ public: int32_t getS32LEB(); int64_t getS64LEB(); uint64_t getUPtrLEB(); + + // Read a value and get a type for it. Type getType(); + // Get a type given the initial S32LEB has already been read, and is provided. + Type getType(int initial); + HeapType getHeapType(); Field getField(); Type getConcreteType(); @@ -1261,7 +1268,6 @@ public: void verifyInt16(int16_t x); void verifyInt32(int32_t x); void verifyInt64(int64_t x); - void ungetInt8(); void readHeader(); void readStart(); void readMemory(); |