QuickBEAM.VM.Invocation.Context (QuickBEAM v0.10.9)

Copy Markdown View Source

Fast-context snapshot and restoration: serialises the interpreter context into/out of process dictionary for JIT calls.

Summary

Functions

Returns the current argument tuple used by compiled functions.

Returns the active atom table from fast context, full context, or heap fallback.

Returns the currently executing function value.

Returns active globals from fast context, full context, or runtime fallback.

Returns the current method home object used for super lookup.

Returns the active JavaScript new.target value.

Returns the current superclass/prototype target used for super lookup.

Returns the active JavaScript this value.

Returns the raw fast-context tuple or the missing sentinel.

Returns the sentinel used when no fast context is installed.

Returns the current fast-context process dictionary snapshot.

Functions

attach_method_state(ctx)

current_arg_buf()

Returns the current argument tuple used by compiled functions.

current_atoms()

Returns the active atom table from fast context, full context, or heap fallback.

current_func()

Returns the currently executing function value.

current_globals()

Returns active globals from fast context, full context, or runtime fallback.

current_home_object(current_func \\ current_func())

Returns the current method home object used for super lookup.

current_new_target()

Returns the active JavaScript new.target value.

current_super(home_object \\ current_home_object())

Returns the current superclass/prototype target used for super lookup.

current_this()

Returns the active JavaScript this value.

fast_ctx()

Returns the raw fast-context tuple or the missing sentinel.

missing()

Returns the sentinel used when no fast context is installed.

put_fast_ctx(ctx)

restore_fast_ctx(snapshot)

snapshot_fast_ctx()

Returns the current fast-context process dictionary snapshot.