Commit Graph

291 Commits

Author SHA1 Message Date
openharmony_ci
a95b3f8f2e
!1984 add fuzztest cases for ets_runtime
Merge pull request !1984 from zhaozhibo/master
2022-08-05 00:46:17 +00:00
zhaozhibo
bd5405f9ef add fuzztest case for ets_runtime
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-08-04 19:56:53 +08:00
lichenshuai
cd88cbb2d3 Add NewObjectStubBuilder and Optimize ArgumentsAccessorData
1. Add NewObjectStubBuilder to handle NewJSObject, NewArgumentsObj, etc.
2. Use shared AccessorData for GetUnmappedArgs in C interpreter.
3. Add arguments in TDD.

Issue: #I5KFHP

Signed-off-by: lichenshuai <lichenshuai@huawei.com>
Change-Id: I3835edddd6375c9d9495fac7c44cf4014bd1f8a1
2022-08-04 09:22:16 +08:00
openharmony_ci
4d92305e9d
!1974 Add a unit-test for TaggedArray and Split case
Merge pull request !1974 from hjzhangcm/master
2022-08-03 13:35:31 +00:00
hjzhangcm
e13fd8c15f add test case for TaggedArray and Split case to EcmaVm_003_Test
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-08-03 16:16:38 +08:00
openharmony_ci
21d28ecd01
!1960 fix starrayspread
Merge pull request !1960 from xliu/fixbug
2022-08-02 14:07:08 +00:00
lijincheng
a86e3b389f Test262 bugfix
1.Fix supercall and supercallspread error
2.Fix ThrowIfSuperNotCorrectCall and DefineClassWithBuffer error
3.Fix JSCALL call constructor
4.Fix rest args with 0 args
5.Fix inreducible try catch
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5IHKJ

Signed-off-by: lijincheng <lijincheng13@huawei.com>
2022-08-02 15:24:50 +08:00
openharmony_ci
b115427b51
!1961 add fuzztest case for ets_runtime
Merge pull request !1961 from zhaozhibo/master
2022-08-02 03:44:05 +00:00
openharmony_ci
9b62dc080b
!1947 Change general aot file suffix and simplify related runtime option
Merge pull request !1947 from luochuhao/rename
2022-08-02 02:30:16 +00:00
zhaozhibo
afbb837f70 add fuzztest case for ets_runtime
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-08-02 10:08:53 +08:00
luochuhao
84becab15b Change general aot file suffix and simplify related runtime option.
Increase mmap limit size in allocator for llvm codegen.

Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5JT41
Signed-off-by: luochuhao <luochuhao@huawei.com>
Change-Id: I087ac165669f4767c1c5bbda73d015c41020c4f0
2022-08-02 09:23:14 +08:00
xliu
e238275ebf fix starrayspread
fix map、set、TypedArray
   issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5K1N6
Signed-off-by: xliu <liuxin259@huawei.com>
Change-Id: Ibaf6fa60ced7c4d0c65c7142104c3511337404a3

Change-Id: I1eec4c9d1810960626cc5ab9f8088a4a28144944
2022-08-02 09:19:03 +08:00
lichenshuai
91e4bdbfc7 GetUnmappedArgs IR
Use IR instead of CallRuntime for GetUnmappedArgs.

Issue: #I5IH6C

Signed-off-by: lichenshuai <lichenshuai@huawei.com>
Change-Id: I78d550886d362d1730406fb672aa4974dc3ba7b0
2022-08-01 11:11:58 +08:00
wanyanglan
71f7c5df2b TSAot test262 bugfix part 2
1、Solve the IR error problem generated by Aot. Aot uses subgraphs to
replace HIR considering whether the current use node is value input,
if it is value input, replace value.
2、fix LDSUPERBYNAME_PREF_ID32_V8 and STSUPERBYNAME_PREF_ID32_V8
Instruction CallRuntime bug by aot jsFunc.

issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5I300

Signed-off-by: wanyanglan <wanyanglan1@huawei.com>
Change-Id: I87c4000a0b7fb2abe41b217364c5ace3d1129c1e
2022-07-30 10:24:43 +08:00
openharmony_ci
7596b3a7e2
!1919 fix json parse
Merge pull request !1919 from xliu/fixbug
2022-07-29 14:48:56 +00:00
openharmony_ci
0c0453ad4b add FuzzTest use case
description:add FuzzTest use case
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/pulls/1925
!1931 merge library to libark_jsruntime.so
Merge pull request !1931 from weng-changcheng/merge_so
2022-07-29 16:02:59 +08:00
xliu
2f3653feab fix json parse and linked hash table
Description:
Because JSON parse returned 1 of double, the map access attribute failed
issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5JBHZ

Change-Id: Ibb91671905449fb1885aa245755e971b18ad4bbf
Signed-off-by: xliu <liuxin259@huawei.com>
2022-07-29 15:34:04 +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
e485ea9140
!1872 add FuzzTest use case
Merge pull request !1872 from jing_han/master
2022-07-27 01:28:53 +00:00
openharmony_ci
eb7e273942
!1896 add a unit-test for JSTaggedNumber and fix 262 script
Merge pull request !1896 from hjzhangcm/master
2022-07-25 14:02:28 +00:00
linxiang
4b415241e1 fix runtime_stub bug: HandleSetObjectWithProtoPrefV8V8
Signed-off-by: linxiang <linxiang8@huawei.com>
Change-Id: Ibc2065d88ae7734b4b1c34fa1b522f1fc1d00edb
2022-07-25 20:36:27 +08:00
hjzhangcm
1c6c3b176f add test case for JSTaggedNumber and fix 262 script
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-07-25 18:08:56 +08:00
qiuyu
dc40e4dbdc Adaption for aot test as we enable bytecode optimizer by default
Adaption for aot test as we enable bytecode optimizer by default

Issue:I5HYBL

Signed-off-by: qiuyu <qiuyu22@huawei.com>
Change-Id: I7c6071cb7c5f2149e2aef543680579958c0e4229
2022-07-25 12:17:14 +08:00
jing_han
a6e8970edb Merge branch 'master' of gitee.com:openharmony/arkcompiler_ets_runtime into master 2022-07-25 03:41:42 +00:00
jing_han
b65415b532 Add fuzzTest use case
description : Add fuzzTest use case
issues : https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5IF9Z

Signed-off-by: jing_han <hanjing35@huawei.com>
2022-07-25 11:25:17 +08:00
wengchangcheng
5944c761b6 Descriptor: add testcase for settings bug
details: add testcase of wrapper class func and call twice
issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5IKYW

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: Ia4d09e95cecd184cad67bb906fc1af95850a72ed
2022-07-23 21:37:42 +08:00
openharmony_ci
a90a3557d6
!1833 fix fuzztest errro and add new fuzztest
Merge pull request !1833 from zhaozhibo/master
2022-07-23 10:33:33 +00:00
lijincheng
1365fe05de Bugfix for Aot Error Found In Test262
1.Handle the situation which constant gate is at the end of current block
2.Handle import/export in Multiple files for TSAOT
3.Handle try-catch-finally
4.Handle conditionJump with only one successor
5.Handle try block without instructions which can throw exception
6.Handle LoopBack Verify Error
7.Add UT case for try-catch-finally
8.Handle getModule Error in Aot compile
9.Handle block endwith Constant gate
10.Bugfix for NewObj returnValue Error when need to throw Exception

issue:https://gitee.com/openharmony/ark_js_runtime/issues/I5F6JT
Signed-off-by: lijincheng <lijincheng13@huawei.com>
2022-07-22 14:52:21 +08:00
zhaozhibo
57c6b5df3f fix fuzztest errro and add new fuzztest
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-07-22 09:36:46 +08:00
Hailiang Hu
896f5f3cf6 tsaot add test case
tsaot add test case of large funtion, test for type infer and dominator tree

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

Signed-off-by: Hailiang Hu <allenpas@huawei.com>
Change-Id: I1e2cb463e5296db48e29b2d280ea563c2616be15
2022-07-21 16:09:20 +08:00
huoqingyi
8239a5e80f Modify typeinfer tests
Description:
Currently the typeinfer test compares the gatetypes of gates with the expected types
by printing the bytecode name log and gatetype log. In order to pass the tests,
it relies on front end keeping the functions and bytecodes' order unchanged.
This is inappropriate and does not adapt to the increasing optimization of the front end.
Therefore, We need to take a more appropriate solution.
We plan to compare gatetypes of gates in Circuit IR and expected types at compile time.

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

Change-Id: Id62a39ec0fc2327ede4e3ee1e770bc65bfc891d4
Signed-off-by: huoqingyi <huoqingyi@huawei.com>
2022-07-20 20:34:58 +08:00
openharmony_ci
2854bbc593
!1734 enable asm interpreter defaultly and fix ut bug
Merge pull request !1734 from wanghuan2022/master
2022-07-20 11:18:52 +00:00
wengchangcheng
a5098f599a Descriptor: fix ut error
details: add resource of StepInto test
issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5I0Q3

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: Ia712b5c4f36405e92fda8e6df4ced08276b6325c
2022-07-20 18:04:16 +08:00
wanghuan
c46fb5c593 enable asm interpreter defaultly and fix ut bug
desc: enable asm interpreter defaultly and fix ut bug

solu:
1.enable asm interpreter defaultly only in x64 or arm 64 and not win and mac
2.fix asm debugger because not check degugger mode
3.aot generate .m need disable asm-interpreter option
4.modify ut test

issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5FMBF
Signed-off-by: wanghuan <wanghuan80@huawei.com>
Change-Id: I40cc54c12375eaac50f143de76e16422f5887571
2022-07-20 17:51:36 +08:00
openharmony_ci
ac535f6ccf
!1815 I5H82Z优化导致Proxy无法拦截Assign相关操作
Merge pull request !1815 from wade/master
2022-07-18 09:30:12 +00:00
wade
36225a0dc0 add test case assignproxy
Signed-off-by: wade <wengdi@huawei.com>
2022-07-18 16:35:55 +08:00
openharmony_ci
f7afbac948
!1778 Adaption for typeinfer tests
Merge pull request !1778 from qiuyu/master
2022-07-17 15:58:37 +00:00
zhaozhibo
db2b106df1 fix fuzzing test error and enable fuzzing test of ark_js_runtime
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-07-15 12:22:53 +08:00
dingwen
bf637c1f41 modify arkcompiler_ets_runtime path
Description:modify arkcompiler_ets_runtime path
issue:https://gitee.com/openharmony/arkcompiler_runtime_core/issues/I5GE38

Signed-off-by: dingwen <dingwen6@huawei.com>
Change-Id: I43e2aae687a4f05fe6505b0b0f70f0846d047b84
2022-07-14 12:35:04 +08:00
openharmony_ci
f1a031481d
!1725 add tonumeric instruction and json_stringifier
Merge pull request !1725 from 常佳兴/master
2022-07-14 02:28:19 +00:00
openharmony_ci
a62e7da736
!1650 Add stackoverflow check of asm interpreter
Merge pull request !1650 from zhangyukun8/master
2022-07-13 08:32:17 +00:00
changjiaxing
f6447cdd61 Add tonumeric instruction
issue:Issuehttps://gitee.com/openharmony/ark_js_runtime/issues/I5F9F6?from=project-issue

Signed-off-by: changjiaxing <changjiaxing1@huawei.com>
2022-07-13 11:43:26 +08:00
zhangyukun8
b789fafc2f Add stackoverflow check of asm interpreter
1. check rsp stackoverflow
2. add calltype testcase

Issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5DJR0?from=project-issue

Signed-off-by: zhangyukun8 <zhangyukun8@huawei.com>
Change-Id: Ib7f2f32588eaed74e6aff5b9c1ad37c39c81509e
2022-07-13 10:54:53 +08:00
qiuyu
17f5bb7f73 Adaption for typeinfer tests
Adjust function orders

Signed-off-by: qiuyu <qiuyu22@huawei.com>
Change-Id: I5e14191bb52b8bb0ba2e866d8668570eb9b70b5f
2022-07-12 18:02:02 +08:00
openharmony_ci
c20edfbda7
!1645 add type infer test case
Merge pull request !1645 from hongtao/addmorecase
2022-07-12 08:43:14 +00:00
hongtao
e7a75c23d5 add test add2dyn div eqdyn and more test case for type infer
Signed-off-by: hongtao <hongtao11@huawei.com>
Change-Id: I8f07ed7f1a6189675c90771c97c10530cb09a259
2022-07-12 15:52:51 +08:00
wanyanglan
68acce4ba9 Add two HIRs RESTORE_REGISTER, SAVE_REGISTER to support generator command
Context is not saved when processing SUSPENDGENERATOR and RESUMEGENERASTOR
instructions, and contextual execution cannot be restored.
1、Add SAVE_REGISTER HIR for saving context
2、RESTORE_REGISTER HIR for restoring context

issue:https://gitee.com/openharmony/ark_js_runtime/issues/I5B2QO

Signed-off-by: wanyanglan <wanyanglan1@huawei.com>
Change-Id: I16b73390c6f7ae7c295f0aa1a9c9df538c2a4fec
2022-07-09 16:22:55 +08:00
openharmony_ci
347da75c46
!1710 aot add test and enable test on ut
Merge pull request !1710 from Hailiang/aot_lowering
2022-07-08 08:13:32 +00:00
Hailiang Hu
cf07f4b907 aot add test and enable test on ut
Issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5EYP3

Signed-off-by: Hailiang Hu <allenpas@huawei.com>
Change-Id: I771a63cf807e9971badf7228f337cb9a62ee258e
2022-07-08 11:03:58 +08:00
wengchangcheng
bb446398c0 Descriptor: decrease compiler time
details use dynamic link of libark_ecma_debugger.so & libjsdebugtest.so
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5FYDR

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: Ic0f7c21d0e296dbcb28753fe038f10fa4d4c8f37
2022-07-07 20:20:23 +08:00