You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Causes the interpreter to enter *interactive mode*.
8
+
9
+
#### `unreachable()`
10
+
11
+
Aborts the interpreter process. It's intended to indicate that an execution branch is not reachable.
12
+
13
+
## Constructors
14
+
15
+
#### `region()`
16
+
17
+
Creates a new region object.
18
+
19
+
#### `cown(take region)`
20
+
21
+
Creates a new `cown` object.
22
+
23
+
The region must have a local reference count of one. The `take` keyword is used to replace the local value with `None`.
24
+
25
+
### `create(proto)`
26
+
27
+
Creates a new object from the given prototype.
28
+
29
+
## Memory Management
30
+
31
+
#### `freeze(obj)`
32
+
33
+
Performs a deep freeze of the object and all referenced objects.
34
+
35
+
This will move the objects out of their current region into the immutable region. Cowns will stop the freeze propagation, as they can be safely shared across threads and behaviors.
36
+
37
+
## Mermaid
38
+
39
+
#### `mermaid_hide(obj, ..)`
40
+
41
+
Hides the given arguments from the mermaid graph.
42
+
43
+
#### `mermaid_show(obj, ..)`
44
+
45
+
Shows the given arguments in the mermaid diagram.
46
+
47
+
#### `mermaid_show_all()`
48
+
49
+
Makes all nodes visible in the mermaid diagram.
50
+
51
+
#### `mermaid_show_tainted(obj, ...)`
52
+
53
+
Draws a mermaid diagram with the given objects marked as tainted. This will show which objects are reachable at this point.
54
+
55
+
#### `mermaid_taint(obj, ...)`
56
+
57
+
Marks the given objects as tainted, this will highlight, which nodes are reachable from the given objects.
58
+
59
+
The tainted status will remain until `mermaid_untaint` is called.
60
+
61
+
`mermaid_show_tainted()` can be used to only taint the current snapshot.
62
+
63
+
#### `mermaid_untaint(obj, ...)`
64
+
65
+
Marks the given objects as untainted, thereby removing the highlights from the mermaid diagram.
0 commit comments