Commit Graph

99 Commits

Author SHA1 Message Date
wuwenlu
70fa8fe91d cause property for Error objects
Signed-off-by: wuwenlu <wuwenlu@kaihong.com>
2023-07-04 00:26:03 -07:00
zhangyukun
06c6451611 Optimize LocaleCompare for AOT
1. Add caches for locales
2. Add fastpath for locale string compare
3. Add pgo for bound function
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7F6ZW?from=project-issue
Signed-off-by: zhangyukun <zhangyukun8@huawei.com>

Change-Id: I869ec1a41eaaf7098627277a5ec9b3ce7a245dc4
2023-06-26 15:43:44 +08:00
linxiang8
b40082b717 bugfix: fix pr4105 use hclass flag instance of method flag
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7COZX
Signed-off-by: linxiang8 <linxiang8@huawei.com>
Change-Id: I6352990007f56c4c81863ead2c5aec34c82ed242
2023-06-14 21:53:20 +08:00
openharmony_ci
7d01ccb476
!3957 Create constant string to optimize the memory of Heap
Merge pull request !3957 from xiongluo/constant_string
2023-05-09 11:22:41 +00:00
xiongluo
cf451e377d constant string optimization
Signed-off-by: xiongluo <xiongluo@huawei.com>
Change-Id: Ieabea29874752fed615b0a911cf4118e791663eb
2023-05-08 17:07:03 +08:00
openharmony_ci
e0e3c301ab
!4000 Support typeinfer for namespace
Merge pull request !4000 from huoqingyi/namespace
2023-05-06 11:30:34 +00:00
huoqingyi
19ade57ed9 Support typeinfer for namespace
Issue:
https://gitee.com/openharmony/arkcompiler_ets_frontend/issues/I6YMZV

Tests:
typeinfer test, aot test

Signed-off-by: huoqingyi <huoqingyi@huawei.com>
Change-Id: I7b23bad765e410ebbce9e574ee86034887dac2f0
2023-05-06 15:38:29 +08:00
dingding
86ed7e81ef Eliminate Level Check in SubTyping Check
1. Use fixed length(WeakVector::DEFAULT_CAPACITY) supers array as default supers of hclass.
2. Eliminate level check if level is less than DEFAULT_CAPACITY.

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

Signed-off-by: dingding <dingding5@huawei.com>
Change-Id: I81227d1e766f28621050e0c0c4c7893fff347af4
2023-05-05 17:19:00 +08:00
openharmony_ci
3d3b176bc1
!3900 AOT optimization
Merge pull request !3900 from yingguofeng/master
2023-04-12 02:52:37 +00:00
yingguofeng@huawei.com
a0b1ce4001 Perf(aot): nbody optimization
1. Object super length change from taggedint to uint32
2. Optimize taggedint to int
3. Optimize builtins math.sqrt

Issue: #I6TVXW
Change-Id: Ibaa17cc55d18662606f2dedfba58c55a8eb3ffc4
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2023-04-12 09:44:10 +08:00
g00416891
b4054bf631 Refactor loadedJSPandaFiles for memory leak
https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6J2G8?from=project-issue

Signed-off-by: g00416891 <guobingbing3@huawei.com>
Change-Id: Ia8b70f4a0d0bdd67c82369c699b5687b949559c2
2023-04-07 14:57:06 +08:00
weng-xi
73f39aa7f3 AOT Supports VTable [PART_1]
1. Add fours fields to jshclass [LEVEL, SUPERS]
2. Add VTable class
3. Adjust type parser and TSHClass generation logic
4. Extended the weakvector class
5. Add SubtypeingOperator class

Issue: https://gitee.com/open_harmony/dashboard?issue_id=I6FVAJ
Signed-off-by: weng-xi <wengxi1@huawei.com>
Change-Id: I6640f3719fa067f505befd0f2cb0efb99d179dfc
2023-03-16 19:07:49 +08:00
weng-xi
f6f65e167c Add the ClassLiteral class
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6ITCC
Signed-off-by: weng-xi <wengxi1@huawei.com>
Change-Id: Iff5e4baaf5d71816b40015565fade48d2cf22fee
2023-03-07 09:34:33 +08:00
maojunwei
b4ebf86687 Fix AsyncGenerator
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6AAHY?from=project-issue

Signed-off-by: maojunwei <maojunwei1@huawei.com>
Change-Id: I4e2b4eec4c9ac1346f8b6d7f6d13a6818c83f5d3
2023-02-23 18:43:29 +08:00
yuanyao
327112583c RegExp enables $1..$9 global cache
Description:
    enables RegExp.$1 ... .$9
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6BTMN

Signed-off-by: yuanyao <yuanyao14@huawei.com>
Change-Id: I78055455669e5f326a1b5aa8c199c24ce1fd44d7
2023-02-03 09:52:03 +08:00
Gymee
45dd527ae8 Support @native|@ohos|@app prefixed module import
Issue: #I6AYCW
Signed-off-by: Gymee <yumeijie@huawei.com>
Change-Id: I87afa3f1bf50436150f55d594b95b66aea5e14e0
2023-01-30 22:01:28 +08:00
weng-xi
8f1fda94e3 Fix AOT bug of hasOwnProperty
1. change the logic of load/store operations when use AOT HClass
2. Supplement ut case
3. Add two new IC handlers
4. Add removeAOTFlag method to arktools
5. Add accessor flag to AOT HCLASS

Issues: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I692NO
Signed-off-by: weng-xi <wengxi1@huawei.com>
Change-Id: I9ca7e329b77e83b6c5a2c98525d551b5b4a1a9a4
2023-01-14 14:49:52 +08:00
g00416891
db76d5d1e2 Remove redundant maybe_unused
Signed-off-by: g00416891 <guobingbing3@huawei.com>
Change-Id: Id437f8983ec76aab4ac72c161c5d818dd36b0896
2023-01-04 11:06:58 +08:00
huangzhenghua
da1d093f4f add string "_napiwrapper" to global const
Signed-off-by: huangzhenghua <huangzhenghua3@huawei.com>
Change-Id: I76715495f495c92c804fa50b1adea8d62b230f23
2022-12-05 16:33:38 +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
DaiHN
56908d8052 Fix for supporting Dynamic import
-------------------------------------
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I61XDL?from=project-issue

Signed-off-by: DaiHN <daihuina1@huawei.com>
Change-Id: I16beb9aa175ba3f0b62261a5b3c6566531dd4c19
2022-11-23 14:35:22 +08:00
huoqingyi
478e29185e Adapt import types in merge-abc
Since the class TSImportType has never been verified correctness in AOT,
there are some bugs and redundant design. Also, the system of TSImportType
has not been updated in multiple refactorings of both frontend and AOT.
In order to support type inference from import types, we need to adapt these changes.

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

Tests:
aot test, typeinfer test

Signed-off-by: huoqingyi <huoqingyi@huawei.com>
Change-Id: I82ed369e3c449cf7b365657e2b191d24315e541b
2022-11-16 10:21:16 +08:00
武万琦
db94fdde7d Merge branch 'master' of gitee.com:openharmony/arkcompiler_ets_runtime into arraybuffer
Signed-off-by: 武万琦 <wuwanqi2@huawei.com>
2022-10-29 06:43:17 +00:00
wuwanqi
68c5a59453 Add onheap path for arraybuffer while arraybuffer bytelength is not greater than 64
issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5THVD?from=project-issue
Signed-off-by: wuwanqi <wuwanqi2@huawei.com>
Change-Id: I9a7d6df4efdb97969e4cf23742db7d51c3abe4f8
2022-10-29 14:25:41 +08:00
xiongluo
1291aa23a9 cow array optimize
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5V3ET?from=project-issue

Signed-off-by: xiongluo <xiongluo@huawei.com>
2022-10-26 11:37:49 +08:00
weng-xi
63f702ae40 Set AOT code entry for literal object
Signed-off-by: weng-xi <wengxi1@huawei.com>
Change-Id: I0c4d2e7579a845b3ec4cd8b9dac4057edf7e9397
2022-10-25 22:03:01 +08:00
hongtao
797a04d0a7 add type infer pass for getIterator
Signed-off-by: hongtao <hongtao11@huawei.com>
Change-Id: I7427c0d53fa479cca39ef0681628e6e04588fd6b
2022-10-22 18:10:54 +08:00
openharmony_ci
5b5c7eb06a
!2510 Shared class hclass
Merge pull request !2510 from yingguofeng/class_hclass_opt
2022-09-30 07:00:52 +00:00
yingguofeng@huawei.com
d3cdeddf90 perf(memory): shared class hclass
Closes #I5R38G

Change-Id: I46798294c8881342e1cae1eb76acff1fc7f504f9
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2022-09-27 10:59:34 +08:00
wengchangcheng
e0682fc3e6 Merge remote-tracking branch 'origin/master' into wcc_0723
Change-Id: Ib4221b094320658efe3ad07dd20ad91eb778c85e
2022-09-24 11:53:30 +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
wengchangcheng
4feda79505 Modify module for new isa
1. Init and get module environment by index
2. Set and get module var and namespace by index
3. restore binding with index and module or namespace

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

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I8bf3f6245e047d95ec1afd5d4475e6f8405ae77c
2022-09-19 14:26:06 +08:00
wengchangcheng
1c048a9eab Merge remote-tracking branch 'origin/master' into wcc_0808
Change-Id: I956a087306c12d601b76c259524174ed33f1123f
2022-09-03 18:40:44 +08:00
yingguofeng@huawei.com
4c50dd5596 perf/to(object)(Part1): JSFunction And ConstantPool Field streamlined and optimized
Part1

The functionextrainfo, profiletypeinfo, module under JSFunction
and the jspandafile field under ConstantPool can be streamlined and optimized

Closes #I5MYJH

Change-Id: I9e08beaf5409a2b4041316f6a2535247be9d19e8
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2022-09-02 16:25:00 +08:00
wengchangcheng
447847cb1d Merge remote-tracking branch 'origin/master' into wcc_0808
Change-Id: I1566e28d02d931b390ac5d7c3cb11c3485aed5de
2022-08-30 19:19:34 +08:00
openharmony_ci
df2af3908d
!2161 Throw OOMError instead of Fatal when jsheap is used up
Merge pull request !2161 from dingwen/master
2022-08-29 06:11:12 +00:00
dingwen
8448df7965 Throw OOMError instead of Fatal when jsheap is used up
Description:When jsheap is used up, throw OOMError instead of LOG(Fatal)
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5NXCQ

Signed-off-by: dingwen <dingwen6@huawei.com>
Change-Id: I0f561f81fcd8a85ef5cf7792f9b455f0b5942959
2022-08-29 11:41:11 +08:00
wupengyong
c47fbbc33a reason:add string charat ir
description:add string charat ir
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5O5VT?from=project-issue

Signed-off-by: wupengyong <wupengyong@huawei.com>
Change-Id: I14553bdf5a525dbec3f783161c6230d30543f9a4
2022-08-27 18:03:47 +08:00
zhaozhibo
d37955f128 fix codeCheck and buildMc warnings
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-08-25 10:24:41 +08:00
wengchangcheng
ab13a0da91 Descriptor: support first level instruction
Details:
1. Add old Opcode defines
2. Add new inst handler of throw & wide & deprecated
3. Modify interpreter for new inst
4. Modify typeinfer for new inst
5. Modify asm interpreter for new inst
6. Modify aot circuit builder for new inst
7. Translate old inst to first level inst

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

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: If9e0b60cafc32a662a5fb1676887939d5a2b9ebf
2022-08-24 14:12:42 +08:00
zhaozhibo
8acdd699f3 fix codeCheck and buildMc warnings
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-08-24 10:10:12 +08:00
g00416891
e7e344e150 Modify JSMethod to Method
Signed-off-by: g00416891 <guobingbing3@huawei.com>
Change-Id: I2f18e1cd8c163a2839bbf2b3da4e40d385f5094a
2022-08-23 15:23:06 +08:00
lifansheng
2110e9faf0 Rduece SourceTextModule Size
issue: I5MM8C

Signed-off-by: lifansheng <lifansheng1@huawei.com>
Change-Id: Ib7a5ad7787a740dc6c834992fd82458e184b4012
2022-08-18 20:14:15 +08:00
g00416891
9f8cbcc303 Move ConstantPool from JSFunction to JSMethod
Signed-off-by: g00416891 <guobingbing3@huawei.com>
Change-Id: I40dda1e44a831be6682f7fdacac21337af1bcd2d
2022-08-17 18:58:42 +08:00
毕虎
85a9ed147c Merge branch 'master' of gitee.com:openharmony/arkcompiler_ets_runtime into master 2022-08-02 16:22:46 +08:00
bi-hu
f45e51d61b Added New Code Of Asyncgenrator
Signed-off-by: bi-hu <bihu@huawei.com>
https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5JIGT
2022-08-02 15:42:50 +08:00
scw
eefd87d3a9 optimize sourceCode obtain when throw error
delete sourceCode obtain when throw error and save error func in error

issue;https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5IW9T?from=project-issue

Signed-off-by: scw <suchongwei@huawei.com>
2022-07-28 14:22:08 +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
57d689d7e4
!1720 Memory Leak DFX Tool
Merge pull request !1720 from yingguofeng/master
2022-07-21 03:07:45 +00: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