Description
1. String trim interface optimization.
2. Change the implementation of using regular to a simpler and more
efficient way.
Issue:
#I5AH4Z:[Optimization] String Trim
Signed-off-by: xliu <liuxin259@huawei.com>
Change-Id: I9dd0d923344ebd3c571ff8cd6cb244d9c01444fa
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
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
1.Add Regexp Cache in builtins String match and replace;2.Extend cache
added for regexp replace;Inline regexp op function;4.Use fastpath to
replace slowpath interface.
Issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5109P
Change-Id: I3a14211edb8f01833c2e94a22f3bbda297392b07
Signed-off-by: xujie <xujie101@huawei.com>