/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/utils/ui/ |
A D | app_entry.c | 40 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 D | page_entry.c | 184 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 D | module_systimer.c | 51 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 D | module_aiot_gateway.c | 470 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 D | module_aiot_device.c | 534 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 D | module_tcp.c | 149 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 D | quickjs.c | 12744 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 D | run-test262.c | 614 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 D | quickjs-libc.c | 1799 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 D | quickjs.h | 657 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 D | module_appota.c | 134 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 D | module_bt_host.c | 131 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 D | module_audioplayer.c | 234 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 D | module_timer.c | 156 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 D | module_udp.c | 289 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 D | module_repl.c | 167 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 D | module_netmgr.c | 345 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 D | module_gpio.c | 283 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 D | module_http.c | 501 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 D | module_cellular.c | 194 js_cb_ref = JS_DupValue(ctx, on_cb); in native_cellular_onconnect()
|
/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/hardware/uart/ |
A D | module_uart.c | 413 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 D | module_mqtt.c | 282 js_cb_ref = JS_DupValue(ctx, cb); in native_mqtt_start()
|
/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/libc/ |
A D | quickjs_libc.c | 2006 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 D | module_ir.c | 416 js_cb_ref = JS_DupValue(ctx, argv[0]); in native_ir_on()
|
/AliOS-Things-master/components/amp/engine/quickjs_engine/quickjs/doc/ |
A D | quickjs.texi | 830 explicitly duplicate (@code{JS_DupValue()}, increment the reference
|