Commit Graph

105 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
9e46ab1323
!3929 Fix some header macro naming for consistency
Merge pull request !3929 from Gymee/codestyle
2023-04-14 15:28:37 +00:00
Gymee
d5b6db3406 Fix some header macro naming for consistency
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6VVCD
Signed-off-by: Gymee <yumeijie@huawei.com>
Change-Id: I73fa6fc84dc5b7c644f704fff218b34b7307dc7e
2023-04-14 22:36:06 +08:00
yingguofeng@huawei.com
e705f7a167 Perf(Aot): nbody optimization
1. Optimize CallTargetCheck lowering
2. StoreProperty bugfix

Issue: #I6V1KU
Change-Id: I818c1df9454f745ff9245cdff9d9c4a45cbf282e
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2023-04-14 09:32:56 +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
gongyuhang
0414561648 Correct the description for GetString and SetString
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6ILDW
Test: N/A
Signed-off-by: gongyuhang <gongyuhang7@huawei.com>
2023-03-01 09:30:24 +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
fa5b47c71a Explicit only works on single-argument constructor
Signed-off-by: g00416891 <guobingbing3@huawei.com>
Change-Id: Ia9bfc1e905962127d2afea6adb21704d4f0cd6d0
2023-01-03 11:06:16 +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
Gymee
45bbb6cbf5 remove redundant spaces between operator
Issue: #I63MCO
Signed-off-by: Gymee <yumeijie@huawei.com>
Change-Id: Ifd1d4768a2f96d618e991e07fc0b7a516c5965af
2022-11-29 11:47:32 +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
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
yuan-yao14
5861fbea35 Optimize Container Iterator
Description:
     All Containers create the same undefined iterator object which can be space and time consuming.
     Create Empty undefined iterator and put it on global constants which can be shared by all containers.
Issue:
     https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5UCGK

Signed-off-by: yuan-yao14 <yuanyao14@huawei.com>
Change-Id: I7ffa7b990cac380d48dc4e18348fb265a2c961db
2022-10-18 19:54:14 +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
54f9334d8b Merge remote-tracking branch 'origin/master' into wcc_0723
Change-Id: I93a3e99789ea0a7aa42c4057258b198d13ff66ae
2022-09-22 16:50:12 +08:00
getingke
45202e4d21 Add some middle level ir for optimize newobj or create literal heapobj
issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5RVFC?from=project-issue

Signed-off-by: getingke <getingke@huawei.com>
Change-Id: Ic2b1b748598d3b508ef0ab7178474b5ca0537a7c
2022-09-22 12:20:29 +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
7237c5ce47 Merge remote-tracking branch 'origin/master' into wcc_0808
Change-Id: I06cc861adac3bdf82361e6fe80784b628fcd93f1
2022-09-02 09:31:09 +08:00
zhaoduwei
731b9a999f Added New Code Of Async_Iterator
issues:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5NIE9

Signed-off-by: zhaoduwei <zhaoduwei1@huawei.com>
2022-08-31 11:41:50 +08:00
wengchangcheng
447847cb1d Merge remote-tracking branch 'origin/master' into wcc_0808
Change-Id: I1566e28d02d931b390ac5d7c3cb11c3485aed5de
2022-08-30 19:19:34 +08:00
g00416891
07e33b3e21 Hot patch for modify and add function
Signed-off-by: g00416891 <guobingbing3@huawei.com>
Change-Id: I4ee46b128dd910a47ce82328e5b0676feb095bfb
2022-08-29 16:43:17 +08: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
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
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
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
xliu
9da4c63884 Object Entries and Array Iterator optimization
1. Optimize the enumerableownpropertynames interface by adding cache;
2. Remove the number to string conversion of array iterator;
3. Share hclass of iterator result;
4. Share the return result of closeiterator;
5. Fix EnumerableOwnNames bugs.
6. Fix Array IteratorNext bugs.
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5G288

Signed-off-by: xliu <liuxin259@huawei.com>
Change-Id: Ie03278f0afed3cf7eb967dd92eac13c2fc0eeb4e
2022-07-11 19:38:17 +08:00