yang-19970325
5d7d943882
Support proxy variable diaplay while debugger
...
Issue;#I7PQTC
Signed-off-by: yang-19970325 <yangyang585@huawei.com>
Change-Id: Ieef5668944415dad1e95271a1678f3d39c41e1ca
2023-08-09 11:30:30 +08:00
quiet-thought
f596e410db
The caller of NewRuntimeCallInfo fails to promptly return an exception
...
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7K7L6
Signed-off-by: quiet-thought <chenjingxiang1@huawei.com>
Change-Id: I69a5e2f415a51d7caf5aab5fdf7c2fe1de5da5c4
2023-07-14 10:18:21 +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
王笑佳
a3db09c594
Fix ecmascript::ObjectFactory::NewJSError存在空指针异常拒绝服务漏洞
...
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7C91I
Signed-off-by: 王笑佳 <wangxiaojia5@huawei.com>
2023-06-27 17:22:31 +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
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
hwx1163501
2b1fb0e858
Modifying Code Alarms
...
Signed-off-by: hwx1163501 <hanjing35@huawei.com>
https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I78NOB
2023-05-29 15:44:56 +08:00
y
8a84ffabc6
Fix aot Bug
...
1.Fix huawei music need support cjs,add some args.
2.Fix aot compiler LowerPrimitiveToNumber memory out of bounds need jump.
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I77Q4T
Signed-off-by: y <herongpeng@huawei.com>
Change-Id: Id3c0fcbbae8482959809f90a15189310eb63f6f6
2023-05-25 19:40:34 +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
wengchangcheng
92d3f56507
Fix some bugs and JSMutableHandle use error
...
1. fix some bug report by compiler warning
2. don't cast JSHandle to JSMutableHandle
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6HXVR
Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I0df90295dd7a01f59c6e39027afe419a8b4e0322
2023-02-27 11:00:36 +08:00
g00416891
9ab112f3b6
Add UT for multi-hap hot reload and codecheck fix
...
Signed-off-by: g00416891 <guobingbing3@huawei.com>
Change-Id: Ie1bdcde8dadf5f0d610675297a2e3ae08847d614
2023-01-30 16:08:55 +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
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
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
openharmony_ci
3e40d6fc96
!3012 CpuProfiler add runtime TAG
...
Merge pull request !3012 from 苏重威/master
2022-11-30 09:34:35 +00:00
suchongwei
3d58b4c7f1
CpuProfiler add runtime TAG
...
add runtime TAG to per sample
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I63DNE
Signed-off-by: suchongwei <suchongwei@huawei.com>
2022-11-30 15:08:51 +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
xujie
cdd8d25439
Merge JSFunctionEntry and JSFunctionReentry for AOT
...
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5YU0G
Signed-off-by: xujie <xujie101@huawei.com>
Change-Id: I472266c46274904784c71fbfb7edd2fb4f77b3d7
2022-11-02 10:52:18 +08:00
K0u1hw
44f6e0f38d
description: lower load/store obj by index/name
...
detais: lower load/store obj by index/name
lower neg
fix enable-type-lowering
issues: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5XF00
Signed-off-by: K0u1hw <wangchunyang15@huawei.com>
Change-Id: Id32d209268cdd89e486306be8785fcbc9749fbf4
2022-10-28 19:37:14 +08:00
xujie
218e48c70e
Added Aot interception in assembly interpreter
...
Add JSfunctionReentry and JSCallNew for reenter Aot.
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5XS4M
Signed-off-by: xujie <xujie101@huawei.com>
Change-Id: Iaef4c1d467be0752f3e92745fbf46f07ec4f1d3a
2022-10-26 17:14:56 +08:00
yingguofeng@huawei.com
3d7a083324
feat/perf(aot/compiler/asm-interpreter): compiler supports PGO optimization
...
1、The JS runtime counts the number of function calls and records the methodID with fewer calls.
2、The AOT compiler supports filtering the unexpected functions according to the profile file without AOT.
Closes #I5W57I
Change-Id: Ie6f7c9d2132b16a95b4b9ed84cb4ef67332b7604
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2022-10-24 17:49:12 +08:00
g00416891
facdbd970e
Move ProfileTypeInfo from JSFunction to Method
...
Signed-off-by: g00416891 <guobingbing3@huawei.com>
Change-Id: Ic791f4577120806f39754aa783f49d1f84dc078e
2022-10-24 14:46:02 +08:00
yingguofeng@huawei.com
7ca0219102
fix(UT): Fix ark_js_host_unittest test failed in runing asan
...
Closes #I5Q3HC
Change-Id: Ic52a0b137bb71784f92d530cae4df582c7b53dcf
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2022-09-15 20:43:43 +08:00
maojunwei
259b2246c3
Trigger gc by native binding size
...
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5Q38W
Signed-off-by: maojunwei <maojunwei1@huawei.com>
2022-09-09 16:58:03 +08:00
wengchangcheng
ff85273bc9
Descriptor: delete FunctionKind in JSFunction
...
Details: delete FunctionKind in JSFunction
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5LPNL
Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: Idc21112643211e691d5a0b6ae11831ad4bb7acd6
2022-09-09 00:09:56 +08:00
wengchangcheng
204dcd52fa
Merge remote-tracking branch 'origin/master' into wcc_0808
...
Change-Id: Ie97cee27f9e8043315cfb9520699c3c8d5fb5071
2022-09-06 22:50:58 +08:00
yingguofeng@huawei.com
50417b0a01
perf(class): Optimization of Class Field
...
Closes #I5PKW0
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
Change-Id: I7e7f1c619ec93c7978b4b735f170b762adc22981
2022-09-04 16:46:32 +08:00
wengchangcheng
1c048a9eab
Merge remote-tracking branch 'origin/master' into wcc_0808
...
Change-Id: I956a087306c12d601b76c259524174ed33f1123f
2022-09-03 18:40:44 +08:00
yingguofeng@huawei.com
4c50dd5596
perf/to(object)(Part1): JSFunction And ConstantPool Field streamlined and optimized
...
Part1
The functionextrainfo, profiletypeinfo, module under JSFunction
and the jspandafile field under ConstantPool can be streamlined and optimized
Closes #I5MYJH
Change-Id: I9e08beaf5409a2b4041316f6a2535247be9d19e8
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2022-09-02 16:25:00 +08:00
wengchangcheng
a91655dd03
Descriptor: Support new version bytecode
...
Details: Adapter new instruction for c-interpreter
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5LPNL
Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: Iddd93beef786f9453474329e424941a14ad64f9d
2022-08-29 15:56:26 +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
linxiang
1e4b7c9dc6
fix issue: return JSTaggedValue::Exception to JS-World, which cause 0xa problem
...
issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5MF7J
Signed-off-by: linxiang <linxiang8@huawei.com>
Change-Id: Ic004e99bb1b0b604dcb77176340c349845d94f3e
2022-08-15 22:37:14 +08:00
lijiamin
970f40e89e
Modify numArgs from int32_t to uint32_t
...
Signed-off-by: lijiamin <lijiamin24@huawei.com>
Change-Id: If92a6b948356799b37987eaa4043b12e9bd72e98
2022-08-05 17:06:00 +08:00
毕虎
85a9ed147c
Merge branch 'master' of gitee.com:openharmony/arkcompiler_ets_runtime into master
2022-08-02 16:22:46 +08:00
bi-hu
f45e51d61b
Added New Code Of Asyncgenrator
...
Signed-off-by: bi-hu <bihu@huawei.com>
https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5JIGT
2022-08-02 15:42:50 +08:00
Rtangyu
bc5789f331
add napi address to cpuprofile
...
add napi address to profile when a function is call to napi
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5JZ35
Signed-off-by: Rtangyu <rentangyu@huawei.com>
2022-08-01 21:01:03 +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
hjzhangcm
a5375d8bca
fix codex warning
...
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-07-07 17:33:05 +08:00
g00416891
b6588744f2
New EcmaRuntimeCallInfo in stack pointer
...
Signed-off-by: g00416891 <guobingbing3@huawei.com>
Change-Id: I466a4107e6e073ffecea12e6986c112731d2d3bf
2022-07-05 14:54:43 +08:00
wengchangcheng
cc184ba66c
Descriptor: delete some internal unused code
...
details: delete unused code
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5COHE
Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I5fe62c58353839d4aac1144fc99e2cf87f4374eb
2022-06-17 23:03:42 +08:00
lichenshuai
bf6cffa180
Fix Asm x64 262 Bug 1
...
1. Fix haveNewTarget in PushCallThis.
2. Dispatch to JSProxy::ConstructInternal when func is proxy in JSFunction::Construct.
3. Rebuild runtimeCallInfo in JSProxy::CallInternal to match future return.
4. ReturnIfAbrupt in JSProxy::OwnPropertyKeys to match ECMA 262 standard.
Issue: #I5CMA1
Signed-off-by: lichenshuai <lichenshuai@huawei.com>
Change-Id: Ie6eca69fb217974cd14df88c20169ad66df1047d
2022-06-17 10:34:35 +08:00
lifansheng
0226887986
issue:I5C5EG
...
modify newobjDynrange to remove the flag "IsBuiltinsConstructor"
Signed-off-by: lifansheng <lifansheng1@huawei.com>
Change-Id: Ic94b8ba77a0ebaf121f2942238435a9da5917287
2022-06-15 14:54:18 +08:00
wengchangcheng
de388d8f61
Descriptor: debugger refactor of independent js_runtime [ part-1 ]
...
details: using stl instead of js_runtime container ans string
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5AYKS
Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I32b4809a4bbd759a562326a59e0cfb0e8e728297
2022-06-07 17:47:53 +08:00
yaoyuan
b80c0196ca
Description:
...
Reduce redundant code by using predefined global constants instead of creating new constant strings
Move all global constant strings into nonmovable space to improve code efficiency.
Issues: https://gitee.com/openharmony/ark_js_runtime/issues/I588TY
Signed-off-by: yaoyuan <yuanyao14@huawei.com>
Change-Id: I1f92188175c3129c5d8cec72a0396f11ce17c1c7
2022-05-31 17:38:54 +08:00
guobingbing
a066f70986
modify annotation of InterpretedFrame
...
Signed-off-by: guobingbing <guobingbing3@huawei.com>
Change-Id: I1deb88080eb89e27252629d8501005d49fe76adf
2022-05-12 10:22:18 +08:00
yingguofeng@huawei.com
5037c8aac6
Delete useless code dependencies
...
To reduce 'libark_ jsruntime.so' ROM size, delete useless code dependencies.
https://gitee.com/openharmony/ark_js_runtime/issues/I541H4?from=project-issue
Profit: libark_jsruntime.so size reduce from 3455(kb) to 2001(kb)
Change-Id: Ie7430fca6f539c9baff1f4aae7942da6fc9ef135
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2022-04-24 18:02:32 +08:00