Commit Graph

33 Commits

Author SHA1 Message Date
hecunmao
bbb5853e50 bugfix:Proxy function backstack error
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I9GJXA

Signed-off-by: hecunmao <hecunmao@huawei.com>
Change-Id: I9209666fa479e30ef8950d3e1f44225c4452027d
2024-04-16 14:53:38 +08:00
openharmony_ci
41c83a53ce
!6777 解决抛异常问题
Merge pull request !6777 from 韩靖/master
2024-04-09 08:28:03 +00:00
hwx1163501
118d81b21e 解决抛异常问题
Signed-off-by: hwx1163501 <hanjing35@huawei.com>
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I9DUSB
2024-04-09 10:57:51 +08:00
hecunmao
ef3fdb8b59 RETURN_VALUE_IF_ABRUPT_COMPLETION should return JSTaggedValue::Exception()
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I9E9CZ

Signed-off-by: hecunmao <hecunmao@huawei.com>
Change-Id: Id52cece085e12c626011b525a2a3f75b1a5e7408
2024-04-06 18:37:00 +08:00
lichenshuai
38a910ec68 [新需求]: 在必要的地方增加STACK_LIMIT_CHECK
在必要的地方增加STACK_LIMIT_CHECK,以避免循环递归调用导致C栈溢出。

Issue: #I8YTRW

Signed-off-by: lichenshuai <lichenshuai@huawei.com>
Change-Id: Ica30db27755e9b22ed3fe101427688d3018e318b
2024-01-26 16:34:21 +08:00
weng-xi
c7bf779b49 Fix the bug in proxy constructor
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8TVFG
Signed-off-by: weng-xi <wengxi1@huawei.com>
Change-Id: Iec803a95f00bf2b1b62fe82d44209288add417fd
2024-01-05 15:04:40 +08:00
Gymee
52680b5ae9 Add error message for some THROW_TYPE_ERROR_AND_RETURNs
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8TE4H
Signed-off-by: Gymee <yumeijie@huawei.com>
Change-Id: I152240ac0584b575eb32a3123d348075cf9a5703
2024-01-04 09:59:41 +08:00
yanpeng
048358a6fa 修正Proxy的handler.set在strict模式下返回false时抛出error
Signed-off-by: yanpeng <yanpeng51@huawei.com>
Change-Id: I4b59ad54635783bc9f7358fb72de8dda13e93ecb
2023-12-27 21:39:45 +08:00
chenjx-huawei
873d0ccb2a Bugfix for external feedback issues
Issue: https://gitee.com/open_harmony/dashboard?issue_id=I8Q1YB

Signed-off-by: chenjx-huawei <chenjingxiang1@huawei.com>
Change-Id: I15bdc417d5b751a70d36274844f187f60c61909a
2023-12-23 17:02:20 +08:00
hecunmao
bb5ab2763b Array Fail Test Case 2
1.Proxy.IsArray Stackoverflower
2.Array.Filter does not crawl the prototype chain
2.[].concat(obj)  the called number is error

Signed-off-by: hecunmao <hecunmao@huawei.com>
Change-Id: Ic6f4a620560055c2406000ed38aaa807ddb02584
2023-12-11 21:13:01 +08:00
hecunmao
459839662d FixBug:Stack OverFlow in JSObject::SetProperty, Leadiing to Dos
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8AA41w

Signed-off-by: hecunmao <hecunmao@huawei.com>
Change-Id: I9a3a4a3fa15e79ccdc9897628b4ca5516b988111
2023-10-23 22:00:43 +08:00
lichenshuai
f1c47e48b4 [Bug]: ASSERTION FAILED in GetProperty
修复Proxy取Element的方式并处理栈溢出问题。

Issue: #I83SE7

Signed-off-by: lichenshuai <lichenshuai@huawei.com>
Change-Id: Ib04d02383f1475a9f7e8f07767eccbc43353a3e4
2023-09-23 17:03:28 +08:00
huangzhenghua
c333bfc148 bugfix of jsproxy
issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7ZZHM
Signed-off-by: huangzhenghua <huangzhenghua3@huawei.com>
Change-Id: I33f90769b1aba9dd7e4614bcba143909d3c75cf8
2023-09-09 21:31:26 +08:00
bi-hu
2130f4612a Add Napi_ Get_ All_ Property_ Names interface capability
Signed-off-by: bi-hu <bihu@huawei.com>
https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7WV34
2023-08-29 19:07:04 +08:00
王笑佳
6618190fb4 Fix data type 2
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7MZH8

Signed-off-by: 王笑佳 <wangxiaojia5@huawei.com>
2023-07-21 15:51:31 +08:00
王笑佳
b48718a73a Fix THROW_TYPE_ERROR_AND_RETURN Part 3
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7K5YC

Signed-off-by: 王笑佳 <wangxiaojia5@huawei.com>
2023-07-14 16:16:09 +08:00
Gymee
29777fc3ab Fix code style
Issue: #I67JM7
Signed-off-by: Gymee <yumeijie@huawei.com>
2022-12-26 19:50:46 +08:00
lijiamin
970f40e89e Modify numArgs from int32_t to uint32_t
Signed-off-by: lijiamin <lijiamin24@huawei.com>
Change-Id: If92a6b948356799b37987eaa4043b12e9bd72e98
2022-08-05 17:06:00 +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
lijincheng
1365fe05de Bugfix for Aot Error Found In Test262
1.Handle the situation which constant gate is at the end of current block
2.Handle import/export in Multiple files for TSAOT
3.Handle try-catch-finally
4.Handle conditionJump with only one successor
5.Handle try block without instructions which can throw exception
6.Handle LoopBack Verify Error
7.Add UT case for try-catch-finally
8.Handle getModule Error in Aot compile
9.Handle block endwith Constant gate
10.Bugfix for NewObj returnValue Error when need to throw Exception

issue:https://gitee.com/openharmony/ark_js_runtime/issues/I5F6JT
Signed-off-by: lijincheng <lijincheng13@huawei.com>
2022-07-22 14:52:21 +08:00
g00416891
b6588744f2 New EcmaRuntimeCallInfo in stack pointer
Signed-off-by: g00416891 <guobingbing3@huawei.com>
Change-Id: I466a4107e6e073ffecea12e6986c112731d2d3bf
2022-07-05 14:54:43 +08:00
lichenshuai
bf6cffa180 Fix Asm x64 262 Bug 1
1. Fix haveNewTarget in PushCallThis.
2. Dispatch to JSProxy::ConstructInternal when func is proxy in JSFunction::Construct.
3. Rebuild runtimeCallInfo in JSProxy::CallInternal to match future return.
4. ReturnIfAbrupt in JSProxy::OwnPropertyKeys to match ECMA 262 standard.

Issue: #I5CMA1

Signed-off-by: lichenshuai <lichenshuai@huawei.com>
Change-Id: Ie6eca69fb217974cd14df88c20169ad66df1047d
2022-06-17 10:34:35 +08:00
yaoyuan
b80c0196ca Description:
Reduce redundant code by using predefined global constants instead of creating new constant strings
Move all global constant strings into nonmovable space to improve code efficiency.

Issues: https://gitee.com/openharmony/ark_js_runtime/issues/I588TY

Signed-off-by: yaoyuan <yuanyao14@huawei.com>
Change-Id: I1f92188175c3129c5d8cec72a0396f11ce17c1c7
2022-05-31 17:38:54 +08:00
yingguofeng@huawei.com
e561278ea8 Description: The change of hole tag cause that nullptr to be judged as a heap object
Solution: Ensure that all fileds of heap object(includes free object) are not nullptr

Issue:https://gitee.com/openharmony/ark_js_runtime/issues/I59PS0?from=project-issue

Change-Id: I062c3a7b9289de9efbb123ec62716fa554d2cb1d
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2022-05-28 19:18:54 +08:00
zhaozhibo
2573042319 fix codex warning
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-04-25 14:33:01 +08:00
guobingbing
c9b5d658c5 add DoStackOverflowCheck for app crash after reboot many times
Signed-off-by: guobingbing <guobingbing3@huawei.com>
Change-Id: I6b144c0b86b5c2b48bae8cf513d67e5e537eaf7b
2022-04-19 17:44:54 +08:00
zhaozhibo
c239b44d80 fix codeDex warning(3)
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-04-17 15:23:43 +08:00
xiongluo
f421f14e23 Fix long gc duration problem in photos app
Add handle scope to avoid the large number of root nodes.

Remove unnecessary handles in the critical path.

Adjust the parameters in gc to avoid multiple consecutive Old GCs.

Signed-off-by: xiongluo <xiongluo@huawei.com>
2022-04-10 20:45:15 -10:00
guobingbing
96190e252b FFI optimization for call params
Signed-off-by: guobingbing <guobingbing3@huawei.com>
Change-Id: I61b820e91b85364e4f41d35ca0172ad059a1b916
2022-04-07 21:13:46 +08: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
wengchangcheng
839f39e500 modify ACCESSOR for EcmaString and TaggedArray
Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I2995dc75ed34e8eb2bf249f2cced62ec9d91250e
2022-01-17 11:51:50 +08:00
zhangyukun
7ffcc4b20f Sync js_runtime to openharmony
Signed-off-by: zhangyukun <zhangyukun8@huawei.com>
2021-09-08 09:20:53 +08:00
wanyanglan
86cfe52253 add ark js_runtime
Signed-off-by: wanyanglan <wanyanglan1@huawei.com>
Change-Id: Iac7851492f10c0ef1303c621febb65e5fdd22e41
2021-09-05 16:05:06 +08:00