Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

vm source realm

Readme View source

Modules here are only useful for file realm tests. They can be safely ignored for other purposes.

Variables 2

Functions 28

func ExecRlm

Action
1func ExecRlm(_ int, rlm realm, fn func(_ int, rlm realm))
source

ExecRlm mirrors Exec but threads the caller's rlm into the callback so the callback can use `cross(rlm)` instead of bare `cross`.

func ExecSwitchRlm

crossing Action
1func ExecSwitchRlm(cur realm, fn func(_ int, rlm realm))
source

ExecSwitchRlm is the rlm-threaded variant of ExecSwitch — crosses into this realm and passes the callee's cur to the callback so the callback can `cross(rlm)` against the switched realm.

func NewTestRealmObject

Action
1func NewTestRealmObject() *TestRealmObject
source

NewTestRealmObject returns a fresh heap-allocated TestRealmObject. Non-crossing — relies on borrow rule #1 to set m.Realm = /r/tests/vm inside the body so the composite literal passes checkConstructionTime.

Types 6

type Foo

struct
1type Foo struct {
2	A int
3	B *Foo
4}
source

Methods on Foo

type Int

struct
1type Int struct {
2	neg bool
3	abs nat
4}
source

structLit

type Stringer

interface
1type Stringer interface {
2	String() string
3}
source

type TestNode

struct
1type TestNode struct {
2	Name  string
3	Child *TestNode
4}
source

type TestRealmObject

struct
1type TestRealmObject struct {
2	Field string
3}
source

Methods on TestRealmObject

func Modify

method on TestRealmObject
1func (t *TestRealmObject) Modify()
source

Imports 5

Source Files 14

Directories 1