QuickBEAM.VM.ObjectModel.Functions (QuickBEAM v0.10.9)

Copy Markdown View Source

Function object helpers for names, home objects, and super method dispatch metadata.

Summary

Functions

Looks up the home object associated with the current function.

Converts a JavaScript property name value into a function display name.

Returns the stable cache key used for a function's home object.

Records the home object needed by methods that use super.

Returns a function value with its JavaScript name metadata updated.

Sets a function name from an atom-table index.

Sets a function name from a computed JavaScript property value.

Functions

current_home_object(current_func)

Looks up the home object associated with the current function.

function_name(name_val)

Converts a JavaScript property name value into a function display name.

home_object_key(fun)

Returns the stable cache key used for a function's home object.

put_home_object(method, target)

Records the home object needed by methods that use super.

rename(fun, name)

Returns a function value with its JavaScript name metadata updated.

set_name_atom(fun, atom_idx, atoms \\ Heap.get_atoms())

Sets a function name from an atom-table index.

set_name_computed(fun, name_val)

Sets a function name from a computed JavaScript property value.