diff options
author | Kartik Agaram <vc@akkartik.com> | 2019-10-17 22:03:35 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2019-10-17 22:03:48 -0700 |
commit | b1635a5c8e25650a19999c246be321a0794eb58a (patch) | |
tree | a5ce06d138fac34b1e13fb1b06fd91b8b6c55712 /html/069allocate.subx.html | |
parent | 540974343290cb9ac0cf55b999447bf563928612 (diff) | |
download | mu-b1635a5c8e25650a19999c246be321a0794eb58a.tar.gz |
5701
Diffstat (limited to 'html/069allocate.subx.html')
-rw-r--r-- | html/069allocate.subx.html | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/html/069allocate.subx.html b/html/069allocate.subx.html index 0a167fe1..e6b83f2f 100644 --- a/html/069allocate.subx.html +++ b/html/069allocate.subx.html @@ -121,7 +121,7 @@ if ('onhashchange' in window) { <span id="L59" class="LineNr"> 59 </span><span class="subxComment"># Claim the next 'n' bytes of memory starting at ad->curr and update ad->curr.</span> <span id="L60" class="LineNr"> 60 </span><span class="subxComment"># Abort if there isn't enough memory in 'ad'.</span> <span id="L61" class="LineNr"> 61 </span><span class="subxFunction">allocate</span>: <span class="subxComment"># ad : (address allocation-descriptor), n : int -> address-or-null/eax</span> -<span id="L62" class="LineNr"> 62 </span> <span class="subxS1Comment"># . prolog</span> +<span id="L62" class="LineNr"> 62 </span> <span class="subxS1Comment"># . prologue</span> <span id="L63" class="LineNr"> 63 </span> 55/push-ebp <span id="L64" class="LineNr"> 64 </span> 89/copy 3/mod/direct 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/r32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy esp to ebp</span> <span id="L65" class="LineNr"> 65 </span> <span class="subxS1Comment"># . save registers</span> @@ -144,7 +144,7 @@ if ('onhashchange' in window) { <span id="L82" class="LineNr"> 82 </span> <span class="subxS1Comment"># . restore registers</span> <span id="L83" class="LineNr"> 83 </span> 5a/pop-to-edx <span id="L84" class="LineNr"> 84 </span> 59/pop-to-ecx -<span id="L85" class="LineNr"> 85 </span> <span class="subxS1Comment"># . epilog</span> +<span id="L85" class="LineNr"> 85 </span> <span class="subxS1Comment"># . epilogue</span> <span id="L86" class="LineNr"> 86 </span> 89/copy 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 5/r32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy ebp to esp</span> <span id="L87" class="LineNr"> 87 </span> 5d/pop-to-ebp <span id="L88" class="LineNr"> 88 </span> c3/return @@ -165,7 +165,7 @@ if ('onhashchange' in window) { <span id="L103" class="LineNr">103 </span> <span class="subxComment"># never gets here</span> <span id="L104" class="LineNr">104 </span> <span id="L105" class="LineNr">105 </span><span class="subxTest">test-allocate-success</span>: -<span id="L106" class="LineNr">106 </span> <span class="subxS1Comment"># . prolog</span> +<span id="L106" class="LineNr">106 </span> <span class="subxS1Comment"># . prologue</span> <span id="L107" class="LineNr">107 </span> 55/push-ebp <span id="L108" class="LineNr">108 </span> 89/copy 3/mod/direct 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/r32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy esp to ebp</span> <span id="L109" class="LineNr">109 </span> <span class="subxComment"># var ad/ecx : (address allocation-descriptor) = {11, 15}</span> @@ -198,13 +198,13 @@ if ('onhashchange' in window) { <span id="L136" class="LineNr">136 </span> e8/call <a href='051test.subx.html#L24'>check-ints-equal</a>/disp32 <span id="L137" class="LineNr">137 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L138" class="LineNr">138 </span> 81 0/subop/add 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0xc/imm32 <span class="subxComment"># add to esp</span> -<span id="L139" class="LineNr">139 </span> <span class="subxS1Comment"># . epilog</span> +<span id="L139" class="LineNr">139 </span> <span class="subxS1Comment"># . epilogue</span> <span id="L140" class="LineNr">140 </span> 89/copy 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 5/r32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy ebp to esp</span> <span id="L141" class="LineNr">141 </span> 5d/pop-to-ebp <span id="L142" class="LineNr">142 </span> c3/return <span id="L143" class="LineNr">143 </span> <span id="L144" class="LineNr">144 </span><span class="subxMinorFunction">_pending-test-allocate-failure</span>: -<span id="L145" class="LineNr">145 </span> <span class="subxS1Comment"># . prolog</span> +<span id="L145" class="LineNr">145 </span> <span class="subxS1Comment"># . prologue</span> <span id="L146" class="LineNr">146 </span> 55/push-ebp <span id="L147" class="LineNr">147 </span> 89/copy 3/mod/direct 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/r32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy esp to ebp</span> <span id="L148" class="LineNr">148 </span> <span class="subxComment"># var ad/ecx : (address allocation-descriptor) = {11, 15}</span> @@ -238,14 +238,14 @@ if ('onhashchange' in window) { <span id="L176" class="LineNr">176 </span> e8/call <a href='051test.subx.html#L24'>check-ints-equal</a>/disp32 <span id="L177" class="LineNr">177 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L178" class="LineNr">178 </span> 81 0/subop/add 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0xc/imm32 <span class="subxComment"># add to esp</span> -<span id="L179" class="LineNr">179 </span> <span class="subxS1Comment"># . epilog</span> +<span id="L179" class="LineNr">179 </span> <span class="subxS1Comment"># . epilogue</span> <span id="L180" class="LineNr">180 </span> 89/copy 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 5/r32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy ebp to esp</span> <span id="L181" class="LineNr">181 </span> 5d/pop-to-ebp <span id="L182" class="LineNr">182 </span> c3/return <span id="L183" class="LineNr">183 </span> <span id="L184" class="LineNr">184 </span><span class="subxComment"># helper: create a nested allocation descriptor (useful for tests)</span> <span id="L185" class="LineNr">185 </span><span class="subxFunction">allocate-region</span>: <span class="subxComment"># ad : (address allocation-descriptor), n : int -> new-ad : (address allocation-descriptor)</span> -<span id="L186" class="LineNr">186 </span> <span class="subxS1Comment"># . prolog</span> +<span id="L186" class="LineNr">186 </span> <span class="subxS1Comment"># . prologue</span> <span id="L187" class="LineNr">187 </span> 55/push-ebp <span id="L188" class="LineNr">188 </span> 89/copy 3/mod/direct 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/r32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy esp to ebp</span> <span id="L189" class="LineNr">189 </span> <span class="subxS1Comment"># . save registers</span> @@ -272,7 +272,7 @@ if ('onhashchange' in window) { <span id="L210" class="LineNr">210 </span> 89/copy 1/mod/*+disp8 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 1/r32/ecx 4/disp8 <span class="Normal"> . </span> <span class="subxComment"># copy ecx to *(eax+4)</span> <span id="L211" class="LineNr">211 </span> <span class="subxS1Comment"># . restore registers</span> <span id="L212" class="LineNr">212 </span> 59/pop-to-ecx -<span id="L213" class="LineNr">213 </span> <span class="subxS1Comment"># . epilog</span> +<span id="L213" class="LineNr">213 </span> <span class="subxS1Comment"># . epilogue</span> <span id="L214" class="LineNr">214 </span> 89/copy 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 5/r32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy ebp to esp</span> <span id="L215" class="LineNr">215 </span> 5d/pop-to-ebp <span id="L216" class="LineNr">216 </span> c3/return |