Commit Graph

25 Commits

Author SHA1 Message Date
sunzhe23 a34e3526b7 fix llvm verify bug
Signed-off-by: sunzhe23 <sunzhe23@huawei.com>
2022-02-07 02:32:53 -08:00
sunzhe23 9f1657fff2 merge master
Signed-off-by: sunzhe23 <sunzhe23@huawei.com>
2022-01-26 23:01:47 -08:00
wanyanglan 01a613ecac 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
wanyanglan 51ecdc254f 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 cacb9e1756 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 4060601168 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
Mingliang Zeng d8142ffc43 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
wanghuan2022 83198e47a8 !469 add lesseq,greater,greatereq handle
* add lesseq,greater,greatereq handle
2022-01-24 06:41:42 +00:00
wanghuan2022 8e9dbfeada !458 add noteqdyn, lessdyn handle
* add noteqdyn, lessdyn handle
2022-01-22 01:53:37 +00:00
zhangyukun8 428cc48673 !407 Impl tryldglobalbyname and trystglobalbyname
* Impl tryldglobalbyname && trystglobalbyname
2022-01-20 12:08:02 +00:00
zhangyukun8 002038de66 !369 Impl defineclasswithbuffer
* Impl defineclasswithbuffer
2022-01-12 07:33:49 +00:00
zhangyukun8 67abdddcaa !342 Impl ldlexvardynprefix
* Impl ldlexvardynprefix
2022-01-10 13:00:31 +00:00
wpy111 3e88d01126 !354 add public api
* add public api
2022-01-10 07:33:20 +00:00
sunzhe23 feccc26ccd add opcode int64Totagged, open ldnan handler
Signed-off-by: sunzhe23 <sunzhe23@huawei.com>
2022-01-06 21:23:11 -08:00
wupengyong a4b47b1550 add dispatch and fix some bug
Signed-off-by: wupengyong <wupengyong@huawei.com>
Change-Id: If946f2a9e297e3dfe3e1a4544b640dc5c7c6d2f5
2022-01-05 17:30:57 +08:00
xliu aa2409e00f 1.add arraylist and ArkPrivate. 2.add special container in stub. 3.fix Switch
Signed-off-by: xliu <liuxin259@huawei.com>
Change-Id: I4082326fa075bce0c5c7bf8e6873282086fe5d6e
2022-01-04 19:30:40 +08:00
getingke c108665b1c fixed for add CompilationConfig Class to support all arch
Change-Id: Ifd5cbb143350ecb9c496d8c7cbc3ee3745e74399
Signed-off-by: getingke <getingke@huawei.com>
2021-12-23 15:00:19 +08:00
zhangyukun a97747fe18 Description:sync from code from wgr_master to ohos
Signed-off-by: zhangyukun <zhangyukun8@huawei.com>
Change-Id: Ic66a9e649de8c0ce530483296fe323b8f50621fb
2021-12-21 09:36:03 +08:00
songzhengchao 8b166ee59f Merge remote-tracking branch 'open/master' into gc_x86_2
Signed-off-by: songzhengchao <songzhengchao@huawei.com>
2021-10-29 16:42:01 +08:00
songzhengchao c4c4d68a4f code review
Signed-off-by: songzhengchao <songzhengchao@huawei.com>
2021-10-28 15:06:25 +08:00
getingke 136e3f7b08 fixed 262 test case fail for getpropertybyvalue
Signed-off-by: getingke <getingke@huawei.com>
Change-Id: I33b9d68efeb2d8ed19848699c98dedb984174296
2021-10-27 16:09:49 +08:00
getingke b35952f22a fixed for Set/GetPropertyByValue & test262 case verify
Signed-off-by: getingke <getingke@huawei.com>
Change-Id: I06214f39ebff93754edb3d275be4d4d76c1dba0c
2021-10-27 16:09:49 +08:00
wanyanglan c613732ebd translate FastMod function and add corresponding test cases
Signed-off-by: wanyanglan <wanyanglan1@huawei.com>
Change-Id: I49271e308a40ee5b3426f0277c02014ec06c8227
2021-10-08 16:47:08 +08:00
getingke 05931e38fd fixed for build dependy web & SetPropertyByIndex
Signed-off-by: getingke <getingke@huawei.com>
Change-Id: Icb7d8beb64c8123814b67211db5956e3231a3ecb
2021-09-26 14:47:20 +08:00
wanyanglan 86cfe52253 add ark js_runtime
Signed-off-by: wanyanglan <wanyanglan1@huawei.com>
Change-Id: Iac7851492f10c0ef1303c621febb65e5fdd22e41
2021-09-05 16:05:06 +08:00