Commit Graph

90 Commits

Author SHA1 Message Date
openharmony_ci
1a12a03b98
!7304 support sendable env
Merge pull request !7304 from lijiamin/fix
2024-05-12 12:28:55 +00:00
lijiamin2019
25076981de Support sendable env
Signed-off-by: lijiamin2019 <lijiamin24@huawei.com>
Change-Id: I12c98e977e9338cbe811cdd65b8e6b80bc8f4872
2024-05-12 17:41:27 +08:00
openharmony_ci
22120fde2f
!7321 修改告警:确保不符号整数不溢出
Merge pull request !7321 from 韩靖/master
2024-05-11 10:26:52 +00:00
hanweiqi
e143f39edc Support Cold Reload: Update func_main_0
Signed-off-by: hanweiqi <hanweiqi3@huawei.com>
2024-05-11 13:23:14 +08:00
@han_177
96375fed10 修改告警:确保无符号整数不溢出
Signed-off-by: @han_177 <hanjing35@huawei.com>
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I9KXXD
2024-05-10 18:27:47 +08:00
hanweiqi
c8b1631472 Support ColdReload
Signed-off-by: hanweiqi <hanweiqi3@huawei.com>
2024-05-05 21:18:16 +08:00
DaiHN
03892a9864 Support shared module
issue: https://gitee.com/openharmony/arkcompiler_ets_frontend/issues/I9BIE5

Signed-off-by: DaiHN <daihuina1@huawei.com>
Change-Id: I7cecbb668131d2279966749be68a02a6127f7ac9
2024-04-07 20:04:00 +08:00
Gymee
7b168672ca Merge remote-tracking branch 'origin/master' into HEAD
Change-Id: I2ecfa1d16d09da3b7d5699b72e7c8cfb848211fa
2024-03-19 21:42:26 +08:00
zhangyouyou
2ad79e801f add LiteralTag::ASYNCGENERATORMETHOD
Signed-off-by: zhangyouyou <zhangyouyou2@huawei.com>
2024-03-18 14:26:29 +08:00
DaiHN
74d945a502 adapt esmodule
issue : https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I92GZ8

Signed-off-by: DaiHN <daihuina1@huawei.com>
Change-Id: Ib706d0ab9747a15c02e11be2b2b6fdcbd540e271
2024-02-23 16:05:03 +08:00
DaiHN
0c26b1f8f4 Merge remote-tracking branch 'origin/dev_shareheap' into mmmmmmmmm
Change-Id: I38c4372c3c9622ad43b890391fe5197ffac13dd6
2024-02-23 15:47:47 +08:00
lijiamin2019
82b1a38088 Move module from Method to JSFunction
Signed-off-by: lijiamin2019 <lijiamin24@huawei.com>
Change-Id: I8d9572c14310dba0a8496161d49c7ecfd14a74b3
2024-02-23 15:32:01 +08: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
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
lijiamin2019
e36eb338cd share method,constpool,classliteral
Signed-off-by: lijiamin2019 <lijiamin24@huawei.com>
Change-Id: Ieb0a205bb341f09b6e5304ab66e2ce2e04725bb2
2024-02-07 21:36:41 +08:00
lijiamin2019
b48894eb5a Move CodeEntry from Method to JSFunction
Signed-off-by: lijiamin2019 <lijiamin24@huawei.com>
Change-Id: Ie1c3e4054bc985218654d7ce21640bb086bc4a8d
2024-01-30 19:34:48 +08:00
lukai
49ea9272f0 Fix code review
1. Move SharedObject/SharedFunction to shared_builtins.cpp
2. Move shared interface to shared_object_factory.cpp
2. Supprot read only space in shared heap

Signed-off-by: lukai <lukai25@huawei.com>
Change-Id: I1d73e42d8dd485ae3f103427bfeef3f68479c206
2024-01-25 21:56:33 +08:00
lukai
f64be2a9bd Allocate sendableclass to shared heap
1. Allocate sendableclass to shared heap
2. ut fix

Signed-off-by: lukai <lukai25@huawei.com>
Change-Id: Ic0fd15a21123c876c6078b89b4386ea455a17260
2024-01-25 21:56:33 +08:00
chenjx-huawei
693fd37364 Support negative number in object literal's literal buffer
Issue: https://gitee.com/openharmony/arkcompiler_ets_frontend/issues/I8XS3C

Signed-off-by: chenjx-huawei <chenjingxiang1@huawei.com>
Change-Id: I472cd7f06b3aa85528c563c17bc5df6bde7b1cda
2024-01-22 19:35:15 +08:00
dov1s
05f69b15eb asyncmethod.constructor.name
issue:I8QRWI

Signed-off-by: dov1s <maojunwei1@huawei.com>
Change-Id: Id3a42546f7327e15ee80d201ee60da7ea986f6fb
2023-12-28 13:55:37 +08:00
lukai
c3dfb19cb8 Update code by comment suggestion
Signed-off-by: lukai <lukai25@huawei.com>
Change-Id: I5fadf246d3bbbd9bd5c27f25027c135234d78c56
2023-12-23 19:57:20 +08:00
lukai
5dbd4715aa Support definesendablemethod/createsendableprivateproperty
Signed-off-by: lukai <lukai25@huawei.com>
Change-Id: If43c19efab686ca6cfa4c0958f9099c8af9f004d
2023-12-22 21:21:39 +08:00
Zhenyu Pan
d2ddf80032 Merge remote-tracking branch 'ets_runtime/master' into test2
Signed-off-by: Zhenyu Pan <panzhenyu1@huawei.com>
Change-Id: I93bd738d08e7821daa0d9673e88c6c7415b543e8
2023-12-21 21:30:05 +08:00
Zhenyu Pan
172d6ada09 Fix bugs that private getter/setter initialized with generator function
hclass

What:Use normal function proto instead of generator function proto

Signed-off-by: Zhenyu Pan <panzhenyu1@huawei.com>
Change-Id: Ie53e42ef96cdcad633273cc5453a78684dcd3145
2023-12-21 20:11:21 +08:00
lukai
138619bfc8 Support getter/setter in literalBuffer
1.Support getter/setter in literalBuffer
2.Adapt IC slot for definesendableclass
3.Change normalFunction in class to sharedFunction

Signed-off-by: lukai <lukai25@huawei.com>
Change-Id: I57803612e8ab2a8b82a1ad1582e24bc4de35fa23
2023-12-21 20:11:21 +08:00
lukai
f5457927f9 Supprt define instance hclass
Support non-static&public field of sendable class

Signed-off-by: lukai <lukai25@huawei.com>
Change-Id: I66ca75e4fe031c5b39f184268509cad8160113b8
2023-12-21 20:11:20 +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
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
lichenshuai
0c4d645a07 添加ECMA2022class相关新字节码9条
ECMA 2022 class相关新特性。
原生支持ECMA 2022 class相关特性,方便开发者使用新特性进行开发。

Issue: #I8CE0X

Signed-off-by: lichenshuai <lichenshuai@huawei.com>
Change-Id: I47bf0386faa19515492ef882445b9e00463978f8
2023-12-02 19:20:04 +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
lijiamin2019
78a1abc663 Move module from Function to Method
Signed-off-by: lijiamin2019 <lijiamin24@huawei.com>
Change-Id: I440bb8dad9b46dd6582750a3665bcc0c586fd1e0
2023-09-20 16:49:17 +08:00
yaochaonan
f1efb77b4a Refactor module,modify exception [Part 1]
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7M4NK?from=project-issue

Signed-off-by: yaochaonan <yaochaonan@huawei.com>
Change-Id: Ie402c920323833b4e7df0d7bc19aa335efc230b0
2023-08-01 14:52:51 +08:00
weng-xi
8df3bd91e0 Part2: AOT obj literal use pgo type
AOT support obj literal

Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7GFJA
Signed-off-by: weng-xi <wengxi1@huawei.com>
Change-Id: I7acdb5801f572689cf1f83b5c621350efeef660f
2023-07-04 10:52:12 +08:00
xiongluo
b3bbcbf573 fix code check and realm parameter
Signed-off-by: xiongluo <xiongluo@huawei.com>
Change-Id: I71a9206f553eebdf4af791d34d0f9401776a70be
2023-06-11 16:18:18 +08:00
liu-qiang12
4443a8a95d add listnode and icu
Signed-off-by: liu-qiang12 <liuqiang254@huawei.com>
https: //gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6UHGV
Change-Id: I705e82670483f784d997425c64282e425994849d
2023-06-11 16:17:47 +08:00
wupengyong
efc0b12047 Reason:optimize fastcall
Description:optimize fastcall
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I78093?from=project-issue

Signed-off-by: wupengyong <wupengyong@huawei.com>
Change-Id: I1685c6b1341c82161d18e827f5449f90f7b1b634
2023-06-03 18:42:00 +08:00
huoqingyi
34ddc47922 Support typeinfer for generic types [PART_1]
In order to support typeinfer for generic types, we first need to refactor
the process of extracting types and parsing types to handling negative numbers,
which represent formal parameters of generic types recorded in type literals in abc files.

Issus:
https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6UYLQ

Tests:
test262, typeinfer test, aot test

Signed-off-by: huoqingyi <huoqingyi@huawei.com>
Change-Id: I8197a93c81cc2b2335a418b0307b23880a0799e4
2023-04-23 14:19:11 +08:00
xujie
ca04bcb6c3 Bugfix for CreateArraywithbuffer in 2048 APP
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6MO3M

Signed-off-by: xujie <xujie101@huawei.com>
Change-Id: I3cd0043345aaa9e57cea5ce9ecaa6b85fd3aed6a
2023-03-13 20:30:31 +08:00
g00416891
fb94e4d58e Support cold patch with method replace
https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6781P

Signed-off-by: g00416891 <guobingbing3@huawei.com>
Change-Id: I68f1fedaf52ddacc242d99c602c98bd0ae8a8328
2023-02-23 11:12:08 +08:00
g00416891
8e845313e5 Optimize LiteralDataExtractor
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6DLG8

Signed-off-by: g00416891 <guobingbing3@huawei.com>
Change-Id: I1ed5fb2d71cee484430952d6a0816e3a780ec6bc
2023-02-08 10:43:02 +08:00
DaiHN
1d676b9df7 Throw JS error when find abc failed
--------
1. Remove redundant function interface.
2. Throw JS error when find abc failed
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I67R5D?from=project-issue

Signed-off-by: DaiHN <daihuina1@huawei.com>
Change-Id: I7b8cdc521d660d6651cf9b08863154756bbd0973
2023-01-17 21:01:22 +08:00
wengchangcheng
2cdbecaeb9 Descriptor: Encapsulate some interface in PandaFile
Details: Encapsulate GetStringData and use JSPandafile instead of File

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

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: Ied940326ea2913337db013e1ab1bf57b6f56162b
2023-01-03 15:16:51 +08:00
openharmony_ci
30d057f576
!3100 Use union instead of memcpy in bit_cast
Merge pull request !3100 from 武万琦/master
2022-12-05 08:23:17 +00: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
wuwanqi
1719b6d4c9 Use union instead of memcpy in bit_cast
= has a better performance than memcpy while bytelength below 128

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

Signed-off-by: wuwanqi <wuwanqi2@huawei.com>
Change-Id: I12b2e7a396eedda71c43c3e83da169fb395164d3
2022-12-01 14:13:06 +08:00
zhaozhibo
5e4853b54b Merge branch 'master' of gitee.com:openharmony/arkcompiler_ets_runtime into master
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-11-28 02:01:20 +00:00
zhaozhibo
0837d2ab3e fix code warnings
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-11-28 10:00:41 +08:00
g00416891
40393ed2f1 Fix code check
Signed-off-by: g00416891 <guobingbing3@huawei.com>
Change-Id: I6432ff57276e0671b985cb7efa838253e9864c73
2022-11-26 15:24:12 +08:00
zhaozhibo
03b3f7c09b fix code warnings
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-11-23 17:30:51 +08:00
g00416891
8508007f22 Optimize TranslateClasses and ParseConstpool
Change-Id: I0eae0cfc1b7df4ad4da053449eeab03a15d39bff
Signed-off-by: g00416891 <guobingbing3@huawei.com>
2022-11-16 09:06:28 +08:00