Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
sayon committed Nov 15, 2023
0 parents commit ee74603
Show file tree
Hide file tree
Showing 118 changed files with 50,581 additions and 0 deletions.
208 changes: 208 additions & 0 deletions EraVM.ABI.FarCallABI.html

Large diffs are not rendered by default.

178 changes: 178 additions & 0 deletions EraVM.ABI.FarRetABI.html

Large diffs are not rendered by default.

196 changes: 196 additions & 0 deletions EraVM.ABI.FatPointerABI.html

Large diffs are not rendered by default.

90 changes: 90 additions & 0 deletions EraVM.ABI.ForwardPageTypesABI.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="coqdoc.css" rel="stylesheet" type="text/css" />
<title>EraVM.ABI.ForwardPageTypesABI</title>

<script defer=""
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.js"></script>
<script>document.addEventListener("DOMContentLoaded", function () {
var mathElements = document.getElementsByClassName("math");
var macros = [];
for (var i = 0; i < mathElements.length; i++) {
var texText = mathElements[i].firstChild;
if (mathElements[i].tagName == "SPAN") {
katex.render(texText.data, mathElements[i], {
displayMode: mathElements[i].classList.contains('display'),
throwOnError: false,
macros: macros,
fleqn: false
});
}}});
</script>
<link rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css" />
</head>

<body>

<div id="page">

<div id="header">
</div>

<div id="main">

<h1 class="libtitle">Library EraVM.ABI.ForwardPageTypesABI</h1>

<div class="code">
<span class="id" title="keyword">Require</span> <a class="idref" href="EraVM.Coder.html#"><span class="id" title="library">Coder</span></a> <a class="idref" href="EraVM.Ergs.html#"><span class="id" title="library">Ergs</span></a> <a class="idref" href="EraVM.MemoryManagement.html#"><span class="id" title="library">MemoryManagement</span></a> <a class="idref" href="EraVM.Pointer.html#"><span class="id" title="library">Pointer</span></a> <a class="idref" href="EraVM.TransientMemory.html#"><span class="id" title="library">TransientMemory</span></a> <a class="idref" href="EraVM.lib.BitsExt.html#"><span class="id" title="library">lib.BitsExt</span></a> <a class="idref" href="EraVM.ABI.FatPointerABI.html#"><span class="id" title="library">ABI.FatPointerABI</span></a>.<br/>

<br/>
<span class="id" title="keyword">Import</span> <span class="id" title="module">ssreflect</span> <span class="id" title="module">ssreflect.ssrfun</span> <span class="id" title="module">ssreflect.eqtype</span> <span class="id" title="module">ssreflect.tuple</span>.<br/>
<span class="id" title="keyword">Import</span> <a class="idref" href="EraVM.Arith.html#"><span class="id" title="module">Arith</span></a> <a class="idref" href="EraVM.Core.html#"><span class="id" title="module">Core</span></a> <a class="idref" href="EraVM.Common.html#"><span class="id" title="module">Common</span></a> <a class="idref" href="EraVM.Coder.html#"><span class="id" title="module">Coder</span></a> <a class="idref" href="EraVM.Ergs.html#"><span class="id" title="module">Ergs</span></a> <a class="idref" href="EraVM.MemoryManagement.html#"><span class="id" title="module">MemoryManagement</span></a> <a class="idref" href="EraVM.Pointer.html#"><span class="id" title="module">Pointer</span></a> <a class="idref" href="EraVM.TransientMemory.html#"><span class="id" title="module">TransientMemory</span></a> <a class="idref" href="EraVM.lib.BitsExt.html#"><span class="id" title="module">lib.BitsExt</span></a> <a class="idref" href="EraVM.ABI.FatPointerABI.html#"><span class="id" title="module">FatPointerABI</span></a>.<br/>

<br/>
<span class="id" title="keyword">Module</span> <a id="FarCallForwardPageType" class="idref" href="#FarCallForwardPageType"><span class="id" title="module">FarCallForwardPageType</span></a>.<br/>
&nbsp;&nbsp;<span class="id" title="keyword">Definition</span> <a id="FarCallForwardPageType.UseHeap" class="idref" href="#FarCallForwardPageType.UseHeap"><span class="id" title="definition">UseHeap</span></a> : <a class="idref" href="EraVM.Types.html#u8"><span class="id" title="definition">u8</span></a> := <span class="id" title="notation">#</span> 0.<br/>
&nbsp;&nbsp;<span class="id" title="keyword">Definition</span> <a id="FarCallForwardPageType.ForwardFatPointer" class="idref" href="#FarCallForwardPageType.ForwardFatPointer"><span class="id" title="definition">ForwardFatPointer</span></a> : <a class="idref" href="EraVM.Types.html#u8"><span class="id" title="definition">u8</span></a> := <span class="id" title="notation">#</span> 1.<br/>
&nbsp;&nbsp;<span class="id" title="keyword">Definition</span> <a id="FarCallForwardPageType.UseAuxHeap" class="idref" href="#FarCallForwardPageType.UseAuxHeap"><span class="id" title="definition">UseAuxHeap</span></a> : <a class="idref" href="EraVM.Types.html#u8"><span class="id" title="definition">u8</span></a> := <span class="id" title="notation">#</span> 2.<br/>
&nbsp;&nbsp;<span class="comment">(*&nbsp;other&nbsp;u8&nbsp;values&nbsp;are&nbsp;mapped&nbsp;to&nbsp;UseHeap.&nbsp;*)</span><br/>
<span class="id" title="keyword">End</span> <a class="idref" href="EraVM.ABI.ForwardPageTypesABI.html#FarCallForwardPageType"><span class="id" title="module">FarCallForwardPageType</span></a>.<br/>

<br/>
<span class="id" title="keyword">Definition</span> <a id="data_page_type_to_u8" class="idref" href="#data_page_type_to_u8"><span class="id" title="definition">data_page_type_to_u8</span></a> (<a id="t:1" class="idref" href="#t:1"><span class="id" title="binder">t</span></a>:<a class="idref" href="EraVM.memory.PageTypes.html#data_page_type"><span class="id" title="inductive">data_page_type</span></a>) : <a class="idref" href="EraVM.Types.html#u8"><span class="id" title="definition">u8</span></a> :=<br/>
&nbsp;&nbsp;<span class="id" title="keyword">match</span> <a class="idref" href="EraVM.ABI.ForwardPageTypesABI.html#t:1"><span class="id" title="variable">t</span></a> <span class="id" title="keyword">with</span><br/>
&nbsp;&nbsp;| <a class="idref" href="EraVM.memory.PageTypes.html#Heap"><span class="id" title="constructor">Heap</span></a><a class="idref" href="EraVM.ABI.ForwardPageTypesABI.html#UseHeap"><span class="id" title="definition">FarCallForwardPageType.UseHeap</span></a><br/>
&nbsp;&nbsp;| <a class="idref" href="EraVM.memory.PageTypes.html#AuxHeap"><span class="id" title="constructor">AuxHeap</span></a><a class="idref" href="EraVM.ABI.ForwardPageTypesABI.html#UseAuxHeap"><span class="id" title="definition">FarCallForwardPageType.UseAuxHeap</span></a><br/>
&nbsp;&nbsp;<span class="id" title="keyword">end</span>.<br/>

<br/>
<span class="id" title="keyword">Definition</span> <a id="span_of" class="idref" href="#span_of"><span class="id" title="definition">span_of</span></a> (<a id="fp:3" class="idref" href="#fp:3"><span class="id" title="binder">fp</span></a>: <a class="idref" href="EraVM.ABI.FatPointerABI.html#fat_ptr_layout"><span class="id" title="record">fat_ptr_layout</span></a>) : <a class="idref" href="EraVM.Pointer.html#span"><span class="id" title="record">span</span></a> :=<br/>
&nbsp;&nbsp;<a class="idref" href="EraVM.Pointer.html#mk_span"><span class="id" title="constructor">mk_span</span></a> <a class="idref" href="EraVM.ABI.ForwardPageTypesABI.html#fp:3"><span class="id" title="variable">fp</span></a>.(<a class="idref" href="EraVM.ABI.FatPointerABI.html#start"><span class="id" title="projection">start</span></a>) <a class="idref" href="EraVM.ABI.ForwardPageTypesABI.html#fp:3"><span class="id" title="variable">fp</span></a>.(<a class="idref" href="EraVM.ABI.FatPointerABI.html#length"><span class="id" title="projection">length</span></a>).<br/>

<br/>
<span class="id" title="keyword">Definition</span> <a id="fwd_memory_adapter" class="idref" href="#fwd_memory_adapter"><span class="id" title="definition">fwd_memory_adapter</span></a> (<a id="fwd_type:4" class="idref" href="#fwd_type:4"><span class="id" title="binder">fwd_type</span></a>: <a class="idref" href="EraVM.Types.html#u8"><span class="id" title="definition">u8</span></a>) (<a id="raw_fat_ptr_layout:5" class="idref" href="#raw_fat_ptr_layout:5"><span class="id" title="binder">raw_fat_ptr_layout</span></a>: <a class="idref" href="EraVM.ABI.FatPointerABI.html#fat_ptr_layout"><span class="id" title="record">fat_ptr_layout</span></a>) : <a class="idref" href="http://coq.inria.fr/distrib/V8.18+alpha/stdlib//Coq.Init.Datatypes.html#option"><span class="id" title="inductive">option</span></a> <a class="idref" href="EraVM.MemoryManagement.html#fwd_memory"><span class="id" title="inductive">MemoryManagement.fwd_memory</span></a>:=<br/>
&nbsp;&nbsp;<a class="idref" href="http://coq.inria.fr/distrib/V8.18+alpha/stdlib//Coq.ssr.ssreflect.html#::boolean_if_scope:'if'_x_'then'_x_'else'_x"><span class="id" title="notation">if</span></a> <a class="idref" href="EraVM.ABI.ForwardPageTypesABI.html#fwd_type:4"><span class="id" title="variable">fwd_type</span></a> <span class="id" title="notation">==</span> <a class="idref" href="EraVM.ABI.ForwardPageTypesABI.html#ForwardFatPointer"><span class="id" title="definition">FarCallForwardPageType.ForwardFatPointer</span></a> <a class="idref" href="http://coq.inria.fr/distrib/V8.18+alpha/stdlib//Coq.ssr.ssreflect.html#::boolean_if_scope:'if'_x_'then'_x_'else'_x"><span class="id" title="notation">then</span></a><br/>
&nbsp;&nbsp;&nbsp;&nbsp;<a class="idref" href="http://coq.inria.fr/distrib/V8.18+alpha/stdlib//Coq.Init.Datatypes.html#option_map"><span class="id" title="definition">option_map</span></a> <a class="idref" href="EraVM.MemoryManagement.html#ForwardExistingFatPointer"><span class="id" title="constructor">ForwardExistingFatPointer</span></a><br/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(<a class="idref" href="EraVM.ABI.FatPointerABI.html#decode_layout"><span class="id" title="definition">FatPointerABI.decode_layout</span></a> <a class="idref" href="EraVM.ABI.ForwardPageTypesABI.html#raw_fat_ptr_layout:5"><span class="id" title="variable">raw_fat_ptr_layout</span></a>)<br/>
&nbsp;&nbsp;<a class="idref" href="http://coq.inria.fr/distrib/V8.18+alpha/stdlib//Coq.ssr.ssreflect.html#::boolean_if_scope:'if'_x_'then'_x_'else'_x"><span class="id" title="notation">else</span></a><br/>
&nbsp;&nbsp;&nbsp;&nbsp;<span class="id" title="keyword">let</span> <a id="span:6" class="idref" href="#span:6"><span class="id" title="binder">span</span></a> := <a class="idref" href="EraVM.ABI.ForwardPageTypesABI.html#span_of"><span class="id" title="definition">span_of</span></a> <a class="idref" href="EraVM.ABI.ForwardPageTypesABI.html#raw_fat_ptr_layout:5"><span class="id" title="variable">raw_fat_ptr_layout</span></a> <span class="id" title="tactic">in</span><br/>
&nbsp;&nbsp;&nbsp;&nbsp;<a class="idref" href="http://coq.inria.fr/distrib/V8.18+alpha/stdlib//Coq.Init.Datatypes.html#Some"><span class="id" title="constructor">Some</span></a> (<br/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a class="idref" href="http://coq.inria.fr/distrib/V8.18+alpha/stdlib//Coq.ssr.ssreflect.html#::boolean_if_scope:'if'_x_'then'_x_'else'_x"><span class="id" title="notation">if</span></a> <a class="idref" href="EraVM.ABI.ForwardPageTypesABI.html#fwd_type:4"><span class="id" title="variable">fwd_type</span></a> <span class="id" title="notation">==</span> <a class="idref" href="EraVM.ABI.ForwardPageTypesABI.html#UseAuxHeap"><span class="id" title="definition">FarCallForwardPageType.UseAuxHeap</span></a> <a class="idref" href="http://coq.inria.fr/distrib/V8.18+alpha/stdlib//Coq.ssr.ssreflect.html#::boolean_if_scope:'if'_x_'then'_x_'else'_x"><span class="id" title="notation">then</span></a><br/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a class="idref" href="EraVM.MemoryManagement.html#ForwardNewFatPointer"><span class="id" title="constructor">ForwardNewFatPointer</span></a> <a class="idref" href="EraVM.memory.PageTypes.html#AuxHeap"><span class="id" title="constructor">AuxHeap</span></a> <a class="idref" href="EraVM.ABI.ForwardPageTypesABI.html#span:6"><span class="id" title="variable">span</span></a><br/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a class="idref" href="http://coq.inria.fr/distrib/V8.18+alpha/stdlib//Coq.ssr.ssreflect.html#::boolean_if_scope:'if'_x_'then'_x_'else'_x"><span class="id" title="notation">else</span></a> <span class="comment">(*&nbsp;Heap&nbsp;or&nbsp;a&nbsp;default&nbsp;option&nbsp;*)</span><br/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a class="idref" href="EraVM.MemoryManagement.html#ForwardNewFatPointer"><span class="id" title="constructor">ForwardNewFatPointer</span></a> <a class="idref" href="EraVM.memory.PageTypes.html#Heap"><span class="id" title="constructor">Heap</span></a> <a class="idref" href="EraVM.ABI.ForwardPageTypesABI.html#span:6"><span class="id" title="variable">span</span></a><br/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)<br/>
.<br/>
</div>
</div>

<div id="footer">
<hr/><a href="index.html">Index</a><hr/>This page has been generated by <a href="http://coq.inria.fr/">coqdoc</a>
</div>

</div>

</body>
</html>
Loading

0 comments on commit ee74603

Please sign in to comment.