• Home
  • Raw
  • Download

Lines Matching refs:jerry_value_t

36 static jerry_value_t
39 const jerry_value_t module_name) /**< the module name */ in jerryx_module_create_error()
41 jerry_value_t ret = jerry_create_error (error_type, message); in jerryx_module_create_error()
43 jerry_value_t error_object = jerry_get_value_from_error (ret, false); in jerryx_module_create_error()
44 jerry_value_t property_name = jerry_create_string (module_name_property_name); in jerryx_module_create_error()
59 *((jerry_value_t *) user_data_p) = jerry_create_object (); in jerryx_module_manager_init()
68 jerry_release_value (*(jerry_value_t *) user_data_p); in jerryx_module_manager_deinit()
78 .bytes_needed = sizeof (jerry_value_t)
117 jerryx_module_check_cache (jerry_value_t cache, /**< cache from which to attempt to retrieve the mo… in jerryx_module_check_cache()
118jerry_value_t module_name, /**< JerryScript string value holding the module name */ in jerryx_module_check_cache()
119 jerry_value_t *result) /**< Resulting value */ in jerryx_module_check_cache()
124 jerry_value_t js_has_property = jerry_has_property (cache, module_name); in jerryx_module_check_cache()
153 static jerry_value_t
154 jerryx_module_add_to_cache (jerry_value_t cache, /**< cache to which to add the module */ in jerryx_module_add_to_cache()
155 jerry_value_t module_name, /**< key at which to cache the module */ in jerryx_module_add_to_cache()
156 jerry_value_t module) /**< the module to cache */ in jerryx_module_add_to_cache()
158 jerry_value_t ret = jerry_set_property (cache, module_name, module); in jerryx_module_add_to_cache()
181 jerryx_resolve_native_module (const jerry_value_t canonical_name, /**< canonical name of the module… in jerryx_resolve_native_module()
182jerry_value_t *result) /**< [out] where to put the resulting module instance */ in jerryx_resolve_native_module()
234 jerryx_module_resolve_local (const jerry_value_t name, /**< name of the module to load */ in jerryx_module_resolve_local()
237jerry_value_t *result) /**< location to store the result, or NULL to remove the module */ in jerryx_module_resolve_local()
241 jerry_value_t instances; in jerryx_module_resolve_local()
243 jerry_value_t* canonical_names; in jerryx_module_resolve_local()
244 canonical_names = (jerry_value_t*) jerry_vla_malloc (sizeof(jerry_value_t) * resolver_count); in jerryx_module_resolve_local()
251 JERRY_VLA (jerry_value_t, canonical_names, resolver_count); in jerryx_module_resolve_local()
253 jerry_value_t (*get_canonical_name_p) (const jerry_value_t name); in jerryx_module_resolve_local()
254 bool (*resolve_p) (const jerry_value_t canonical_name, in jerryx_module_resolve_local()
255 jerry_value_t *result); in jerryx_module_resolve_local()
266 instances = *(jerry_value_t *) jerry_get_context_data (&jerryx_module_manager); in jerryx_module_resolve_local()
338 jerry_value_t
339 jerryx_module_resolve (const jerry_value_t name, /**< name of the module to load */ in jerryx_module_resolve()
344 jerry_value_t ret = 0; in jerryx_module_resolve()
350 jerryx_module_clear_cache (const jerry_value_t name, /**< name of the module to remove, or undefine… in jerryx_module_clear_cache()