Commit Graph

203 Commits

Author SHA1 Message Date
wupengyong 7c650ba015 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
openharmony_ci 31ec8e87dd !1313 Add regExp.matchAll interface and symbol.matchAll and regExp iterator related functions
Merge pull request !1313 from 王犇/master
2022-05-18 11:04:47 +00:00
wangben 0ae45e4df7 Add regExp.matchAll interface and symbol.matchAll and regExp iterator related functions
Signed-off-by: wangben <wangben15@huawei.com>
2022-05-18 18:02:39 +08:00
openharmony_ci 4179a76a2d !1330 Enable x86 Assembler
Merge pull request !1330 from wanyanglan/master
2022-05-18 03:12:23 +00:00
wanyanglan f0981feee7 Enable x86 Assembler
1. x86 assembler replaces JSCall, JSCallArgV, JSFunctionEntry,
OptimizedCallOptimized, CallNativeTrampoline assembly code of
x86 call.S debugged and enabled to the official code.
2. Delete the relevant code in call.S.

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

Signed-off-by: wanyanglan <wanyanglan1@huawei.com>
Change-Id: I69b9aad1f52d486ba6d96248aa1a5a2d0a44f318
2022-05-18 09:42:00 +08:00
hjzhangcm 295535c3c1 add test case for JSAPITreeMapIterator
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-05-17 18:21:03 +08:00
openharmony_ci aa10321f56 !1324 Complete JSAPIArrayList test case、fix unittest case bug、fix NewJSAPIArrayList bug、fix codex warnings
Merge pull request !1324 from zhaozhibo/master
2022-05-16 13:41:08 +00:00
openharmony_ci 3aded1dfa4 !1311 Add sharedArrayBuffer Test
Merge pull request !1311 from 赵杜炜/master
2022-05-16 12:23:23 +00:00
openharmony_ci aea85a0e0f !1306 add a unit-test for JSAPIStackIterator and fix notes
Merge pull request !1306 from hjzhangcm/master
2022-05-16 12:10:52 +00:00
zhaozhibo c04fbfa226 Complete JSAPIArrayList test case、fix unittest case bug、fix NewJSAPIArrayList bug、fix codex warnings
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-05-16 20:02:48 +08:00
hjzhangcm 3d585236bb add test case for JSAPIStackIterator and fix some notes
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-05-16 16:16:06 +08:00
yaoyuan 5ee2aa23c2 Description:
When runing debug tests, there are too many dump test logs printing on console which affect developers to spot errors quickly.

Solution:
Instead of printing to std::out, we print to a string stream.

Issues: https://gitee.com/openharmony/ark_js_runtime/issues/I57LN5

Signed-off-by: yaoyuan <yuanyao14@huawei.com>
Change-Id: I4ddd71cb6687013278940dcd9822c452faa1c491
2022-05-16 15:31:54 +08:00
zhaoduwei 4ebbc8ef6d Add sharedArrayBuffer Test
Add sharedArrayBufferTests that test the public functions of sharedArrayBuffer class

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

Signed-off-by: zhaoduwei <zhaoduwei1@huawei.com>
2022-05-16 14:28:14 +08:00
openharmony_ci b80b250438 !1290 add test case for JsApiArraylist and JsApiArraylistIterator
Merge pull request !1290 from zhaozhibo/master
2022-05-16 01:43:21 +00:00
openharmony_ci 366f26644e !1287 add a unit-test for ObjectOperator
Merge pull request !1287 from hjzhangcm/master
2022-05-14 11:10:01 +00:00
zhaozhibo 5334f4ea12 add test case for JsApiArraylist and JsApiArraylistIterator
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-05-13 18:58:18 +08:00
hjzhangcm 6573e60767 add test case for JSAPIQueue and fix bug
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
Change-Id: Idd3994e84afd6d472e5206724ae0a02cd6885ab9
2022-05-13 16:01:45 +08:00
hjzhangcm 534e331f37 add test case for ObjectOperator
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-05-13 14:16:06 +08:00
openharmony_ci 42355bd8fb !1262 Refactor Compilation Framework Part-2
Merge pull request !1262 from Gargoyle.h/wzfmaster-dev
2022-05-11 12:29:01 +00:00
wuzhefeng 662f2b78a6 Refactor Compilation Framework Part-2
1. Rename IR builder to improve the readability.
2. Remove redundant Headers to decouple the relationships of components.

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

Signed-off-by: wuzhefeng <wuzhefeng1@huawei.com>
Change-Id: I0c8da6cd55bb8e7f33421ba846bab89bd5e06c55
2022-05-11 04:28:10 -07:00
openharmony_ci 7875dc10e6 !1259 fix codex warning
Merge pull request !1259 from hjzhangcm/master
2022-05-11 11:13:48 +00:00
hjzhangcm 2288ff17b7 fix codex warning
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
Change-Id: Id015c66bbb203c142dd06fc19e7852be2fbe1fec
2022-05-11 17:43:48 +08:00
Yuqiang Xian 369ffd9a85 Merge remote-tracking branch 'oh/master' 2022-05-11 08:09:37 +08:00
openharmony_ci 5f169cd0f8 !1246 Fix run unit tests fail on rk3568
Merge pull request !1246 from dingwen/master
2022-05-10 13:15:24 +00:00
Yuqiang Xian d9d281af16 Merge remote-tracking branch 'oh/master' 2022-05-10 19:04:40 +08:00
dingwen f4749b6029 Fix run unit tests fail on rk3568
Description:Everytime when vm destroy, munmap memPool resource
ISSUE:https://gitee.com/openharmony/ark_js_runtime/issues/I56MQ3
Signed-off-by: dingwen <dingwen6@huawei.com>

Change-Id: Ie28c6c2e59b75e896144357008b8561e6ae595e9
2022-05-10 17:23:29 +08:00
openharmony_ci 8ccda0d2f9 !1233 Prebuild com_sub.m and bc_stub.m in build phase
Merge pull request !1233 from dingding/prebuild_stub
2022-05-10 06:33:12 +00:00
ding 8358c88dda Prebuild com_sub.m and bc_stub.m
Generate com_stub.m and bc_stub.m in build phase.

Add FATAL log if load stub file failed.

Move run_ark_executable.py to js_runtime/script/ directory

Add --time-out option in run_ark_executable.py.

Signed-off-by: ding <dingding5@huawei.com>
Change-Id: I6136c5f0dc132a086119f9f2cc6eaf934ba0087b
2022-05-10 09:56:40 +08:00
hjzhangcm c297d91027 add test case for JSAPIDequeIterator and delete useless code
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-05-09 14:25:06 +08:00
wanyanglan 404fc3fb09 fix part of the use case problem
1. AssemblerStubTest adapts to the latest llvm library
2. Fix aottest failure in heapverify open state
3. Shield createemptyarray, definefunc use cases.

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

Signed-off-by: wanyanglan <wanyanglan1@huawei.com>
Change-Id: Id8836d378832a68a3a17105809f2f4710918fc3a
2022-05-08 22:50:59 +08:00
openharmony_ci f64ffc7c5c !1224 add a unit-test for GlobalDictionary
Merge pull request !1224 from hjzhangcm/master
2022-05-07 07:03:37 +00:00
hjzhangcm 5983d1f225 Add test case for GlobalDictionary and Fix the problem that the value attribute of propertybox is recycled
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-05-07 09:07:15 +08:00
Yuqiang Xian adecfbd30b Merge remote-tracking branch 'oh/master' 2022-05-06 21:25:57 +08:00
hjzhangcm a760638caa fix codex warning
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-05-06 17:52:55 +08:00
openharmony_ci 32c084d7b0 !1208 modify gn args and debugger test
Merge pull request !1208 from changcheng/debugger_modify
2022-05-06 03:34:39 +00:00
wengchangcheng dcac52ac03 Descriptor:fix ut fail and modify debugger test
details:
1. fix icu path error
2. modify debugger unittest
3. modify gn target
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I55WGN

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I1c924fd90297a5172ca5aabace36b6e250dc312b
2022-05-05 20:49:16 +08:00
lifansheng 295d5db32b 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
Yuqiang Xian f17e646f69 Merge remote-tracking branch 'oh/master' 2022-04-30 20:09:00 +08:00
Yuqiang Xian 9e88572f35 Add descriptions to concurrent marking status check.
Don't use IS_STANDARD_SYSTEM config to switch off concurrent marking.
Fix typos and grammar issues.

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

Signed-off-by: Yuqiang Xian <xianyuqiang@huawei.com>
2022-04-30 20:02:19 +08:00
openharmony_ci 272cf6664d !1155 Refactor the GC related components - Part 4
Merge pull request !1155 from klooer/master
2022-04-30 09:45:48 +00:00
zhaozhibo 4b279c9d79 fix codex warning
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-04-30 10:31:33 +08:00
Yuqiang Xian c7e278f057 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
Yuqiang Xian 5dffd792d6 Merge remote-tracking branch 'oh/master' 2022-04-28 11:24:41 +08:00
Yuqiang Xian d9068ae3e0 Tidy up Heap class; re-organize the fields by categories and add descriptions.
Issue: https://gitee.com/openharmony/ark_js_runtime/issues/I551ZU

Signed-off-by: Yuqiang Xian <xianyuqiang@huawei.com>
Change-Id: I53a4f5840a42d2b67ef7200145250e8e19ce072d
2022-04-28 11:14:39 +08:00
xiongluo d8b0be85b3 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
Yuqiang Xian 57c0a4f055 Rename GC types and spaces to make it more consistent and clear.
Issue: https://gitee.com/openharmony/ark_js_runtime/issues/I54NZF

Signed-off-by: Yuqiang Xian <xianyuqiang@huawei.com>
Change-Id: Ieeb356480fe6767ec6c2c53b6119e8c4b99d9ff9
2022-04-27 18:28:18 +08:00
Yuqiang Xian 5925e8ff44 Fix some terminologies used in concurrent marker and sweeper.
Issue: https://gitee.com/openharmony/ark_js_runtime/issues/I54NZF

Signed-off-by: Yuqiang Xian <xianyuqiang@huawei.com>
Change-Id: I2d398290ff7c0febffa7eb15bac78a4c3d9bc6a1
2022-04-27 18:28:18 +08:00
openharmony_ci f1c183d39b !1134 Refactor the GC related components - Part 1 & 2
Merge pull request !1134 from klooer/master
2022-04-27 09:37:38 +00:00
liu-qiang12 474420fba7 According to the 2021 internationalization specification add international specification module listformat class code
Signed-off-by: liu-qiang12 <liuqiang187@huawei.com>
https://gitee.com/openharmony/ark_js_runtime/issues/I54WWJ
2022-04-27 10:24:14 +08:00
Yuqiang Xian ad2baf6777 Refactor GC related components - Fix code check issues
Issue: https://gitee.com/openharmony/ark_js_runtime/issues/I54NZF

Signed-off-by: Yuqiang Xian <xianyuqiang@huawei.com>
Change-Id: I8146bc96b498dda1b0da98a2cf3eb94f4e942c49
2022-04-26 14:34:18 +08:00