Commit Graph

650 Commits

Author SHA1 Message Date
zhangyouyou
b744a006be Add bigint type, add related instructions and Napi
Signed-off-by: zhangyouyou <zhangyouyou2@huawei.com>
2022-03-10 21:25:06 +08:00
y00576111
6dc6688270 EcmaScript Standard Module Implementation
Delete the existing module implementation and
re implement the module function according to the ECMA 2018 specification

issue: #I4NZQT [https://gitee.com/openharmony/ark_ts2abc/issues/I4NZQT]

Signed-off-by: y00576111 <yaojian16@huawei.com>
Change-Id: I8d381db7f8bf2f3d6b2a5c21cbc3cbab1aef0b9b
2022-03-10 19:10:42 +08:00
wuzhefeng
ab93e17d09 Refactor JSThread layout and introduce macro for debugging
This PR refactors the design of JSThread by introducing aligned struct,
which is more friendly for ASM-Interpreter and Compiler IRs. Meanwhile,
to facilitate debugging, a macro enable_bytrace is introduced to control
the lib dependencies of ark-js-runtime.

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

Signed-off-by: wuzhefeng <wuzhefeng1@huawei.com>
Change-Id: I56835deec5d372d7c827ded26544a87766f29002
2022-03-10 00:25:35 -08:00
openharmony_ci
1e538180ef
!697 Add JS Function Entry frame & LeaveFrame for arm32
Merge pull request !697 from getingke/arm32_js_frame
2022-03-10 05:13:13 +00:00
openharmony_ci
6673c36f20
!714 modify ArkTools
Merge pull request !714 from xliu/add_properties
2022-03-10 03:00:34 +00:00
openharmony_ci
e3e9fa1aac
!668 change Class Ecma_VM's member options_ for multiple use
Merge pull request !668 from 冷昌晶/master
2022-03-10 02:05:00 +00:00
openharmony_ci
235423f56b
!707 Add testcase for Pendingjob and Microjobqueue
Merge pull request !707 from hjzhangcm/master
2022-03-09 14:39:01 +00:00
openharmony_ci
3ae7425288
!675 Add basic methods to circuit_builder_helper for lowering
Merge pull request !675 from 131******03/master-merge
2022-03-09 13:51:43 +00:00
xliu
71c6186791 add ark tools in ark properties
Description
  Add ark tools in ark properties, this capability can be enabled on the system by setting properties.
Issue:
  #I4X2QA:add options

Signed-off-by: xliu <liuxin259@huawei.com>
Change-Id: I2308d6abc5aea012b71981b7b086c0ba12cf4b62
2022-03-09 17:24:26 +08:00
openharmony_ci
2e2d105ef3
!683 Add stub name log of asm interpreter
Merge pull request !683 from zhangyukun8/master
2022-03-09 08:47:24 +00:00
getingke
e55df97b69 fixed for review comment by wuzhefeng
Signed-off-by: getingke <getingke@huawei.com>
Change-Id: Id76ea68552d31eb67fa87edaed2ec33ef18af3fe
2022-03-09 16:17:24 +08:00
zhangyukun
b981d1ab15 Add stub name log of asm interpreter
In debug mode, print stub name of asm interpreter stub to
help us find which stub exists the problem
Add new DebugPrint format to support print int32 value

Signed-off-by: zhangyukun <zhangyukun8@huawei.com>
Change-Id: Iae39213572de99cc4089a172092184399ba8c5d0
2022-03-09 15:16:09 +08:00
hjzhangcm
712e034b7b add test case for microjobqueue and pengingjob
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-03-09 11:24:07 +08:00
lijincheng
629d8548f9 compile bugfix
add new file circuit_builder-inl for extracting methods from stub
fix code check
Signed-off-by: lijincheng <lijincheng13@huawei.com>

Signed-off-by: lijincheng <lijincheng13@huawei.com>
2022-03-09 10:57:44 +08:00
lijincheng
cccfb36df6 add GateType (get or set) to gate_accessor
compile bugfix

Signed-off-by: lijincheng <lijincheng13@huawei.com>
2022-03-09 10:04:36 +08:00
lijincheng
e391e75b3f add basic methods depending on labelmanager env to circuit_builder_helper
move MergeMirCircuit from lowering to circuit_builder_helper for slowpathlowering

Signed-off-by: lijincheng <lijincheng13@huawei.com>
2022-03-09 10:04:36 +08:00
openharmony_ci
523d8def4a
!704 fix navier-stokes.js asm interpreter crash bug
Merge pull request !704 from 孙哲/master
2022-03-09 01:32:28 +00:00
openharmony_ci
0c35d5c0ef
!689 Slowpath Lowering support condtion call
Merge pull request !689 from Allen/aot_lowering
2022-03-08 23:48:28 +00:00
openharmony_ci
9c7f23a5f7
!637 add ts type Array, Object and Function type resolution
Merge pull request !637 from fanshengli/function
2022-03-08 23:25:03 +00:00
冷昌晶
8f5433b66b Merge branch 'master' of gitee.com:openharmony/ark_js_runtime into master 2022-03-08 21:35:20 +08:00
sunzhe23
56d8ac665d Related issue: #I4WXHG
Modifications:
1 rewrite Add/Stub2Dyn
2 bytecode Inc/Dec use .rodata store a float 1.0 and crashed on amd64.
  close double label for Inc/Dec on amd64

Signed-off-by: sunzhe23 <sunzhe23@huawei.com>
2022-03-08 05:16:27 -08:00
getingke
9edfc82a48 fixed for revert enable_stub_aot flags
issue:[Add JSFunction EntryFrame & LeaveFrame for arm32](https://gitee.com/openharmony/ark_js_runtime/issues/I4WRJP?from=project-issue)
Signed-off-by: getingke <getingke@huawei.com>

Change-Id: I737b5905e8741a0d6f459f1a54e2f69d765901dd
Signed-off-by: getingke <getingke@huawei.com>
2022-03-08 20:52:04 +08:00
Hailiang Hu
beb0433df1 AOT lowering
Add lower hir to condition call, get iterator lower

Issue: I4WKOZ

Signed-off-by: Hailiang Hu <allenpas@huawei.com>
Change-Id: Ieb78a3ef0bebc35f7edd4224b55393c44bbbeee2
2022-03-08 18:49:48 +08:00
getingke
a9872474f0 Merge remote-tracking branch 'gtk_js_frame/arm32_js_frame' into gtk_0308_02
Signed-off-by: getingke <getingke@huawei.com>
Change-Id: I3d0f5cbf15d164accd0b6b3727181764736acaea
2022-03-08 17:32:42 +08:00
songzhengchao
79af82d668 delete patchpointid replace with return address
Signed-off-by: songzhengchao <songzhengchao@huawei.com>
Change-Id: I1a92f226571273e9ecdd713a378ad977a2f4667f
2022-03-08 17:28:21 +08:00
getingke
b1c8b4d117 Merge remote-tracking branch 'gtk_js_frame/arm32_js_frame' into gtk_0308_02
Change-Id: Icc6812abfcf34f4ff8bdfc3e95069a54ce15a610
2022-03-08 16:26:26 +08:00
getingke
084ebad12f fixed for code static check
issue:[Add JSFunction EntryFrame & LeaveFrame for arm32](https://gitee.com/openharmony/ark_js_runtime/issues/I4WRJP?from=project-issue)

Signed-off-by: getingke <getingke@huawei.com>
Change-Id: I805e2a736e5404394e3e221191584038e3aea97f
2022-03-08 16:26:02 +08:00
songzhengchao
49584ec11c delete patchpointid replace with return address
Signed-off-by: songzhengchao <songzhengchao@huawei.com>
Change-Id: I1a92f226571273e9ecdd713a378ad977a2f4667f
2022-03-08 15:46:54 +08:00
lifansheng
927b378b85 issue:I4WLER
description: supplement the Array, Object and Function type resolution for type system

add TDD test

Signed-off-by: lifansheng <lifansheng1@huawei.com>
2022-03-08 14:51:24 +08:00
getingke
1bb353d2c5 fixed for rename ecma_asm_defines.h to asm_defines.h
issue:[Add JSFunction EntryFrame & LeaveFrame for arm32](https://gitee.com/openharmony/ark_js_runtime/issues/I4WRJP?from=project-issue)

Signed-off-by: getingke <getingke@huawei.com>
Change-Id: Ieab12fd91b479147a1f4243b261acad028f23f86
2022-03-08 11:22:25 +08:00
getingke
7ed9a3fbea fixed for debug js_frame ok and revert test code
issue:[Add JSFunction EntryFrame & LeaveFrame for arm32](https://gitee.com/openharmony/ark_js_runtime/issues/I4WRJP?from=project-issue)

Signed-off-by: getingke <getingke@huawei.com>
Change-Id: Ia688bbec9825ec9ebe0e7dcd7da47af1317f1fb8
2022-03-08 11:11:46 +08:00
getingke
e8dfcaca06 fixed for get stackmap with returnaddress
issue:[Add JSFunction EntryFrame & LeaveFrame for arm32](https://gitee.com/openharmony/ark_js_runtime/issues/I4WRJP?from=project-issue)

Signed-off-by: getingke <getingke@huawei.com>
Change-Id: Ie034eebf3e1f3c461dc35168756564aaa708602d
2022-03-08 11:09:05 +08:00
getingke
d8a36a4889 fixed for arm32 js frame rewrite patch id
issue:[Add JSFunction EntryFrame & LeaveFrame for arm32](https://gitee.com/openharmony/ark_js_runtime/issues/I4WRJP?from=project-issue)
Signed-off-by: getingke <getingke@huawei.com>

Change-Id: Icb8cf8d03b0321150ad1c066e001f398dc4bc78a
2022-03-08 11:08:10 +08:00
getingke
92f1f1bb45 fixed for arm32 js frame debug
issue:[Add JSFunction EntryFrame & LeaveFrame for arm32](https://gitee.com/openharmony/ark_js_runtime/issues/I4WRJP?from=project-issue)
Signed-off-by: getingke <getingke@huawei.com>

Signed-off-by: getingke <getingke@huawei.com>
Change-Id: I04abe94dab8f6829bd47a9ac6f22410884e81595
2022-03-08 11:07:24 +08:00
hjzhangcm
4acf22536e fix builtins_locale_test.cpp
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-03-08 11:03:40 +08:00
getingke
02d27c76bb fixed for arm32 js frame
issue:[Add JSFunction EntryFrame & LeaveFrame for arm32](https://gitee.com/openharmony/ark_js_runtime/issues/I4WRJP?from=project-issue)
Signed-off-by: getingke <getingke@huawei.com>

Change-Id: If65fd5064fa3c626f8f0ae3bae550465414af5e7
2022-03-08 11:01:20 +08:00
openharmony_ci
1989b8b0a1
!691 fix compile_llvm_lib.sh
Merge pull request !691 from hjzhangcm/master
2022-03-08 02:36:26 +00:00
openharmony_ci
4cb6259281
!694 Undo some native stack function function
Merge pull request !694 from 史凯/master
2022-03-07 15:15:06 +00:00
lengchangjing
4d7be6b0ca Merge branch 'master' of https://gitee.com/leng-changjing/ark_js_runtime_option 2022-03-07 22:56:57 +08:00
lengchangjing
5fb2d99c40 Merge branch 'master' of https://gitee.com/leng-changjing/ark_js_runtime_option 2022-03-07 22:42:06 +08:00
lengchangjing
192b006b6c Merge branch 'master' of https://gitee.com/leng-changjing/ark_js_runtime_option 2022-03-07 22:39:05 +08:00
openharmony_ci
8b1ad9e3ae
!692 fix DoubleToInt overflow bug
Merge pull request !692 from 孙哲/master
2022-03-07 14:14:31 +00:00
shikai-123
b0096c90eb The function is not complete. Withdraw the code first
Due to the problem of including the third-party header file, the
function is temporarily cancelled, and the library can be loaded after
debugging

https://gitee.com/openharmony/ark_js_runtime/issues/I4WONE

Signed-off-by: shikai-123 <shikai25@huawei.com>
2022-03-07 21:58:19 +08:00
openharmony_ci
45af46b955
!690 circuit gate fill in the specific ts type
Merge pull request !690 from wanyanglan/master
2022-03-07 13:32:00 +00:00
lengchangjing
19ce2df881 Merge remote-tracking branch 'mother/master' 2022-03-07 20:55:58 +08:00
lengchangjing
5c54b4226e Merge remote-tracking branch 'mother/master' 2022-03-07 20:52:59 +08:00
wanyanglan
3aa31632b4 circuit gate fill in the specific ts type
The type of the circuit gate of the current ts aot is JS_ANY, which does
not bring the data type of the ts itself. It is necessary to fill in the
type information of the ts with the gate to facilitate the type derivation.

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

Signed-off-by: wanyanglan <wanyanglan1@huawei.com>
Change-Id: I5c72e3a918650840847fc965eafbb13b9475acd2
2022-03-07 19:54:28 +08:00
openharmony_ci
24e8b5fd18
!546 Add Container Queue
Merge pull request !546 from chenqi/container_queue
2022-03-07 11:43:30 +00:00
sunzhe23
c2a41bbddd Related issue: #I4WNBB
Modifications:
Add overflow handling for DoubleToInt

Signed-off-by: sunzhe23 <sunzhe23@huawei.com>
2022-03-07 03:35:48 -08:00
openharmony_ci
7a7cb7abeb
!693 Bugfix for windows support patch
Merge pull request !693 from Pan Zhenyu/master
2022-03-07 11:16:10 +00:00