Commit Graph

556 Commits

Author SHA1 Message Date
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
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
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
wengchangcheng
2683d90ab5 fix testcase resource
Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
2022-01-26 14:50:25 +08:00
openharmony_ci
00a6d52ff5
!481 use options control thread check
Merge pull request !481 from linxiang8/master
2022-01-26 06:38:55 +00:00
wanyanglan
d465caeab7 review comments revision
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I4RP3H

Signed-off-by: wanyanglan <wanyanglan1@huawei.com>
Change-Id: Ic7edae930dc9e206c66cd453040c789f2a6b49d3
2022-01-26 11:33:05 +08:00
wanyanglan
83e21227d7 circuit ir add print bytecode info
In the circuit ir bytecode are translated as JS_BYTECODE,
when printing do not know which bytecode is corresponding,
need to know the current translation of the circuit ir
corresponding to the bytecode is what

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

Signed-off-by: wanyanglan <wanyanglan1@huawei.com>
Change-Id: I095f7d04c8511c70f6f2f3152db9ba058b2addba
2022-01-26 11:33:05 +08:00
wanyanglan
1bd867a5ff circuit builder throw instruction
ts aot bytecode to circuit ir does not yet support the conversion operation for the throw instruction

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

Signed-off-by: wanyanglan <wanyanglan1@huawei.com>
Change-Id: I1c39ae74db6776f7b4086f380170afd5e4681f64
2022-01-26 11:33:05 +08:00
wanyanglan
792f51bbf7 refactoring circuit ir
The current circuit ir is translated to llvm ir according to the type of opcode,
and depends on different platforms. circuit ir, as an intermediate state from MIR
to LLVM IR, only performs the conversion role and should not depend on different
platforms for different conversion operations.

The uniqueness of the opcode is removed, and the opcode is combined with a valuecode,
which indicates the uniqueness of each MIR.

issue: https://gitee.com/openharmony/ark_js_runtime/issues/I4RP3H
Signed-off-by: wanyanglan <wanyanglan1@huawei.com>
Change-Id: I2804e7ba9be58fcc4acf3d95a417224b7984018a
2022-01-26 11:33:05 +08:00
xujie
ac11afa3b2 refactoring bytecode to circuit ir
Separate bc to ir code logic from panda_file_translator to bytecode_circuit_builder

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

Signed-off-by: xujie <xujie101@huawei.com>
Change-Id: I08e5b27f4f648ac66aec62c66662fcf4d89916dd
2022-01-26 11:33:05 +08:00
Mingliang Zeng
dc27ce7417 circuit builder
Implemented circuit ir builder based on the SSA information generated by
previous processes, according to the specification of circuit ir.

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

Signed-off-by: Mingliang Zeng <zengmingliang1@huawei.com>
Change-Id: I23d4f88d2f5b8164e6f31f0d0092a1dcbc55d976
2022-01-26 11:32:54 +08:00
wanyanglan
98fedff6c0 js bytecode to cfg
The conversion of bytecode to circuit ir involves building cfg at
the bytecode level and building circuit ir based on the information
stored in cfg.

issue: https://gitee.com/openharmony/ark_js_runtime/issues/I4RP3H
Signed-off-by: wanyanglan <wanyanglan1@huawei.com>
Change-Id: Ic384e6c9e4a456c9ff44f0789dd8e8826328e32d
2022-01-26 11:18:52 +08:00
wengchangcheng
9f4ed44f9b add exception testcase
Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
2022-01-26 10:40:56 +08:00
wengchangcheng
e0748accc6 support column debugger
Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
2022-01-26 10:40:48 +08:00
openharmony_ci
c7da141b2c
!435 optimize primitive type ACCESSORS
Merge pull request !435 from changcheng/master
2022-01-26 02:34:46 +00:00
linxiang
601506b40b use options control thread check
Signed-off-by: linxiang <linxiang8@huawei.com>
2022-01-26 10:08:18 +08:00
openharmony_ci
5870e2e574
!456 add ic_handler_test.cpp
Merge pull request !456 from hjzhangcm/master
2022-01-25 15:45:23 +00:00
openharmony_ci
c883b074f6
!479 close gc trace for ark
Merge pull request !479 from linxiang8/master
2022-01-25 15:22:40 +00:00
openharmony_ci
bf1a4fa895
!461 frame refactor
Merge pull request !461 from songzhengchao/refactorframe0122
2022-01-25 13:13:08 +00:00
linxiang
2746e0f28b close thread check
Signed-off-by: linxiang <linxiang8@huawei.com>
2022-01-25 20:52:40 +08:00
wengchangcheng
9a907ba3c3 optimize primitive type ACCESSORS
Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
2022-01-25 18:05:12 +08:00
hjzhangcm
4d8b6c0e9e add ic_handler_test.cpp
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-01-25 15:03:46 +08:00
openharmony_ci
8a57039d11
!476 add save_pc to fix stack info
Merge pull request !476 from huangfeijie/master
2022-01-25 07:03:44 +00:00
openharmony_ci
fcb0620be8
!473 add bundle.json for componentize
Merge pull request !473 from lukai/master
2022-01-25 05:42:04 +00:00