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
Use IR instead of CallRuntime for GetUnmappedArgs.
Issue: #I5IH6C
Signed-off-by: lichenshuai <lichenshuai@huawei.com>
Change-Id: I78d550886d362d1730406fb672aa4974dc3ba7b0
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
Adaption for aot test as we enable bytecode optimizer by default
Issue:I5HYBL
Signed-off-by: qiuyu <qiuyu22@huawei.com>
Change-Id: I7c6071cb7c5f2149e2aef543680579958c0e4229
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>
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>
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
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
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