Lines Matching defs:function
29 #include "ecma-function-object.h"
227 /* This function cannot be called twice unless jerry_cleanup is called. */
439 * Parse script and construct an EcmaScript function. The lexical
442 * @return function object value - if script was parsed successfully,
513 * Parse function and construct an EcmaScript function. The lexical
516 * @return function object value - if script was parsed successfully,
596 * Run an EcmaScript function created by jerry_parse.
605 jerry_run (const jerry_value_t func_val) /**< function to run */
625 ext_func_p->u.function.scope_cp);
743 * Check if the specified value is a constructor function object value.
745 * @return true - if the specified value is a function value that implements [[Construct]],
771 * Check if the specified value is a function object value.
1532 * Create an external function object
1537 * @return value of the constructed function object
1541 * for the function */
2802 * Invoke function specified by a function value
2806 * - If function is invoked as constructor, it should support [[Construct]] method,
2807 * otherwise, if function is simply called - it should support [[Call]] method.
2809 * @return returned jerry value of the invoked function
2812 jerry_invoke_function (bool is_invoke_as_constructor, /**< true - invoke function as constructor
2814 * false - perform function call */
2815 const jerry_value_t func_obj_val, /**< function object to call */
2817 const jerry_value_t args_p[], /**< function's call arguments */
2857 * Call function specified by a function value
2861 * error flag must not be set for any arguments of this function.
2863 * @return returned jerry value of the called function
2866 jerry_call_function (const jerry_value_t func_obj_val, /**< function object to call */
2868 const jerry_value_t args_p[], /**< function's call arguments */
2875 * Clear flag JERRY_DEBUGGER_VM_STOP and set debugger_stop_context Null everytime jerry's debugger call a function.
2876 * This could solve the problem that jerry's debugger stops at an unexpected line when re-entering a function after a
2906 * Construct object value invoking specified function value as a constructor
2910 * error flag must not be set for any arguments of this function.
2915 jerry_construct_object (const jerry_value_t func_obj_val, /**< function object to call */
2916 const jerry_value_t args_p[], /**< function's call arguments
3070 jerry_objects_foreach (jerry_objects_foreach_t foreach_p, /**< function pointer of the iterator function */
3104 jerry_objects_foreach_by_native_info_t foreach_p, /**< function to apply for
3209 * the function has no effect.
3234 * Applies the given function to the every property in the object.
3244 jerry_object_property_foreach_t foreach_p, /**< foreach function */
3245 void *user_data_p) /**< user data for foreach function */
3325 ecma_value_t function = ecma_op_object_get_by_magic_id (ecma_get_object_from_value (promise), prop_name);
3327 ecma_value_t ret = ecma_op_function_call (ecma_get_object_from_value (function),
3332 ecma_free_value (function);
3457 * This function may take away memory from the executed JavaScript code.
3491 jerry_context_alloc_t alloc, /**< the alloc function */
3492 void *cb_data_p) /**< the cb_data for alloc function */
3550 * If JERRY_VM_EXEC_STOP is enabled the callback passed to this function is
3555 jerry_set_vm_exec_stop_callback (jerry_vm_exec_stop_callback_t stop_cb, /**< periodically called user function */
3556 void *user_p, /**< pointer passed to the function */
3557 uint32_t frequency) /**< frequency of the function call */
3590 * Get the resource name (usually a file name) of the currently executed script or the given function object
3595 * - the currently executed function object's resource name, if the given value is undefined
3596 * - resource name of the function object, if the given value is a function object
3636 * this method will only have a function object result if, at the call site
3640 * function object - if the current call site is in a constructor call.
4127 * Helper function to get the TypedArray prototype, typedArray id, and element size shift