Commit Graph

45 Commits

Author SHA1 Message Date
tanglizhen2
27742b5279 node case bugfixed
Signed-off-by: tanglizhen2 <tanglizhen2@huawei.com>
Change-Id: Ie6fdb93c4faf48d698fa5f1aaea049328fe39ced
2023-07-24 03:11:41 +00:00
hwx1163501
649571a2b3 Fix throw excecption
Signed-off-by: hwx1163501 <hanjing35@huawei.com>
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7L0AC
2023-07-14 16:48:09 +08:00
lichenshuai
4c924556f9 [Bug]: 修复BigInt范围过大问题
debug下挂在ASSERT,此时右侧操作数过大,应该提前抛出异常。

Issue: #I7JMNB

Signed-off-by: lichenshuai <lichenshuai@huawei.com>
Change-Id: I68cce7dcb8cefe6f3d05b0b329c31260d1e21441
2023-07-08 15:03:22 +08:00
王笑佳
53419af8a3 Fix CreateBigint throw excecption
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7IV2P

Signed-off-by: 王笑佳 <wangxiaojia5@huawei.com>
2023-07-06 11:48:38 +08:00
quiet-thought
d3642ce4a2 Bugfix on BigInt::BigIntToNumber
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7E8AR

Signed-off-by: quiet-thought <chenjingxiang1@huawei.com>
Change-Id: Id12e761edaacd70eb86f19cdaa9459c657629366
2023-06-17 15:46:38 +08:00
quiet-thought
8fbd0e7606 Bugfix on BigInt::AsUintN: throw range error if maximum bigInt size exceeded
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7DG0J

Signed-off-by: quiet-thought <chenjingxiang1@huawei.com>
Change-Id: I072a16262b4d01a3dc8483cccc2b8505986ff5cb
2023-06-15 16:43:27 +08:00
changjiaxing
18edb5a0ce Fix bug about napi_create_bigint_words and napi_get_value_int64
issues:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6IZLX?from=project-issue
Signed-off-by: changjiaxing <changjiaxing2@huawei.com>

Change-Id: Ie750b4d753ddead2c4e1e804e10153643bbe36af
2023-03-02 21:45:03 +08:00
Gymee
45bbb6cbf5 remove redundant spaces between operator
Issue: #I63MCO
Signed-off-by: Gymee <yumeijie@huawei.com>
Change-Id: Ifd1d4768a2f96d618e991e07fc0b7a516c5965af
2022-11-29 11:47:32 +08:00
zhaozhibo
52a20b9768 fix code warnings
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-11-15 15:31:14 +08:00
zhaozhibo
ef9d0886d6 fix codex and reviewBot warnings
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-11-02 14:40:12 +08:00
changjiaxing
8ea94314e5 Optimization of bigint division algorithm
issues:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5WVP5?from=project-issue

Signed-off-by: changjiaxing <changjiaxing2@huawei.com>
Change-Id: If8e202f241496cc63fd3699fca7b2e73893937b2
2022-10-26 11:41:57 +08:00
zhaozhibo
bb7e9d952e fix codex and reviewBot warnings
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-10-21 11:47:25 +08:00
changjiaxing
e3d9b94438 Bigint optimization
issues:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5VKU5?from=project-issue

Signed-off-by: changjiaxing <changjiaxing1@huawei.com>
Change-Id: I81a1d4e2743c37bd13d94372ffc8097accc92d4a
2022-10-14 14:49:07 +08:00
wupengyong
3e9563018b reason:compiler ToBigUint64 and ToBigInt64
description:compiler ToBigUint64 and ToBigInt64
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5PFRE?from=project-issue

Signed-off-by: wupengyong <wupengyong@huawei.com>
Change-Id: Ia1aac57b03b7899e4a017162a581ce22d7a99635
2022-09-02 16:36:34 +08:00
openharmony_ci
c29332c1d9 !1833 fix fuzztest errro and add new fuzztest
Merge pull request !1833 from zhaozhibo/master

Change-Id: I1e83c46e25d0a7c342e5c8e7ca5ff61c745b7582
2022-07-25 08:49:51 +08:00
wengchangcheng
6e5a7e8362 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
033e89abcf 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
27808c157d 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
728e5200ce 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
d48ea0a885
!1585 fix codex warning
Merge pull request !1585 from hjzhangcm/master
2022-06-14 04:25:11 +00:00
hjzhangcm
0caf799590 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
acbb7d82e6 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
9cb052803c 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
8cd9d68b6b 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
a03dcebfb7 Merge branch 'master' of gitee.com:openharmony/ark_js_runtime into master 2022-06-02 11:17:00 +00:00
jiangkai43
b13fb03d17 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
fbb52204b5 fix master warning and static vulnerability
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-05-31 16:42:32 +08:00
hjzhangcm
5b5e1717d8 fix codex warning
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-05-20 18:57:39 +08:00
zhangyouyou
b121fda3a5 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
eaa5a283e9 fix codex warning
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-05-06 17:52:55 +08:00
hjzhangcm
d0b3e4d607 fix codex waring
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-05-05 17:03:02 +08:00
zhaozhibo
1479ec3603 fix codex warning
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-04-30 10:31:33 +08:00
zhaozhibo
c239b44d80 fix codeDex warning(3)
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-04-17 15:23:43 +08:00
zhaozhibo
34649fc073 Merge branch 'master' of gitee.com:openharmony/ark_js_runtime into master 2022-04-14 02:57:27 +00:00
zhaozhibo
cc222126ad fix codeDex warning.
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-04-14 10:56:51 +08:00
openharmony_ci
6633d6ebcf
!951 Add DataView bigint related interfaces
Merge pull request !951 from zhangyouyou/master
2022-04-11 10:27:47 +00:00
xliu
bddb55c976 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
5c094a3e31 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
213c29793d 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
99934b9037 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
88e9cdf039 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
18f21ff183
!815 Fix code review from issue
Merge pull request !815 from songzhengchao/reviewcode0321
2022-03-22 08:36:13 +00:00
songzhengchao
ab198cc13d 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
b3b80f77d8 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
b744a006be Add bigint type, add related instructions and Napi
Signed-off-by: zhangyouyou <zhangyouyou2@huawei.com>
2022-03-10 21:25:06 +08:00