22 Commits

Author SHA1 Message Date
hjzhangcm 976b9c38c7 fix codex warning
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-07-07 17:33:05 +08:00
openharmony_ci 411438dfea !1737 Improve efficiency of Builtin-string replace
Merge pull request !1737 from 袁尧/master
2022-07-07 01:58:23 +00:00
yuanyao 76db066bdf Improve the efficiency of builtinString replace
Description:
By Using Concat function in Object Factory to replace multiple conversion between u16string.
Delete some redundant code.

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

Signed-off-by: yuanyao <yuanyao14@huawei.com>
Change-Id: I50309cb0ee9e6eb099d5734151ca754fc7210b96
2022-07-05 19:01:40 +08:00
g00416891 f11810349e New EcmaRuntimeCallInfo in stack pointer
Signed-off-by: g00416891 <guobingbing3@huawei.com>
Change-Id: I466a4107e6e073ffecea12e6986c112731d2d3bf
2022-07-05 14:54:43 +08:00
zhangyouyou 2f0c89fffe https://gitee.com/openharmony/ark_js_runtime/issues/I5DDMT
Signed-off-by: zhangyouyou <zhangyouyou2@huawei.com>
2022-06-29 11:31:55 +08:00
hjzhangcm f6fd5648ae fix codex warning issue:https://gitee.com/openharmony/ark_js_runtime/issues/I5CV8H
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-06-17 17:13:44 +08:00
hjzhangcm bd009036d8 fix codex warning issue:https://gitee.com/openharmony/ark_js_runtime/issues/I5C3XK
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-06-14 10:38:06 +08:00
zhangyouyou 7f5f5fd3db https://gitee.com/openharmony/ark_js_runtime/issues/I5BKUG?from=project-issue
Signed-off-by: zhangyouyou <zhangyouyou2@huawei.com>
2022-06-10 17:33:03 +08:00
xliu 001bd92d0f fix string trim
Description
  fix string trim of empty string.
Issue:
  #I5B6S0:fix string trim

Signed-off-by: xliu <liuxin259@huawei.com>
Change-Id: Ia1b6274252536ecc8ffd62d2459f8ab6f5ba8335
2022-06-07 20:14:54 +08:00
xliu 35b22ca998 [Optimization] String Trim
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
2022-06-06 09:15:32 +08:00
yaoyuan cfdfd3e1b9 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
zhaozhibo e0ad13d0c4 fix codex warning
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-04-25 14:33:01 +08:00
zhaozhibo 398ac87a36 fix codeDex warning(3)
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-04-17 15:23:43 +08:00
zhaozhibo aaf776aab5 fix code warning for codeDex
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-04-12 14:27:50 +08:00
xliu 4fb9fcc443 ObjectFactory New Ecmastring Rectification
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
2022-04-09 10:34:11 +08:00
xujie e4d9948a72 Fast Regexp For MediaQuery Plugin In AceJSTest
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>
2022-04-08 17:07:40 +08:00
guobingbing 589234007e FFI optimization for call params
Signed-off-by: guobingbing <guobingbing3@huawei.com>
Change-Id: I61b820e91b85364e4f41d35ca0172ad059a1b916
2022-04-07 21:13:46 +08:00
wengchangcheng 4804cd80d3 add Wextra and Werror in gn args
1. add -Wextra and -Werror to check code format error
2. modify all compiler error

issue: https://gitee.com/openharmony/ark_js_runtime/issues/I4ZDQE

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: If5fdd1980494269b4c06bf1bb38a8eba7952adea
2022-03-24 21:45:19 +08:00
xujie 480bb6982b fix test262 bug for builtin string normalize
Signed-off-by: xujie <xujie101@huawei.com>
2021-09-27 09:43:02 +08:00
xujie fa3ad69451 resolve issue of taking 2 seconds to response after clicking mediaquery
Signed-off-by: xujie <xujie101@huawei.com>
2021-09-11 11:07:11 +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