Commit Graph

577 Commits

Author SHA1 Message Date
feng
e0f34edb44 Performance optimization for String table
concat string table

issue:https://e.gitee.com/open_harmony/dashboard?issue=I4SASV

Signed-off-by: feng <yingguofeng@huawei.com>
Change-Id: I1ff7f15246c8d367c8c8a38f0effed9e6ace2bed
2022-02-15 14:23:43 +08:00
openharmony_ci
9bcda6e20c
!550 add a unit-test for BuiltinsBase
Merge pull request !550 from hjzhangcm/master
2022-02-14 15:14:35 +00:00
openharmony_ci
1bd0e8ecc0
!553 shield workerxts TrimTask bug
Merge pull request !553 from 苏重威/master
2022-02-14 15:14:04 +00:00
openharmony_ci
b00b049d8d
!552 Make WriteInt() ReadInt() consistent, Fix bug imported in recent PR
Merge pull request !552 from Pan Zhenyu/master
2022-02-14 13:32:16 +00:00
panzhenyu1
f9fc4f857a Make WriteInt() ReadInt() consistent, fix bug imported in recent PR
related issue: https://gitee.com/openharmony/ark_js_runtime/issues/I4TNBG

Signed-off-by: panzhenyu1 <panzhenyu1@huawei.com>
Change-Id: Idb19a24b0b059d8904d44c182098fd97c6d7c27e
2022-02-14 19:24:43 +08:00
scw
cb86057ebb shield workerxts TrimTask bug
remove TrimNewSpaceLimitTask from EcmaVM Initialize

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

Signed-off-by: scw <suchongwei@huawei.com>
2022-02-14 19:22:47 +08:00
hjzhangcm
74852df2f1 add BuiltinsBaseTest.cpp
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-02-14 18:32:03 +08:00
openharmony_ci
10aecce262
!532 add unit-test for arrayhelper
Merge pull request !532 from hjzhangcm/master
2022-02-14 09:10:32 +00:00
openharmony_ci
a843ec9b83
!537 ArkNativeReference support weak reference
Merge pull request !537 from zhangyukun8/master
2022-02-14 07:30:41 +00:00
hjzhangcm
bac299444f add array_helper_test.cpp
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-02-14 10:11:24 +08:00
openharmony_ci
82f36f4a7a
!517 Add tests case for TreeMap and TreeSet
Merge pull request !517 from xliu/container
2022-02-14 01:59:33 +00:00
openharmony_ci
f8596c9a16
!514 Refactoring HIR IF_EXCEPTION and bytecode ldai fdai instructions
Merge pull request !514 from wanyanglan/master
2022-02-12 03:28:53 +00:00
zhangyukun
ad08989d6e Support weak refernce of ark napi
Add ClearWeak() interface
bug:#I4TEDI

Signed-off-by: zhangyukun <zhangyukun8@huawei.com>
Change-Id: Iabce07be151bf41d19a523a70cb79c8462d8bc3d
2022-02-12 11:09:33 +08:00
openharmony_ci
1000f09f35
!533 Fix write-barrier on arm32
Merge pull request !533 from songzhengchao/writebarrier3
2022-02-12 02:09:24 +00:00
wanyanglan
b11d945856 Refactoring HIR IF_EXCEPTION and bytecode ldai fdai instructions
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
2022-02-11 16:24:43 +08:00
openharmony_ci
773ad9c6c0
!529 The runtime should be destroyed after all VMS
Merge pull request !529 from linxiang8/master
2022-02-11 08:22:58 +00:00
songzhengchao
f4aec83fc0 implement Write-barrier arm32 enabled
Refactor the StubMachineType and compute the offsets of Remembers' members on 32bit platform

issue: https://gitee.com/openharmony/ark_js_runtime/issues/I4T706?from=project-issue
Change-Id: Ie53bb2d0746f0db82a7d52f00c1200a95255f144
Signed-off-by: songzhengchao <songzhengchao@huawei.com>
2022-02-11 15:49:53 +08:00
openharmony_ci
b009807231
!508 AOT Pass Manager
Merge pull request !508 from Allen/pass_manager
2022-02-11 06:25:56 +00:00
linxiang
0e1c31da77 The runtime should be destroyed after all VMS
Description
    Ensure that all VMS have been destroyed by counting, ann then DestroyRuntime

Related issues
    https://gitee.com/openharmony/ark_js_runtime/issues/I4T7NX

Signed-off-by: linxiang <linxiang8@huawei.com>
2022-02-11 10:15:02 +08:00
openharmony_ci
dc0d9156ea
!511 add a unit-test for BuiltinsIntl class
Merge pull request !511 from hjzhangcm/master
2022-02-11 01:49:30 +00:00
Hailiang Hu
e97de69528 Add AOT Pass Manager
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>
2022-02-11 09:35:52 +08:00
openharmony_ci
dc0705068e
!352 write barrier
Merge pull request !352 from songzhengchao/writebarrier2
2022-02-10 23:53:39 +00:00
openharmony_ci
f90bbdbb8a
!522 support print ark log
Merge pull request !522 from changcheng/master
2022-02-10 14:37:53 +00:00
wengchangcheng
83178df77e support print ark log
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I4T6XR

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
2022-02-10 18:14:15 +08:00
hjzhangcm
53bedb2c79 add builtins_intl_test.cpp
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-02-10 16:22:25 +08:00
songzhengchao
2f9d60d2d6 implement machineType INT* FLOAT* rename to I* and F*
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
2022-02-10 15:51:18 +08:00
xliu
1ec31e6f05 Add tests for TreeMap and TreeSet
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
2022-02-10 15:40:14 +08:00
openharmony_ci
059ae65239
!513 add TreeMap and TreeSet
Merge pull request !513 from xliu/container
2022-02-10 06:22:29 +00:00
xliu
384e954045 Description
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>
2022-02-10 11:28:34 +08:00
openharmony_ci
567f57a76d
!509 Fix ark-dev without bytrace
Merge pull request !509 from wangzhaoyong/master
2022-02-10 03:20:12 +00:00
openharmony_ci
5d2b8980d8
!490 support SuspendVM and output UncaughtException
Merge pull request !490 from 苏重威/master
2022-02-09 09:39:35 +00:00
songzhengchao
3069773a49 implement word and uint/int mixed usage
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
2022-02-09 16:02:32 +08:00
wangzhaoyong
54bb4c276b [[Fix ark-dev without bytrace]]
Signed-off-by: wangzhaoyong <wangzhaoyong@huawei.com>
2022-02-09 14:45:23 +08:00
openharmony_ci
eb442c6822
!502 Modify the name of nativepoint
Merge pull request !502 from linxiang8/master
2022-02-09 04:01:29 +00:00
scw
4de1d33121 support SuspendVM and output UncaughtException
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>
2022-02-09 10:32:56 +08:00
openharmony_ci
9c18b1a697
!505 解决hap调用栈产生的json文件不能被chrome解析
Merge pull request !505 from 小马奔腾/master
2022-02-09 01:48:51 +00:00
xdmal
2108edcd88 Signed-off-by: xdmal <maxiaodong16@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'.
2022-02-08 14:39:46 +08:00
openharmony_ci
f037ce6928
!501 add logger init in ark_js_vm
Merge pull request !501 from changcheng/master
2022-02-07 10:31:49 +00:00
songzhengchao
0e74edbe82 implement fastpath writebarrier and region class init markingbitmap on
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>
2022-02-07 17:23:21 +08:00
openharmony_ci
d7227b73df
!494 Redefine the layout of TypeCode to accommodate MIR, TS types
Merge pull request !494 from wanyanglan/master
2022-01-30 09:05:47 +00:00
linxiang
dd0d5abb1a Modified the definition of delete in nativepoint
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>
2022-01-30 11:59:45 +08:00
wanyanglan
65d1f2de01 Redefine the layout of TypeCode to accommodate MIR, TS types
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
2022-01-30 11:03:57 +08:00
openharmony_ci
24843e647d
!489 InternalMemorySizeLimit init bugfix
Merge pull request !489 from yaojian16/bugix_20220127
2022-01-30 02:55:11 +00:00
wengchangcheng
033440162f modify logger init in ark_js_vm
issue: #I4SIRR [https://gitee.com/openharmony/ark_js_runtime/issues/I4SIRR]

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
2022-01-29 12:15:53 +08:00
openharmony_ci
19501fb056
!487 Add special case for empty string in JSSerializer
Merge pull request !487 from Pan Zhenyu/master
2022-01-28 06:53:50 +00:00
panzhenyu1
c97f2bce11 Add special case for empty string in JSSerializer
Add special case for empty EcmaString and testcase at same condition for JSSerialzer Unit Test

Relevant issue:https://e.gitee.com/open_harmony/dashboard?issue=I4SDCF

Signed-off-by: panzhenyu1 <panzhenyu1@huawei.com>
2022-01-28 10:00:17 +08:00
y00576111
fb3ff49a84 InternalMemorySizeLimit init bugfix
Signed-off-by: y00576111 <yaojian16@huawei.com>
Change-Id: Id3afe265f1ce536ef0f9cc284cf469f50b46e5f1
2022-01-27 15:25:05 +08:00
openharmony_ci
49f0a819b1
!484 add debugger testcase and modify testcase resource
Merge pull request !484 from changcheng/master
2022-01-26 14:04:53 +00:00
openharmony_ci
6e5d6b8739
!267 js bytecode to CFG
Merge pull request !267 from wanyanglan/master
2022-01-26 08:27:57 +00:00
wanyanglan
c3bfb80a04 independent running ts aot
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
2022-01-26 15:22:50 +08:00