Commit Graph

28 Commits

Author SHA1 Message Date
dingwen
b524484159 Allocate global const env and builtins string to read only space
Description:Allocate global const env and builtins string to read only space
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I9HHKS?from=project-issue

Signed-off-by: dingwen <dingwen6@huawei.com>
Change-Id: Idf46cd6c2b98eec5b9bd54034d29c8f6567e1670
2024-04-26 16:48:54 +08: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
Gymee
a62ec8f8b5 Fix code check
Signed-off-by: Gymee <yumeijie@huawei.com>
Change-Id: Ic0598321e33c1303f97fecd15d934f79db096ea4
2024-03-17 21:56:49 +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
65984f4aa8 Merge remote-tracking branch 'openharmony/dev_shareheap' into dev_shareheap
Change-Id: If69df3b9dfd9910c1dab772726ebeb486080a1ed
2024-03-16 10:12:19 +08:00
lukai
6edb976190 Fix some bugs for sendable
1. Fix unsafe memory access after thread state transtion.
2. Fix unsafe heap iterate due to unintialized object.
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I98ZB3?from=project-issue

Signed-off-by: lukai <lukai25@huawei.com>
Change-Id: Ia2417010800393a14e6c03dbe25d1a6f78bee8e8
2024-03-15 18:51:39 +08:00
wengchangcheng
c1e94f2c5b Merge remote-tracking branch 'openharmony/master' into dev_shareheap
Change-Id: I453d3948421d4327a8d54b5689b1ec21f97f5dce
2024-03-11 22:42:20 +08:00
Panferov Ivan
a5e918efd2 Optimize JSON Parse builtin
Change-Id: I5f8afddf7faead9b9d5121f3c4ed6684531918f4
Signed-off-by: Panferov Ivan <panferov.ivan@huawei-partners.com>
2024-03-01 17:33:57 +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
wupengyong
ee47c801a6 Reason:optimize String fromCharcode
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8HQ2J

Signed-off-by: wupengyong <wupengyong@huawei.com>
Change-Id: I5217b2acbfa9696c5a167801193bcaa93695bd4e
2023-12-18 17:18:32 +08:00
wupengyong
0388a6ba59 Reason:optimize NewInternalString
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8K880?from=project-issue

Signed-off-by: wupengyong <wupengyong@huawei.com>
Change-Id: I24fd6ac9e54e612c16a629cc6410a7c15e63e532
2023-12-04 14:32:44 +08:00
openharmony_ci
818d009c7d
!5258 Refactor worker serialization
Merge pull request !5258 from dingwen/master
2023-12-01 06:26:27 +00:00
dingwen
8f5e2fa5b4 Implement serialize base class
Description:Implement serialize base class
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8GZGX
Signed-off-by: dingwen <dingwen6@huawei.com>

Change-Id: Ia03fc9cac949d73cafbd6a2603da053d2f886cd1
2023-12-01 09:02:26 +08:00
yaochaonan
86555cd737 Add fastpath Int32ToString, add singleCharTable in vm
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8ID3Q?from=project-issue

Signed-off-by: yaochaonan <yaochaonan@huawei.com>
Change-Id: I950f1a8530b22e2be1357054a8fbfec18a09dae0
2023-11-27 19:28:28 +08:00
wupengyong
ca2538116e Reason:optimize GetRawStringFromStringTable
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8IXVF?from=project-issue

Signed-off-by: wupengyong <wupengyong@huawei.com>
Change-Id: Id2f57c9dab6dcfe7a7321de3e65813a7bb5b763d
2023-11-23 20:03:54 +08:00
wupengyong
bb41d2733f Reason:optimize HasOwnProperty
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8EN7A?from=project-issue

Signed-off-by: wupengyong <wupengyong@huawei.com>
Change-Id: Ia4fa9925dd89605d69085afa476b8b34f16c5aac
2023-11-13 14:31:55 +08:00
xiongluo
2125620ffd Relocate constant string when panda file removed
Signed-off-by: xiongluo <xiongluo@huawei.com>
Change-Id: If990bb377fc4cc1b23ec4b212e280f56c642503b
2023-10-31 19:20:14 +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
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
yaoyuan
b80c0196ca 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
dingwen
01d74f025f Snapshot code optimization
Description:Snapshot code optimization include modify class name SnapShotSerialize to SnapShotHandler, delete some magic number, add interface to acquire global env and global const object index.
Issue:https://gitee.com/openharmony/ark_js_runtime/issues/I55CQ3

Signed-off-by: dingwen <dingwen6@huawei.com>
Change-Id: I338028c5cfd4f992095f2bded2956e33f275bb1b
2022-05-07 09:23:06 +08:00
zhaozhibo
2c7f6ff4fa delete object_xray-inl.h, move into object_xray.h and create visitor.h
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-04-28 21:25:51 +08:00
feng
e0f34edb44 Performance optimization for String table
concat string table

issue:https://e.gitee.com/open_harmony/dashboard?issue=I4SASV

Signed-off-by: feng <yingguofeng@huawei.com>
Change-Id: I1ff7f15246c8d367c8c8a38f0effed9e6ace2bed
2022-02-15 14:23:43 +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
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