Commit Graph

45 Commits

Author SHA1 Message Date
Gymee
46cd1ebd6c Reduce size of JSNativePointer
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/IARFBJ
Signed-off-by: Gymee <yumeijie@huawei.com>
Change-Id: Id99ce459b5b378eba162308b09438ae4f220aff8
2024-09-14 16:35:21 +08:00
dingwen
f2d6c0681f Use chunk to store serialize shared obj instead of std::vector
Description:Use chunk to store serialize shared obj instead of std::vector
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/IAPLLX?from=project-issue

Signed-off-by: dingwen <dingwen6@huawei.com>
Change-Id: Ic27a91d61d6d66254932e188ca0eda5fd7531434
2024-09-08 21:27:07 +08:00
openharmony_ci
d89dfcbe62
!8726 Adjust native size trigger gc strategy
Merge pull request !8726 from dingwen/stragery_br
2024-08-24 03:51:38 +00:00
dingwen
0d7dec6112 Adjust native size trigger gc strategy
Description:Adjust native size trigger gc strategy
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/IAKDJ7?from=project-issue

Signed-off-by: dingwen <dingwen6@huawei.com>
Change-Id: I297b251c0b32a512e0051c1be2bbd929318fe159
2024-08-18 10:47:47 +08:00
hlm2001
712e73bcee Fix code security issues
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/IAK0JM

Signed-off-by: hlm2001 <huanglimin10@huawei.com>
Change-Id: I69e8c0f44157c2c5d31f7bc1781227a7901bc135
2024-08-15 17:05:47 +08:00
xiongluo
c79e8e3283 shared full gc
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/IAAM12

Signed-off-by: xiongluo <xiongluo@huawei.com>
Change-Id: I5785021320e5dcc164671c79bdc26975abedc68b
2024-07-29 16:55:23 +08:00
jinjiawei
3259b1e231 fix native size bug
Signed-off-by: jinjiawei <jinjiawei2@huawei.com>
Change-Id: I8b106798879007e1a1e69a9fdbd4bd7bd92ef5c0
2024-06-21 10:33:08 +08:00
wengchangcheng
38db6db8ad modify napi performance
1. add env in JSNativePointer deleter
2. delete new NativeObjectInfo
3. delete NapiNativeCallbackInfo, use ark stackinfo instead

https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I9IDMS

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I1acf0e9f26096319ef74ef20e108ac63c9c2c21c
2024-04-21 14:47:41 +08:00
openharmony_ci
6ce500267f
!6647 optimize string regexp related interface
Merge pull request !6647 from chenjingxiang/opt_string_related_regexp
2024-03-29 18:54:11 +00:00
chenjx-huawei
59c437599e optimize string regexp related interface
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I9BBXA?from=project-issue

Signed-off-by: chenjx-huawei <chenjingxiang1@huawei.com>
Change-Id: If9dfed652e9338338cae87962815ff1b7744085b
2024-03-29 16:48:27 +08:00
xiongluo
f7a5a4034f Add concurrent native delter
Signed-off-by: xiongluo <xiongluo@huawei.com>
Change-Id: I133a594bd52ffa58427cbfd467fca383e3d66921
2024-03-25 22:12:47 +08:00
liu-zelin
8c1d4935a5 Fix CodeCheck
Signed-off-by: liu-zelin <liuzelin8@huawei.com>
Change-Id: Ic60aabc5a3cc92d805c23e35869df78375c8d159
2024-03-17 15:56:17 +08:00
wengchangcheng
c1e94f2c5b Merge remote-tracking branch 'openharmony/master' into dev_shareheap
Change-Id: I453d3948421d4327a8d54b5689b1ec21f97f5dce
2024-03-11 22:42:20 +08:00
dingwen
7c02fd0c8f Fix CreateLineStringNoGC interface allocate huge string return nullptr bug
Description: Fix CreateLineStringNoGC interface allocate huge string return nullptr bug
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I95PWV?from=project-issue

Signed-off-by: dingwen <dingwen6@huawei.com>
Change-Id: I2841510a77426c91a91673ffdf196fdefc2f9a71
2024-03-05 19:11:36 +08:00
lukai
d301ac8e8c Fix code conflict
1. Fix code conflict
2. Fix code review

Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I91D19?from=project-issue

Signed-off-by: lukai <lukai25@huawei.com>
Change-Id: Ib0aabf0e22eb0809122775981467ad643d2f2ca5
2024-02-19 09:17:42 +08:00
hzzhouzebin
a1308124c3 Move EcmaString & StringTable on Shared Heap
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8YVTQ
Signed-off-by: hzzhouzebin <zhouzebin1@huawei.com>
Change-Id: I04d16d68f38be1679f206a782ef76b9d34142589
2024-02-07 23:13:44 +08:00
openharmony_ci
3f39ca6da0
!5391 [BugFix] Assertion failed in GetTaggedObject
Merge pull request !5391 from 刘家华/master
2023-11-30 08:17:06 +00:00
liujiahua
412c4a042b BugFix: Assertion failed in GetTaggedObject
Insert RangeError throw out
issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8KMQS
Signed-off-by: liujiahua <liujiahua12@huawei.com>

Change-Id: Ifeb807831e99e9c2420f0dcbb21d2fedd74f30dc
2023-11-30 14:20:17 +08:00
xiongluo
6a0b3e5108 Add native size check mechanism on disabled concurrent mark
Signed-off-by: xiongluo <xiongluo@huawei.com>
Change-Id: I15a20369fbd61b6b0a2e1dd480c39a922e03b3bb
2023-11-20 16:13:47 +08:00
xiongluo
fee8541c2a complete native size check machanism
Signed-off-by: xiongluo <xiongluo@huawei.com>
Change-Id: I7c024f9620112003c44fb2b48ffe44bff8bbbbce
2023-11-17 14:54:30 +08:00
liujiahua
2f3b4f1714 chunk内存统计
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8AZAU

Signed-off-by: liujiahua <liujiahua1997812@163.com>
Change-Id: Ied818299d8b0557ad1681afad5c49bf4cd2491cb
2023-11-04 15:48:14 +08:00
Onlynagesha
180e0a3f87 Fixes circular header dependency
Eliminates circular header dependency in some fundamental headers like
js_thread.h, js_tagged_value.h, etc.
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7ZPL4

Signed-off-by: Onlynagesha <orina_zju@163.com>
Change-Id: I5a78073992b77643718abdc1e0813485c0e439bb
2023-09-08 19:05:41 +08:00
wupengyong
fa4b637a68 Reason:Add SlicedString to optimize string.substring
Description:Add SlicedString to optimize string.substring
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7XUDH?from=project-issue

Signed-off-by: wupengyong <wupengyong@huawei.com>
Change-Id: I4bb78eb5f66c480e160567704bca53c200dde74c
2023-09-05 19:45:47 +08:00
xiongluo
e13c36091a Let native pointer list managed by old gc or full gc
Signed-off-by: xiongluo <xiongluo@huawei.com>
Change-Id: I43a3e9d60c2315800b216977a8de97da29c0fbc1
2023-08-25 09:49:55 +08:00
xiongluo
cf451e377d constant string optimization
Signed-off-by: xiongluo <xiongluo@huawei.com>
Change-Id: Ieabea29874752fed615b0a911cf4118e791663eb
2023-05-08 17:07:03 +08:00
linxiang
31dbc9a4e3 add log fatal before unreachable
Signed-off-by: linxiang <linxiang8@huawei.com>
Change-Id: I272f5c052e58a1067528893d857dbd460e2d4d86
2022-12-01 16:30:13 +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
xiongluo
46299a8e76 bugfix of native binding size
Signed-off-by: xiongluo <xiongluo@huawei.com>
2022-09-21 17:59:54 +08:00
yingguofeng@huawei.com
7ca0219102 fix(UT): Fix ark_js_host_unittest test failed in runing asan
Closes #I5Q3HC

Change-Id: Ic52a0b137bb71784f92d530cae4df582c7b53dcf
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2022-09-15 20:43:43 +08:00
maojunwei
259b2246c3 Trigger gc by native binding size
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5Q38W

Signed-off-by: maojunwei <maojunwei1@huawei.com>
2022-09-09 16:58:03 +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
xliu
4b27184ed7 Constpool object moved to old age
Description
  1.GC is frequent during constpool parsing
  2.Constpool object moved to old age allocation
Issue:
  https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5I8YT

Signed-off-by: xliu <liuxin259@huawei.com>
Change-Id: I0c88597f56a3ff60337fd21fa2d09d1dac004973
2022-07-23 11:31:35 +08:00
xliu
26ba828698 Revert "Constpool object moved to old age"
This reverts commit 203136be24.

Signed-off-by: xliu <liuxin259@huawei.com>
Change-Id: I1026b9a8b7e0eef35ed964b94aab2962e7c2b981
2022-07-20 17:40:52 +08:00
xliu
203136be24 Constpool object moved to old age
Description
  1.GC is frequent during constpool parsing
  2.Constpool object moved to old age allocation
Issue:
  https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5H2ZN

Signed-off-by: xliu <liuxin259@huawei.com>
Change-Id: Ie4b54e205c5673705992a370f2af8f9b46e412e3
2022-07-16 17:54:34 +08:00
luochuhao
905d0496dc Refactor ID definition and callSignature initialization mechanism of stubs
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
2022-03-18 22:01:52 +08:00
wengchangcheng
a6b1b4836f fix jspandafile of framework file and aot info
1. delete unused logic of framework pandafile
2. refactor native pointer callback
3. fix bug of generate aot info

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

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I3ba318a0bc2c0e95afff6473ff106bc8b5c9dfe4
2022-03-04 15:29:27 +08:00
yingguofeng@huawei.com
e89ced9203 Heap code refactoring
Delete MemManager class. The allocation function move to heap.cpp. The Space
manage Allocator.

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

Change-Id: I03cef52d9a1c86b07323de1e19ead53fe6daaf99
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2022-02-25 16:03:15 +08:00
dingwen
7010c5bb76 Modify RegionFactory and Chunk
Description:Divide RegionFactory into HeapRegionAllocator and
NativeAreaAllocator,use ChunkVector replace some unreasonable CVector.
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I4TRB8

Signed-off-by: dingwen <dingwen6@huawei.com>
2022-02-21 15:22:01 +08:00
xiongluo
8d2f78028a GC name is unclear and confused. class_ in object factory are redundant.
Modify gc name and delete class_ in object factory.

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

Signed-off-by: xiongluo <xiongluo@huawei.com>
2022-02-16 01:10:53 -10:00
panzhenyu1
a6d993bf0c Fix passing argument bug for NewJsIntlNativePointer function
Signed-off-by: panzhenyu1 <panzhenyu1@huawei.com>
2022-01-07 11:06:45 +08:00
yingguofeng@huawei.com
1d9b2ac3dd nativePointer optimization
Change-Id: I97b58375c2ec30f33778d7f11fb40a9cf0ed346b
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2021-12-23 19:40:54 +08:00
zhangyukun
a97747fe18 Description:sync from code from wgr_master to ohos
Signed-off-by: zhangyukun <zhangyukun8@huawei.com>
Change-Id: Ic66a9e649de8c0ce530483296fe323b8f50621fb
2021-12-21 09:36:03 +08:00
yingguofeng@huawei.com
104878d175 Delete JSNativeObject
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
Change-Id: I2f4a2e518497bf1f8a4724c63ef566cefed28271
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2021-10-09 15:28:48 +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