summaryrefslogtreecommitdiffstats
path: root/source/core/slang-byte-encode-util.h
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2020-11-10 13:07:42 -0800
committerGitHub <noreply@github.com>2020-11-10 13:07:42 -0800
commit1c4d768bc1b400ab40c10715df98d0b2122bcd66 (patch)
treebb3f8be8c8691d00aec17f4a69cb2c3764f0c4a7 /source/core/slang-byte-encode-util.h
parentc1e0a9d783edf0f19b281e051a42f801850b1488 (diff)
Fix IR serialization to use variable length encoding for opcode. (#1599)
* Fix IR serialization to use 16bits for opcode. * Undo accidental comment change. * Use variable length encoding for opcode. * Fixing issues
Diffstat (limited to 'source/core/slang-byte-encode-util.h')
-rw-r--r--source/core/slang-byte-encode-util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/core/slang-byte-encode-util.h b/source/core/slang-byte-encode-util.h
index cb601d522..728f9ac2f 100644
--- a/source/core/slang-byte-encode-util.h
+++ b/source/core/slang-byte-encode-util.h
@@ -9,6 +9,7 @@ struct ByteEncodeUtil
{
enum
{
+ kMaxLiteEncodeUInt16 = 3, /// One byte for prefix, the remaining 2 bytes hold the value
kMaxLiteEncodeUInt32 = 5, /// One byte for prefix, the remaining 4 bytes hold the value
// Cut values for 'Lite' encoding style
kLiteCut1 = 185,