The exception object is passed directly as a value inside the IR
will cause acc to generate many phi nodes (other vreg rarely generate
phi nodes when exceptions are handled). The current modification
is to add a GET_EXCEPTION directive (placed at the beginning of
the catch part) to indicate that the exception object is read after
an exception occurs, in this case lowering is simpler and does not
need to consider different value outputs, the logic is more concise
and the number of code instructions is reduced.
Replace ladi and fdai HIR with MIR: these two instructions to get
the immediate number, do not need to use HIR to handle, this will
increase the number of HIR instructions, simplify lowering.
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I4T6HX
Signed-off-by: wanyanglan <wanyanglan1@huawei.com>
Change-Id: I751677e11b50976af4e2fc5a6cac4457fa9a44df
Modify aot compiler main process to pass manager, as to compile file by
file.
Add PassData to manage data interact between passes, PassRunner to
execute every pass that is registered on specific order.
Issue: I4SW05
Change-Id: I5b83b84880c7375e26e1c47e02c9943bfefc647a
Signed-off-by: Hailiang Hu <allenpas@huawei.com>
current machineType INT * FLOAT* confuse people to associate UINT*.
the INT* is simlar with LLVM IR too
we reanme machineType INT* FLOAT* rename to I* and F*
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I4SC94
Signed-off-by: songzhengchao <songzhengchao@huawei.com>
Change-Id: Ie188e07039cd9f26aed436ce96618ea4143fccd6
Description
To ensure the high performance of container classes, TreeMap and TreeSet is provided in ark.
1. Add test cases for ContainerTreeMap.
2. Add test cases for ContainerTreeSet.
3. Add test cases for JSAPITreeMap.
4. Add test cases for JSAPITreeSet.
Related issue
#I4T5I6:add test cases for TreeMap and TreeSet
Signed-off-by: xliu <liuxin259@huawei.com>
Change-Id: Ib01adfd9038498a88785bdd878e524e02ab38dc8
To ensure the high performance of container classes, TreeMap and
TreeSet is provided in ark.
Add test cases for TaggedTree.
Related issue
#I4PQ1G:add TreeMap and TreeSet
Change-Id: I5cda72d06a71380711374109a87e971af6a8c5b7
Signed-off-by: xliu <liuxin259@huawei.com>
current stub Word*** function sometime handle unsigned int or signed
int, we refactor name it uint** or int** whichi is more clear
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I4SC94
Signed-off-by: songzhengchao <songzhengchao@huawei.com>
Change-Id: Ieb6e201d18c59fdd3fa7130b70389c54d619e3b2
Add VMNeedSuspension judge in CheckSafepoint and provide SuspendVM() ResumeVM() api in jsnapi to Suspend VM and Resume VM
Modify GetEcmaUncaughtException no longer clear exception and Add GetAndClearEcmaUncaughtException to get and clear exception
Issue I4SECM
Signed-off-by: scw <suchongwei@huawei.com>
Why
DFX use test in the use of hap, found that generate json file could not be chrome parsing
Description
Change the time stamp of the type of the variable, which can be stored subtle level
Change the code logic, which can identify fault frames and export right to json
On branch master
Your branch is up to date with 'origin/master'.
construct function and refactor stub call runtime offset which's relative with
arch framework
current stub call runtime writebarrier, writebarrier stub is conveient
to optimized by llvm pass
region class markingbitmap should be not nullptr, it's good way to
inilized on construct class other than lazy inilized
current stub get member offset of runtime class, need to modify multiple
places which is not coveient to maintance. stub call offset by GetOldToxxxOffset and
CheckLayout which is checked by compile phase
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I4SC94
Change-Id: Iec087f07ca27ef95b20ff65ea8bb9408b5887d9c
Signed-off-by: songzhengchao <songzhengchao@huawei.com>
Description
There is conceptual confusion in the definition of delete in nativepoint. Modify it to avoid ambiguity
modify 'delete(buffer, data)' to delete(nativePointer, data).
Related issues
#I4SK2G: Modify the name of nativepointer
Signed-off-by: linxiang <linxiang8@huawei.com>
The current TypeCode is only used to represent the type of the MIR
and cannot represent the TS type data type. The type derivation
process needs to get the TS type information from the circuit ir.
Redefining the layout of TypeCode
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I4SFHE
Signed-off-by: wanyanglan <wanyanglan1@huawei.com>
Change-Id: I53292db81712b84210114f9f92c44b6236c356af
ts aot should be a separate part that needs to generate the
corresponding file before executing xxx.abc and should not
depend on the execution of xxx.abc
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I4RP3H
Signed-off-by: wanyanglan <wanyanglan1@huawei.com>
Change-Id: I4ed7d7ee5528dcb479e08486f332a48c16ea88d7