@@ -3165,12 +3165,28 @@ switch (op[0]) {
31653165 switch (op[8 ]) {
31663166 case ' n' : {
31673167 switch (op[17 ]) {
3168- case ' 1' :
3169- if (strcmp (op, " string.encode_wtf16" ) == 0 ) { return makeStringEncode (s, StringEncodeWTF16); }
3170- goto parse_error;
3171- case ' 8' :
3172- if (strcmp (op, " string.encode_wtf8" ) == 0 ) { return makeStringEncode (s, StringEncodeWTF8); }
3173- goto parse_error;
3168+ case ' 1' : {
3169+ switch (op[19 ]) {
3170+ case ' \0 ' :
3171+ if (strcmp (op, " string.encode_wtf16" ) == 0 ) { return makeStringEncode (s, StringEncodeWTF16); }
3172+ goto parse_error;
3173+ case ' _' :
3174+ if (strcmp (op, " string.encode_wtf16_array" ) == 0 ) { return makeStringEncode (s, StringEncodeWTF16Array); }
3175+ goto parse_error;
3176+ default : goto parse_error;
3177+ }
3178+ }
3179+ case ' 8' : {
3180+ switch (op[18 ]) {
3181+ case ' \0 ' :
3182+ if (strcmp (op, " string.encode_wtf8" ) == 0 ) { return makeStringEncode (s, StringEncodeWTF8); }
3183+ goto parse_error;
3184+ case ' _' :
3185+ if (strcmp (op, " string.encode_wtf8_array" ) == 0 ) { return makeStringEncode (s, StringEncodeWTF8Array); }
3186+ goto parse_error;
3187+ default : goto parse_error;
3188+ }
3189+ }
31743190 default : goto parse_error;
31753191 }
31763192 }
@@ -8879,20 +8895,44 @@ switch (op[0]) {
88798895 switch (op[8 ]) {
88808896 case ' n' : {
88818897 switch (op[17 ]) {
8882- case ' 1' :
8883- if (op == " string.encode_wtf16" sv) {
8884- auto ret = makeStringEncode (ctx, in, StringEncodeWTF16);
8885- CHECK_ERR (ret);
8886- return *ret;
8898+ case ' 1' : {
8899+ switch (op[19 ]) {
8900+ case ' \0 ' :
8901+ if (op == " string.encode_wtf16" sv) {
8902+ auto ret = makeStringEncode (ctx, in, StringEncodeWTF16);
8903+ CHECK_ERR (ret);
8904+ return *ret;
8905+ }
8906+ goto parse_error;
8907+ case ' _' :
8908+ if (op == " string.encode_wtf16_array" sv) {
8909+ auto ret = makeStringEncode (ctx, in, StringEncodeWTF16Array);
8910+ CHECK_ERR (ret);
8911+ return *ret;
8912+ }
8913+ goto parse_error;
8914+ default : goto parse_error;
88878915 }
8888- goto parse_error;
8889- case ' 8' :
8890- if (op == " string.encode_wtf8" sv) {
8891- auto ret = makeStringEncode (ctx, in, StringEncodeWTF8);
8892- CHECK_ERR (ret);
8893- return *ret;
8916+ }
8917+ case ' 8' : {
8918+ switch (op[18 ]) {
8919+ case ' \0 ' :
8920+ if (op == " string.encode_wtf8" sv) {
8921+ auto ret = makeStringEncode (ctx, in, StringEncodeWTF8);
8922+ CHECK_ERR (ret);
8923+ return *ret;
8924+ }
8925+ goto parse_error;
8926+ case ' _' :
8927+ if (op == " string.encode_wtf8_array" sv) {
8928+ auto ret = makeStringEncode (ctx, in, StringEncodeWTF8Array);
8929+ CHECK_ERR (ret);
8930+ return *ret;
8931+ }
8932+ goto parse_error;
8933+ default : goto parse_error;
88948934 }
8895- goto parse_error;
8935+ }
88968936 default : goto parse_error;
88978937 }
88988938 }
0 commit comments