diff options
Diffstat (limited to 'html/036refcount.cc.html')
-rw-r--r-- | html/036refcount.cc.html | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/html/036refcount.cc.html b/html/036refcount.cc.html index 66136c91..e456934b 100644 --- a/html/036refcount.cc.html +++ b/html/036refcount.cc.html @@ -169,15 +169,12 @@ element<span class="Delimiter">.</span>value = address<span class="Delimiter">;< <span class="Delimiter">:(scenario refcounts_put_index)</span> def main [ <span class="Constant">1</span>:address:number<span class="Special"> <- </span><span class="Normal">new</span> number:type - <span class="Comment"># fake array because we can't yet create an array of addresses (wait for the</span> - <span class="Comment"># support for dilated reagents and parsing more complex type trees)</span> - <span class="Constant">1003</span>:number/<span class="Special">raw <- </span>copy <span class="Constant">3</span> <span class="Comment"># skip refcount at 1002</span> - <span class="Constant">2</span>:address:array:address:number<span class="Special"> <- </span>copy <span class="Constant">1002</span>/unsafe + <span class="Constant">2</span>:address:array:address:number<span class="Special"> <- </span><span class="Normal">new</span> <span class="Delimiter">{(</span>address number<span class="Delimiter">)</span>: type<span class="Delimiter">},</span> <span class="Constant">3</span> *<span class="Constant">2</span>:address:array:address:number<span class="Special"> <- </span>put-index *<span class="Constant">2</span>:address:array:address:number<span class="Delimiter">,</span> <span class="Constant">0</span><span class="Delimiter">,</span> <span class="Constant">1</span>:address:number ] <span class="traceContains">+run: {1: ("address" "number")} <- new {number: "type"}</span> <span class="traceContains">+mem: incrementing refcount of 1000: 0 -> 1</span> -<span class="traceContains">+run: {2: ("address" "array" "address" "number")} <- copy {1002: "literal", "unsafe": ()}</span> +<span class="traceContains">+run: {2: ("address" "array" "address" "number")} <- new {(address number): "type"}, {3: "literal"}</span> <span class="traceContains">+mem: incrementing refcount of 1002: 0 -> 1</span> <span class="traceContains">+run: {2: ("address" "array" "address" "number"), "lookup": ()} <- put-index {2: ("address" "array" "address" "number"), "lookup": ()}, {0: "literal"}, {1: ("address" "number")}</span> <span class="Comment"># put-index increments refcount</span> |