From 6b43a5ef76149c92e216fddb0a1ee17f736b4b6e Mon Sep 17 00:00:00 2001 From: Thomas Lively Date: Wed, 15 May 2024 12:07:34 -0700 Subject: [Strings] Remove operations not included in imported strings (#6589) The stringref proposal has been superseded by the imported JS strings proposal, but the former has many more operations than the latter. To reduce complexity, remove all operations that are part of stringref but not part of imported strings. --- src/wasm-binary.h | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'src/wasm-binary.h') diff --git a/src/wasm-binary.h b/src/wasm-binary.h index 449c03699..71de2f915 100644 --- a/src/wasm-binary.h +++ b/src/wasm-binary.h @@ -1121,37 +1121,22 @@ enum ASTNodes { // stringref opcodes - StringNewUTF8 = 0x80, - StringNewWTF16 = 0x81, StringConst = 0x82, StringMeasureUTF8 = 0x83, - StringMeasureWTF8 = 0x84, StringMeasureWTF16 = 0x85, - StringEncodeUTF8 = 0x86, - StringEncodeWTF16 = 0x87, StringConcat = 0x88, StringEq = 0x89, StringIsUSV = 0x8a, - StringNewLossyUTF8 = 0x8b, - StringNewWTF8 = 0x8c, - StringEncodeLossyUTF8 = 0x8d, - StringEncodeWTF8 = 0x8e, - StringNewUTF8Try = 0x8f, StringAsWTF16 = 0x98, StringViewWTF16GetCodePoint = 0x9a, StringViewWTF16Slice = 0x9c, StringCompare = 0xa8, StringFromCodePoint = 0xa9, StringHash = 0xaa, - StringNewUTF8Array = 0xb0, StringNewWTF16Array = 0xb1, - StringEncodeUTF8Array = 0xb2, StringEncodeWTF16Array = 0xb3, StringNewLossyUTF8Array = 0xb4, - StringNewWTF8Array = 0xb5, StringEncodeLossyUTF8Array = 0xb6, - StringEncodeWTF8Array = 0xb7, - StringNewUTF8ArrayTry = 0xb8, // typed continuation opcodes ContNew = 0xe0, -- cgit v1.2.3