Commit Graph

31 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
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
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
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
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
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
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
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
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
lichenshuai
9276e66b13 Disable SingleStepDebugging for Several Bytecodes
Find bytecodes that leads to the difference between rsp frame and sp frame, then disable their SingleStepDebugging.

Issue: #I5EYDX

Signed-off-by: lichenshuai <lichenshuai@huawei.com>
Change-Id: I0731046f0b424817a6e463ee385d4203b0fe6244
2022-07-12 16:07:07 +08:00
wengchangcheng
6e5a7e8362 Descriptor: ark hilog refactor
details:
1. use hilog in ohos device
2. use panda logger in host
issue:  https://gitee.com/openharmony/ark_js_runtime/issues/I5FR5J

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I6f5de00751154bdb6aac3101515961a3a4432e80
2022-07-06 22:55:49 +08:00
xliu
82fdca377f fix LdGlobaleVar and TryLdGlobalByName
1.Adjust the logic of IC for LdGlobalVar
2.Adjust the logic of IC for TryLdGlobalByName
3.Add set as SetAsMega for LoadMiss and StoreMiss
4.Container test case refactoring
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5CJO2

Signed-off-by: xliu <liuxin259@huawei.com>
Change-Id: I3c531d072c5f2e4b6508544d9420ad4817943c24
2022-06-20 10:13:02 +08:00
chenqi
3bc6dcb731 Add Containers List And LinkedList
Description
    1.To ensure the high performance of container classes, List and LinkedList is provided in ark.
    2.modify Copyright 2021->2022.
    3.fix containers.
Related issue
    #I58XA9:Add Containers List And LinkedList.

Signed-off-by: chenqi <chenqi151@huawei.com>
2022-06-02 17:02:40 +08:00
Yuqiang Xian
c7f93d1108 Add descriptions to concurrent marking status check.
Don't use IS_STANDARD_SYSTEM config to switch off concurrent marking.
Fix typos and grammar issues.

Issue: https://gitee.com/openharmony/ark_js_runtime/issues/I55HWI

Signed-off-by: Yuqiang Xian <xianyuqiang@huawei.com>
2022-04-30 20:02:19 +08:00
hjzhangcm
a6bd2ee220 delete xxx-inl.h move the definition to the declare head file
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-04-24 13:40:46 +08:00
lukai
213c29793d merge bugfix from release into master
1. !888:fix gc bugs
2. !851:Fix ic store prototype bugs
3. !803:Fix Security Check Problems
4. other related ut bugfix.

Signed-off-by: lukai <lukai25@huawei.com>
Change-Id: I4dd30efd176fd33fefd064aee0cb30e5fd3e0477
2022-04-02 17:49:22 +08:00
ding
c500fb2b18 Fix IC LoadMiss
Fix IC LoadMiss, when the op is not found, should not generate cache.

The bug occurs application can not get correct property from globalThis, add targetd test case.

Signed-off-by: ding <dingding5@huawei.com>
Change-Id: I8935fc903a26e65138608301033bfdc0c4f80e46
2022-03-24 11:09:34 +08:00
zhangyukun
3b881fa018 Sync code from c_asm_interpreter to master
Use Stub to impl handlers of bytecodes and use tail call to impl
dispatch of handlers of bytecodes

Signed-off-by: zhangyukun <zhangyukun8@huawei.com>
Change-Id: I7afabdc40ddfa11345aa1029059514aa4f55b9f8
2022-02-22 17:01:18 +08:00
zhangyukun
39d782c946 Merge new runtimetrapolines from c_asm into master
Bug: #I4TRQP

Signed-off-by: zhangyukun <zhangyukun8@huawei.com>
Change-Id: I55b49c3ec9f6c5f91272668ff43ef4147b9ed6c2
2022-02-16 16:49:53 +08:00
hjzhangcm
808fabd093 fix warning file
Signed-off-by: hjzhangcm <845154910@qq.com>
2021-12-24 18:37:44 +08:00
ding
8f551973b8 add global record to IC
Signed-off-by: ding <dingding5@huawei.com>
2021-10-12 17:10:54 +08:00
lifansheng
0e196664e5 modify host_test
Signed-off-by: lifansheng <lifansheng1@huawei.com>
2021-09-11 20:34:31 +08:00
lifansheng
8ac9a04cb4 modify host_test
Signed-off-by: lifansheng <lifansheng1@huawei.com>
2021-09-11 20:21:09 +08:00
lifansheng
1d77c145d6 codecheck
Signed-off-by: lifansheng <lifansheng1@huawei.com>
2021-09-11 18:21:43 +08:00
lifansheng
5c57227538 resolve ic-262
Signed-off-by: lifansheng <lifansheng1@huawei.com>
2021-09-11 17:33:36 +08:00
lifansheng
04e7b5b65c Add GlobalRcord
Signed-off-by: lifansheng <lifansheng1@huawei.com>
2021-09-10 16:34:37 +08:00
zhangyukun
7ffcc4b20f Sync js_runtime to openharmony
Signed-off-by: zhangyukun <zhangyukun8@huawei.com>
2021-09-08 09:20:53 +08:00
wanyanglan
86cfe52253 add ark js_runtime
Signed-off-by: wanyanglan <wanyanglan1@huawei.com>
Change-Id: Iac7851492f10c0ef1303c621febb65e5fdd22e41
2021-09-05 16:05:06 +08:00