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
modify newobjDynrange to remove the flag "IsBuiltinsConstructor"
Signed-off-by: lifansheng <lifansheng1@huawei.com>
Change-Id: Ic94b8ba77a0ebaf121f2942238435a9da5917287
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>
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