16 Commits

Author SHA1 Message Date
wengchangcheng cd90e396a7 Descriptor: ark hilog refactor
details:
1. use hilog in ohos device
2. use panda logger in host
issue:  https://gitee.com/openharmony/ark_js_runtime/issues/I5FR5J

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I6f5de00751154bdb6aac3101515961a3a4432e80
2022-07-06 22:55:49 +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
changjiaxing 0ee3cdb252 Solve the problem that bigint division calculation will run in an infinite loop on rk3568
issues: https://gitee.com/chang-jiaxing/ark_js_runtime/issues/I5BXT2

Signed-off-by: changjiaxing <changjiaxing1@huawei.com>
2022-06-13 11:45:50 +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
hjzhangcm 80a36dff6b fix codex warning
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-05-20 18:57:39 +08:00
zhaozhibo 504820705d Merge branch 'master' of gitee.com:openharmony/ark_js_runtime into master 2022-04-17 07:24:50 +00:00
zhaozhibo 398ac87a36 fix codeDex warning(3)
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-04-17 15:23:43 +08:00
lifansheng be15a6b2d8 issue:#I52QHU
Fix the function NumberToString double percision BUG

Signed-off-by: lifansheng <lifansheng1@huawei.com>
Change-Id: I88a5ea73b8bded8edfff7e7e92abd6ec80430f5f
2022-04-16 15:57:04 +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
zhangyouyou 66dec69743 Add bigint type, add related instructions and Napi
Signed-off-by: zhangyouyou <zhangyouyou2@huawei.com>
2022-03-10 21:25:06 +08:00
shikai-123 19abb2f5ef Modify and supplement the stack column printing code of DFX module
上传dfx模块代码,增加native栈栈列打印功能

https://gitee.com/openharmony/ark_js_runtime/issues/I4VB5Z

Signed-off-by: shikai-123 <shikai25@huawei.com>
2022-03-06 11:10:56 +08:00
zhaozhibo 1065502409 fix conversion function bug in 'utf_helper' when utf8 characters do not end with '\0' and reconstruct ecmastring
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-01-13 12:02:17 +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