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
For napi only
关联的Issue: #I54T7E
Signed-off-by: yaoyuan <yuanyao14@huawei.com>
Change-Id: I94c5e335a43aac937616e5aa3a217cc0b034ade7
Signed-off-by: yaoyuan <yuanyao14@huawei.com>
Description
In the FastSubString interface of EcmaString, which is a fast path,
there is a logical error in judging whether characters are compressible
Issue:
#I53HR7:fix EcmaString::FastSubString
Signed-off-by: xliu <liuxin259@huawei.com>
Change-Id: If8d93fadbae5805bb2c8a674f3fc7725a562c032
Refactor ID definition and callSignature initialization mechanism of runtime stub,
optimizer stub and bytecode handler stub,
reduce amount and complexity of macro used in calling those stubs.
Add stubDes struct to classify stubs both in AOT file generation phase
and AOT file loading phase.
Fix some circular dependency problems in including header files.
Fix certain inline function declaration and definition format problems, which could lead to
compiling errors.
Issue: https://gitee.com/openharmony/ark_js_runtime/issues/I4VMLD?from=project-issue
Test: stubTest(unit test), richards with asm interpreter enabled
Signed-off-by: luochuhao <luochuhao@huawei.com>
Change-Id: Ibd5fcd963347b97f8dec227f3245d2064463b0b0