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

Copy Markdown View Source

Execution context carried through interpreter evaluation and builtin invocation.

Summary

Functions

Returns the default gas budget for interpreter execution.

Marks a context as needing synchronization with process-local fast context state.

Marks a context as synchronized with process-local fast context state.

Returns whether a context is synchronized with process-local fast context state.

Types

t()

@type t() :: %QuickBEAM.VM.Interpreter.Context{
  arg_buf: tuple(),
  atoms: tuple(),
  catch_stack: [{non_neg_integer(), [term()]}],
  current_func: term(),
  gas: pos_integer(),
  globals: map(),
  home_object: term(),
  new_target: term(),
  pd_synced: boolean(),
  runtime_pid: pid() | nil,
  super: term(),
  this: term(),
  trace_enabled: boolean()
}

Functions

default_gas()

Returns the default gas budget for interpreter execution.

mark_dirty(ctx)

Marks a context as needing synchronization with process-local fast context state.

mark_synced(ctx)

Marks a context as synchronized with process-local fast context state.

synced?(context)

Returns whether a context is synchronized with process-local fast context state.