diff options
author | Kartik Agaram <vc@akkartik.com> | 2021-03-23 17:31:08 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2021-03-23 17:31:08 -0700 |
commit | 3350c34a74844e21ea69077e01efff3bae64bdcd (patch) | |
tree | fa06ba58542297d1cff6b78958d4547a40a25d21 /html/301array-equal.subx.html | |
parent | 62a244211024a8367332541c571621883c05bcce (diff) | |
download | mu-3350c34a74844e21ea69077e01efff3bae64bdcd.tar.gz |
.
Diffstat (limited to 'html/301array-equal.subx.html')
-rw-r--r-- | html/301array-equal.subx.html | 59 |
1 files changed, 34 insertions, 25 deletions
diff --git a/html/301array-equal.subx.html b/html/301array-equal.subx.html index 94b1f52d..f516d9d2 100644 --- a/html/301array-equal.subx.html +++ b/html/301array-equal.subx.html @@ -14,15 +14,15 @@ pre { white-space: pre-wrap; font-family: monospace; color: #000000; background- body { font-size:12pt; font-family: monospace; color: #000000; background-color: #c6c6c6; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } -.subxComment { color: #005faf; } .SpecialChar { color: #d70000; } +.subxComment { color: #005faf; } +.subxS1Comment { color: #0000af; } .LineNr { } +.subxH1Comment { color: #005faf; text-decoration: underline; } +.subxMinorFunction { color: #875f5f; } .subxTest { color: #5f8700; } -.subxS1Comment { color: #0000af; } .subxFunction { color: #af5f00; text-decoration: underline; } .Constant { color: #008787; } -.subxMinorFunction { color: #875f5f; } -.subxH1Comment { color: #005faf; text-decoration: underline; } --> </style> @@ -158,7 +158,7 @@ if ('onhashchange' in window) { <span id="L98" class="LineNr"> 98 </span> 89/<- %edx 4/r32/esp <span id="L99" class="LineNr"> 99 </span> <span class="subxComment">#</span> <span id="L100" class="LineNr">100 </span> (<a href='301array-equal.subx.html#L5'>array-equal?</a> %ecx %edx) <span class="subxComment"># => eax</span> -<span id="L101" class="LineNr">101 </span> (<a href='102test.subx.html#L23'>check-ints-equal</a> %eax 1 <span class="Constant">"F - test-compare-empty-with-empty-array"</span>) +<span id="L101" class="LineNr">101 </span> (<a href='502test.mu.html#L2'>check-ints-equal</a> %eax 1 <span class="Constant">"F - test-compare-empty-with-empty-array"</span>) <span id="L102" class="LineNr">102 </span> <span class="subxS1Comment"># . epilogue</span> <span id="L103" class="LineNr">103 </span> 89/<- %esp 5/r32/ebp <span id="L104" class="LineNr">104 </span> 5d/pop-to-ebp @@ -177,7 +177,7 @@ if ('onhashchange' in window) { <span id="L117" class="LineNr">117 </span> 89/<- %edx 4/r32/esp <span id="L118" class="LineNr">118 </span> <span class="subxComment">#</span> <span id="L119" class="LineNr">119 </span> (<a href='301array-equal.subx.html#L5'>array-equal?</a> %ecx %edx) <span class="subxComment"># => eax</span> -<span id="L120" class="LineNr">120 </span> (<a href='102test.subx.html#L23'>check-ints-equal</a> %eax 0 <span class="Constant">"F - test-compare-empty-with-non-empty-array"</span>) +<span id="L120" class="LineNr">120 </span> (<a href='502test.mu.html#L2'>check-ints-equal</a> %eax 0 <span class="Constant">"F - test-compare-empty-with-non-empty-array"</span>) <span id="L121" class="LineNr">121 </span> <span class="subxS1Comment"># . epilogue</span> <span id="L122" class="LineNr">122 </span> 89/<- %esp 5/r32/ebp <span id="L123" class="LineNr">123 </span> 5d/pop-to-ebp @@ -201,7 +201,7 @@ if ('onhashchange' in window) { <span id="L141" class="LineNr">141 </span> 89/<- %edx 4/r32/esp <span id="L142" class="LineNr">142 </span> <span class="subxComment">#</span> <span id="L143" class="LineNr">143 </span> (<a href='301array-equal.subx.html#L5'>array-equal?</a> %ecx %edx) <span class="subxComment"># => eax</span> -<span id="L144" class="LineNr">144 </span> (<a href='102test.subx.html#L23'>check-ints-equal</a> %eax 1 <span class="Constant">"F - test-compare-equal-arrays"</span>) +<span id="L144" class="LineNr">144 </span> (<a href='502test.mu.html#L2'>check-ints-equal</a> %eax 1 <span class="Constant">"F - test-compare-equal-arrays"</span>) <span id="L145" class="LineNr">145 </span> <span class="subxS1Comment"># . epilogue</span> <span id="L146" class="LineNr">146 </span> 89/<- %esp 5/r32/ebp <span id="L147" class="LineNr">147 </span> 5d/pop-to-ebp @@ -225,7 +225,7 @@ if ('onhashchange' in window) { <span id="L165" class="LineNr">165 </span> 89/<- %edx 4/r32/esp <span id="L166" class="LineNr">166 </span> <span class="subxComment">#</span> <span id="L167" class="LineNr">167 </span> (<a href='301array-equal.subx.html#L5'>array-equal?</a> %ecx %edx) <span class="subxComment"># => eax</span> -<span id="L168" class="LineNr">168 </span> (<a href='102test.subx.html#L23'>check-ints-equal</a> %eax 0 <span class="Constant">"F - test-compare-inequal-arrays-equal-sizes"</span>) +<span id="L168" class="LineNr">168 </span> (<a href='502test.mu.html#L2'>check-ints-equal</a> %eax 0 <span class="Constant">"F - test-compare-inequal-arrays-equal-sizes"</span>) <span id="L169" class="LineNr">169 </span> <span class="subxS1Comment"># . epilogue</span> <span id="L170" class="LineNr">170 </span> 89/<- %esp 5/r32/ebp <span id="L171" class="LineNr">171 </span> 5d/pop-to-ebp @@ -281,19 +281,19 @@ if ('onhashchange' in window) { <span id="L221" class="LineNr">221 </span> 39/compare %ecx 2/r32/edx <span id="L222" class="LineNr">222 </span> 73/jump-if-addr>= $_parse-array-of-ints:break1/disp8 <span id="L223" class="LineNr">223 </span> <span class="subxComment"># curr = skip-chars-matching-in-slice(curr, end, ' ')</span> -<span id="L224" class="LineNr">224 </span> (<a href='124next-token.subx.html#L804'>skip-chars-matching-in-slice</a> %ecx %edx 0x20) <span class="subxComment"># => eax</span> +<span id="L224" class="LineNr">224 </span> (<a href='124next-token.subx.html#L651'>skip-chars-matching-in-slice</a> %ecx %edx 0x20) <span class="subxComment"># => eax</span> <span id="L225" class="LineNr">225 </span> 89/<- %ecx 0/r32/eax <span id="L226" class="LineNr">226 </span> <span class="subxComment"># if (curr >= end) break</span> <span id="L227" class="LineNr">227 </span> 39/compare %ecx 2/r32/edx <span id="L228" class="LineNr">228 </span> 73/jump-if-addr>= $_parse-array-of-ints:break1/disp8 <span id="L229" class="LineNr">229 </span> <span class="subxComment"># curr = skip-chars-not-matching-in-slice(curr, end, ' ')</span> -<span id="L230" class="LineNr">230 </span> (<a href='124next-token.subx.html#L973'>skip-chars-not-matching-in-slice</a> %ecx %edx 0x20) <span class="subxComment"># => eax</span> +<span id="L230" class="LineNr">230 </span> (<a href='124next-token.subx.html#L820'>skip-chars-not-matching-in-slice</a> %ecx %edx 0x20) <span class="subxComment"># => eax</span> <span id="L231" class="LineNr">231 </span> 89/<- %ecx 0/r32/eax <span id="L232" class="LineNr">232 </span> <span class="subxComment"># size += 4</span> <span id="L233" class="LineNr">233 </span> 81 0/subop/add %ebx 4/imm32 <span id="L234" class="LineNr">234 </span> eb/jump $_parse-array-of-ints:loop1/disp8 <span id="L235" class="LineNr">235 </span><span class="Constant">$_parse-array-of-ints:break1</span>: -<span id="L236" class="LineNr">236 </span> (<a href='120allocate.subx.html#L576'>allocate-array</a> *(ebp+8) %ebx *(ebp+0x10)) +<span id="L236" class="LineNr">236 </span> (<a href='120allocate.subx.html#L535'>allocate-array</a> *(ebp+8) %ebx *(ebp+0x10)) <span id="L237" class="LineNr">237 </span><span class="Constant">$_parse-array-of-ints:pass2</span>: <span id="L238" class="LineNr">238 </span> <span class="subxComment"># var slice/edi: slice = {s->data, 0}</span> <span id="L239" class="LineNr">239 </span> 68/push 0/imm32/end @@ -302,20 +302,20 @@ if ('onhashchange' in window) { <span id="L242" class="LineNr">242 </span> 89/<- %edi 4/r32/esp <span id="L243" class="LineNr">243 </span> <span class="subxComment"># curr = lookup(out)->data</span> <span id="L244" class="LineNr">244 </span> 8b/-> *(ebp+0x10) 0/r32/eax -<span id="L245" class="LineNr">245 </span> (<a href='120allocate.subx.html#L256'>lookup</a> *eax *(eax+4)) <span class="subxComment"># => eax</span> +<span id="L245" class="LineNr">245 </span> (<a href='120allocate.subx.html#L226'>lookup</a> *eax *(eax+4)) <span class="subxComment"># => eax</span> <span id="L246" class="LineNr">246 </span> 8d/copy-address *(eax+4) 1/r32/ecx <span id="L247" class="LineNr">247 </span><span class="Constant">$_parse-array-of-ints:loop2</span>: <span id="L248" class="LineNr">248 </span> <span class="subxComment"># if (slice->start >= end) break</span> <span id="L249" class="LineNr">249 </span> 39/compare *edi 2/r32/edx <span id="L250" class="LineNr">250 </span> 73/jump-if-addr>= $_parse-array-of-ints:end/disp8 <span id="L251" class="LineNr">251 </span> <span class="subxComment"># slice->start = skip-chars-matching-in-slice(slice->start, end, ' ')</span> -<span id="L252" class="LineNr">252 </span> (<a href='124next-token.subx.html#L804'>skip-chars-matching-in-slice</a> *edi %edx 0x20) <span class="subxComment"># => eax</span> +<span id="L252" class="LineNr">252 </span> (<a href='124next-token.subx.html#L651'>skip-chars-matching-in-slice</a> *edi %edx 0x20) <span class="subxComment"># => eax</span> <span id="L253" class="LineNr">253 </span> 89/<- *edi 0/r32/eax <span id="L254" class="LineNr">254 </span> <span class="subxComment"># if (slice->start >= end) break</span> <span id="L255" class="LineNr">255 </span> 39/compare *edi 2/r32/edx <span id="L256" class="LineNr">256 </span> 73/jump-if-addr>= $_parse-array-of-ints:end/disp8 <span id="L257" class="LineNr">257 </span> <span class="subxComment"># slice->end = skip-chars-not-matching-in-slice(slice->start, end, ' ')</span> -<span id="L258" class="LineNr">258 </span> (<a href='124next-token.subx.html#L973'>skip-chars-not-matching-in-slice</a> *edi %edx 0x20) <span class="subxComment"># => eax</span> +<span id="L258" class="LineNr">258 </span> (<a href='124next-token.subx.html#L820'>skip-chars-not-matching-in-slice</a> *edi %edx 0x20) <span class="subxComment"># => eax</span> <span id="L259" class="LineNr">259 </span> 89/<- *(edi+4) 0/r32/eax <span id="L260" class="LineNr">260 </span> <span class="subxComment"># *curr = parse-hex-int-from-slice(slice)</span> <span id="L261" class="LineNr">261 </span> (<a href='118parse-hex-int.subx.html#L387'>parse-hex-int-from-slice</a> %edi) @@ -357,9 +357,9 @@ if ('onhashchange' in window) { <span id="L297" class="LineNr">297 </span> 89/<- %ecx 4/r32/esp <span id="L298" class="LineNr">298 </span> <span class="subxComment">#</span> <span id="L299" class="LineNr">299 </span> (<a href='301array-equal.subx.html#L174'>_parse-array-of-ints</a> <span class="SpecialChar"><a href='120allocate.subx.html#L27'>Heap</a></span> <span class="Constant">"1 2 3"</span> %esi) -<span id="L300" class="LineNr">300 </span> (<a href='120allocate.subx.html#L256'>lookup</a> *esi *(esi+4)) <span class="subxComment"># => eax</span> +<span id="L300" class="LineNr">300 </span> (<a href='120allocate.subx.html#L226'>lookup</a> *esi *(esi+4)) <span class="subxComment"># => eax</span> <span id="L301" class="LineNr">301 </span> (<a href='301array-equal.subx.html#L5'>array-equal?</a> %ecx %eax) <span class="subxComment"># => eax</span> -<span id="L302" class="LineNr">302 </span> (<a href='102test.subx.html#L23'>check-ints-equal</a> %eax 1 <span class="Constant">"F - test-parse-array-of-ints"</span>) +<span id="L302" class="LineNr">302 </span> (<a href='502test.mu.html#L2'>check-ints-equal</a> %eax 1 <span class="Constant">"F - test-parse-array-of-ints"</span>) <span id="L303" class="LineNr">303 </span> <span class="subxS1Comment"># . epilogue</span> <span id="L304" class="LineNr">304 </span> 89/<- %esp 5/r32/ebp <span id="L305" class="LineNr">305 </span> 5d/pop-to-ebp @@ -376,8 +376,8 @@ if ('onhashchange' in window) { <span id="L316" class="LineNr">316 </span> 89/<- %esi 4/r32/esp <span id="L317" class="LineNr">317 </span> <span class="subxComment">#</span> <span id="L318" class="LineNr">318 </span> (<a href='301array-equal.subx.html#L174'>_parse-array-of-ints</a> <span class="SpecialChar"><a href='120allocate.subx.html#L27'>Heap</a></span> <span class="Constant">""</span> %esi) -<span id="L319" class="LineNr">319 </span> (<a href='120allocate.subx.html#L256'>lookup</a> *esi *(esi+4)) <span class="subxComment"># => eax</span> -<span id="L320" class="LineNr">320 </span> (<a href='102test.subx.html#L23'>check-ints-equal</a> *eax 0 <span class="Constant">"F - test-parse-array-of-ints-empty"</span>) +<span id="L319" class="LineNr">319 </span> (<a href='120allocate.subx.html#L226'>lookup</a> *esi *(esi+4)) <span class="subxComment"># => eax</span> +<span id="L320" class="LineNr">320 </span> (<a href='502test.mu.html#L2'>check-ints-equal</a> *eax 0 <span class="Constant">"F - test-parse-array-of-ints-empty"</span>) <span id="L321" class="LineNr">321 </span> <span class="subxS1Comment"># . epilogue</span> <span id="L322" class="LineNr">322 </span> 89/<- %esp 5/r32/ebp <span id="L323" class="LineNr">323 </span> 5d/pop-to-ebp @@ -393,9 +393,9 @@ if ('onhashchange' in window) { <span id="L333" class="LineNr">333 </span> 68/push 0/imm32 <span id="L334" class="LineNr">334 </span> 89/<- %esi 4/r32/esp <span id="L335" class="LineNr">335 </span> <span class="subxComment">#</span> -<span id="L336" class="LineNr">336 </span> (<a href='301array-equal.subx.html#L174'>_parse-array-of-ints</a> <span class="SpecialChar"><a href='120allocate.subx.html#L27'>Heap</a></span> <span class="SpecialChar"><a href='102test.subx.html#L93'>Space</a></span> %esi) -<span id="L337" class="LineNr">337 </span> (<a href='120allocate.subx.html#L256'>lookup</a> *esi *(esi+4)) <span class="subxComment"># => eax</span> -<span id="L338" class="LineNr">338 </span> (<a href='102test.subx.html#L23'>check-ints-equal</a> *eax 0 <span class="Constant">"F - test-parse-array-of-ints-just-whitespace"</span>) +<span id="L336" class="LineNr">336 </span> (<a href='301array-equal.subx.html#L174'>_parse-array-of-ints</a> <span class="SpecialChar"><a href='120allocate.subx.html#L27'>Heap</a></span> <span class="SpecialChar"><a href='301array-equal.subx.html#L428'>Space</a></span> %esi) +<span id="L337" class="LineNr">337 </span> (<a href='120allocate.subx.html#L226'>lookup</a> *esi *(esi+4)) <span class="subxComment"># => eax</span> +<span id="L338" class="LineNr">338 </span> (<a href='502test.mu.html#L2'>check-ints-equal</a> *eax 0 <span class="Constant">"F - test-parse-array-of-ints-just-whitespace"</span>) <span id="L339" class="LineNr">339 </span> <span class="subxS1Comment"># . epilogue</span> <span id="L340" class="LineNr">340 </span> 89/<- %esp 5/r32/ebp <span id="L341" class="LineNr">341 </span> 5d/pop-to-ebp @@ -417,9 +417,9 @@ if ('onhashchange' in window) { <span id="L357" class="LineNr">357 </span> 89/<- %ecx 4/r32/esp <span id="L358" class="LineNr">358 </span> <span class="subxComment">#</span> <span id="L359" class="LineNr">359 </span> (<a href='301array-equal.subx.html#L174'>_parse-array-of-ints</a> <span class="SpecialChar"><a href='120allocate.subx.html#L27'>Heap</a></span> <span class="Constant">" 1 2 3 "</span> %esi) -<span id="L360" class="LineNr">360 </span> (<a href='120allocate.subx.html#L256'>lookup</a> *esi *(esi+4)) <span class="subxComment"># => eax</span> +<span id="L360" class="LineNr">360 </span> (<a href='120allocate.subx.html#L226'>lookup</a> *esi *(esi+4)) <span class="subxComment"># => eax</span> <span id="L361" class="LineNr">361 </span> (<a href='301array-equal.subx.html#L5'>array-equal?</a> %ecx %eax) <span class="subxComment"># => eax</span> -<span id="L362" class="LineNr">362 </span> (<a href='102test.subx.html#L23'>check-ints-equal</a> %eax 1 <span class="Constant">"F - test-parse-array-of-ints-extra-whitespace"</span>) +<span id="L362" class="LineNr">362 </span> (<a href='502test.mu.html#L2'>check-ints-equal</a> %eax 1 <span class="Constant">"F - test-parse-array-of-ints-extra-whitespace"</span>) <span id="L363" class="LineNr">363 </span> <span class="subxS1Comment"># . epilogue</span> <span id="L364" class="LineNr">364 </span> 89/<- %esp 5/r32/ebp <span id="L365" class="LineNr">365 </span> 5d/pop-to-ebp @@ -452,10 +452,10 @@ if ('onhashchange' in window) { <span id="L392" class="LineNr">392 </span> 89/<- %esi 4/r32/esp <span id="L393" class="LineNr">393 </span> <span class="subxComment"># var b/eax: (addr array int) = parse-array-of-ints(Heap, expected)</span> <span id="L394" class="LineNr">394 </span> (<a href='301array-equal.subx.html#L368'>parse-array-of-ints</a> *(ebp+0xc) %esi) -<span id="L395" class="LineNr">395 </span> (<a href='120allocate.subx.html#L256'>lookup</a> *esi *(esi+4)) <span class="subxComment"># => eax</span> +<span id="L395" class="LineNr">395 </span> (<a href='120allocate.subx.html#L226'>lookup</a> *esi *(esi+4)) <span class="subxComment"># => eax</span> <span id="L396" class="LineNr">396 </span> <span class="subxComment">#</span> <span id="L397" class="LineNr">397 </span> (<a href='301array-equal.subx.html#L5'>array-equal?</a> *(ebp+8) %eax) -<span id="L398" class="LineNr">398 </span> (<a href='102test.subx.html#L23'>check-ints-equal</a> %eax 1 *(ebp+0x10)) +<span id="L398" class="LineNr">398 </span> (<a href='502test.mu.html#L2'>check-ints-equal</a> %eax 1 *(ebp+0x10)) <span id="L399" class="LineNr">399 </span><span class="Constant">$check-array-equal:end</span>: <span id="L400" class="LineNr">400 </span> <span class="subxS1Comment"># . restore registers</span> <span id="L401" class="LineNr">401 </span> 5e/pop-to-esi @@ -481,6 +481,15 @@ if ('onhashchange' in window) { <span id="L421" class="LineNr">421 </span> 89/<- %esp 5/r32/ebp <span id="L422" class="LineNr">422 </span> 5d/pop-to-ebp <span id="L423" class="LineNr">423 </span> c3/return +<span id="L424" class="LineNr">424 </span> +<span id="L425" class="LineNr">425 </span>== data +<span id="L426" class="LineNr">426 </span> +<span id="L427" class="LineNr">427 </span><span class="subxComment"># length-prefixed string containing just a single space</span> +<span id="L428" class="LineNr">428 </span><span class="SpecialChar">Space</span>: <span class="subxComment"># (array byte)</span> +<span id="L429" class="LineNr">429 </span> <span class="subxComment"># size: int</span> +<span id="L430" class="LineNr">430 </span> 1/imm32 +<span id="L431" class="LineNr">431 </span> <span class="subxComment"># data</span> +<span id="L432" class="LineNr">432 </span> 20/space </pre> </body> </html> |