Commit Graph

47 Commits

Author SHA1 Message Date
wengchangcheng
01121dd6d8 Fix Log print error in intl
Add ENABLE_HILOG defines in intl source_set

Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6O7R9

Test: UT & 262

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I5f77533baec9575f495b068d516528d0697b8421
2023-03-24 20:34:46 +08:00
jing_han
13773bdf88 Modify the bug related to Vector
Signed-off-by: jing_han <hanjing35@huawei.com>
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6C80I
2023-02-01 15:58:02 +08:00
bi-hu
e0ded40925 Modify the bug related to ArrayList
Signed-off-by: bi-hu <bihu@huawei.com>
https://gitee.com/openharmony/arkcompiler_ets_frontend/issues/I6B3BL
2023-02-01 10:44:22 +08:00
openharmony_ci
1639f8a106
!3228 Fix standalone UT and unify it with test262
Merge pull request !3228 from Zhoucong/fix_ut
2023-01-09 11:04:04 +00:00
lordwithcc
122533d4da Merge branch 'master' into fix_ut 2023-01-09 17:55:37 +08:00
Gymee
0500527db8 Remove leading spaces at empty line
Issue: #I67PO6
Signed-off-by: Gymee <yumeijie@huawei.com>
2022-12-27 17:59:06 +08:00
lordwithcc
e14a68036e Fix standalone UT
Signed-off-by: lordwithcc <zhoucong40@huawei.com>
2022-12-27 09:39:12 +08:00
Gymee
29777fc3ab Fix code style
Issue: #I67JM7
Signed-off-by: Gymee <yumeijie@huawei.com>
2022-12-26 19:50:46 +08:00
wanghuan
1d29a3a825 add TreeString and LineString
desc: add TreeString and LineString

solu:
1. add TreeString and LineString
2. all string fucntions fit new construction

Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5X82Y
Signed-off-by: wanghuan <wanghuan80@huawei.com>
Change-Id: I6c6ded38ee67741b5c0f17f19b72e68a4375b303
2022-11-25 16:39:45 +08:00
huangzhenghua
2b9c9dfcea bugfix ContainersTest unittest on rk3568
Signed-off-by: huangzhenghua <huangzhenghua3@huawei.com>
Change-Id: I562091a3ab7e16faa9fc96bfc0a072f0e131c878
2022-11-24 21:53:04 +08:00
huangzhenghua
11f0ba2757 js api and Container code coverage and bugfix
Signed-off-by: huangzhenghua <huangzhenghua3@huawei.com>
Change-Id: I4bf35dc7f89bf8f017a35d979919a1181dc5c810
2022-11-18 11:43:23 +08:00
zhaozhibo
52a20b9768 fix code warnings
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-11-15 15:31:14 +08:00
zhaozhibo
ef9d0886d6 fix codex and reviewBot warnings
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-11-02 14:40:12 +08:00
yaochaonan
dade6b06ef containers UT adds test case coverage
------------------------------------
https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5Y2SY?from=project-issue
increase UT tests
-----------------------------------

Signed-off-by: yaochaonan <yaochaonan@huawei.com>
Change-Id: I7b58aa47e94dee920bad5e7ffd031ab37f002614
2022-10-28 09:09:08 +08:00
openharmony_ci
646d3d0186
!2700 容器类接口优化
Merge pull request !2700 from huangzhenghua/master1023
2022-10-26 08:38:32 +00:00
huangzhenghua
d0962b2175 containers optimization
containers clone & toarray & remove optimization
lightweightmap bugfix

Signed-off-by: huangzhenghua <huangzhenghua3@huawei.com>
Change-Id: I77292d48d0deb128eeb65c92592547823caa4171
2022-10-26 15:53:35 +08:00
yaochaonan
7ac524d9d4 JS BenchMark List/LinkedList Optimization
--------------------------------------------------------------------------------------
https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5XG8X?from=project-issue
1.For List,linkedlist: increase getNodeByDataIndex interface, don't have to traveres the list to get dataIndex.
2.For LinkedList::RemoveByIndex: use the bidirectional lookup feature of linkedList.
--------------------------------------------------------------------------------------

Signed-off-by: yaochaonan <yaochaonan@huawei.com>
Change-Id: Icfa11be6e3668e2f76ccbf24b5f57edc534f3754
2022-10-26 09:23:11 +08:00
wengchangcheng
32ef9871e7 Descriptor: Fix standalone build error
Details: modify gn and some template

Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5XGZ4

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: Idca98896e01426fe055025efe8800ac01d27d3c5
2022-10-25 12:52:10 +08:00
wanghuan
fb87d25973 ecmastring interface refractor
desc: ecmastring interface refractor

solu:
1.add EcmaStringAccessor to provide interfaces outer;
2.package interfaces to not expose internal implementation.

issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5NYV4
Signed-off-by: wanghuan <wanghuan80@huawei.com>
Change-Id: I3d9da61068e6374372d75fecfb144e82d4fc4eb6
2022-09-23 16:29:26 +08:00
hjzhangcm
0c45ba588e Increase compilation options to compile use cases faster and delete name_dictionary_test.cpp and move the deleted use cases to new files and add use cases
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-08-04 19:26:54 +08:00
wengchangcheng
1243fa6507 Descriptor: merge library to libark_jsruntime.so
details: use static link of pandafile and pandabase
issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5JHY4

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: Ie630f5cd7d646c18d2518f793c5827f742d560c3
2022-07-29 10:35:32 +08:00
lvfuqing
2916498dbb Supplement the full-path to the header files
issues:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5HWSN

Change-Id: I7aa0ccee74320e79a7219e12e1d8d6fb0ce7ea45
2022-07-25 16:58:15 +08:00
openharmony_ci
c29332c1d9 !1833 fix fuzztest errro and add new fuzztest
Merge pull request !1833 from zhaozhibo/master

Change-Id: I1e83c46e25d0a7c342e5c8e7ca5ff61c745b7582
2022-07-25 08:49:51 +08:00
linxiang
1d9edc9885 refactory: move js_api file to js_api catalogue
Signed-off-by: linxiang <linxiang8@huawei.com>
Change-Id: Id5bba5fa97c4cbfe4fee9f557cc92b020ddb3be4
2022-07-23 15:52:48 +08:00
openharmony_ci
b41c1517c7 !1856 tsaot add test case
Merge pull request !1856 from Hailiang/aot_lowering

Change-Id: Ibaa6c779205e604d1383f022f5cecdb3f8c95901
2022-07-22 14:32:36 +08:00
liuganlin
6caa813d58 Add Containers HashMap And HashSet
Description
    1.To ensure the high performance of container classes, HashMap and HashSet is provided in ark.
    2.Add test cases for HashMap and HashSet.
Related issue
    #I5D0WV:Add Containers HashMap and HashSet

Signed-off-by: liuganlin <liuganlin@huawei.com>
2022-07-20 11:16:28 +08:00
dingwen
bf637c1f41 modify arkcompiler_ets_runtime path
Description:modify arkcompiler_ets_runtime path
issue:https://gitee.com/openharmony/arkcompiler_runtime_core/issues/I5GE38

Signed-off-by: dingwen <dingwen6@huawei.com>
Change-Id: I43e2aae687a4f05fe6505b0b0f70f0846d047b84
2022-07-14 12:35:04 +08:00
g00416891
b6588744f2 New EcmaRuntimeCallInfo in stack pointer
Signed-off-by: g00416891 <guobingbing3@huawei.com>
Change-Id: I466a4107e6e073ffecea12e6986c112731d2d3bf
2022-07-05 14:54:43 +08:00
shisan_forwork
4c2859d80b Add Container LightWeightMap and LightWeightSet
Description
    To ensure the high performance of container classes, lightweight map
    and lightweightset are provided in ark.
Related issues
    #I566FV:Add Container LightWeightMap And LightWeightSet

Signed-off-by: shisan_forwork <chengjunxiong@huawei.com>
2022-06-21 10:02:29 +08:00
chenqi
3bc6dcb731 Add Containers List And LinkedList
Description
    1.To ensure the high performance of container classes, List and LinkedList is provided in ark.
    2.modify Copyright 2021->2022.
    3.fix containers.
Related issue
    #I58XA9:Add Containers List And LinkedList.

Signed-off-by: chenqi <chenqi151@huawei.com>
2022-06-02 17:02:40 +08:00
shisan_forwork
63d3929b97 Add Container Vector
Description
   To ensure the high performance of container classes, vector is
   provided in ark.
Related issue
   #I4XCD9:add container vector

Signed-off-by: shisan_forwork <chengjunxiong@huawei.com>
2022-05-23 20:40:25 +08:00
openharmony_ci
7cbbb8a243
!1093 Delete useless code dependencies.
Merge pull request !1093 from yingguofeng/mmap
2022-04-24 16:26:56 +00:00
yingguofeng@huawei.com
5037c8aac6 Delete useless code dependencies
To reduce 'libark_ jsruntime.so' ROM size, delete useless code dependencies.

https://gitee.com/openharmony/ark_js_runtime/issues/I541H4?from=project-issue

Profit: libark_jsruntime.so size reduce from 3455(kb) to 2001(kb)

Change-Id: Ie7430fca6f539c9baff1f4aae7942da6fc9ef135
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2022-04-24 18:02:32 +08:00
openharmony_ci
d9e214dc22
!1066 Fix Container
Merge pull request !1066 from chenqi/fixContainer
2022-04-24 07:56:10 +00:00
lifansheng
c9d2334593 Runtime architecture adjustment
Description
  Cut out most of the initialization logic in Runtime::Create and disconnect the
  inheritance relationship of most classes such as JSThread.
Issue:
  #I53418: Runtime architecture adjustment

Signed-off-by: lifansheng <lifansheng1@huawei.com>
Change-Id: Ib9c1a40354f77d32e515e23334e7f4b4a4fa3259
2022-04-21 14:37:31 +08:00
hjzhangcm
8046084328 simplify gn file
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-04-20 17:13:49 +08:00
chenqi
4358253556 Fix Container TreeMap Interface
Description
  Add Interface isEmpty on TreeMap.prototype.
Related issue
  #I53M3X:Fix Container

Signed-off-by: chenqi <chenqi151@huawei.com>
2022-04-20 11:31:42 +08:00
zhangjixing
eafc261ff6 Add Container Plainarray
Description
  To ensure the high performance of container classes, Plainarray is
   provided in ark.
Related issue
   #I4XXYA:Add Container Plainarray

Signed-off-by: zhangjixing <zhangjixing4@huawei.com>
2022-04-15 13:11:55 +08:00
xiongluo
f421f14e23 Fix long gc duration problem in photos app
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>
2022-04-10 20:45:15 -10:00
xliu
bddb55c976 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
zhangjixing
c6be465406 Add Container Deque And Stack
Description
  To ensure the high performance of container classes, Deque and Stack
  is provided in ark.
Related issue
  #I4X8GV:Add Container Deque And Stack

Signed-off-by: zhangjixing <zhangjixing4@huawei.com>
2022-03-29 18:13:38 +08:00
wengchangcheng
e64122e200 add -Werror -Wextra gn flag for 'compiler'
1. ignore llvm warning
2. fix warning of compiler module

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

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I09774e431743a26ea366ed28e3276ff027ae0d31
2022-03-25 15:31:59 +08:00
wengchangcheng
99934b9037 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
hjzhangcm
95fd066e92 Modify the symbol types of two variables in the assertion to make them consistent
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-03-24 10:17:34 +08:00
wanyanglan
bb6022bffc Clean Code For CodeHub Issues
Modified file permissions, word spelling errors, and
programming specifications suggesting EXPECT_EQ instead
of EXPECT_TRUE

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

Signed-off-by: wanyanglan <wanyanglan1@huawei.com>
Change-Id: I00eb9be48d481ce2bdaa4a621246ff6c405abecf
2022-03-22 11:34:13 +08:00
zhaozhibo
74c8d071c5 Fix internal issue list problem
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-03-14 17:42:27 +08:00
xliu
1ec31e6f05 Add tests for TreeMap and TreeSet
Description
  To ensure the high performance of container classes, TreeMap and TreeSet is provided in ark.
  1. Add test cases for ContainerTreeMap.
  2. Add test cases for ContainerTreeSet.
  3. Add test cases for JSAPITreeMap.
  4. Add test cases for JSAPITreeSet.
Related issue
  #I4T5I6:add test cases for TreeMap and TreeSet

Signed-off-by: xliu <liuxin259@huawei.com>
Change-Id: Ib01adfd9038498a88785bdd878e524e02ab38dc8
2022-02-10 15:40:14 +08:00