Commit Graph

150 Commits

Author SHA1 Message Date
Sidorov Aleksei
a238795bf7 Inline Math.Exp* builtins
Signed-off-by: Sidorov Aleksei <aleksei.sidorov@huawei.com>
Change-Id: Icff51c7fb4f34a2b1c62392d3229fb55114f38b6
2024-03-20 19:10:58 +08:00
wengchangcheng
57301d1c3a Merge remote-tracking branch 'openharmony/master' into dev_shareheap
Change-Id: Ic0261b902b4c6ce2105ea5369f7129371aec6910
2024-03-16 10:02:20 +08:00
Mikhail Kaskov
729f326970 Implemented inlining of Math.Pow builtin
* Added tests

Signed-off-by: Mikhail Kaskov <kaskov.mikhail@huawei.com>
Change-Id: Ia45d20da9bc47315d118a57752c8d46bc0b94cc3
2024-03-14 17:50:23 +08:00
Sidorov Aleksei
5ee67b033d Implement Math.Log* builtins inlining
Change-Id: Ic6f4ea17f01a0b50dc0ec4c19b4156033e96efbe
Signed-off-by: Sidorov Aleksei <aleksei.sidorov@huawei.com>
2024-03-14 17:50:23 +08:00
Andrey Efremov
3a535ffbbd Implement inlining of Math.abs builtin
* Add tests

Signed-off-by: Andrey Efremov <efremov.andrey@huawei-partners.com>
Change-Id: I147f3f926ca1f9a3bbc1dcc252686638d0d2b2d6
Signed-off-by: Andrey Efremov <efremov.andrey@huawei-partners.com>
2024-03-14 17:50:23 +08:00
Chernykh Sergey
8a77a3ac13 Implement inlining of trigonometric builtins
* Supported:  Acos, Acosh, Asin, Asinh, Atan, Atanh, Cos, Cosh, Sin,
Sinh, Tan, Tanh, Atan2
* Add tests

Signed-off-by: Chernykh Sergey <chernykh.sergey1@huawei.com>
2024-03-14 17:50:21 +08:00
Chernykh Sergey
a186a49a92 Initial support of builtin inlining
* Refactored builtin logic
* Support of Math.Sin and Math.Cos inlining
* Added tests

Co-authored-by: ginxu <xujie101@huawei.com>
Signed-off-by: Chernykh Sergey <chernykh.sergey1@huawei.com>
2024-03-14 17:49:56 +08:00
wengchangcheng
85c131274b Merge remote-tracking branch 'openharmony/master' into dev_shareheap
Change-Id: I279823311968eb6174bb20be0b98245ca6a259c5
2024-03-13 22:10:40 +08:00
liuzhijie
60989eb7eb AOT support destructuring assignment
Issues: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I95QHW?from=project-issue
Signed-off-by: liuzhijie <liuzhijie9@huawei.com>

Change-Id: I329953ca606df89697f0ce0aed0b5bc9a5bd3f4d
2024-03-12 20:07:15 +08:00
wengchangcheng
c1e94f2c5b Merge remote-tracking branch 'openharmony/master' into dev_shareheap
Change-Id: I453d3948421d4327a8d54b5689b1ec21f97f5dce
2024-03-11 22:42:20 +08:00
rentangyu
449e302af9 debug模式应用异常对象创建时js栈通过sourcemap进行行列号转换
issues:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I93DHY

Signed-off-by: rentangyu <rentangyu@huawei.com>
2024-03-05 16:54:36 +08:00
Gargoyle.h
97e7509f82
!6190 Support importing obj in Sendable Class
Merge pull request !6190 from DaiHN/sendable_module
2024-02-20 13:47:10 +00:00
DaiHN
f09abc4fa1 Support importing obj in Sendable Class
issure : https://gitee.com/openharmony/arkcompiler_ets_frontend/issues/I91CQ6

Signed-off-by: DaiHN <daihuina1@huawei.com>
Change-Id: I16cda3c6d3fa2571d2be2f951c604297cac851aa
2024-02-20 19:47:50 +08:00
wengchangcheng
0ed9f00a08 Merge remote-tracking branch 'openharmony/master' into dev_shareheap
Change-Id: I73e06e67e44d7bd2492ba0615c2ac62b4979ef36
2024-02-19 00:14:55 +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
Gymee
1dcc6f74c9 Add more global constants for shared
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I91EN4
Signed-off-by: Gymee <yumeijie@huawei.com>
Change-Id: I8f5a77fc4d85374bf90095ad0d4d8ac3b43aa5aa
2024-02-07 10:31:34 +08:00
dingwen
63f20bb2b0 Optimize serialize code
Description:Add string fastpath and modify write barrier
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8YNZT

Signed-off-by: dingwen <dingwen6@huawei.com>
Change-Id: I6ef05499f7ed471be883f8eda043757df7c4f674
2024-02-06 18:59:02 +08:00
Gymee
cb8e0864b2 Support globalconsts shared amongst vm
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8ZQ6R
Signed-off-by: Gymee <yumeijie@huawei.com>
Change-Id: I377b98dc0c9c8b62a66c9c92ebe9ee84ea509656
2024-02-02 11:56:51 +08:00
lukai
4613aaa35f Allocate SharedObject/SharedFunction to shared heap
Allocate SharedObject/SharedFunction to shared heap

Signed-off-by: lukai <lukai25@huawei.com>
Change-Id: I58ad919dff884311dc5315ef25acdc5eafc10cdd
2024-01-25 21:56:33 +08:00
wuwenlu
47fffc97fc support Intl.Segmenter for ECMA402
Signed-off-by: wuwenlu <wuwenlu@kaihong.com>
2024-01-24 19:11:45 -08:00
rentangyu
9b955e0401 栈转换性能问题代码回退
issues:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8UVO3

Signed-off-by: rentangyu <rentangyu@huawei.com>
2024-01-09 21:29:59 +08:00
openharmony_ci
2e3c84494f
!5768 ElementsKind - COW MutantTaggedArray
Merge pull request !5768 from yaoyuan/COWMutant
2024-01-04 02:02:07 +00:00
yaoyuan
54760cc265 ElementsKind - COWMutantTaggedArray
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8TBS8

Signed-off-by: yaoyuan <yuanyao14@huawei.com>
Change-Id: Ife2aeb21890d9a26cb3c4db60497c9ff1ab574cc
2024-01-03 18:54:50 +08:00
openharmony_ci
da8c48fc0f
!5720 JS行列号转换
Merge pull request !5720 from 任堂宇/master
2024-01-03 08:45:44 +00:00
ginxu
d09c8679a3 Support String FromCharCode Inline
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8S4AX
Signed-off-by: ginxu <xujie101@huawei.com>
Change-Id: I67bc078286d75111e9f0221a6de4138de6e2580d
2024-01-02 21:14:34 +08:00
rentangyu
9ab5474c6d console.log(new Error().stack)打印栈行列号转换
issues:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8S6KO

Signed-off-by: rentangyu <rentangyu@huawei.com>
2024-01-02 17:14:43 +08:00
yaoyuan
61afc6feb7 ElementsKind-Part2
Enable Interpreter ElementsKind but with option as false
ISSUE: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8M1RU

Signed-off-by: yaoyuan <yuanyao14@huawei.com>
Change-Id: Ic2d0d4ecc1a0e08220aa2a2be4ad293ded725f07
2023-12-18 15:57:47 +08:00
Gymee
3cf1f03a93 Add true|false|null to global constants
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8NRO4

Signed-off-by: Gymee <yumeijie@huawei.com>
Change-Id: I512b44bc4cb7628e432f31af735eb0f6a2235720
2023-12-12 16:46:04 +08:00
liuzhijie
d2d17933f5 Optimize Function Binds
Issues: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8L1W3?from=project-issue
Signed-off-by: liuzhijie <jay.lau2020.work@outlook.com>

Change-Id: Icb4f95333f8c0f254c54362e1086983f43d0ee01
2023-12-05 11:03:46 +08:00
ginxu
3f8db81a3a Fix Deopt Threshold Failure
1. Move optimized and fastcall judgment from hclass to method.
2. Fix builtins stubs bug.

Isssue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8L2KT
Signed-off-by: ginxu <xujie101@huawei.com>
Change-Id: I26125037ad9631ee0992cf77fbc3f276d3453f66
2023-12-02 16:51:58 +08: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
openharmony_ci
51751a5a5e
!4862 support TerminateExecution in taskpool
Merge pull request !4862 from huangfeijie/termination
2023-11-03 12:39:46 +00:00
huangfeijie
1387d7eede issue:https://gitee.com/openharmony/commonlibrary_ets_utils/issues/I83868
support TerminateExecution in Taskpool
Throw the exception when find the temination flag

Signed-off-by: huangfeijie <huangfeijie@huawei.com>
2023-10-31 16:44:57 +08:00
zhangyukun8
46b1b13f09 Refator for-of IR
1. Reuse callbuiltin for for-of

Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8BNSB?from=project-issue
Signed-off-by: zhangyukun8 <zhangyukun8@huawei.com>
Change-Id: Ic8c348e04a4039a69dd47d525d6378039741750e
2023-10-30 16:38:42 +08:00
Onlynagesha
8ae8b90645 global_env_constants cleanup for strings
Cleans up initialization of string constants in global_env_constants.cpp
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I89FU1

Signed-off-by: Onlynagesha <orina_zju@163.com>
Change-Id: I028c12a1bdd24e33c21f5c1bd2b2b20d4be8acb1
2023-10-19 22:04:55 +08:00
zhangyukun8
6d6bab6309 Avoid Re-enter interpreter of BuiltinString.prototype.replace
1.Add property detector for symbols
2.Avoid Re-enter interpreter for replace and exec functions

Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I83B0E?from=project-issue
Signed-off-by: zhangyukun8 <zhangyukun8@huawei.com>
Change-Id: I9c5fb772717e958e0900f7e3a1fb8fa7d11fd8e1
2023-09-25 10:19:15 +08:00
xiaoweidong
672860383c Optimise Object.toString, add cache builtin to string
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7Y8N1?from=project-issue

Signed-off-by: xiaoweidong <xiaoweidong@huawei.com>
Change-Id: I5395ba92af0d14e974e685c8e2fb324dfd39ccf1
2023-09-18 07:55:47 +08:00
yingguofeng@huawei.com
7b633520b5 Refactor>(PGO): PGO refactor
Adjust the PGO collection model. Complete type data collection by traversing the ProfileTypeInfo of Method through asynchronous threads

Issue: #I7UVD6
Change-Id: Ieb94892698d7a15d948b762ba057e4c0cf6ca1d2
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2023-09-17 16:00:55 +08:00
openharmony_ci
e5ccea7acc
!4633 支持ECMA2022规范正则表达式/d标志
Merge pull request !4633 from 吴文璐/for_d
2023-09-14 06:56:16 +00:00
openharmony_ci
fb2c67bcda
!4733 Add SlicedString to optimize string.substring
Merge pull request !4733 from wpy111/master
2023-09-05 13:04:20 +00: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
ginxu
39d838b541 Support Fast Json Stringify
Add stringify cache.

Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7Y7OH
Signed-off-by: ginxu <xujie101@huawei.com>
Change-Id: Ia469e2d7ff0b974631aca08222463485a9e56f58
2023-09-04 19:10:43 +08:00
wuwenlu
bc9b219630 add /d flag for regular expression
Signed-off-by: wuwenlu <wuwenlu@kaihong.com>
2023-08-30 20:35:50 -07:00
zhangyukun8
c812ecda91 Optimize Array.sort for aot
Add cache for number toString
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7UYXS?from=project-issue

Signed-off-by: zhangyukun8 <zhangyukun8@huawei.com>
Change-Id: Ic6008335777e9844ecc59ec005b876363b3792da
2023-08-24 20:17:09 +08:00
yingguofeng@huawei.com
169977e926 Feat(Aot): PGO ArrayLiteral elemnetKind for array aot opt
Issue: #I7NYFW
Change-Id: I59ed5b9c377f2ce6bad2723795309099e015f8df
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2023-08-09 23:09:42 +08:00
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