Skip to content

Commit cd97570

Browse files
committed
Make binary encoding less chaotic :)
1 parent 610beb3 commit cd97570

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

proposals/stringref/Overview.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -669,27 +669,27 @@ reftype ::= ...
669669
| 0x61 ⇒ stringview_iter ; SLEB128(-0x1f)
670670
671671
instr ::= ...
672-
| 0xfb 0xc0:u32 $mem:u32 ⇒ string.new_utf8 $mem
673-
| 0xfb 0xc1:u32 $mem:u32 ⇒ string.new_lossy_utf8 $mem
674-
| 0xfb 0xc2:u32 $mem:u32 ⇒ string.new_wtf8 $mem
672+
| 0xfb 0x80:u32 $mem:u32 ⇒ string.new_utf8 $mem
675673
| 0xfb 0x81:u32 $mem:u32 ⇒ string.new_wtf16 $mem
676674
| 0xfb 0x82:u32 $idx:u32 ⇒ string.const $idx
677-
| 0xfb 0xc3:u32 ⇒ string.measure_utf8
678-
| 0xfb 0xc4:u32 ⇒ string.measure_wtf8
675+
| 0xfb 0x83:u32 ⇒ string.measure_utf8
676+
| 0xfb 0x84:u32 ⇒ string.measure_wtf8
679677
| 0xfb 0x85:u32 ⇒ string.measure_wtf16
680-
| 0xfb 0xc5:u32 $mem:u32 ⇒ string.encode_utf8 $mem
681-
| 0xfb 0xc6:u32 $mem:u32 ⇒ string.encode_lossy_utf8 $mem
682-
| 0xfb 0xc7:u32 $mem:u32 ⇒ string.encode_wtf8 $mem
678+
| 0xfb 0x86:u32 $mem:u32 ⇒ string.encode_utf8 $mem
683679
| 0xfb 0x87:u32 $mem:u32 ⇒ string.encode_wtf16 $mem
684680
| 0xfb 0x88:u32 ⇒ string.concat
685681
| 0xfb 0x89:u32 ⇒ string.eq
686682
| 0xfb 0x8a:u32 ⇒ string.is_usv_sequence
683+
| 0xfb 0x8b:u32 $mem:u32 ⇒ string.new_lossy_utf8 $mem
684+
| 0xfb 0x8c:u32 $mem:u32 ⇒ string.new_wtf8 $mem
685+
| 0xfb 0x8d:u32 $mem:u32 ⇒ string.encode_lossy_utf8 $mem
686+
| 0xfb 0x8e:u32 $mem:u32 ⇒ string.encode_wtf8 $mem
687687
| 0xfb 0x90:u32 ⇒ string.as_wtf8
688688
| 0xfb 0x91:u32 ⇒ stringview_wtf8.advance
689-
| 0xfb 0xd0:u32 $mem:u32 ⇒ stringview_wtf8.encode_utf8 $mem
690-
| 0xfb 0xd1:u32 $mem:u32 ⇒ stringview_wtf8.encode_lossy_utf8 $mem
691-
| 0xfb 0xd2:u32 $mem:u32 ⇒ stringview_wtf8.encode_wtf8 $mem
689+
| 0xfb 0x92:u32 $mem:u32 ⇒ stringview_wtf8.encode_utf8 $mem
692690
| 0xfb 0x93:u32 ⇒ stringview_wtf8.slice
691+
| 0xfb 0x94:u32 $mem:u32 ⇒ stringview_wtf8.encode_lossy_utf8 $mem
692+
| 0xfb 0x95:u32 $mem:u32 ⇒ stringview_wtf8.encode_wtf8 $mem
693693
| 0xfb 0x98:u32 ⇒ string.as_wtf16
694694
| 0xfb 0x99:u32 ⇒ stringview_wtf16.length
695695
| 0xfb 0x9a:u32 ⇒ stringview_wtf16.get_codeunit
@@ -700,14 +700,14 @@ instr ::= ...
700700
| 0xfb 0xa2:u32 ⇒ stringview_iter.advance
701701
| 0xfb 0xa3:u32 ⇒ stringview_iter.rewind
702702
| 0xfb 0xa4:u32 ⇒ stringview_iter.slice
703-
| 0xfb 0xe0:u32 [gc] ⇒ string.new_utf8_array
704-
| 0xfb 0xe1:u32 [gc] ⇒ string.new_lossy_utf8_array
705-
| 0xfb 0xe2:u32 [gc] ⇒ string.new_wtf8_array
703+
| 0xfb 0xb0:u32 [gc] ⇒ string.new_utf8_array
706704
| 0xfb 0xb1:u32 [gc] ⇒ string.new_wtf16_array
707-
| 0xfb 0xe3:u32 [gc] ⇒ string.encode_utf8_array
708-
| 0xfb 0xe4:u32 [gc] ⇒ string.encode_lossy_utf8_array
709-
| 0xfb 0xe5:u32 [gc] ⇒ string.encode_wtf8_array
705+
| 0xfb 0xb2:u32 [gc] ⇒ string.encode_utf8_array
710706
| 0xfb 0xb3:u32 [gc] ⇒ string.encode_wtf16_array
707+
| 0xfb 0xb4:u32 [gc] ⇒ string.new_lossy_utf8_array
708+
| 0xfb 0xb5:u32 [gc] ⇒ string.new_wtf8_array
709+
| 0xfb 0xb6:u32 [gc] ⇒ string.encode_lossy_utf8_array
710+
| 0xfb 0xb7:u32 [gc] ⇒ string.encode_wtf8_array
711711
712712
;; New section. If present, must be present only once, and right before
713713
;; the globals section (or where the globals section would be). Each

0 commit comments

Comments
 (0)