diff options
Diffstat (limited to 'src/wasm.h')
-rw-r--r-- | src/wasm.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/wasm.h b/src/wasm.h index 99a2d9f94..8c0e48da2 100644 --- a/src/wasm.h +++ b/src/wasm.h @@ -608,6 +608,9 @@ enum StringEncodeOp { StringEncodeUTF8, StringEncodeWTF8, StringEncodeWTF16, + StringEncodeUTF8Array, + StringEncodeWTF8Array, + StringEncodeWTF16Array, }; enum StringAsOp { @@ -1746,8 +1749,15 @@ public: StringEncodeOp op; Expression* ref; + + // In linear memory variations this is the pointer in linear memory. In the + // GC variations this is an Array. Expression* ptr; + // Used only in GC variations, where it is the index in |ptr| to start + // encoding from. + Expression* start = nullptr; + void finalize(); }; |