Commit Graph

139 Commits

Author SHA1 Message Date
openharmony_ci 4d7eb140dc !191 ark native reference modify
Merge pull request !191 from yaojian16/bugfix_20220307
2022-03-15 13:18:36 +00:00
y00576111 c724d889a0 ark native reference modify
use reference to release c memory in napi_wrap interface

issue:https://gitee.com/openharmony/js_worker_module/issues/I4WJQD

Signed-off-by: y00576111 <yaojian16@huawei.com>
Change-Id: I2c0899554c975a3e2e754f4abcdf67201369b746
2022-03-15 19:46:14 +08:00
openharmony_ci c5e4ddc17d !226 Compilation problem of ARK with windows platform
Merge pull request !226 from Pan Zhenyu/master
2022-03-15 10:54:44 +00:00
panzhenyu1 3b1de43a8b Add support for windows platform compilation
Seperate Snapshot relevant code, these code will not be compiled on
windows

related issue: https://gitee.com/openharmony/ace_napi/issues/I4XW2C

Signed-off-by: panzhenyu1 <panzhenyu1@huawei.com>
Change-Id: I93a73d98a87c62f56d68d75559d3a7f1769822fe
2022-03-15 14:18:16 +08:00
openharmony_ci 81784ecea5 !188 WebGL ACE Ark适配
Merge pull request !188 from keerecles/webgl
2022-03-15 02:19:32 +00:00
openharmony_ci d70365b6b5 !223 fix bigint napi bug
Merge pull request !223 from 常佳兴/master
2022-03-14 08:48:09 +00:00
openharmony_ci 82e222f80a !195 添加编译单元指定部件名称
Merge pull request !195 from chenyude/gn
2022-03-14 04:02:57 +00:00
openharmony_ci c71fdec716 !213 make the type of the left variable and the type of the right variable compatible
Merge pull request !213 from Gongyuhang/master
2022-03-12 17:07:39 +00:00
changjiaxing 5c982c78df fix bigint napi bug
Signed-off-by: changjiaxing <changjiaxing1@huawei.com>
2022-03-12 20:47:37 +08:00
openharmony_ci 96601684db !221 napi UI解耦
Merge pull request !221 from sin_dzzeng/dz_napi-06
2022-03-11 13:43:57 +00:00
sin_dzzeng 642fa9cc48 napi UI解耦
Signed-off-by: sin_dzzeng <13277932042@163.com>
2022-03-11 18:21:15 +08:00
changjiaxing e6ec7ab17c support bigint napi for ArkNativeEngine
Signed-off-by: changjiaxing <changjiaxing1@huawei.com>
2022-03-11 13:27:13 +08:00
Gongyuhang 7f682381c7 The type of the left variable does not match the type of the right
variable.

Refer the context around the expression to decide either to change the
type of the left variable or use "static_cast<>()" to get the value of
compatible type from the right varible.

Signed-off-by: Gongyuhang <gongyuhang5@huawei.com>
2022-03-11 10:59:59 +08:00
yudechen f6cdf90420 添加编译单元指定部件名
Signed-off-by: yudechen <chenyude@huawei.com>
Change-Id: Ic9fc8b9a420a36a6bc37740c24cff79376eee7ca
2022-03-10 09:36:29 +08:00
lukai 665257b568 Set"arkProperty" When Create EcmaVM by arkNativeEngine
Signed-off-by: lukai <lukai25@huawei.com>
Change-Id: I95b0420330ff0724dfe3a055b72634d131f56a76
2022-03-09 14:31:49 +08:00
openharmony_ci 72d4302b09 !202 Add support for ark_js_engine on windows
Merge pull request !202 from Pan Zhenyu/master
2022-03-09 04:08:48 +00:00
zhangfanfan2 c56a36532e fix:定位systemui反复重启问题
Signed-off-by: zff <zhangfanfan2@huawei.com>
2022-03-08 14:37:24 +00:00
openharmony_ci 08b23db8b0 !203 wallpaper napi crash
Merge pull request !203 from 李俊峰/napi_null
2022-03-08 14:17:12 +00:00
zcdqs 12f9ffcfa5 fix call napi function crash
Signed-off-by: zcdqs <junfeng.lijunfeng@huawei.com>
Change-Id: I737fee9a2c58ec9579ef0f49e9c5180a8428b551
2022-03-08 20:14:50 +08:00
panzhenyu1 ec0a5732da Add support for windows
Description: Add support when compiling ark js engine

related issue: https://gitee.com/openharmony/ace_napi/issues/I4WX4S

Signed-off-by: panzhenyu1 <panzhenyu1@huawei.com>
Change-Id: I022e8ad0efbf33a69af93e9bbd03504a8d9820ff
2022-03-08 20:11:57 +08:00
huzeqi 774ab3f5a8 codedex fix
Signed-off-by: huzeqi <huzeqi@huawei.com>
Change-Id: Ie6726fabce66b9a03d9c52cf1cd52ddd84b7d118
2022-03-08 17:15:03 +08:00
openharmony_ci 43119aca20 !186 Fix napi_create_error function
Merge pull request !186 from youqijing/master
2022-03-07 07:34:18 +00:00
keerecles 7384629de4 webgl napi ark
Signed-off-by: keerecles <lee_shao@126.com>
Change-Id: I59b1d9a45d91e62a68bae6957b7a939f0f85e042
2022-03-07 15:25:46 +08:00
openharmony_ci d57f6ea32b !181 Modify and supplement the stack column printing code of DFX module
Merge pull request !181 from 史凯/master
2022-03-06 04:26:07 +00:00
youqijing 5f0c0b530a Fix napi_create_error function
Signed-off-by: youqijing <youqijing@huawei.com>
Change-Id: I8b13252a1d5f37df12838fe0a9341ab31d855c30
2022-03-05 16:37:53 +08:00
openharmony_ci 288d83dbd9 !183 add containerScopeId in async func
Merge pull request !183 from Hu_zq/master
2022-03-04 09:24:07 +00:00
huzeqi ac54e34294 add containerScopeId in async func
Signed-off-by: huzeqi <huzeqi@huawei.com>
Change-Id: Ic010de421318fb47c5b08bc9874b7acc8bfbcd4a
2022-03-04 15:49:35 +08:00
openharmony_ci ef382237a2 !167 move suspendvm and cpuprofiler api to dfxjsnapi
Merge pull request !167 from 苏重威/master
2022-03-04 06:28:38 +00:00
shikai-123 fdcaef3983 Modify and supplement the stack column printing code of DFX module
上传dfx模块代码,增加native栈栈列打印功能

https://gitee.com/openharmony/ark_js_runtime/issues/I4VB5Z

Signed-off-by: shikai-123 <shikai25@huawei.com>
2022-03-03 16:40:49 +08:00
openharmony_ci a82a16d8b8 !149 actor code
Merge pull request !149 from yaojian16/actor
2022-03-02 12:20:55 +00:00
xdmal c7a431a06e Fix the bug requireNapi
Signed-off-by: xdmal <maxiaodong16@huawei.com>
2022-03-02 15:14:25 +08:00
sunfei cf8a04f628 add container scope in napi async task
Signed-off-by: sunfei <sunfei.sun@huawei.com>
Change-Id: I0ca11807772dcb6640f29bd53ce4b05d5ed5983d
2022-02-28 20:12:25 +08:00
y00576111 95ca8e9dd2 Support actor function
When the worker thread is started
the part shared by the virtual machine is not recreated
only the part that cannot be shared is created

issue:https://gitee.com/openharmony/js_worker_module/issues/I4SMW8

Signed-off-by: y00576111 <yaojian16@huawei.com>
Change-Id: I0237c1d71e903f2a3807fa02c7d915ab3f694f24
2022-02-26 21:53:50 +08:00
openharmony_ci 6e28f995cb !166 napi lib path
Merge pull request !166 from Hu_zq/master
2022-02-26 09:28:33 +00:00
huzeqi 34f9401ee2 napi lib path
Signed-off-by: huzeqi <huzeqi@huawei.com>
Change-Id: I50f274e2f6c39f4f653da31635b4e53a8bec970f
2022-02-26 15:19:41 +08:00
scw 8cfa6e4eed move suspendvm and cpuprofiler api to dfxjsnapi
ISSUE:https://gitee.com/openharmony/ark_js_runtime/issues/I4SXXS

Signed-off-by: scw <suchongwei@huawei.com>
2022-02-26 10:29:56 +08:00
openharmony_ci d5dd24a183 !150 Support register uncaught exception callback function
Merge pull request !150 from 苏重威/master
2022-02-25 15:16:03 +00:00
scw 6d634cbb8d Support register uncaught exception callback
Support register uncaught exception callback function in ark native engine

ISSUE:https://gitee.com/openharmony/ark_js_runtime/issues/I4T1QO

Signed-off-by: scw <suchongwei@huawei.com>
2022-02-24 15:24:51 +08:00
zhongjianfei 81a710e21b zhongjianfei@huawei.com
Signed-off-by: zhongjianfei <zhongjianfei@huawei.com>
Change-Id: I33aa3132153bafc74cab18d15df461d04bfccbc4
2022-02-24 13:16:33 +08:00
huzeqi 2f3b2e3c4a fix delete[] bug
Signed-off-by: huzeqi <huzeqi@huawei.com>
Change-Id: I88796286af490327664ffd4cf9b36cc6a027d8a2
2022-02-23 09:58:49 +08:00
sunfei f08486a417 remove get jsEngine interface
Signed-off-by: sunfei <sunfei.sun@huawei.com>
Change-Id: I67d604516cbf15da050e974135bf91352707b6a3
2022-02-18 23:10:42 +08:00
zhangyukun 20f8cd7efc Fix get value failed when ArkNativeReference is weak
A common value rather not null should be returned when
get value from a weak native reference

Signed-off-by: zhangyukun <zhangyukun8@huawei.com>
Change-Id: Icff2167faa7fa11df6bcec394b3431b1578bf183
2022-02-17 09:59:33 +08:00
zhangyukun a64058f9b2 ArkNativeReference support weak reference
Set Global in ArkNativeReference as weak reference when refCount == 0
Bug:#I4TEDI

Signed-off-by: zhangyukun <zhangyukun8@huawei.com>
Change-Id: I325ebd9f8eb2fee0b63d16665290c720462bbbd3
2022-02-12 10:56:49 +08:00
openharmony_ci ecf105cd7c !135 support suspendVM
Merge pull request !135 from 苏重威/master
2022-02-09 09:39:36 +00:00
openharmony_ci 1ca42ac855 !134 add napi_run_script_path interface
Merge pull request !134 from yaojian16/code_20220124
2022-02-09 09:29:18 +00:00
scw 1b7dd135dd support suspendVM
Add SuspendVM() and ResumeVM() which call jsruntime jsnapi SuspendVM() and ResumeVM()
Modify call GetUncaughtException to call GetAndClearUncaughtException

ISSUE:https://gitee.com/openharmony/ark_js_runtime/issues/I4SECM

Add testcase for SuspendVM() and ResumeVM() in test_ark.cpp

Signed-off-by: scw <suchongwei@huawei.com>
2022-02-09 13:08:37 +08:00
y00576111 7f3e7f6949 add napi_run_script_path interface
issue: #I4SW5P [https://gitee.com/openharmony/ace_napi/issues/I4SW5P]

Signed-off-by: y00576111 <yaojian16@huawei.com>
Change-Id: I6fb60f0143b10b2b3ecb35dbb2eef04b8113dba7
2022-02-09 10:39:24 +08:00
linxiang c39daea4c6 fix nativeFunction delete bug
Signed-off-by: linxiang <linxiang8@huawei.com>
2022-01-30 10:46:35 +08:00
sunfei 4cb8cc8c74 support corss-platform build
Signed-off-by: sunfei <sunfei.sun@huawei.com>
Change-Id: I0ee572e0d8f7ff1ac63f941ce886f3d3e91e3710
2022-01-27 11:47:32 +08:00
何溯 7e9c4ae9dc api调用增加hitrace
Signed-off-by: He Su <hesu1@huawei.com>
2022-01-24 13:32:46 +00:00