Commit Graph

560 Commits

Author SHA1 Message Date
openharmony_ci
c29332c1d9 !1833 fix fuzztest errro and add new fuzztest
Merge pull request !1833 from zhaozhibo/master

Change-Id: I1e83c46e25d0a7c342e5c8e7ca5ff61c745b7582
2022-07-25 08:49:51 +08:00
openharmony_ci
8330a50e83
!1879 refactory: move js_api file to js_api catalogue
Merge pull request !1879 from linxiang8/master
2022-07-23 10:29:46 +00:00
linxiang
1d9edc9885 refactory: move js_api file to js_api catalogue
Signed-off-by: linxiang <linxiang8@huawei.com>
Change-Id: Id5bba5fa97c4cbfe4fee9f557cc92b020ddb3be4
2022-07-23 15:52:48 +08:00
lvfuqing
1222cc0bf7 Supplement the full-path to the header files
issues:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5HWSN

Change-Id: I6955145d43cc05eb0a605b6ea639fa08aaa7effe
2022-07-23 14:30:37 +08:00
lijincheng
1365fe05de Bugfix for Aot Error Found In Test262
1.Handle the situation which constant gate is at the end of current block
2.Handle import/export in Multiple files for TSAOT
3.Handle try-catch-finally
4.Handle conditionJump with only one successor
5.Handle try block without instructions which can throw exception
6.Handle LoopBack Verify Error
7.Add UT case for try-catch-finally
8.Handle getModule Error in Aot compile
9.Handle block endwith Constant gate
10.Bugfix for NewObj returnValue Error when need to throw Exception

issue:https://gitee.com/openharmony/ark_js_runtime/issues/I5F6JT
Signed-off-by: lijincheng <lijincheng13@huawei.com>
2022-07-22 14:52:21 +08:00
openharmony_ci
b41c1517c7 !1856 tsaot add test case
Merge pull request !1856 from Hailiang/aot_lowering

Change-Id: Ibaa6c779205e604d1383f022f5cecdb3f8c95901
2022-07-22 14:32:36 +08:00
openharmony_ci
05eceff1da
!1838 fix codeCheck warning to master branch
Merge pull request !1838 from hjzhangcm/master
2022-07-20 11:26:58 +00:00
wanghuan
c46fb5c593 enable asm interpreter defaultly and fix ut bug
desc: enable asm interpreter defaultly and fix ut bug

solu:
1.enable asm interpreter defaultly only in x64 or arm 64 and not win and mac
2.fix asm debugger because not check degugger mode
3.aot generate .m need disable asm-interpreter option
4.modify ut test

issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5FMBF
Signed-off-by: wanghuan <wanghuan80@huawei.com>
Change-Id: I40cc54c12375eaac50f143de76e16422f5887571
2022-07-20 17:51:36 +08:00
hjzhangcm
82810a0fdd fix codecheck warning for master branch
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-07-20 14:17:23 +08:00
g00416891
f9d3614a7c Align EcmaRuntimeCallInfo for 32 bit
Signed-off-by: g00416891 <guobingbing3@huawei.com>
Change-Id: I2097ac272aed3f89dd52a300a1653191a3bac459
2022-07-15 15:02:39 +08:00
g00416891
604a131f22 Align EcmaRuntimeCallInfo for 32 bit
Signed-off-by: g00416891 <guobingbing3@huawei.com>
Change-Id: I971c972b2486930c7dbb1d50027c3cb0df25e661
2022-07-14 21:15:55 +08:00
openharmony_ci
f1a031481d
!1725 add tonumeric instruction and json_stringifier
Merge pull request !1725 from 常佳兴/master
2022-07-14 02:28:19 +00:00
openharmony_ci
db7df3f5bb
!1673 cpuprofiler adaptation assembly and modify static member variables and static local variables
Merge pull request !1673 from 王犇/master
2022-07-14 01:01:13 +00:00
openharmony_ci
8f525d0d38
!1755 Object Entries and Array Iterator optimization
Merge pull request !1755 from xliu/entries_and_array_iter
2022-07-13 08:34:50 +00:00
openharmony_ci
a62e7da736
!1650 Add stackoverflow check of asm interpreter
Merge pull request !1650 from zhangyukun8/master
2022-07-13 08:32:17 +00:00
changjiaxing
f6447cdd61 Add tonumeric instruction
issue:Issuehttps://gitee.com/openharmony/ark_js_runtime/issues/I5F9F6?from=project-issue

Signed-off-by: changjiaxing <changjiaxing1@huawei.com>
2022-07-13 11:43:26 +08:00
zhangyukun8
b789fafc2f Add stackoverflow check of asm interpreter
1. check rsp stackoverflow
2. add calltype testcase

Issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5DJR0?from=project-issue

Signed-off-by: zhangyukun8 <zhangyukun8@huawei.com>
Change-Id: Ib7f2f32588eaed74e6aff5b9c1ad37c39c81509e
2022-07-13 10:54:53 +08:00
wangben
f1249996cf CpuProfiler adaptation assembly
Modify static member variables and static local variables

Signed-off-by: wangben <wangben15@huawei.com>
2022-07-12 16:26:32 +08:00
lichenshuai
9276e66b13 Disable SingleStepDebugging for Several Bytecodes
Find bytecodes that leads to the difference between rsp frame and sp frame, then disable their SingleStepDebugging.

Issue: #I5EYDX

Signed-off-by: lichenshuai <lichenshuai@huawei.com>
Change-Id: I0731046f0b424817a6e463ee385d4203b0fe6244
2022-07-12 16:07:07 +08:00
xliu
9da4c63884 Object Entries and Array Iterator optimization
1. Optimize the enumerableownpropertynames interface by adding cache;
2. Remove the number to string conversion of array iterator;
3. Share hclass of iterator result;
4. Share the return result of closeiterator;
5. Fix EnumerableOwnNames bugs.
6. Fix Array IteratorNext bugs.
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5G288

Signed-off-by: xliu <liuxin259@huawei.com>
Change-Id: Ie03278f0afed3cf7eb967dd92eac13c2fc0eeb4e
2022-07-11 19:38:17 +08:00
openharmony_ci
6c1541b6fe
!1510 Add two HIRs RESTORE_REGISTER, SAVE_REGISTER to support generator command
Merge pull request !1510 from wanyanglan/master
2022-07-09 15:16:12 +00:00
wengchangcheng
868a082ece delete some unused log
1. add VERBOSE level log, default not print
2. modify some DEBUGE level log to VERBOSE

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

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I1fba38346d55fb633c7a0ec018848653137d4009
2022-07-09 18:43:58 +08:00
wanyanglan
68acce4ba9 Add two HIRs RESTORE_REGISTER, SAVE_REGISTER to support generator command
Context is not saved when processing SUSPENDGENERATOR and RESUMEGENERASTOR
instructions, and contextual execution cannot be restored.
1、Add SAVE_REGISTER HIR for saving context
2、RESTORE_REGISTER HIR for restoring context

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

Signed-off-by: wanyanglan <wanyanglan1@huawei.com>
Change-Id: I16b73390c6f7ae7c295f0aa1a9c9df538c2a4fec
2022-07-09 16:22:55 +08:00
openharmony_ci
e7682b3e76
!1752 fix codex warning
Merge pull request !1752 from hjzhangcm/master
2022-07-07 11:41:25 +00:00
openharmony_ci
2333ebf18d
!1751 decrease ark log
Merge pull request !1751 from weng-changcheng/ark_hilog_decrease
2022-07-07 11:27:19 +00:00
guobingbing
422ab85b84 Fix CodeCheck
Signed-off-by: guobingbing <guobingbing3@huawei.com>
Change-Id: I23358a6b12584fe4e3a583d0fad5e7f81875e977
2022-07-07 18:43:05 +08:00
hjzhangcm
a5375d8bca fix codex warning
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-07-07 17:33:05 +08:00
wengchangcheng
b16ddc6c60 Descriptor: decrease ark debug log
details: dont print interpreter log
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5FZNJ

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I8c362cb1359db77e994d510df17bbda4ce3ab0b5
2022-07-07 15:54:12 +08:00
wengchangcheng
6e5a7e8362 Descriptor: ark hilog refactor
details:
1. use hilog in ohos device
2. use panda logger in host
issue:  https://gitee.com/openharmony/ark_js_runtime/issues/I5FR5J

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I6f5de00751154bdb6aac3101515961a3a4432e80
2022-07-06 22:55:49 +08:00
g00416891
b6588744f2 New EcmaRuntimeCallInfo in stack pointer
Signed-off-by: g00416891 <guobingbing3@huawei.com>
Change-Id: I466a4107e6e073ffecea12e6986c112731d2d3bf
2022-07-05 14:54:43 +08:00
zhangyukun8
abf89ef083 CpuProfiler adapt assembly-interpreter
1. lookup traces when a frame has not been constructed totally
2. update rbp before exit current frame
3. update leaveFrame_ before callngcruntime
4. fix bigint

Issue:https://gitee.com/openharmony/ark_js_runtime/issues/I5ELOP?from=project-issue

Signed-off-by: zhangyukun8 <zhangyukun8@huawei.com>
Change-Id: I85bedde971436df9775d49fefd84b7375a65f564
2022-07-04 09:43:35 +08:00
openharmony_ci
75c7544ba8
!1626 proxy debug 262 失败问题
Merge pull request !1626 from xiongluo/fix_debug_262
2022-06-30 13:07:42 +00:00
xiongluo
e71be0a1eb Fix Proxy fail Debug 262
issue:https://gitee.com/openharmony/ark_js_runtime/pulls/1626

Signed-off-by: xiongluo <xiongluo@huawei.com>
2022-06-30 20:34:21 +08:00
openharmony_ci
552aec2d77
!1397 Support lexenv in TSAOT
Merge pull request !1397 from 许杰/env_support
2022-06-30 08:39:15 +00:00
xujie
92d366b8fc Support Lexenv In TSAOT
1. Support lexical env when running tsaot
2. fix getunmappedargs and copyrestargs bugs

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

Signed-off-by: xujie <xujie101@huawei.com>
Change-Id: Ia78ea4d89654d6924c0dee6f491cdf1e4fe718ee
2022-06-30 14:01:26 +08:00
hjzhangcm
1edfe81def fix codex warning issue:https://gitee.com/openharmony/ark_js_runtime/issues/I5EP42
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-06-29 15:51:01 +08:00
huangfeijie
bd15bec178 fix incorrect column number when exceptions happen
add SAVE_PC() to avoid incorrect offset
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5E0HV

Signed-off-by: huangfeijie <huangfeijie@huawei.com>
2022-06-27 22:13:21 +08:00
openharmony_ci
6561159387
!1658 Refactor Entry frame
Merge pull request !1658 from 孙哲/master
2022-06-24 06:21:00 +00:00
sunzhe23
22d106e99e Refactor Entry Frame
description:
use js common entry refactor entry frame
align 16 for aarch64

issue: #I5DR75

Signed-off-by: sunzhe23 <sunzhe23@huawei.com>
2022-06-24 10:44:28 +08:00
getingke
f6f1d9678f fixed for aarch64 aot test case
Signed-off-by: getingke <getingke@huawei.com>
Change-Id: I04c74548641655d66fcb0f10041ab87d7b4bf868
2022-06-23 16:46:13 +08:00
getingke
9969417058 fixed for review by wuzhefeng
Signed-off-by: getingke <getingke@huawei.com>
Change-Id: I17859729a2fc2f2e951312e5cd4a21210e3a9024
2022-06-23 10:08:12 +08:00
getingke
d7d8fb03a5 fixed for aarch64 aot test case
Signed-off-by: getingke <getingke@huawei.com>
Change-Id: I17fe5a44b06d351d11fb02b77e375f9c9d54df17
2022-06-22 15:09:18 +08:00
wengchangcheng
cc184ba66c Descriptor: delete some internal unused code
details: delete unused code
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5COHE

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I5fe62c58353839d4aac1144fc99e2cf87f4374eb
2022-06-17 23:03:42 +08:00
songzhengchao
2d4ed1ac84 Merge remote-tracking branch 'szc/FrameHandler2'
Change-Id: Icd0e4b9895cf1ecba52d1a6e39566fe0c93a3ae9
2022-06-16 16:52:49 +08:00
songzhengchao
083984ed9d Frame Handler refactor
Frame Handler directly operate frame(set
callsitesp/returnAddr/getPrevFrame,etc) which is hard to maintain.
Frames are operated by FrameIterator.
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I5CKVR?from=project-issue

Change-Id: Iba1c44c1ab1afec8b5bea0111f4e986b47cc8bc4
Signed-off-by: songzhengchao <songzhengchao@huawei.com>
2022-06-16 14:41:44 +08:00
openharmony_ci
90ebfae1d8
!1587 modify newobjDynrange to remove the flag "IsBuiltinsConstructor"
Merge pull request !1587 from fanshengli/newObj
2022-06-16 04:08:06 +00:00
lifansheng
0226887986 issue:I5C5EG
modify newobjDynrange to remove the flag "IsBuiltinsConstructor"

Signed-off-by: lifansheng <lifansheng1@huawei.com>
Change-Id: Ic94b8ba77a0ebaf121f2942238435a9da5917287
2022-06-15 14:54:18 +08:00
yingguofeng@huawei.com
4d18ed01b0 Description:Native Memory Leak or error
Issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5C883?from=project-issue
Change-Id: I3cdf41f9292fccb9a7e1164babc30cf77e6ac163
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2022-06-15 10:59:47 +08:00
openharmony_ci
93004221d0
!1560 Refactor Frame Iterator
Merge pull request !1560 from songzhengchao/FrameHandler
2022-06-14 13:55:33 +00:00
songzhengchao
a8847d7c19 Code review
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I5BSW4

Signed-off-by: songzhengchao <songzhengchao@huawei.com>
Change-Id: I7b822d9bf29d5978f3fdaab4f7aee103421319d4
2022-06-14 16:02:10 +08:00
songzhengchao
770c193286 Merge branch 'master' of gitee.com:openharmony/ark_js_runtime
Change-Id: I92c67c8e0c106177b9ae2ec3ea2aa31247c35023
2022-06-14 11:04:48 +08:00
lichenshuai
7b67384b9c Fix SingleStepDebugging Bug
Correct the offset of SingleStepDebugging. Return sp in JumpToCInterpreter instead of pc.

Issue: #I5BIJG

Signed-off-by: lichenshuai <lichenshuai@huawei.com>
Change-Id: I1dcfab10b8244a874838434df8c1ea8935d71d84
2022-06-14 11:02:41 +08:00
songzhengchao
d8434ca48f Refactor Frame and add Iterator
The background of the problems is as follows:
1 Current iterator current Frame, visit previous Frame stackmap, it's hard to understand.
2 refactor llvm_stackmap_parser
3 refactor frameHandler, we should provider iterator to visit frame.

The solution of the problems is as follows:
1 FrameHandler Ietrator only visit current Frame stackmap
2 In the future, multiple vm may be existed such as multiple worker.while llvm_stackmap_parser is singleton which is not good, each vm should have one stackmap.
3. refactor frame add FrameIterator to visit frame

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

Signed-off-by: songzhengchao <songzhengchao@huawei.com>
Change-Id: I65988624ef42a28788a5268d898e37ebf752c901
2022-06-14 10:15:33 +08:00
songzhengchao
3710eb0946 Merge branch 'master' of gitee.com:openharmony/ark_js_runtime
Change-Id: Icab22a5939f3a284f016e147614eb83784a0ec48
2022-06-13 19:12:43 +08:00
zhangyukun
fce035101e adapt newobjdynrange on arm64
1. fix getthis on x64
2. adapt optimization of newobjdynrange on arm64
3. add bridge frame to support GC of setter and getter

Issue:https://gitee.com/openharmony/ark_js_runtime/issues/I5BNC7?from=project-issue

Signed-off-by: zhangyukun <zhangyukun8@huawei.com>
Change-Id: I09c5fc89b2486d0b9988d9bef0af65f77dc2f684
2022-06-12 16:54:24 +08:00
songzhengchao
d45b3095fc refactor frameHandler
refactor frame add FrameIterator to visit frame

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

Signed-off-by: songzhengchao <songzhengchao@huawei.com>
Change-Id: Ieb408a2334098043e504a8527aac008b8d0181a1
2022-06-11 20:47:30 +08:00
xujie
81a69cf09f TSAOT Exception Handler
1. Throw JS exception in tsaot
2. Print bcoffset when occur JS exception

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

Signed-off-by: xujie <xujie101@huawei.com>
Change-Id: I046d76c092a399354ddcdedd859f0c1e622387c2
2022-06-11 16:36:16 +08:00
songzhengchao
90c8e7b84f refactor llvm_stackmap_parser
In the future, multiple vm may be existed such as multiple worker.each
vm should have one stackmap, while llvm_stackmap_parser is singleton
which is not good.

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

Signed-off-by: songzhengchao <songzhengchao@huawei.com>
Change-Id: I7501c656f27a2fd34225928079f23a196e7f0bbf
2022-06-11 14:22:00 +08:00
songzhengchao
b0667677b3 Refactor FrameHandler Iterator
1 FrameHandler Ietrator only visit current Frame stackmap

issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5BSW4?from=project-issue
Signed-off-by: songzhengchao <songzhengchao@huawei.com>
Change-Id: Id05e57d9dd8c00ff91c596fc2cbb1feabe3aa4da
2022-06-11 11:40:04 +08:00
openharmony_ci
1dbcfc1e39
!1177 Require function realization
Merge pull request !1177 from DaiHN/require
2022-06-09 12:51:21 +00:00
sunzhe23
0959b86c63 Support stackless callnew for asm interpreter
description:
1 use JSCallDispatch implments call new
2 refactor js common call

issue: I5AKJU

Signed-off-by: sunzhe23 <sunzhe23@huawei.com>
2022-06-08 13:28:04 +08:00
DaiH
b41df503a1 Support CommonJS's module export function
------------------------------------------
    1. Support CommonJS's module export function
    2. Related test cases
    issue:https://gitee.com/openharmony/ark_js_runtime/issues/I5590V

Signed-off-by: DaiH <daihuina1@huawei.com>
Change-Id: I18968f6a6b971fbe833d91ef98813964cc8292c9
2022-06-08 10:59:06 +08:00
openharmony_ci
7f92cff8cb
!1345 Implement Prologue refactor and Add mulitple Optimized Frame In LLVM 12.0.1
Merge pull request !1345 from songzhengchao/optimizedjsfunction
2022-06-07 13:49:24 +00:00
songzhengchao
a229ee9927 Revert "debug"
This reverts commit 4e5c0d0ae9.

Signed-off-by: songzhengchao <songzhengchao@huawei.com>
Change-Id: Iafb4e81981e7b3eef79672684aa4dfc8e75f791a
2022-06-07 15:57:19 +08:00
Rtangyu
397cd9279d JS stack printing supports native method pointer printing
Implement JS stack printing and support native method pointer printing

issue:https://gitee.com/openharmony/arkui_napi/issues/I5AOZC

Signed-off-by: Rtangyu <rentangyu@huawei.com>
2022-06-07 14:33:17 +08:00
songzhengchao
dbd0a2c394 Merge remote-tracking branch 'szc/optimizedjsfunction'
Change-Id: I3451ce3ba039c43f4cebedbc6d5636bbf70d234c
2022-06-07 14:22:34 +08:00
songzhengchao
4e5c0d0ae9 debug
Signed-off-by: songzhengchao <songzhengchao@huawei.com>
Change-Id: Ie19553066c5f038237c2f06b42dd2b2a64721a8e
2022-06-06 10:05:14 +08:00
openharmony_ci
4160543e13
!1409 Add Containers List And LinkedList
Merge pull request !1409 from chenqi/list1
2022-06-05 04:05:38 +00:00
songzhengchao
f74d22da93 bug fix framehander should update optimizedReturnAddr_
Signed-off-by: songzhengchao <songzhengchao@huawei.com>
Change-Id: I78c1b054ca527f5fa3dd5f15a699114be9352ad3
2022-06-03 19:59:09 +08:00
songzhengchao
3d0305c4a7 Implement Prologue refactor and Add mulitple Optimized Frame In LLVM 12.0.1
1 refactor prologue reserve dynamic slots which is setted by LLVM IR
2 callsiteSp is calculated by current function's callee saved registers size
3 and Add mulitple Optimized Frame:
OPTIMIZED_JS_FUNCTION_FRAME:argv[n-1],..., argv[0], argc, ...., returnaddr, Fp, type. this frame need to visit args and stackmap.
OPTIMIZED_ASM_FRAME: jscall/jsentry construct frame which is implemented by assemble, this frame is only link to previou frame, it don't need to visit args and stackmap

4 stackmap support parse const pool and llvm patch add deopt interface LLVMBuildCall3

issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5AJ9U
Signed-off-by: songzhengchao <songzhengchao@huawei.com>
Change-Id: Ie6a0067169805cc6043ea94936dd578489b56c7b
2022-06-03 15:51:19 +08:00
chenqi
3bc6dcb731 Add Containers List And LinkedList
Description
    1.To ensure the high performance of container classes, List and LinkedList is provided in ark.
    2.modify Copyright 2021->2022.
    3.fix containers.
Related issue
    #I58XA9:Add Containers List And LinkedList.

Signed-off-by: chenqi <chenqi151@huawei.com>
2022-06-02 17:02:40 +08:00
lichenshuai
077f38f689 Delete RSP macro and .S file
Rsp is used in future work, therefore .S file should be deleted.

Issue: #I5AGW3

Signed-off-by: lichenshuai <lichenshuai@huawei.com>
Change-Id: Ib1fb140d40d259bc4519fbf547857e5f80e9ee0c
2022-06-02 10:32:46 +08:00
openharmony_ci
f47b38267d
!1440 add getter/setter
Merge pull request !1440 from 孙哲/master
2022-05-30 09:33:42 +00:00
sunzhe23
bf194f4c07 Refactor JSCall Dispatcher and implments asm getter/setter
description:
1 Refactor Call Dispatcher, and Regactor common call
2 use circuit IR implments getter/setter

issue: I59POB

Signed-off-by: sunzhe23 <sunzhe23@huawei.com>
2022-05-30 16:14:30 +08:00
lichenshuai
9da5487c49 Fix C Interpreter Bug When Enabling rsp
Add case when ECMASCRIPT_ENABLE_ASM_INTERPRETER_RSP_STACK is true and asm-interpreter is false.

Issue: #I59UEB

Signed-off-by: lichenshuai <lichenshuai@huawei.com>
Change-Id: Ib0eb125dfdc7e0cdc34109fe810efd48861d443c
2022-05-30 10:16:13 +08:00
luochuhao
fee924816d Add multi-abc-file support in stub compiler and aot compiler and related adaptation.
Use methodId of func in pandafile as index for each aot func in llvmModule.

Issue: https://gitee.com/openharmony/ark_js_runtime/issues/I598P5
Signed-off-by: luochuhao <luochuhao@huawei.com>
Change-Id: I9646d6a80c8138744ebbd617837550b4661f27d3
2022-05-29 16:59:27 +08:00
openharmony_ci
c406247184
!1398 fix some asm interpreter bug
Merge pull request !1398 from 孙哲/master
2022-05-24 12:22:48 +00:00
sunzhe23
c18a83dbcc Fix some asm interpreter bug
description:
1 add align up for rodata section, incase movdqa crash
2 set gc leaf function attribute for no gc all
3 fix mega ic run slowpath bug for asm interpreter
4 remove trampoline unused code

issue: #I58VFA

Signed-off-by: sunzhe23 <sunzhe23@huawei.com>
2022-05-24 19:36:38 +08:00
openharmony_ci
bf4c21cb25
!1395 Add Container Vector
Merge pull request !1395 from shisan_forwork/push_vector
2022-05-23 14:57:23 +00:00
shisan_forwork
63d3929b97 Add Container Vector
Description
   To ensure the high performance of container classes, vector is
   provided in ark.
Related issue
   #I4XCD9:add container vector

Signed-off-by: shisan_forwork <chengjunxiong@huawei.com>
2022-05-23 20:40:25 +08:00
openharmony_ci
85145c4f22
!1376 Fix 262 of rsp on x64
Merge pull request !1376 from zhangyukun8/master
2022-05-23 11:24:51 +00:00
zhangyukun
c82c88f515 Fix 262 of rsp on x64
1. skip builtin frame and asm interpreter entry frame when upframe
2. skip push args when argc is 0
3. check thread exception, rather not ret value
4. deal with fp when entry Execute
5. deal with call class Constructor
Issue:https://gitee.com/openharmony/ark_js_runtime/issues/I58I4H?from=project-issue

Signed-off-by: zhangyukun <zhangyukun8@huawei.com>
Change-Id: I874f1437d5d21a8cf50a8d9ca73d7a92007f1bab
2022-05-23 18:42:48 +08:00
openharmony_ci
c2e407d694
!1392 optimize ExecuteNative frame
Merge pull request !1392 from guobingbing/master
2022-05-23 09:30:58 +00:00
g00416891
2ad3adbc2a optimize ExecuteNative frame
Change-Id: I2431fb150c160d8dc51d20a8dcc7ace74e09aa5b
Signed-off-by: g00416891 <guobingbing3@huawei.com>
2022-05-23 15:22:18 +08:00
lichenshuai
2979c406d0 Fix TDD yieldstarAsmAction debug
LeaveFrame is set in the frame chain when GeneratorReEnterInterpreter().

Issue: #I58L31

Signed-off-by: lichenshuai <lichenshuai@huawei.com>
Change-Id: Iefe795fa255419eced137fb67da877924854f04a
2022-05-23 09:19:14 +08:00
openharmony_ci
3ef323fe6e
!1253 Js TypeArray optimization
Merge pull request !1253 from xliu/test
2022-05-22 02:33:14 +00:00
openharmony_ci
fac603f0ec
!1381 modify stream and add switch of enable_dump_in_faultlog
Merge pull request !1381 from changcheng/modify_stream
2022-05-21 11:45:21 +00:00
xliu
3669288c00 Js TypeArray optimization
Description
  1. Add number check in CanonicalNumericIndexString;
  2. modif GetProperty, SetProperty, DeleteProperty,
     DefineOwnProperty,GetOwnProperty,HasProperty
  3. Add FastPath in TypeArray.
  4. Refactor TypeArray ArrayLength, ByteOffset, ByteLength
  5. Add test for TypeArray.
Issue:
  #I56S75:Js TypeArray optimization

Signed-off-by: xliu <liuxin259@huawei.com>
Change-Id: I68dd973269eb0bab284e7b97e0b8bf93e5aee1a2
2022-05-21 18:15:02 +08:00
wengchangcheng
4aa58c6ba0 Descriptor: modify stream and add switch of enable_dump_in_faultlog
details:
1. call EndOfStream after WriteChunk
2. add switch of enable_dump_in_faultlog
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I58KLM

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I1c9b26873eae47f8e9e5788cd7a477f32738efc9
2022-05-21 16:37:04 +08:00
openharmony_ci
b8b64441ab
!1371 Fix ark_asm_test debug
Merge pull request !1371 from 李晨帅/master
2022-05-21 05:49:06 +00:00
openharmony_ci
6c9aad584c
!1379 modify taggedvalue encode
Merge pull request !1379 from wpy111/master
2022-05-21 04:40:02 +00:00
wupengyong
faf92259ac reason:performance optimization
description:optimize taggedvalue encode
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I55ZVP?from=project-issue

Signed-off-by: wupengyong <wupengyong@huawei.com>
Change-Id: I747a60f5ea7348d3b0cfc041a3b010c52b1517c0
2022-05-21 09:33:44 +08:00
lichenshuai
36148cad5c Fix ark_asm_test debug
Some TDD tests in ark_asm_test (e.g. asyncAsmAction) will fail in debug mode. This needs to be fixed.

Issue: #I58ESB

Signed-off-by: lichenshuai <lichenshuai@huawei.com>
Change-Id: Iaf533876f8e69eef9695306bb295065eeb17bfba
2022-05-20 16:50:24 +08:00
hjzhangcm
9c4313a1f5 add test case for JSLocale and modify the file where the ICU configuration is located
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-05-19 11:36:54 +08:00
openharmony_ci
15fdadd8c7
!1319 add generator rsp
Merge pull request !1319 from wanghuan2022/master
2022-05-18 09:19:05 +00:00
wanghuan
b750c82893 add generator rsp
desc:add generator rsp

solu:change GeneratorReEnterInterpreter function to assembler rsp

issue: https://gitee.com/openharmony/ark_js_runtime/issues/I57M3Q
Signed-off-by: wanghuan <wanghuan80@huawei.com>
Change-Id: I66e3cdae7a89a8f48a42d126a4541b25ab2a6923
2022-05-18 14:33:56 +08:00
wengchangcheng
57917a48ec Descriptor: crash when death cycle
details: add default branch when frame type error
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I57Y8Q

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I857076e33f6b30d4fede33edf7e058cfba39b22f
2022-05-17 22:51:14 +08:00
openharmony_ci
239346727f
!1335 Fix asyncAsmAction TDD
Merge pull request !1335 from 李晨帅/master
2022-05-17 13:14:28 +00:00
openharmony_ci
bf716392b7
!1343 Fix rsp frame of x64
Merge pull request !1343 from zhangyukun8/master
2022-05-17 13:11:18 +00:00
zhangyukun
5a6c197a42 Fix rsp frame of x64
1. Fix constructing builtin entry frame
2. Fix push argc
Issue:https://gitee.com/openharmony/ark_js_runtime/issues/I57XTS?from=project-issue

Signed-off-by: zhangyukun <zhangyukun8@huawei.com>
Change-Id: If300c905a65a6fee7436963accf7173fe8047944
2022-05-17 19:56:29 +08:00
ding
574d8ca344 Fix aot newobjdynrange, Add relevant testcase, Some aot Refactor
1.Fix aot newobjdynrange by call JSFunction::Construct.

2.Add native new test case(new non-native constructor depends on
`defineclass`).

3.Add StackAssertScope in debug mode.

4.Delete retired `call` code in runtime_stubs.

5.Refactor GetArg from macros to inline function in RuntimeStubs.

Signed-off-by: ding <dingding5@huawei.com>
Change-Id: Ic89b98af11f2e2fc97aaeba1704d27a95d2c0c7b
2022-05-17 15:49:53 +08:00
lichenshuai
a49a700b77 Fix asyncAsmAction TDD
The TDD asyncAsmAction will fail when run. It needs to be fixed.

Issue: #I57UY6

Signed-off-by: lichenshuai <lichenshuai@huawei.com>
Change-Id: Ie80755f9bc13d4fe1dd83d413ac71323c753b7f7
2022-05-17 15:41:23 +08:00
zhangyukun
32ddb98d78 Fix rsp frame callnative and generator
1. adaptor GetNumArgs
2. fix callnative irange
Issue:https://gitee.com/openharmony/ark_js_runtime/issues/I57PDZ?from=project-issue

Signed-off-by: zhangyukun <zhangyukun8@huawei.com>
Change-Id: Ib9a07e2e05fae93eb169e69e79f0c91acca37600
2022-05-16 21:08:38 +08:00
openharmony_ci
4319cd6804
!1310 fix frame handler preinterpreted frame bug
Merge pull request !1310 from 孙哲/master
2022-05-16 06:16:42 +00:00
sunzhe23
6182223898 Fix frame handler preInterpretedFrame bug
description:
preInterpretedFrame should skip non-interpreted frame first

issue: I57JNT

Signed-off-by: sunzhe23 <sunzhe23@huawei.com>
2022-05-15 22:28:16 -07:00
zhangyukun
903a0cd046 Impl rsp frame of generator
1. Resume rsp of SuspendGenerator
2. Remove duplicated stack frame switching of ChangeGenContext and
ResumeContext
Issue:https://gitee.com/openharmony/ark_js_runtime/issues/I57IXJ?from=project-issue

Signed-off-by: zhangyukun <zhangyukun8@huawei.com>
Change-Id: I3a86c645864ec73f5dd351882125b4ee721b5468
2022-05-16 09:18:47 +08:00
openharmony_ci
e565046c8c
!1269 Refactor asm interpreter call native
Merge pull request !1269 from 孙哲/master
2022-05-14 01:35:19 +00:00
sunzhe23
cd6eee5deb Refactor asm interpreter call native
description:
use builtin frame refactor call native

issue: #I573S8

Signed-off-by: sunzhe23 <sunzhe23@huawei.com>
2022-05-13 05:12:06 -07:00
openharmony_ci
317f400401
!1283 fix debug UT bug
Merge pull request !1283 from guobingbing/master
2022-05-13 06:13:08 +00:00
g00416891
f9b0dba94d fix debug UT test,remove assert before create InterpretedEntryFrame
Signed-off-by: g00416891 <guobingbing3@huawei.com>
Change-Id: I249022de7ddf8c6d3217412a8fd3543e7efe55ae
2022-05-13 11:24:14 +08:00
openharmony_ci
ea511d9c0e
!1271 exception handler supports rsp frame
Merge pull request !1271 from zhangyukun8/master
2022-05-13 03:01:45 +00:00
openharmony_ci
efabb87737
!1275 bigint fix gc bug
Merge pull request !1275 from zhangyouyou/master
2022-05-13 01:18:09 +00:00
zhangyouyou
26f8247f75 https://gitee.com/openharmony/ark_js_runtime/issues/I5747Z
Signed-off-by: zhangyouyou <zhangyouyou2@huawei.com>
2022-05-12 21:17:40 +08:00
zhangyukun
0090c76823 exception handler supports rsp frame
1.add lastFp_ into GlueData to restore rsp in exception handler
2.add AsmInterpreterEntryFrame to exit Execute when use rsp
Issue:https://gitee.com/openharmony/ark_js_runtime/issues/I5733D?from=project-issue
Signed-off-by: zhangyukun <zhangyukun8@huawei.com>

Change-Id: Ia3c9301f3854b7d9cfb46dabbae82186b86348a3
2022-05-12 20:44:21 +08:00
guobingbing
a066f70986 modify annotation of InterpretedFrame
Signed-off-by: guobingbing <guobingbing3@huawei.com>
Change-Id: I1deb88080eb89e27252629d8501005d49fe76adf
2022-05-12 10:22:18 +08:00
hjzhangcm
180c9a3223 fix codeCheck warning
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
Change-Id: Ie8ccede04ab2a7771439657fd8166b39c9dd0e4e
2022-05-12 09:50:21 +08:00
guobingbing
e05eb6eae4 fix frame handler cached function & pc bug
Signed-off-by: guobingbing <guobingbing3@huawei.com>
Change-Id: Icf4a8ae482fb0bfde28282050876ca33b72d2c6d
2022-05-10 20:33:27 +08:00
zhangyukun
9d9cf46ce1 Fix assembler rsp frame of x64 platform
1.Fix Andq error due to sign-extended of imm32
2.Enable asmInter option should be loaded before init stack
3.separate leave frame with interpreter frame
Issue:https://gitee.com/openharmony/ark_js_runtime/issues/I56IZ4?from=project-issue

Signed-off-by: zhangyukun <zhangyukun8@huawei.com>
Change-Id: I7bb4b5de71aab7dc8c6b657c70f97d738ebe1c2e
2022-05-10 10:18:14 +08:00
sunzhe23
91188e72df Refactor asm interpreted frame
description:
1 remove macro ECMASCRIPT_COMPILE_ASM_INTERPRETER
2 add asm native frame type

issue: I569XH

Signed-off-by: sunzhe23 <sunzhe23@huawei.com>
2022-05-08 20:40:24 -07:00
zhangyukun
4b39ba412b constuct entry frame of execute with rsp
1. add fp to support discontinuous frame gc and resume rsp
2. assemble execute and impl entry frame with rsp
3. use assembler to refactor .s
Issue:https://gitee.com/openharmony/ark_js_runtime/issues/I52BQE?from=project-issue

Signed-off-by: zhangyukun <zhangyukun8@huawei.com>
Change-Id: I6966672dc065d63144fe7fa145ab76571189d540
2022-05-07 14:13:50 +08:00
yingguofeng@huawei.com
036fad61fb multi vm bugfix
https://gitee.com/openharmony/ark_js_runtime/issues/I564M2?from=project-issue

Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
Change-Id: I9b2d1bcd1ebadea2fcdcff34a595907cb896dbb0
2022-05-06 18:17:08 +08:00
openharmony_ci
f5a5ee3062
!1214 Fix test262 new-symbol-with-super-throws.js fail
Merge pull request !1214 from dingding/fix_test262
2022-05-06 07:17:25 +00:00
yingguofeng@huawei.com
3f839d2633 Setter/Getter Optimization
1、std::array copy construction has high performance overhead,
2、Class is transferred to dictionary after adding getter and setter, resulting in IC failure

https://gitee.com/openharmony/ark_js_runtime/issues/I55EFB?from=project-issue

500000 getter: 170ms > 105ms

Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
Change-Id: Ia08f22df798a3c3a2f6fafb6401c802e3af3c63b
2022-05-06 14:17:02 +08:00
ding
232563d53b Fix test262 new-symbol-with-super-throws.js fail
The failure was due to SuperCall and FrameHandler modification at same
time. Need extra adapation.

Signed-off-by: ding <dingding5@huawei.com>
Change-Id: Id86614a694aa871f8a6ed43531b5b69059c453ba
2022-05-06 12:22:40 +08:00
openharmony_ci
0fdd7d3515
!1202 modify JSTaggedValue which disconnect TaggedValue inheritance
Merge pull request !1202 from fanshengli/disconnet_taggedValue
2022-05-06 00:42:48 +00:00
hjzhangcm
d0b3e4d607 fix codex waring
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-05-05 17:03:02 +08:00
lifansheng
1b578eb240 issue:I55TH8
modify JSTaggedValue which disconnect TaggedValue inheritance

Signed-off-by: lifansheng <lifansheng1@huawei.com>
Change-Id: I13b990baf5284e58e83ab6b14847df076f42bed8
2022-05-05 16:54:26 +08:00
openharmony_ci
96c5cbeb01
!1195 Stackless SuperCall
Merge pull request !1195 from dingding/stackless_supercall
2022-05-05 06:56:39 +00:00
openharmony_ci
16d377c96a
!1188 refactor class FrameHandler
Merge pull request !1188 from guobingbing/optimize
2022-05-04 07:24:17 +00:00
guobingbing
9bef6eef18 refactor class FrameHandler
Signed-off-by: guobingbing <guobingbing3@huawei.com>
Change-Id: I9f3ff0c04d34a31a34f21da637689eb61d4166f1
2022-05-04 10:36:44 +08:00
ding
600264d99f Stackless SuperCall
Stackless refactor `supercall`, speed up it in some fast situation by
reducing re-enter interpreter.

Signed-off-by: ding <dingding5@huawei.com>
Change-Id: I86154b5feeeac41c01699fa0797689e5c7d00e35
2022-05-02 17:03:27 +08:00
openharmony_ci
fc582ec959
!1155 Refactor the GC related components - Part 4
Merge pull request !1155 from klooer/master
2022-04-30 09:45:48 +00:00
openharmony_ci
8be56f5025
!1186 Extend Fast-new with CallType has NewTarget
Merge pull request !1186 from dingding/extend_fast_new
2022-04-30 05:08:18 +00:00
ding
3b16eddbda Extend Fast-new with CallType has NewTarget
Extend fast-new with callType has NewTarget, to speed up calendar application.

Signed-off-by: ding <dingding5@huawei.com>
Change-Id: I716c6992cf98e2835b1906c61d872ae3496d6db1
2022-04-29 15:36:02 +08:00
xujie
705b68e61f Add TS Aot Test Cases And Bugfix
1. Add test cases for add, inc, dec, typeof, strictequal, strictnotequal,
   delobjprop, stobjbyname instructions.
2. fix GC bug and getunmappedargs trampolinefunction bug.
3. Uniform variable decoration style.

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

Signed-off-by: xujie <xujie101@huawei.com>
Change-Id: Ibd99496c01f3c2e38258585ff08384c37f786deb
2022-04-29 14:16:04 +08:00
openharmony_ci
41b869f4dc
!1167 move interpreter helper stubs from common stub to bc stub
Merge pull request !1167 from wanghuan2022/master
2022-04-29 03:35:18 +00:00
openharmony_ci
55857d6209
!1174 delete object_xray-inl.h, move into object_xray.h and create visitor.h
Merge pull request !1174 from zhaozhibo/master
2022-04-29 02:00:06 +00:00
zhaozhibo
2c7f6ff4fa delete object_xray-inl.h, move into object_xray.h and create visitor.h
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-04-28 21:25:51 +08:00
wanghuan
59d4874e0b move interpreter helper stubs from common stub to bc stub
desc: move interpreter helper stubs from common stub to bc stub, beacuse these stubs' signatures are the same and need not construct frame pointer like bc stub.

solu:
1. delete old helper stub define in common stub, and add new helper stub define in bc stub.
2. add new targetKind in CallSignature to distinguish helper and normal stub in loading stub.
3. delete argc in stub define.

issue: https://gitee.com/openharmony/ark_js_runtime/issues/I556K1
Signed-off-by: wanghuan <wanghuan80@huawei.com>
Change-Id: I46224e4568b45794aa1bac97682afc41696d5faa
2022-04-28 21:14:18 +08:00
openharmony_ci
f83919d735
!1158 Fix CallNative GC bug for asm Interpreter
Merge pull request !1158 from 孙哲/master
2022-04-28 08:46:23 +00:00
Yuqiang Xian
674845ddca Tidy-up Heap class; re-organize the public methods by categories and add descriptions.
Issue: https://gitee.com/openharmony/ark_js_runtime/issues/I551ZU

Signed-off-by: Yuqiang Xian <xianyuqiang@huawei.com>
2022-04-28 16:10:59 +08:00
sunzhe23
5c181882ee BugFix for callNative's leave frame
description:
callNative build the wrong leave frame, witch will case gc crashed

issue: I55401

Signed-off-by: sunzhe23 <sunzhe23@huawei.com>
2022-04-27 20:04:19 -07:00
xiongluo
6e4af76501 refactor the uint fileds in jsmethod
1. make bytecodeArraySize, hotnessCounter, methodId, slotSize into one field methodField.
2. change the interpreter_stub to fit the hotness counter in jsmethod.
3. fix the fail problem of mem controller test.
4. Adjust the timeout value of uinittest

Signed-off-by: xiongluo <xiongluo@huawei.com>
2022-04-27 02:43:40 -10:00
openharmony_ci
2c0c759481
!1143 get prev interpreted frame of entry frame
Merge pull request !1143 from guobingbing/adapter-asm
2022-04-26 09:34:00 +00:00
openharmony_ci
37fa9b70eb
!1085 add asmInter Debugger
Merge pull request !1085 from wanghuan2022/master
2022-04-26 08:06:13 +00:00
guobingbing
0e6a964129 get prev interpreted frame of entry frame
Signed-off-by: guobingbing <guobingbing3@huawei.com>
Change-Id: I6ed03ae55878790d4576499515a5973a700cd1ff
2022-04-26 15:59:03 +08:00
openharmony_ci
795228786a
!1125 Fix Asyncfunction Reject
Merge pull request !1125 from xliu/test_master
2022-04-25 13:41:38 +00:00
wanghuan
3418f48a99 add asmInter Debugger
desc: add asmInter debugger to support ide debug.

solu:
1.add bc debugger stub entry;
2.check is or not debug mode in runInternal and switch release to debug or debug to release.

issue: https://gitee.com/openharmony/ark_js_runtime/issues/I53Z4V
Signed-off-by: wanghuan <wanghuan80@huawei.com>
Change-Id: I3f61bed8b4e17c43d22b5e6f103fe897cd8b41c1
2022-04-25 21:38:27 +08:00
openharmony_ci
10df7b2d21
!1119 Support calculate callsite sp for interpreter frame
Merge pull request !1119 from 孙哲/master
2022-04-25 12:06:25 +00:00
openharmony_ci
874834928f
!1118 fix codex waring【part 2】
Merge pull request !1118 from zhaozhibo/master
2022-04-25 10:09:31 +00:00
sunzhe23
5b1c57291d Support calculate callsite sp for asm Interpreter
description:
Add SaveCurrentFrame for interpreter handler call stub and
get get callsite sp when gc run

issue: I54IMV

Signed-off-by: sunzhe23 <sunzhe23@huawei.com>
2022-04-25 01:03:33 -07:00
xliu
44e83a251e Fix Asyncfunction Reject
Description
  Update the value of ACC to the value returned by reject
Issue:
  #I54KKQ:Fix Asyncfunction Reject

Signed-off-by: xliu <liuxin259@huawei.com>
Change-Id: Ie4916e08091d31002f581d5f0c4e80d11fb2cbe6
2022-04-25 15:08:15 +08:00
zhaozhibo
2573042319 fix codex warning
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-04-25 14:33:01 +08:00
luochuhao
42e13f263a First run of an TSAOT-define function Demo.
Record idx in const pool of aot function in llvmmodule and aotcodeinfo.

Tweak code in circuit builder for slowpath lowering scenario where
constpool is null.

New JSFunction object for main function in AOT file and new JSFunction object
for each defined function in lowerDefineFuncDyn.

Fix bug in call.S after JSMethod refactor.

Issue: https://gitee.com/openharmony/ark_js_runtime/issues/I545X0
Signed-off-by: luochuhao <luochuhao@huawei.com>
Change-Id: Ie6448f8740caddf79c3b9ed3385ba5739c7eb76b
2022-04-25 12:00:12 +08:00
openharmony_ci
7cbbb8a243
!1093 Delete useless code dependencies.
Merge pull request !1093 from yingguofeng/mmap
2022-04-24 16:26:56 +00:00
openharmony_ci
1627729df9
!1112 remove prevSp in EcmaRuntimeCallInfo
Merge pull request !1112 from guobingbing/optimize
2022-04-24 11:43:40 +00:00
guobingbing
caa05ba83a remove prevSp in EcmaRuntimeCallInfo
Signed-off-by: guobingbing <guobingbing3@huawei.com>
Change-Id: I3a3517cc8712baa6eef76f85a9967dd95a085bbc
2022-04-24 19:04:24 +08:00
openharmony_ci
36499b4aaf
!1098 debugger refactor
Merge pull request !1098 from Gymee/perf_tune
2022-04-24 11:02:16 +00:00
yingguofeng@huawei.com
5037c8aac6 Delete useless code dependencies
To reduce 'libark_ jsruntime.so' ROM size, delete useless code dependencies.

https://gitee.com/openharmony/ark_js_runtime/issues/I541H4?from=project-issue

Profit: libark_jsruntime.so size reduce from 3455(kb) to 2001(kb)

Change-Id: Ie7430fca6f539c9baff1f4aae7942da6fc9ef135
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2022-04-24 18:02:32 +08:00
sunzhe23
c589aa831e Refactor leave&entry frame
issue: #I541LG

Signed-off-by: sunzhe23 <sunzhe23@huawei.com>
2022-04-23 23:35:51 -07:00
Gymee
af906dbdd5 debugger refactor
Change-Id: Idff2f871926a3893b5bd962f13b4a10c39f9f6d9
Signed-off-by: Gymee <yumeijie@huawei.com>
2022-04-24 11:35:13 +08:00
wengchangcheng
7ee32938a3 Descriptor: enable testcase with ecmavm instead of runtime
details:
1. add debugger module testcase in host
2. fix debugger crash when throw exception in interpreter
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I53WBO

Change-Id: Ia7d878b0b81c011d940a9187d39c854f6a592e6d
Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
2022-04-22 20:42:16 +08:00
guobingbing
c17cbca166 add copyright for test file.
Signed-off-by: guobingbing <guobingbing3@huawei.com>
Change-Id: I76f92afb097516f78b505d3d2a349f38cd9d4d20
2022-04-22 10:58:23 +08:00
openharmony_ci
d65af5cf49
!1024 check return use pc instead of FrameType
Merge pull request !1024 from guobingbing/master
2022-04-21 13:32:40 +00:00
xiongluo
727b20b57e refactor jsMethod
1. Move necessary fileds in jsMethod
2. Make jsMethod inherit aligned struct
3. Change some function names for easy reading

Signed-off-by: xiongluo <xiongluo@huawei.com>
2022-04-20 23:17:00 -10:00
guobingbing
2aa8816a83 check return use pc instead of FrameType
Signed-off-by: guobingbing <guobingbing3@huawei.com>
Change-Id: I628701d6ad08b7a6dbbf762383f198b25c403930
2022-04-21 16:21:35 +08:00
openharmony_ci
1c5ffba92a
!1054 delete c-interpreter call common stub
Merge pull request !1054 from songzhengchao/code0419
2022-04-21 07:05:37 +00:00
lichenshuai
8b9fa810c5 Fix asm entry frame bug
Set leave frame to nullptr before Execute() and restore it after that to avoid endless loop.

Issue: #I53HAD

Signed-off-by: lichenshuai <lichenshuai@huawei.com>
Change-Id: Ib9504519c33932d4e0c7b0ad4a5a599a5564cbe0
2022-04-21 11:22:50 +08:00
guobingbing
c9b5d658c5 add DoStackOverflowCheck for app crash after reboot many times
Signed-off-by: guobingbing <guobingbing3@huawei.com>
Change-Id: I6b144c0b86b5c2b48bae8cf513d67e5e537eaf7b
2022-04-19 17:44:54 +08:00
songzhengchao
1dd4a6a18d delete c-interpreter call common stub
1 delete enable_stub_aot
2 commonstub frmeType modify from OPTIMIZED_ENTRY_FRAME to OPTIMIZED_FRAME

issue: https://gitee.com/openharmony/ark_js_runtime/issues/I53I2Z?from=project-issue
Signed-off-by: songzhengchao <songzhengchao@huawei.com>
Change-Id: Id3142775f8574c87a4659b78a9da8770f5b792bd
2022-04-19 15:51:22 +08:00
hjzhangcm
ee43201024 fix master warning
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-04-19 09:43:35 +08:00
openharmony_ci
b98a4f3547
!1029 Support watch expression and condtional breakpoint
Merge pull request !1029 from Gymee/feature_watch
2022-04-18 14:13:30 +00:00
Gymee
69094056b8 support watch expression and conditional breakpoint
Signed-off-by: Gymee <yumeijie@huawei.com>
Change-Id: I794a5ee770f251e6fea4de5058575519ff0490e6
2022-04-18 20:04:33 +08:00
songzhengchao
a979a3cff0 1 bug fix compile bc/common stub vm setup load stub
2 rename glue type POINTER TO NATIVE_POINTER
3 when function need call another js function, it will lowering to call "JSCall" trampoline function
JSCall trampoline function will check calltarget function, then correct the arguments, finally jump
the native or optimized code address of the target function.

JSCall(glue, argc, calltarget, ....)
then proxy call(glue, argc, callTarget, argv[])
        if proxy->GetHandler is function
            tail call JSCall(glue, argc, callTarget, argv); // consider performance
        else
            //Call(trap, handler, «target, thisArgument, argArray»)
            call CreateArrayFromList(glue, argc, argv[]) ---> arrHandle  // maybe trigger GC, construct OptimizedWithArgvLeaveFrame, visitor argv[0]..argv[argc-1]
            call JSCall(glue, argc, method, argv[])
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I52T6B?from=project-issue

Change-Id: I650ff10b35bc085ec81e7734ce35501ee23fbb62
2022-04-18 11:36:41 +08:00
songzhengchao
fe2aebc9af refactor llvm_ir_builder.cpp call
bug fix OptimizedWithArgvLeaveFrameHandler::Iterate bug

issue:https://gitee.com/openharmony/ark_js_runtime/issues/I52T6B?from=project-issue
Signed-off-by: songzhengchao <surpassgoodchao@qq.com>
2022-04-17 22:32:54 +08:00
zhaozhibo
4c106a7632 Merge branch 'master' of gitee.com:openharmony/ark_js_runtime into master 2022-04-17 07:24:50 +00:00
zhaozhibo
c239b44d80 fix codeDex warning(3)
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-04-17 15:23:43 +08:00
wengchangcheng
d9c9d6789f Descriptor: debugger refactor
details:
1. debugger refactor, don't use runtime debugger
2. fix debugger crash

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

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I08e3c86bf659b9e0a44d014d13b11462d50218b3
2022-04-17 01:16:26 +08:00
songzhengchao
4036b0598e Merge remote-tracking branch 'szc/proxy0413'
Signed-off-by: songzhengchao <songzhengchao@huawei.com>
Change-Id: I2a370b8803299c88109cbeb0f799acbdda53c2e9
2022-04-16 10:59:11 +08:00
guobingbing
aeacc821fa entry frame adapter asm
Signed-off-by: guobingbing <guobingbing3@huawei.com>
Change-Id: Ied740af77e0f770e01f948c86b5f13d4877672ad
2022-04-15 18:23:40 +08:00
songzhengchao
2eb673cbff Implement Proxy Lowering on x86
when function need call another js function, it will lowering to call "JSCall" trampoline function
JSCall trampoline function will check calltarget function, then correct the arguments, finally jump
the native or optimized code address of the target function.

JSCall(glue, argc, calltarget, ....)
then proxy call(glue, argc, callTarget, argv[])
        if proxy->GetHandler is function
            tail call JSCall(glue, argc, callTarget, argv); // consider performance
        else
            //Call(trap, handler, «target, thisArgument, argArray»)
            call CreateArrayFromList(glue, argc, argv[]) ---> arrHandle  // maybe trigger GC, construct OptimizedWithArgvLeaveFrame, visitor argv[0]..argv[argc-1]
            call JSCall(glue, argc, method, argv[])
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I52T6B?from=project-issue

Signed-off-by: songzhengchao <songzhengchao@huawei.com>
Change-Id: I994aae1eb9cbf51982348ae6e203c24c326f617e
2022-04-15 16:39:42 +08:00
openharmony_ci
6bcf45865a
!972 Add Container Plainarray
Merge pull request !972 from zhangjixing/container_plainarray
2022-04-15 06:54:59 +00:00
zhangjixing
eafc261ff6 Add Container Plainarray
Description
  To ensure the high performance of container classes, Plainarray is
   provided in ark.
Related issue
   #I4XXYA:Add Container Plainarray

Signed-off-by: zhangjixing <zhangjixing4@huawei.com>
2022-04-15 13:11:55 +08:00
ding
b018a9b0f2 Control whether to print compiler logs through JSRuntime Options
Add option log-compiled-methods to print the compiler(both stub and aot) in units of methods.

Add class CompilerLog.

Refactor some compiler logs.

Unie the log invoked way(COMPILER_LOG or COMPILER_OPTIONAL_LOG).

Signed-off-by: ding <dingding5@huawei.com>
Change-Id: I43ce61d0ba9d453713ab3e6349d07f6d9cde3e5e
2022-04-14 16:14:34 +08:00
openharmony_ci
f49d93278d
!988 fix codeDex warning.
Merge pull request !988 from zhaozhibo/master
2022-04-14 07:39:17 +00:00
zhaozhibo
34649fc073 Merge branch 'master' of gitee.com:openharmony/ark_js_runtime into master 2022-04-14 02:57:27 +00:00
zhaozhibo
cc222126ad fix codeDex warning.
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-04-14 10:56:51 +08:00
g00416891
e26de83f8b bugfix of two entry frame when have exception.
Signed-off-by: g00416891 <guobingbing3@huawei.com>
Change-Id: I904162cc60003bc28c59b7aca4c168ad88e55594
2022-04-13 19:53:15 +08:00
openharmony_ci
19634500ab
!986 modify shr and ashr handle
Merge pull request !986 from wanghuan2022/master
2022-04-13 03:51:13 +00:00
wengchangcheng
ec936d57e4 Descriptor: fix stack overflow
details:
1. increase stack size
2. modify check stack overflow error
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I52EUX

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: Ic5a3cf880288de8eb98b081f839679b8acef3026
2022-04-12 23:57:04 +08:00
wanghuan
6f545e31a7 modify shr and ashr handle
desc: shr should be unsigned right shift, and ashr should be signed right shift. But they are reversed. So modify them.

solu:
1. reverse shr and ashr handle
2. delete unused frameHandle

issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5292O
Signed-off-by: wanghuan <wanghuan80@huawei.com>
Change-Id: Ia329da8bf0ceaa80560601614b592bb448595a29
2022-04-12 16:44:41 +08:00
openharmony_ci
c92e6a6e19
!958 JSFunctionCall Trampoline
Merge pull request !958 from getingke/js_function_call_stub_formal
2022-04-11 14:03:09 +00:00
openharmony_ci
5f071a4724
!930 Fix long gc problem (18ms) in photos app
Merge pull request !930 from xiongluo/fix_long_gc_problem
2022-04-11 07:56:54 +00:00
getingke
937a6af1a6 JSFunction call have 4 scenariso:
1.JSFunction
	call native code when method is native
	jump to compiled code for aot JSFunction
	call asm interpreter entry for BC method
2. JSBoundFunction
	Bind Arguments for Bound target function, then recursive call this trampoline function.
3. JSProxy
	Call proxy's target jsfunction.
4. NonCallable
	Throw typerror exception.

issue https://gitee.com/openharmony/ark_js_runtime/issues/I51OWV?from=project-issue

Signed-off-by: getingke <getingke@huawei.com>
Change-Id: I85917e3cf1ffec0cc1e39de5fc20bd606947c968
2022-04-11 15:49:51 +08:00
xiongluo
f421f14e23 Fix long gc duration problem in photos app
Add handle scope to avoid the large number of root nodes.

Remove unnecessary handles in the critical path.

Adjust the parameters in gc to avoid multiple consecutive Old GCs.

Signed-off-by: xiongluo <xiongluo@huawei.com>
2022-04-10 20:45:15 -10:00
dingwen
1a2fdbb738 Add snapshot generation step for aot compiler and testing entry of aot compiled function.
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I4ZOXH
Signed-off-by: dingwen <dingwen6@huawei.com>

Change-Id: I2a52b06453f48407c418e57b3ce62e710042768b
2022-04-10 14:59:33 +08:00
Hailiang Hu
1dc39ca357 Add AOT Slowpath Lowering
Lowering for NEWLEXENVDYN, NEWLEXENVWITHNAMEDYN, POPLEXENVDYN.

Issue: I51VGS

Signed-off-by: Hailiang Hu <allenpas@huawei.com>
Change-Id: I001c7bd23c03d2dbc0a1647a652c289204a8dc92
2022-04-09 19:35:17 +08:00
xliu
bddb55c976 ObjectFactory New Ecmastring Rectification
Description
  1. There are many kinds of interfaces to construct ecmastring from objectfactory
     in the virtual machine, and the name is not clear, so it is complex to use;
  2. Some of the unchecked interfaces are prone to errors during use. If there is
     no compression where compression is required, unpredictable errors will occur.
Issue:
  #I4ZL7X: ObjectFactory New Ecmastring Rectification

Signed-off-by: xliu <liuxin259@huawei.com>
Change-Id: I856f4e2e1df62823d928d738fa35affa97dbd3ed
2022-04-09 10:34:11 +08:00
guobingbing
96190e252b FFI optimization for call params
Signed-off-by: guobingbing <guobingbing3@huawei.com>
Change-Id: I61b820e91b85364e4f41d35ca0172ad059a1b916
2022-04-07 21:13:46 +08:00
openharmony_ci
a6277d8a38
!948 [part-1] delete inl.h, move the definition to the declare head file
Merge pull request !948 from changcheng/fix_inl_head_files_part1
2022-04-07 11:30:16 +00:00
zhangyukun
8c65a79097 Add dispatch of call of x64 and construct frame with rsp in .S
1. use stub to dispatch fast,slow and native paths
2. use rsp to construct frame of x64
https://gitee.com/openharmony/ark_js_runtime/issues/I51G9L?from=project-issue
Signed-off-by: zhangyukun <zhangyukun8@huawei.com>
Change-Id: Ib80540df5dbe531f155e5dd9fce556a207171494

Change-Id: I31e6705dd5555a0c2a9070a7ce73b26f77caef80
2022-04-07 14:32:38 +08:00
wengchangcheng
8faa5f9abc [part-1] delete "*-inl.h" of newest codex rule
move the definition to the declare head file

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

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: Ieeb0ec96281cda51d0bebd6a2e771fc8d4078306
2022-04-07 14:14:49 +08:00
lichenshuai
2dd61d1d0d Enable Call Stub
Fixed Call Stub bug, Enable Call Stub and synchronize new stackless to interpreter_assembly.

Issue: #I51E2F

Signed-off-by: lichenshuai <lichenshuai@huawei.com>
Change-Id: I2116850e55bc651acc71bc1baa99aa2c4e1b578c
2022-04-06 20:00:22 +08:00
lichenshuai
cfc0b0b12f Add AsmInterpreterFrame
Add AsmInterpreterFrame for ASM.

Issue: #I4YF9X

Signed-off-by: lichenshuai <lichenshuai@huawei.com>
Change-Id: I4efc781a9fca90de4a0aed5b6a91a8122cfa16ab
2022-03-30 10:51:05 +08:00
openharmony_ci
1789e38335
!738 Add Container Deque And Container Stack
Merge pull request !738 from zhangjixing/deque_and_stack
2022-03-30 02:13:32 +00:00
zhangjixing
c6be465406 Add Container Deque And Stack
Description
  To ensure the high performance of container classes, Deque and Stack
  is provided in ark.
Related issue
  #I4X8GV:Add Container Deque And Stack

Signed-off-by: zhangjixing <zhangjixing4@huawei.com>
2022-03-29 18:13:38 +08:00
openharmony_ci
6761eb08d3
!883 Modify the JSHandle of ToNumeric function package
Merge pull request !883 from zhangyouyou/master
2022-03-29 06:41:14 +00:00
zhangyouyou
6df91bba00 add another version directly returning JSHandle to replace this JSTaggedValue::ToNumeric() in these callsites
issues: https://gitee.com/openharmony/ark_js_runtime/issues/I4ZIBP

Signed-off-by: zhangyouyou <zhangyouyou2@huawei.com>
2022-03-29 10:03:49 +08:00
openharmony_ci
38c11aa7d7
!882 add a unit-test for BuiltinsPluralRules and fix icu path
Merge pull request !882 from hjzhangcm/master
2022-03-28 14:53:13 +00:00
wanghuan
1f51d06e85 refactor load stub in jsthread
description: refactor load stub in jsthread

solution:
1.change bcstub、costub、rtstub's name;
2.refactor load stub code, encapsulate adjust bcstub function according define or option

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

Signed-off-by: wanghuan <wanghuan80@huawei.com>
Change-Id: I8ff0192ff2c20f1625b4dea124532e8b9a0aa3e0
2022-03-28 18:02:36 +08:00
hjzhangcm
1de87f4cf5 add test case for BuiltinsPluralRules
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-03-28 14:43:57 +08:00
openharmony_ci
ace85da215
!879 add Wextra and Werror in gn args
Merge pull request !879 from changcheng/add_gn_arg
2022-03-24 15:36:55 +00:00
wengchangcheng
99934b9037 add Wextra and Werror in gn args
1. add -Wextra and -Werror to check code format error
2. modify all compiler error

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

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: If5fdd1980494269b4c06bf1bb38a8eba7952adea
2022-03-24 21:45:19 +08:00
openharmony_ci
22103da85d
!871 Instruction interpreter codedex
Merge pull request !871 from zhangyouyou/master
2022-03-24 12:26:54 +00:00
zhangyouyou
c65542e984 https://gitee.com/openharmony/ark_js_runtime/issues/I4ZD8T
Signed-off-by: zhangyouyou <zhangyouyou2@huawei.com>
2022-03-24 15:50:18 +08:00
luochuhao
aa2ef1d5b5 Implement aot file generated step for aot compiler
Implement llvmIRGeneration Pass in aot compiler pipeline.

Rename and reconstruct LLVMStubModule and LLVMModuleAssembler class. Move aot code infos
related to describe current (code size, begin addr, entry offset of each func etc.)  AOT
snippet and corresponding serialization/deserialization func to NEW class called AotCodeInfo.
Move functions related to file reading/writing to NEW class called AotFileManager.

Add new call opcode in circuit IR to differentiate call into common stubs and call into
runtime interfaces without GC.

Adapt js runtime option for above changes.

Issue: https://gitee.com/openharmony/ark_js_runtime/issues/I4ZDY5
Signed-off-by: luochuhao <luochuhao@huawei.com>
Change-Id: If0ab5927ad2551fe5567d1c7b18540fbcc38bc15
2022-03-24 15:44:26 +08:00
zhangyouyou
c14868b51e https://gitee.com/openharmony/ark_js_runtime/issues/I4ZD8T
Signed-off-by: zhangyouyou <zhangyouyou2@huawei.com>
2022-03-24 14:39:30 +08:00
zhangyouyou
16423adf11 Bigint adaptation ExpDyn
issues: https://gitee.com/openharmony/ark_js_runtime/issues/I4Z7JK

Signed-off-by: zhangyouyou <zhangyouyou2@huawei.com>
2022-03-23 18:23:45 +08:00
wanghuan
61361a7c3e [feature]add ldbigint and newlexenvwithname stub handle
description: add ldbigint and newlexenvwithname stub handle

reason: add ldbigint and newlexenvwithname stub handle

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

Signed-off-by: wanghuan <wanghuan80@huawei.com>
Change-Id: I301e7041939f189158058b371a34633bb6c133c2
2022-03-22 21:46:48 +08:00
openharmony_ci
5896b01d50
!790 fix try catch fail in Asminterpreter
Merge pull request !790 from wpy111/master
2022-03-22 07:08:07 +00:00
openharmony_ci
60f850978d
!835 Clean Code For CodeHub Issues
Merge pull request !835 from wanyanglan/master
2022-03-22 04:42:20 +00:00
wanyanglan
bb6022bffc Clean Code For CodeHub Issues
Modified file permissions, word spelling errors, and
programming specifications suggesting EXPECT_EQ instead
of EXPECT_TRUE

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

Signed-off-by: wanyanglan <wanyanglan1@huawei.com>
Change-Id: I00eb9be48d481ce2bdaa4a621246ff6c405abecf
2022-03-22 11:34:13 +08:00
wupengyong
3b4fca1521 reason:try catch fail
description:fix try catch fail in AsmInterpreter

issue:https://gitee.com/openharmony/ark_js_runtime/issues/I4Y8BF?from=project-issue

Signed-off-by: wupengyong <wupengyong@huawei.com>
Change-Id: Iac9ae06b46091950c8d93c14201b05a7a9492421
2022-03-22 11:30:26 +08:00
openharmony_ci
1f6c66ef1c
!762 share constpool, and fix some codestyle
Merge pull request !762 from changcheng/fix_codestyle
2022-03-21 15:01:23 +00:00
wengchangcheng
43f23f8eb3 share constpool, and modify some code refactor
1. cache constpool in ecma vm
2. use JSPandaFile instead of panda_file::File
3. make GenerateProgram as a static function
4. add a singleton of JSPandaFileManager::GetInstance()

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

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: Ic7ccd66764c3a020e575d4046e1792475d45be6b
2022-03-21 21:46:25 +08:00
xujie
a2a5f2ad63 Clean Code For CodeHub Issues #96-#123 And #250-#264
According to the problems pointed out by the issuer and the
specifications compiled by Huawei, modify the non-compliant
parts of jsruntime.

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

Signed-off-by: xujie <xujie101@huawei.com>
Change-Id: Iceb771dfd9f3aa9017205068fc50ab1a63aae08b
2022-03-21 17:09:19 +08:00
sunzhe23
e05044b20e Fix some binary option handlers bug for c-interpreter and asm-interpreter
Description:
1 Fix and/or/xor CastToUint32 bug
2 Fix asm interpreter shr overflow bug

Issues: I4YPC6

Signed-off-by: sunzhe23 <sunzhe23@huawei.com>
2022-03-20 20:03:59 -07:00
wuzhefeng
0c64ae9897 Fix compilation errors
Because there are some macros that trigger compilation errors when
compiling stub-compiler and aot-compiler. The root cause is that several
classes declarations are missing from the associated macros. This PR
fixes the issues via adding the lost classes to the macros. Besides, we
also rename the FastStub to CommonStubs in order to make the stub-arch
more readable.

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

Signed-off-by: wuzhefeng <wuzhefeng1@huawei.com>
Change-Id: I16263fef7deeadf8a9ce4e5252a6e9898a7742bc
2022-03-18 18:17:21 -07:00
luochuhao
905d0496dc Refactor ID definition and callSignature initialization mechanism of stubs
Refactor ID definition and callSignature initialization mechanism of runtime stub,
optimizer stub and bytecode handler stub,
reduce amount and complexity of macro used in calling those stubs.

Add stubDes struct to classify stubs both in AOT file generation phase
and AOT file loading phase.

Fix some circular dependency problems in including header files.

Fix certain inline function declaration and definition format problems, which could lead to
compiling errors.

Issue: https://gitee.com/openharmony/ark_js_runtime/issues/I4VMLD?from=project-issue
Test: stubTest(unit test), richards with asm interpreter enabled
Signed-off-by: luochuhao <luochuhao@huawei.com>
Change-Id: Ibd5fcd963347b97f8dec227f3245d2064463b0b0
2022-03-18 22:01:52 +08:00
changjiaxing
29e36e48c8 The bigint instruction is moved backward, and the sdk is compatible with the yellow zone
Signed-off-by: changjiaxing <changjiaxing1@huawei.com>
2022-03-16 17:46:59 +08:00
wanghuan
e4703206fc feature:add asm handle disable range by option
description:add an option to control asm interpreter stub handle disable range in debug mode

reason:add an option to control asm interpreter stub handle disable range in debug mode

issue:https://gitee.com/open_harmony/dashboard?issue_id=I4XAXX

Signed-off-by: wanghuan <wanghuan80@huawei.com>
Change-Id: Ie573a11be453f036cefb9d2eb000b84bb5007e6b
2022-03-16 14:32:47 +08:00
openharmony_ci
f1af474f0e
!748 Add Call Stub
Merge pull request !748 from 李晨帅/master
2022-03-16 04:57:48 +00:00
lichenshuai
e6b8f48f69 Add Call Stub
Change several structures for call stub.

Related issue: #I4XK12

Signed-off-by: lichenshuai <lichenshuai@huawei.com>
Change-Id: Ie7389ff96c619451304a3f0d352b271310c4b73e
2022-03-15 17:36:58 +08:00
openharmony_ci
c0406cd2d2
!749 fix ark js stack message
Merge pull request !749 from changcheng/fix_js_stack_message
2022-03-13 10:14:32 +00:00
wengchangcheng
1a9dff9a72 modify exception stack message
https://gitee.com/openharmony/ace_ace_engine/issues/I4XKDL

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I6569cba9cdf0312b88406cd7654a9b71ba015672
2022-03-12 22:57:39 +08:00
sunzhe23
8aa1664de5 refactor runtime trampoline id
Description:
add runtime_trace for runtime trampoline
mov runtime_trampolines.cpp info cmascript/trampoline/
rename FAST_STUB_ID as RUNTIME_CALL_ID

issue: #I4XBC9

Signed-off-by: sunzhe23 <sunzhe23@huawei.com>
2022-03-11 02:17:24 -08:00
wupengyong
db0aa88cac reason:enable interpreterAsm Gc
Description:save leaveframe on thread leaveframe and save pc before callruntime

issue:https://gitee.com/openharmony/ark_js_runtime/issues/I4XCL5?from=project-issue

Signed-off-by: wupengyong <wupengyong@huawei.com>
Change-Id: I770f18facaeb7e62f5dc02f280828a8f6a420b6f
2022-03-11 12:46:57 +08:00
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
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
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
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
chenqi
20726efef7 Add Container Queue
Description
  To ensure the high performance of container classes, Queue is provided in ark.
Related issue
  #I4TKAU:Add Container Queue

Signed-off-by: chenqi <chenqi151@huawei.com>
2022-03-05 16:55:38 +08:00
scw
f7b97b27b0 move dfx feature to dfx dir
ISSUE:https://gitee.com/openharmony/ark_js_runtime/issues/I4SXXS

Signed-off-by: scw <suchongwei@huawei.com>
Change-Id: Ie5ae6a70f5b561b7578702db591affb26a0057d9
2022-03-04 10:52:47 +08:00
sunzhe23
4737a4f59e Related issue: #I4W0C0
Modifications:
* Fix write barrier stub bug
* Adapt HandleNewLexEnvWithNameDynPrefImm16Imm16 for asm interpreter

Signed-off-by: sunzhe23 <sunzhe23@huawei.com>
2022-03-02 01:52:51 -08:00
panzhenyu1
56bb730cba Adapt for windows platform
related issue: https://gitee.com/openharmony/ark_js_runtime/issues/I4VDA4
Change-Id: I4560cf0ec4c05ccd855debb51b6d0190b4f1ccfa
Signed-off-by: panzhenyu1 <panzhenyu1@huawei.com>
2022-03-02 11:22:58 +08:00
openharmony_ci
5df4c81591
!640 fix problems concerning lexicalEnv
Merge pull request !640 from huangfeijie/master
2022-03-01 15:37:57 +00:00
ding
96b342e46e Stackless optimalize new operation, including BuiltinsConstructor new and the most common new with callType is HAVE_THIS
Signed-off-by: ding <dingding5@huawei.com>
2022-03-01 20:10:20 +08:00