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
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>
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
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
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>
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