Commit Graph

120 Commits

Author SHA1 Message Date
lichenshuai
adc9cc669c Cherry-pick !4555, !4637, !4638, !4648, !4653, !4665, !4688, !4699, !4737, !4747, !4811 to 4.0-Release
Cherry-pick

Issue: #I8453T

Signed-off-by: lichenshuai <lichenshuai@huawei.com>
Change-Id: Ib4639fe5a47adfc579d4439a9becd4b8b8ed619e
2023-09-25 16:27:42 +08:00
yang-19970325
15257669fd Fix typo
Issue:#I7SJH1

Signed-off-by: yang-19970325 <yangyang585@huawei.com>
Change-Id: I106dddf738b084d9133f008cb117f12a06c11d05
2023-08-11 17:27:36 +08:00
quiet-thought
8e3717baf4 Bugfix on EcmaString::CreateTreeString create long ecmaString
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7R95U

Signed-off-by: quiet-thought <chenjingxiang1@huawei.com>
Change-Id: Iaebdd8f8fa998b10124894e61a304b6957b11f57
2023-08-08 20:19:28 +08:00
lukai
d963324406 Fix: concurrent marking may use inconsistent hclass
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7QZU8?from=project-issue
When main-thread transitions an object to a new hclass, concurrent
marking could load an incosistent hclass.

Signed-off-by: lukai <lukai25@huawei.com>
2023-08-07 12:02:21 +08:00
yingguofeng@huawei.com
96ea4aad33 Fix(runtime): Fix propertyattribute bitfield cover
Issue: #I7OXQ1
Change-Id: I7006bf66049180ea16dec1de3e6af06253e11904
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2023-07-29 13:00:29 +08:00
openharmony_ci
dce64226bc
!4406 THROW_TYPE_ERROR_AND_RETURN Part 3
Merge pull request !4406 from 王笑佳/throwtype3
2023-07-15 08:19:15 +00:00
王笑佳
b48718a73a Fix THROW_TYPE_ERROR_AND_RETURN Part 3
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7K5YC

Signed-off-by: 王笑佳 <wangxiaojia5@huawei.com>
2023-07-14 16:16:09 +08:00
openharmony_ci
89a9f8292b
!4393 Track Field
Merge pull request !4393 from yingguofeng/master_last
2023-07-12 16:00:35 +00:00
yingguofeng@huawei.com
3b107f900a Feat(Aot): Track Double/Int field for aot compiler
Issue: #I7JI0Z
Change-Id: I24f762d505cf467e86d5a12f3fc78c9ecd4513f1
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2023-07-12 21:55:16 +08:00
王笑佳
f2c60fbed0 Fix THROW_TYPE_ERROR_AND_RETURN Part 1
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7JU9Q

Signed-off-by: 王笑佳 <wangxiaojia5@huawei.com>
2023-07-10 10:24:40 +08:00
xiongluo
a07240968b fix conflict and move fields in JSThread into context
Signed-off-by: xiongluo <xiongluo@huawei.com>

Change-Id: Id3eceac5f2b6a515ee946b8d9d806a04326863a6
2023-06-11 16:17:47 +08:00
yingguofeng@huawei.com
cca4ba8fe4 Feat(PGO): PGO Support profile number type of object field
Issue: #I739C3
Change-Id: Ie57b6174d7b68121e81b72ffd8d71ec1b0d5f80f
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2023-05-24 15:36:53 +08:00
lukai
3a90a2c09a Lazy initialization for some builtins interface
use internal accessor for lazy buitlins. when first time access the builtins object, the accessor will then initialize it.

Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6YBQB?from=project-issue
Signed-off-by: lukai <lukai25@huawei.com>
Change-Id: I8f0d23cdf63b808c8e9e5e69454665fcc620c459
2023-05-12 11:43:22 +08:00
openharmony_ci
cc4286f538
!3768 Optimize FromCharCode C++ interface
Merge pull request !3768 from dingwen/fromCharCode
2023-03-28 02:05:59 +00:00
dingwen
fa6d1cde91 Optimize FromCharCode C++ interface
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6OVYD?from=project-issue

Signed-off-by: dingwen <dingwen6@huawei.com>
Change-Id: I73b35dbe413c19eece63ec8e1a1409c01aaf5447
2023-03-27 10:05:53 +08:00
wengchangcheng
01121dd6d8 Fix Log print error in intl
Add ENABLE_HILOG defines in intl source_set

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

Test: UT & 262

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I5f77533baec9575f495b068d516528d0697b8421
2023-03-24 20:34:46 +08:00
zhangyukun8
62a3e35295 AOT support js stacktrace
1. add pcOffset into stackmap before call In AOT
2. parse stackmap to find pcOffset before any OptimziedJSFunctionFrame
3. remove use code of stubs in AOT
4. add testcase for js stacktrace of AOT

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

Signed-off-by: zhangyukun8 <zhangyukun8@huawei.com>
Change-Id: Ib21646b7319628fb425ac8ce489dc2370a347b81
2023-03-03 10:08:54 +08:00
dingding
c9a5a51ed0 Rename AOT to TS in HClass Related Scenarios
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6D1GL

Signed-off-by: dingding <dingding5@huawei.com>
Change-Id: Iec475c2f9887ff38699bd225bd948cf4b09a20e6
2023-02-06 12:50:01 +08:00
openharmony_ci
abdb8b236f
!3348 Fix AOT bug of hasOwnProperty
Merge pull request !3348 from weng-xi/fix_bug_of_compatibility
2023-01-15 03:30:20 +00: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
4669062b16 Judge special value use Isxxx() instead of equal
Signed-off-by: g00416891 <guobingbing3@huawei.com>
Change-Id: I3113af0caddc39519d070cc370d1843e6177982c
2023-01-14 10:20:50 +08:00
openharmony_ci
1639f8a106
!3228 Fix standalone UT and unify it with test262
Merge pull request !3228 from Zhoucong/fix_ut
2023-01-09 11:04:04 +00:00
lordwithcc
122533d4da Merge branch 'master' into fix_ut 2023-01-09 17:55:37 +08:00
Gymee
0500527db8 Remove leading spaces at empty line
Issue: #I67PO6
Signed-off-by: Gymee <yumeijie@huawei.com>
2022-12-27 17:59:06 +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
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
openharmony_ci
16c8a9c96a
!3087 Integer overflow check
Merge pull request !3087 from huangzhenghua/master1125
2022-11-28 13:04:27 +00:00
huangzhenghua
51c184ca6e Integer overflow check
Signed-off-by: huangzhenghua <huangzhenghua3@huawei.com>
Change-Id: I8514100acecdbd6af8712c1c7c38bf77b7dc2987
2022-11-28 16:32:55 +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
yingguofeng@huawei.com
2261a02a9c fix(oom): OOM Crash C-Interpreter running TypeScript benchmark
Closes #I5YAZG

Change-Id: I9c29a7830e20bccfae3547adfe14ce605a90eb0b
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2022-10-28 17:36:30 +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
openharmony_ci
40b851d038
!2543 Add IC of AOT slow path
Merge pull request !2543 from zhangyukun8/aotic
2022-10-25 07:47:11 +00:00
wengchangcheng
32ef9871e7 Descriptor: Fix standalone build error
Details: modify gn and some template

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

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: Idca98896e01426fe055025efe8800ac01d27d3c5
2022-10-25 12:52:10 +08:00
zhangyukun8
01616c7949 Add IC of AOT slow path
1. Impl AOT ldobjbyname&stobjbyname slot path IC
2. Impl AOT ldobjbyvalue&stobjbyvalue slot path IC
3. Impl AOT tryldglobalbyname&trystglobalbyname slot path IC
4. Impl AOT ldglobalvar&stglobalvar slot path IC
5. IR GetGlobalOwnByName&LdGlobalRecord
6. fix some bug of LoadMiss&StoreMiss
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5TSWP?from=project-issue

Signed-off-by: zhangyukun8 <zhangyukun8@huawei.com>
Change-Id: I6458ab83b6506e3124a249728422d4570d9fa2dc
2022-10-25 08:54:43 +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
faf696ea50 Merge remote-tracking branch 'origin/master' into wcc_0808
Change-Id: I760f8089dde54c14a24e3379c0348f38ece509eb
2022-09-02 09:31:22 +08:00
zhaozhibo
31089eaf23
update ecmascript/ic/tests/ic_runtime_test.cpp.
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-09-01 05:58:18 +00:00
zhaozhibo
01d0f2bdde add UT testcase for icRuntime
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-09-01 11:43:45 +08:00
wengchangcheng
21e69e5d01 Merge remote-tracking branch 'origin/c_isa_interpreter' into wcc_0808
Change-Id: I75b0c5ac0eb88e3396ad40703ad53aa0e0f4e3e5
2022-08-30 22:55:34 +08:00
sunzhe23
5042a9408f add new instruction for asminterpreter
Signed-off-by: sunzhe23 <sunzhe23@huawei.com>
2022-08-30 21:43:46 +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
a28b465e98
!2109 Bug Fix of IC StoreMiss/LoadMiss
Merge pull request !2109 from DaiHN/icBugFix
2022-08-25 07:33:19 +00:00
DaiHN
1daec5a55e Bug Fix of IC StoreMiss/LoadMiss
---------------------------------
issue : https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5N1NF?from=project-issue

Signed-off-by: DaiHN <daihuina1@huawei.com>
Change-Id: I90a3d2507f479a679bb87ce6c83c74d0888e5e96
2022-08-25 11:20:44 +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
g00416891
e7e344e150 Modify JSMethod to Method
Signed-off-by: g00416891 <guobingbing3@huawei.com>
Change-Id: I2f18e1cd8c163a2839bbf2b3da4e40d385f5094a
2022-08-23 15:23:06 +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
wengchangcheng
1243fa6507 Descriptor: merge library to libark_jsruntime.so
details: use static link of pandafile and pandabase
issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5JHY4

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: Ie630f5cd7d646c18d2518f793c5827f742d560c3
2022-07-29 10:35:32 +08:00
openharmony_ci
c29332c1d9 !1833 fix fuzztest errro and add new fuzztest
Merge pull request !1833 from zhaozhibo/master

Change-Id: I1e83c46e25d0a7c342e5c8e7ca5ff61c745b7582
2022-07-25 08:49:51 +08:00