Commit Graph

560 Commits

Author SHA1 Message Date
hwx1163501
1ed7842600 修改告警
Signed-off-by: hwx1163501 <hanjing35@huawei.com>
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I94AZL
2024-02-28 10:34:51 +08:00
hwx1163501
24bd9a6063 修改告警
Signed-off-by: hwx1163501 <hanjing35@huawei.com>
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I90OTL
2024-02-27 10:53:21 +08:00
yang-19970325
e3f2e59fa8 Fix sp assignment out of bounds
Issue:#I7RFVG

Signed-off-by: yang-19970325 <yangyang585@huawei.com>
Change-Id: I398921ca92369cfa7ec9920993e8a86d757785d2
2023-08-08 14:48:42 +08:00
张博虓
38f1052170 Support Dropframe for Debug Mode
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7N01F

Signed-off-by: 张博虓 <305339823@qq.com>
Change-Id: Iffe09d4d6fcf61f3eab56ba107d6e9672c8d64ba
2023-08-01 18:48:35 +08:00
dingding
1bf062b0c7 Fix AOT async function and Reopen AsyncFunctionLowering Pass
1. Fix SaveFrameToContext() and GeneratorReEnterAot().
2. Reopen AsyncFunctionLowering Pass.

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

Signed-off-by: dingding <dingding5@huawei.com>
Change-Id: Ie13a6b1d67f39fccc91455d50af6b293cc679236
2023-07-04 14:42:27 +08:00
dingding
c85b5209c1 Fix AOT async function Reentered after Deoptimization
1.After deoptimization, the suspending is executed by interpreter, under
  the current architecture, can not resume to AOT.
2.The bug causes some AOT applications to behave inconsistently.

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

Signed-off-by: dingding <dingding5@huawei.com>
Change-Id: Ied575c18e7ea70eb07fc1955b5463d0f54837106
2023-07-04 06:03:07 +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
xiongluo
e0a80d811f fix code check and format
Signed-off-by: xiongluo <xiongluo@huawei.com>
Change-Id: I222befc3ea02049f7f97f932a641753533dd8d52
2023-06-11 16:18:18 +08:00
xiongluo
a20ae4727e enable multi contexts and fix bugs
Signed-off-by: xiongluo <xiongluo@huawei.com>
Change-Id: I01a92301f4970a2321312c0b7fbf43f78353a806
2023-06-11 16:18:18 +08:00
liu-qiang12
09ee91dec2 add aotfilemanger from vm to context
Signed-off-by: liu-qiang12 <liuqiang254@huawei.com>
https: //gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6UHGV
Change-Id: Idfabd557b8ad5cb79c538f15224d22a8ac800e0f
2023-06-11 16:17:47 +08:00
huangtianzhi
be90d85e37 Adding Assembly Interpreter implementation of debugger statement;
remove unreachable implementation; revise NotifyDebuggerStmt method.

Signed-off-by: huangtianzhi <huangtianzhi1@huawei.com>
2023-06-07 17:51:06 +08:00
huangtianzhi
728ce4762e Backend implementation of supporting "debugger" statement, adding opcode
handle in interpreter and notification event.

Signed-off-by: huangtianzhi <huangtianzhi1@huawei.com>
2023-06-06 10:21:40 +08:00
ginxu
56f3afc091 Add Function Call Timer Tools
1. Support print funcntion call time.

Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7AH1O
Signed-off-by: ginxu <xujie101@huawei.com>
Change-Id: I9d6680852f7d497d13a127544fdb8331806bd480
2023-06-04 11:12:04 +08:00
wangzhaoyong
511fa52fee store taskInfo in function
issue: https://gitee.com/openharmony/commonlibrary_ets_utils/issues/I78BAT

Signed-off-by: wangzhaoyong <wangzhaoyong@huawei.com>
Change-Id: Ifcdcbc4a83465a298d662929f53822cb0b9170cc
2023-05-25 20:59:52 +08:00
wupengyong
e0134a4d57 Reason:fix some fastcall bug
Description:fix some fastcall bug
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I774L6?from=project-issue

Signed-off-by: wupengyong <wupengyong@huawei.com>
Change-Id: Ib6f2b02a25a95d42814042c21bc45390f44c6107
2023-05-23 19:44:02 +08:00
wupengyong
c0fa165ab0 Reason:add fast call and change calling conversion to cc
Description:add fast call and change calling conversion to cc
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6TTCX?from=project-issue

Signed-off-by: wupengyong <wupengyong@huawei.com>
Change-Id: I7c35619d73a4d961799232bc22b78b6513f65e71
2023-05-18 19:23:25 +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
wupengyong
c1aa7ecd82 Reason:add function apply builtins ir
Description:add function apply ir
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6Y5E4?from=project-issue

Signed-off-by: wupengyong <wupengyong@huawei.com>
Change-Id: Ie5ade286a56c5237175476a6a0b915558b87c454
2023-04-24 21:03:55 +08:00
hzzhouzebin
0e4d77adaf Extract the classes in aot file manager
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6WV9V
Signed-off-by: hzzhouzebin <zhouzebin1@huawei.com>
Change-Id: I2a07ed1f94707beabc149fd6abe15f4a85d848c6
2023-04-20 22:54:52 +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
zhangyukun8
443309155b Fix failing to save calendar agenda in AOT mode
1.lexical env is changed when contexts of callsites of async function
  changed
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6PPEK?from=project-issue
Signed-off-by: zhangyukun8 <zhangyukun8@huawei.com>

Change-Id: Ia09f122407cc7890d73ead8c4d5dc2d69a62ecc3
2023-03-23 21:39:35 +08:00
zhangyukun8
ff796ce366 Implement __llvm_deoptimize to void relocate deopt hander
1.implement __llvm_deoptimize in Aot module, __llvm_deoptimize funciton is to call runtime function
2.add asm bridge frame to avoid unnecessary fpdelta calculation

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

Signed-off-by: zhangyukun8 <zhangyukun8@huawei.com>
Change-Id: Ibb559ae877633c63fd8cc7efee5770ba88597f9c
2023-03-18 14:48:24 +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
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
xliu
4887ccacf2 Fix instanceof ic in c interpreter
Description:
The IC implementation of the instance instruction in the C interpreter has a GC problem, and the objects on the stack are not protected
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6GOCX

Signed-off-by: xliu <liuxin259@huawei.com>
Change-Id: If0ac1f0ff242ca7c3ec848b97e68cc976994524c
2023-02-21 17:23:32 +08:00
lichenshuai
3dc68cae9a Fix SingleStepDebugging bug
Fix SingleStepDebugging, HandleReturn, HandleReturnundefined and HandleDefinefuncImm8Id16Imm8.

Issue: #I6FTMY

Signed-off-by: lichenshuai <lichenshuai@huawei.com>
Change-Id: If97e573018fe8af3eed4b10a9cfb5e006eb4cad7
2023-02-17 14:37:54 +08:00
Gymee
a9c8765258 Add callruntime instruction handler for debugger
Issue: #I6FOIO
Signed-off-by: Gymee <yumeijie@huawei.com>
Change-Id: I32b331ab4aac4a6e6f4a5e5128764f309f0e1af0
2023-02-16 21:21:40 +08:00
Zhenyu Pan
371cc39185 Isolate c interpreter on Android
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6BIFV

Signed-off-by: Zhenyu Pan <panzhenyu1@huawei.com>
Change-Id: I95508293d67b257f1a14e2ef1cad36d4dc3f9cd9
2023-02-15 14:08:35 +08:00
Gymee
5842e37fcd Support CallRutime instrunction
Issue: #I6E167
Signed-off-by: Gymee <yumeijie@huawei.com>
Change-Id: Iac0a70a7857947388e2a49c627d11b99d7c535b8
2023-02-14 18:45:28 +08:00
wengchangcheng
324e8f79c5 Descriptor: Support async/await in taskpool
Details: Trigger concurrent callback before return

Issue: https://gitee.com/open_harmony/dashboard?issue_id=I6DC6E

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I6377d90157f0452446e932f8c4c1d14ff22c3109
2023-02-14 18:44:43 +08:00
wangmin
d4b8f421c9 add throwundefineifholewithname
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6AXTM
Signed-off-by: wangmin <wangmin85@huawei.com>
Change-Id: If4c70dfd8fa03b3579d877f94a9692e92fb58cf5
2023-01-30 19:46:50 +08:00
openharmony_ci
9e9622a77c
!3434 Add object_fast_operator file
Merge pull request !3434 from weng-xi/code_arch_adjust
2023-01-18 09:33:15 +00:00
weng-xi
7fb2c016d7 Add object_fast_operator file
1. Add object_fast_operator file as the middle layer.
2. move store/load method from fast_runtime_stubs to object_fast_operator
3. delete fast_runtime_stubs fastGet/SetProperty methods, and move them to object_fast_operator

Issues: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6AZSI
Signed-off-by: weng-xi <wengxi1@huawei.com>
Change-Id: If4aebd3a0723eda641e214d81838caebf193aac2
2023-01-18 13:52:15 +08:00
dingding
396b1382b9 Add IsJSEntryFrame()
Signed-off-by: dingding <dingding5@huawei.com>
Change-Id: I5b21a07a2f0ba00bdd21497f1c8f1d50a1e9eb46
2023-01-16 16:06:42 +08:00
dingding
b74caf0dd9 Replace IsInterpretedFrame() by IsJSFrame() in GetBytecodeOffset() and GetPc()
Signed-off-by: dingding <dingding5@huawei.com>
Change-Id: I0b4640c632f7e322b5c1e0bdcb01b457aa2b29c8
2023-01-16 14:20:58 +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
openharmony_ci
092d4eeb1b
!3418 Judge special value use Isxxx() instead of equal
Merge pull request !3418 from guobingbing3/optimize
2023-01-14 07:50:50 +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
wupengyong
d3c921d6a0 reason:add fast path for parse date
description:add fast path for parse date
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6AB0N?from=project-issue

Signed-off-by: wupengyong <wupengyong@huawei.com>
Change-Id: Id2d6bc8162fc47a2d59664d1338ccc4f0d849122
2023-01-14 11:23:31 +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
huangfeijie
f03cdcdef9 delete the useless instruction
delete the STLEXENV
issue: https://gitee.com/openharmony/arkcompiler_ets_frontend/issues/I68TZ5

Signed-off-by: huangfeijie <huangfeijie@huawei.com>
2023-01-10 20:35:27 +08:00
openharmony_ci
14a8c96338
!3146 Encapsulate some interface in PandaFile
Merge pull request !3146 from weng-changcheng/refactor_file
2023-01-05 07:14:36 +00:00
g00416891
db76d5d1e2 Remove redundant maybe_unused
Signed-off-by: g00416891 <guobingbing3@huawei.com>
Change-Id: Id437f8983ec76aab4ac72c161c5d818dd36b0896
2023-01-04 11:06:58 +08:00
openharmony_ci
c439cc6c1d
!3315 support import and concurrent for taskpool
Merge pull request !3315 from wangzhaoyong/master
2023-01-03 09:01:11 +00: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
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
wangzhaoyong
10aee20c1a Merge branch 'master' of gitee.com:openharmony/arkcompiler_ets_runtime into master
Signed-off-by: wangzhaoyong <wangzhaoyong@huawei.com>
2023-01-02 09:40:28 +00:00
huangfeijie
8e593f0435 add concurrent
Signed-off-by: huangfeijie <huangfeijie@huawei.com>
Change-Id: I9f5e21309d5b220d1e05f8411ba1d27163744361
2023-01-02 17:37:02 +08:00
changjiaxing
6e523f49d8 Import shared libraries across applications
issues:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues

Signed-off-by: changjiaxing <changjiaxing2@huawei.com>
Change-Id: I2293a00cbdf12a84725b095b5648ef0226a6ebbc
2022-12-30 15:36:07 +08:00
openharmony_ci
1cc61da3d2
!3130 Add Instanceof IC
Merge pull request !3130 from lvfuqing/master
2022-12-12 09:09:15 +00:00