diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-05-27 08:02:29 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-05-27 08:02:29 -0700 |
commit | 4698dc0002c671b15eb0cb7d52d2a0fa470c5fde (patch) | |
tree | 358b412fc862a649c1c21fa0e01f1fd2f356680b /html/036refcount.cc.html | |
parent | a791c04264433696635d598471f3004c97f9ad50 (diff) | |
download | mu-4698dc0002c671b15eb0cb7d52d2a0fa470c5fde.tar.gz |
3021
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> |