Home
last modified time | relevance | path

Searched refs:JS_DupValue (Results 1 – 25 of 25) sorted by relevance

/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/utils/ui/
A Dapp_entry.c40 app_options.object = JS_DupValue(ctx, irq_cb); in native_app_entry()
46 app_options.global_data = JS_DupValue(ctx, irq_cb); in native_app_entry()
53 app_options.on_launch = JS_DupValue(ctx, irq_cb); in native_app_entry()
60 app_options.on_error = JS_DupValue(ctx, irq_cb); in native_app_entry()
67 app_options.on_exit = JS_DupValue(ctx, irq_cb); in native_app_entry()
A Dpage_entry.c184 page_options.object = JS_DupValue(ctx, irq_cb); in native_page_entry()
190 page_options.data = JS_DupValue(ctx, irq_cb); in native_page_entry()
198 page_options.on_show = JS_DupValue(ctx, irq_cb); in native_page_entry()
205 page_options.on_update = JS_DupValue(ctx, irq_cb); in native_page_entry()
212 page_options.on_exit = JS_DupValue(ctx, irq_cb); in native_page_entry()
/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/utils/systimer/
A Dmodule_systimer.c51 fun = JS_DupValue(ctx, t->js_cb_ref); in timer_action()
146 JSValue js_cb_ref = JS_DupValue(ctx, irq_cb); in native_setTimeout()
174 JSValue js_cb_ref = JS_DupValue(ctx, irq_cb); in native_setInterval()
/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/advanced/aiot/
A Dmodule_aiot_gateway.c470 iot_gateway_handle->js_cb_ref[AIOT_SUBDEV_JSCALLBACK_CREATE_GATEWAY_REF] = JS_DupValue(ctx, cb); in native_aiot_create_gateway()
518 iot_gateway_handle->js_cb_ref[AIOT_SUBDEV_JSCALLBACK_ADD_TOPO_REF] = JS_DupValue(ctx, cb); in native_aiot_addTopo()
549 iot_gateway_handle->js_cb_ref[AIOT_SUBDEV_JSCALLBACK_GET_TOPO_REF] = JS_DupValue(ctx, cb); in native_aiot_getTopo()
591 iot_gateway_handle->js_cb_ref[AIOT_SUBDEV_JSCALLBACK_REMOVE_TOPO_REF] = JS_DupValue(ctx, cb); in native_aiot_removeTopo()
643 … iot_gateway_handle->js_cb_ref[AIOT_SUBDEV_JSCALLBACK_REGISTER_SUBDEV_REF] = JS_DupValue(ctx, cb); in native_aiot_registerSubDevice()
700 iot_gateway_handle->js_cb_ref[AIOT_SUBDEV_JSCALLBACK_LOGIN_REF] = JS_DupValue(ctx, cb); in native_aiot_login()
743 iot_gateway_handle->js_cb_ref[AIOT_SUBDEV_JSCALLBACK_LOGOUT_REF] = JS_DupValue(ctx, cb); in native_aiot_logout()
839 iot_gateway_handle->js_cb_ref[AIOT_SUBDEV_JSCALLBACK_UNSUBSCRIBE_REF] = JS_DupValue(ctx, cb); in native_aiot_unsubscribe()
870 iot_gateway_handle->js_cb_ref[AIOT_SUBDEV_JSCALLBACK_SUBSCRIBE_REF] = JS_DupValue(ctx, cb); in native_aiot_subscribe()
893 JSValue js_cb = JS_DupValue(ctx, argv[0]); in native_aiot_get_ntp_time()
[all …]
A Dmodule_aiot_device.c534 js_cb_ref = JS_DupValue(ctx, cb); in native_aiot_create_device()
589 JSValue js_cb = JS_DupValue(ctx, argv[0]); in native_aiot_get_ntp_time()
641 JSValue js_cb_ref = JS_DupValue(ctx, argv[1]); in native_aiot_dynreg()
768 JSValue js_cb_ref = JS_DupValue(ctx, argv[0]); in native_aiot_onProps()
788 iot_device_handle->js_cb_ref[AIOT_DEV_JSCALLBACK_ONSERVICE_REF] = JS_DupValue(ctx, argv[0]); in native_aiot_onService()
859 iot_device_handle->js_cb_ref[AIOT_DEV_JSCALLBACK_UNSUBSCRIBE_REF] = JS_DupValue(ctx, argv[1]); in native_aiot_unsubscribe()
897 iot_device_handle->js_cb_ref[AIOT_DEV_JSCALLBACK_SUBSCRIBE_REF] = JS_DupValue(ctx, argv[1]); in native_aiot_subscribe()
/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/network/tcp/
A Dmodule_tcp.c149 create_param->js_cb_ref = JS_DupValue(ctx, argv[1]); in native_tcp_create_socket()
254 send_param->js_cb_ref = JS_DupValue(ctx, argv[2]); in native_tcp_send()
369 recv_param->js_cb_ref = JS_DupValue(ctx, argv[1]); in native_tcp_receive()
/AliOS-Things-master/components/amp/engine/quickjs_engine/quickjs/
A Dquickjs.c12744 sp[0] = JS_DupValue(ctx, op1); in js_post_inc_slow()
14488 JS_DupValue(ctx, op1), JS_DupValue(ctx, op2), in js_same_value()
14495 JS_DupValue(ctx, op1), JS_DupValue(ctx, op2), in js_same_value_zero()
21473 JS_DupValue(s->ctx, val); in emit_push_const()
27726 return JS_DupValue(ctx, obj); in JS_GetImportMeta()
35862 return JS_DupValue(ctx, obj); in js_object_setPrototypeOf()
36378 return JS_DupValue(ctx, obj); in js_object_seal()
36674 v1 = JS_DupValue(ctx, v); in js_object_isPrototypeOf()
43246 indent1 = JS_ConcatString(ctx, JS_DupValue(ctx, indent), JS_DupValue(ctx, jsc->gap)); in js_json_to_str()
43494 val = JS_DupValue(ctx, obj); in JS_JSONStringify()
[all …]
A Drun-test262.c614 agent->broadcast_sab = JS_DupValue(ctx, sab); in js_agent_broadcast()
637 agent->broadcast_func = JS_DupValue(ctx, argv[0]); in js_agent_receiveBroadcast()
772 JS_DupValue(ctx, global_obj)); in add_helpers1()
777 JS_SetPropertyStr(ctx, global_obj, "$262", JS_DupValue(ctx, obj262)); in add_helpers1()
A Dquickjs-libc.c1799 rh->rw_func[magic] = JS_DupValue(ctx, func); in js_os_setReadHandler()
1881 sh->func = JS_DupValue(ctx, func); in js_os_signal()
1965 th->func = JS_DupValue(ctx, func); in js_os_setTimeout()
1992 func1 = JS_DupValue(ctx, func); in call_handler()
2129 func = JS_DupValue(ctx, port->on_message_func); in handle_posted_message()
3429 port->on_message_func = JS_DupValue(ctx, func); in js_worker_set_onmessage()
3442 return JS_DupValue(ctx, port->on_message_func); in js_worker_get_onmessage()
A Dquickjs.h657 static inline JSValue JS_DupValue(JSContext *ctx, JSValueConst v) in JS_DupValue() function
/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/advanced/ota/
A Dmodule_appota.c134 ota_package_info->js_cb_ref = JS_DupValue(ctx, argv[1]); in native_ota_upgrade()
235 ota_package_info->js_cb_ref = JS_DupValue(ctx, argv[1]); in native_ota_verify()
323 ota_package_info->js_cb_ref = JS_DupValue(ctx, argv[1]); in native_ota_download()
514 ota_package_info->js_cb_ref = JS_DupValue(ctx, argv[1]); in native_ota_init()
/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/wireless/bt_host/
A Dmodule_bt_host.c131 info->conn_js_cb_ref = JS_DupValue(ctx, JS_cb); in native_bt_host_start_adv()
186 info->scan_js_cb_ref = JS_DupValue(ctx, JS_cb); in native_bt_host_start_scan()
235 info->gatts_js_cb_ref = JS_DupValue(ctx, JS_cb); in native_bt_host_add_service()
/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/advanced/audio/
A Dmodule_audioplayer.c234 param->js_cb_ref = JS_DupValue(ctx, argv[1]); in native_audioplayer_play()
467 audioplayer->js_cb_ref = JS_DupValue(ctx, state_cb); in native_audioplayer_state_on()
576 param->js_cb_ref = JS_DupValue(ctx, play_cb); in native_audioplayer_play_list()
/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/hardware/timer/
A Dmodule_timer.c156 notify->js_cb_ref = JS_DupValue(ctx, irq_cb); in native_timer_setTimeout()
269 notify->js_cb_ref = JS_DupValue(ctx, irq_cb); in native_timer_setInterval()
/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/network/udp/
A Dmodule_udp.c289 send_param->js_cb_ref = JS_DupValue(ctx, argv[2]); in native_udp_sendto()
438 recv_param->js_cb_ref = JS_DupValue(ctx, argv[1]); in native_udp_recvfrom()
/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/repl/
A Dmodule_repl.c167 repl_js_cb_ref = JS_DupValue(ctx, read_cb); in native_repl_setReadHandler()
/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/network/netmgr/
A Dmodule_netmgr.c345 onConnect_task_params.cb_ref = JS_DupValue(ctx, cb_ref); in native_netmgr_connect()
616 msg_cb_ref = JS_DupValue(ctx, msg_cb); in native_netmgr_set_msg_cb()
/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/hardware/gpio/
A Dmodule_gpio.c283 notify->js_cb_ref = JS_DupValue(ctx, irq_cb); in native_gpio_on()
/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/network/http/
A Dmodule_http.c501 http_param->js_cb_ref = JS_DupValue(ctx, cb); in native_http_get_param()
640 resp->js_cb_ref = JS_DupValue(ctx, val); in native_http_download_start()
/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/network/cellular/
A Dmodule_cellular.c194 js_cb_ref = JS_DupValue(ctx, on_cb); in native_cellular_onconnect()
/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/hardware/uart/
A Dmodule_uart.c413 JSValue js_cb_ref = JS_DupValue(ctx, irq_cb); in native_uart_on()
/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/network/mqtt/
A Dmodule_mqtt.c282 js_cb_ref = JS_DupValue(ctx, cb); in native_mqtt_start()
/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/libc/
A Dquickjs_libc.c2006 rh->rw_func[magic] = JS_DupValue(ctx, func); in js_os_setReadHandler()
2095 sh->func = JS_DupValue(ctx, func); in js_os_signal()
2183 th->func = JS_DupValue(ctx, func); in js_os_setTimeout()
2211 func1 = JS_DupValue(ctx, func); in call_handler()
2356 func = JS_DupValue(ctx, port->on_message_func); in handle_posted_message()
3778 port->on_message_func = JS_DupValue(ctx, func); in js_worker_set_onmessage()
3792 return JS_DupValue(ctx, port->on_message_func); in js_worker_get_onmessage()
/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/hardware/ir/
A Dmodule_ir.c416 js_cb_ref = JS_DupValue(ctx, argv[0]); in native_ir_on()
/AliOS-Things-master/components/amp/engine/quickjs_engine/quickjs/doc/
A Dquickjs.texi830 explicitly duplicate (@code{JS_DupValue()}, increment the reference

Completed in 147 milliseconds