QuickBEAM.VM.Program.Function (QuickBEAM v0.11.0)

View Source

JavaScript function metadata and pre-resolved VM instructions used by the interpreter and BEAM compiler.

Summary

Types

t()

@type t() :: %QuickBEAM.VM.Program.Function{
  arg_count: non_neg_integer(),
  arguments_allowed: boolean(),
  atoms: tuple(),
  closure_vars: [QuickBEAM.VM.Program.Variable.Closure.t()],
  col_num: pos_integer(),
  constants: [term()],
  defined_arg_count: non_neg_integer(),
  filename: String.t() | nil,
  func_kind: non_neg_integer(),
  has_debug_info: boolean(),
  has_prototype: boolean(),
  has_simple_parameter_list: boolean(),
  id: non_neg_integer(),
  instructions: tuple(),
  is_derived_class_constructor: boolean(),
  is_strict_mode: boolean(),
  line_num: pos_integer(),
  locals: [QuickBEAM.VM.Program.Variable.t()],
  name: String.t(),
  need_home_object: boolean(),
  new_target_allowed: boolean(),
  pc2line: binary(),
  source: binary(),
  source_positions: tuple(),
  stack_size: non_neg_integer(),
  super_allowed: boolean(),
  super_call_allowed: boolean(),
  var_count: non_neg_integer(),
  var_ref_count: non_neg_integer()
}