3 Commits

Author SHA1 Message Date
huoqingyi 5905b54c34 Fix bugs in ts aot
Description:
1.Fix the bug that Circuit IR args gates do not match the function args of the abc file.
2.Add class ArgumentAccessor to handle args gates of Circuit IR.
3.Modify to set the AOT function entry when constpool is being parsed.
4.For functions sharing the same instructions, add a map to collect duplicate infomation. The key of the map is the current method and the value is the first method with the same nstructions to be translated.

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

Change-Id: I08e48444eb22c4fc2841e1cdae44b90286de84ac
Signed-off-by: huoqingyi <huoqingyi@huawei.com>
2022-07-04 16:19:11 +08:00
ding c742b591fc Fix AOT DefineClass PrtotypeChain Setup Error
1. In SetClassInheritanceRelationship, use class template mistakely, fix
   it by using clone class.
2. Add corresponding test cases.

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

Signed-off-by: ding <dingding5@huawei.com>
Change-Id: I5d09f471e62b5336997df5c2877b91fdcad3b3b6
2022-06-22 14:19:21 +08:00
huoqingyi 109ffbc3f6 add TS AOT test
Change-Id: If34d759412a9419edcb7838e9697b57fc4ec36d8
Signed-off-by: huoqingyi <huoqingyi@huawei.com>
2022-05-16 08:30:50 +08:00