30 Commits

Author SHA1 Message Date
wengchangcheng cd90e396a7 Descriptor: ark hilog refactor
details:
1. use hilog in ohos device
2. use panda logger in host
issue:  https://gitee.com/openharmony/ark_js_runtime/issues/I5FR5J

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I6f5de00751154bdb6aac3101515961a3a4432e80
2022-07-06 22:55:49 +08:00
changjiaxing 36aa7dea76 Optimizing bigint data structures
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I5EIYF?from=project-issue

Signed-off-by: changjiaxing <changjiaxing1@huawei.com>
2022-06-28 18:53:08 +08:00
changjiaxing 8dc2a9a289 fix bigint bug about toint64
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I5EDTU?from=project-issue
Signed-off-by: changjiaxing <changjiaxing1@huawei.com>

Signed-off-by: changjiaxing <changjiaxing1@huawei.com>
2022-06-27 20:41:55 +08:00
changjiaxing e41c9a60b8 fix bug of bigint assert and finalizationregistry GC
issus: https://gitee.com/openharmony/ark_js_runtime/issues/I5DBSA?from=project-issue

Signed-off-by: changjiaxing <changjiaxing1@huawei.com>
2022-06-22 14:05:29 +08:00
openharmony_ci 701e96e826 !1585 fix codex warning
Merge pull request !1585 from hjzhangcm/master
2022-06-14 04:25:11 +00:00
hjzhangcm bd009036d8 fix codex warning issue:https://gitee.com/openharmony/ark_js_runtime/issues/I5C3XK
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-06-14 10:38:06 +08:00
jiangkai43 e24ac651a1 Fix the problem of mixing unsigned and signed numbers
Description:use the same number type

Issues:https://gitee.com/openharmony/ark_js_runtime/issues/I5C30M:wq

Signed-off-by: jiangkai43 <jiangkai43@huawei.com>
2022-06-13 21:20:08 +08:00
changjiaxing 0ee3cdb252 Solve the problem that bigint division calculation will run in an infinite loop on rk3568
issues: https://gitee.com/chang-jiaxing/ark_js_runtime/issues/I5BXT2

Signed-off-by: changjiaxing <changjiaxing1@huawei.com>
2022-06-13 11:45:50 +08:00
hjzhangcm 217a51e1de fix codex warning issue:https://gitee.com/openharmony/ark_js_runtime/issues/I5BPNV
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-06-10 15:51:38 +08:00
jiangkai43 99f06bae64 Merge branch 'master' of gitee.com:openharmony/ark_js_runtime into master 2022-06-02 11:17:00 +00:00
jiangkai43 d50c83dc69 Add atomics project and modify code errors
Signed-off-by: jiangkai43 <jiangkai43@huawei.com>
https://gitee.com/openharmony/ark_js_runtime/issues/I599WU
2022-06-02 19:09:01 +08:00
hjzhangcm 4399e034f9 fix master warning and static vulnerability
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-05-31 16:42:32 +08:00
hjzhangcm 80a36dff6b fix codex warning
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-05-20 18:57:39 +08:00
zhangyouyou 3df9c624f7 https://gitee.com/openharmony/ark_js_runtime/issues/I57A8I
Signed-off-by: zhangyouyou <zhangyouyou2@huawei.com>
2022-05-13 14:16:21 +08:00
hjzhangcm a760638caa fix codex warning
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-05-06 17:52:55 +08:00
hjzhangcm 3d42158184 fix codex waring
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-05-05 17:03:02 +08:00
zhaozhibo 4b279c9d79 fix codex warning
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-04-30 10:31:33 +08:00
zhaozhibo 398ac87a36 fix codeDex warning(3)
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-04-17 15:23:43 +08:00
zhaozhibo 71f2d7e0eb Merge branch 'master' of gitee.com:openharmony/ark_js_runtime into master 2022-04-14 02:57:27 +00:00
zhaozhibo a57029dc79 fix codeDex warning.
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-04-14 10:56:51 +08:00
openharmony_ci b420d9d3df !951 Add DataView bigint related interfaces
Merge pull request !951 from zhangyouyou/master
2022-04-11 10:27:47 +00:00
xliu 4fb9fcc443 ObjectFactory New Ecmastring Rectification
Description
  1. There are many kinds of interfaces to construct ecmastring from objectfactory
     in the virtual machine, and the name is not clear, so it is complex to use;
  2. Some of the unchecked interfaces are prone to errors during use. If there is
     no compression where compression is required, unpredictable errors will occur.
Issue:
  #I4ZL7X: ObjectFactory New Ecmastring Rectification

Signed-off-by: xliu <liuxin259@huawei.com>
Change-Id: I856f4e2e1df62823d928d738fa35affa97dbd3ed
2022-04-09 10:34:11 +08:00
zhangyouyou a157dab3bb add DataView.prototype.setBigUint64 DataView.prototype.setBigInt64 DataView.prototype.getBigUint64
and DataView.prototype.getBigInt64
https://gitee.com/openharmony/ark_js_runtime/issues/I51KPJ

Signed-off-by: zhangyouyou <zhangyouyou2@huawei.com>
2022-04-08 16:17:00 +08:00
lukai 7653faf3fe merge bugfix from release into master
1. !888:fix gc bugs
2. !851:Fix ic store prototype bugs
3. !803:Fix Security Check Problems
4. other related ut bugfix.

Signed-off-by: lukai <lukai25@huawei.com>
Change-Id: I4dd30efd176fd33fefd064aee0cb30e5fd3e0477
2022-04-02 17:49:22 +08:00
wengchangcheng 4804cd80d3 add Wextra and Werror in gn args
1. add -Wextra and -Werror to check code format error
2. modify all compiler error

issue: https://gitee.com/openharmony/ark_js_runtime/issues/I4ZDQE

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: If5fdd1980494269b4c06bf1bb38a8eba7952adea
2022-03-24 21:45:19 +08:00
hjzhangcm 0dad49bbd5 handle the compilation error in the js_bigint.cpp
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-03-23 11:50:40 +08:00
openharmony_ci 9614384797 !815 Fix code review from issue
Merge pull request !815 from songzhengchao/reviewcode0321
2022-03-22 08:36:13 +00:00
songzhengchao 718b37beb0 Fix code review from issue
bool variable shoule assign value;
code delete reduant ";" and " ";
class construct function signal parameter shoule add explicit;
function declare return void when caller don't need return value;
and etc

issue: https://gitee.com/openharmony/ark_js_runtime/issues/I4YXYH?from=project-issue
Signed-off-by: songzhengchao <songzhengchao@huawei.com>
Change-Id: I59e26d49f94e98a4cced7a5852df3029a5544d47
2022-03-22 14:25:18 +08:00
changjiaxing 5e225e01ca Improve the efficiency of roller execution
Description:
    Optimize the efficiency of bigint to number and uint32_t, uint64_t, int64_t to bigint
issue:
    https://gitee.com/openharmony/ark_js_runtime/issues/I4YU8Y?from=project-issue

Signed-off-by: changjiaxing <changjiaxing1@huawei.com>
2022-03-22 12:33:08 +08:00
zhangyouyou 66dec69743 Add bigint type, add related instructions and Napi
Signed-off-by: zhangyouyou <zhangyouyou2@huawei.com>
2022-03-10 21:25:06 +08:00