57 Commits

Author SHA1 Message Date
hjzhangcm 976b9c38c7 fix codex warning
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-07-07 17:33:05 +08:00
g00416891 f11810349e New EcmaRuntimeCallInfo in stack pointer
Signed-off-by: g00416891 <guobingbing3@huawei.com>
Change-Id: I466a4107e6e073ffecea12e6986c112731d2d3bf
2022-07-05 14:54:43 +08:00
luochuhao 7522f51989 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
zhangyouyou 184485bf14 https://gitee.com/openharmony/ark_js_runtime/issues/I5747Z
Signed-off-by: zhangyouyou <zhangyouyou2@huawei.com>
2022-05-12 21:17:40 +08:00
openharmony_ci 0ef859598c !1195 Stackless SuperCall
Merge pull request !1195 from dingding/stackless_supercall
2022-05-05 06:56:39 +00:00
guobingbing 129ebdbf25 refactor class FrameHandler
Signed-off-by: guobingbing <guobingbing3@huawei.com>
Change-Id: I9f3ff0c04d34a31a34f21da637689eb61d4166f1
2022-05-04 10:36:44 +08:00
ding 763630738a 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
xujie 2590ccc603 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
luochuhao 90a5373327 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
zhaozhibo 71f2d7e0eb Merge branch 'master' of gitee.com:openharmony/ark_js_runtime into master 2022-04-14 02:57:27 +00:00
zhaozhibo a57029dc79 fix codeDex warning.
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-04-14 10:56:51 +08:00
openharmony_ci 97102d5750 !986 modify shr and ashr handle
Merge pull request !986 from wanghuan2022/master
2022-04-13 03:51:13 +00:00
wanghuan 9afe77f11c 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
xiongluo 2e3d07b336 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
xliu 4fb9fcc443 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 589234007e FFI optimization for call params
Signed-off-by: guobingbing <guobingbing3@huawei.com>
Change-Id: I61b820e91b85364e4f41d35ca0172ad059a1b916
2022-04-07 21:13:46 +08:00
wengchangcheng 4e08cec6ee [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
openharmony_ci a2ab816bc4 !883 Modify the JSHandle of ToNumeric function package
Merge pull request !883 from zhangyouyou/master
2022-03-29 06:41:14 +00:00
zhangyouyou cd79b30329 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 2fd158f92f !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 4804cd80d3 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
zhangyouyou c58a0317b5 https://gitee.com/openharmony/ark_js_runtime/issues/I4ZD8T
Signed-off-by: zhangyouyou <zhangyouyou2@huawei.com>
2022-03-24 15:50:18 +08:00
zhangyouyou 32198aae5b 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 5b450fdbc5 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
wengchangcheng fbf3c4a035 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
sunzhe23 9dd906402c 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
zhangyouyou 66dec69743 Add bigint type, add related instructions and Napi
Signed-off-by: zhangyouyou <zhangyouyou2@huawei.com>
2022-03-10 21:25:06 +08:00
y00576111 a1796a573e 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
h00611971 66ad032336 issue: https://gitee.com/openharmony/ark_js_runtime/issues/I4VE0E
fix problems concerning lexicalEnv

Signed-off-by: h00611971 <huangfeijie@huawei.com>
2022-03-01 11:16:43 +08:00
zhangyukun edb4abca97 Merge new runtimetrapolines from c_asm into master
Bug: #I4TRQP

Signed-off-by: zhangyukun <zhangyukun8@huawei.com>
Change-Id: I55b49c3ec9f6c5f91272668ff43ef4147b9ed6c2
2022-02-16 16:49:53 +08:00
yingguofeng@huawei.com 3ace067f87 GC performance optimization
1、Delete strategy no gc for start up
2、Adapter performance tools: runtime stat
3、Modify freeObjectKind to freeObjectSet

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

Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
Change-Id: I01643755057b6146d1f6b67032256e687873cd07
2022-02-15 14:24:21 +08:00
feng dce8f3ebb4 Performance optimization for String table
concat string table

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

Signed-off-by: feng <yingguofeng@huawei.com>
Change-Id: I1ff7f15246c8d367c8c8a38f0effed9e6ace2bed
2022-02-15 14:23:43 +08:00
wengchangcheng 9a2b7d04e8 optimize primitive type ACCESSORS
Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
2022-01-25 18:05:12 +08:00
wengchangcheng 2bfd68c01a modify ACCESSOR for EcmaString and TaggedArray
Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I2995dc75ed34e8eb2bf249f2cced62ec9d91250e
2022-01-17 11:51:50 +08:00
ding c4ffd76fd3 template class
Signed-off-by: ding <dingding5@huawei.com>
2021-12-25 09:51:43 +08:00
wengchangcheng 45cfc4c464 modify for get async function name
Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
2021-12-24 12:02:05 +08:00
yingguofeng@huawei.com 1d9b2ac3dd nativePointer optimization
Change-Id: I97b58375c2ec30f33778d7f11fb40a9cf0ed346b
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2021-12-23 19:40:54 +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
getingke aef57e484b fixed for review by wuzhefeng
Signed-off-by: getingke <getingke@huawei.com>
Change-Id: I7ceab6e9cc8b42ba73255813419baa3619381676
2021-10-28 20:59:19 +08:00
getingke bc69122046 increase base class FrameHandler for iterator stack frame
Signed-off-by: getingke <getingke@huawei.com>
Change-Id: I5643f176c169a2d3a754b6ead66698a0a8e33351
2021-10-28 16:28:40 +08:00
wengchangcheng 9a7fcb6e3c fix container using error and gc bug
Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
2021-10-20 18:00:44 +08:00
openharmony_ci 065669eaaf !159 add global record to IC
Merge pull request !159 from dingding5/master
2021-10-12 11:07:50 +00:00
ding 8f551973b8 add global record to IC
Signed-off-by: ding <dingding5@huawei.com>
2021-10-12 17:10:54 +08:00
surpassgoodchao d15fafc5ac fastboot review
Signed-off-by: surpassgoodchao <surpassgoodchao@qq.com>
2021-10-12 12:26:02 +08:00
yingguofeng@huawei.com 4919c829e6 delete objectWrapper
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
Change-Id: I0465495b40c9ad568bbc275ab026fa33e3120f26
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2021-09-27 14:19:21 +08:00
lichenshuai 58e37017f6 Change regexp flags from string to int.
Signed-off-by: lichenshuai <lichenshuai@huawei.com>
2021-09-18 16:26:50 +08:00
openharmony_ci b4ad6fe099 !62 Fix For opcode STOWNBYVALUE & STOWNBYNAME
Merge pull request !62 from DaiHN/master
2021-09-17 06:49:32 +00:00
DaiHN af3be8f79c fix function's name setting
Signed-off-by: DaiHN <daihuina1@huawei.com>
2021-09-17 09:50:12 +08:00
DaiHN 10c1420fa9 Fix For opcode STOWNBYVALUE & STOWNBYNAME
Signed-off-by: DaiHN <daihuina1@huawei.com>
2021-09-16 20:28:53 +08:00
wupengyong 52a2b0f777 add runtime stat
Signed-off-by: wupengyong <wupengyong@huawei.com>
Change-Id: Id40e77ef79c6dd1882d0f7c2c68f7c0fba402333
2021-09-16 12:44:01 +08:00