Commit Graph

61 Commits

Author SHA1 Message Date
Yuqiang Xian adecfbd30b Merge remote-tracking branch 'oh/master' 2022-05-06 21:25:57 +08:00
xliu 1893bbfbe6 Fix UT test and json parser
Description
  1. Fix UT test
  2. Fix mem_map_allocator
  3. Fix json parser
Issue:
  #I55S8H:Fix UT test and json parser

Signed-off-by: xliu <liuxin259@huawei.com>
Change-Id: I1e5107a1f119eb1422a40f2275d961b366dda46b
2022-05-05 11:36:33 +08:00
guobingbing 129ebdbf25 refactor class FrameHandler
Signed-off-by: guobingbing <guobingbing3@huawei.com>
Change-Id: I9f3ff0c04d34a31a34f21da637689eb61d4166f1
2022-05-04 10:36:44 +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
zhaozhibo b7fb4444ec 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
openharmony_ci de8dd32c29 !1093 Delete useless code dependencies.
Merge pull request !1093 from yingguofeng/mmap
2022-04-24 16:26:56 +00:00
yingguofeng@huawei.com 6c5808fc28 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
openharmony_ci 8da6f7014b !1111 fix codex warning
Merge pull request !1111 from hjzhangcm/master
2022-04-24 06:54:34 +00:00
hjzhangcm c5808d4057 delete xxx-inl.h move the definition to the declare head file
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-04-24 13:40:46 +08:00
hjzhangcm 299dae3ff8 fix test case debug compilation error
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-04-24 11:13:02 +08:00
lifansheng b658e3992d modify CI fail
Change-Id: I1ef18da0aa27ecfa6da69c45ab6790beba82cdf6
Signed-off-by: lifansheng <lifansheng1@huawei.com>
2022-04-21 20:00:37 +08:00
openharmony_ci 5233e6ccf7 !1076 Add testcase for ICRuntimeStub
Merge pull request !1076 from hjzhangcm/master
2022-04-21 11:17:43 +00:00
lifansheng a725676a6c Runtime architecture adjustment
Description
  Cut out most of the initialization logic in Runtime::Create and disconnect the
  inheritance relationship of most classes such as JSThread.
Issue:
  #I53418: Runtime architecture adjustment

Signed-off-by: lifansheng <lifansheng1@huawei.com>
Change-Id: Ib9c1a40354f77d32e515e23334e7f4b4a4fa3259
2022-04-21 14:37:31 +08:00
hjzhangcm 909901d157 add test case for icRuntimeStub
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
Change-Id: Ib0815b08176f6fea072a1e7c0ef7b2faba5e4aa0
2022-04-21 13:36:11 +08:00
hjzhangcm 6bcdd2cbf9 simplify gn file
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-04-20 17:13:49 +08:00
zhaozhibo aaf776aab5 fix code warning for codeDex
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-04-12 14:27:50 +08: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 94b3e41ed0 !938 merge bugfix from release into master
Merge pull request !938 from lukai/merge-from-release
2022-04-06 16:08:56 +00:00
hjzhangcm da6d3c8fe7 add test case for BuiltinsRelativeTimeFormat and modify the problem of probabilistic hanging of use cases
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-04-06 20:11:41 +08:00
lukai 7653faf3fe merge bugfix from release into master
1. !888:fix gc bugs
2. !851:Fix ic store prototype bugs
3. !803:Fix Security Check Problems
4. other related ut bugfix.

Signed-off-by: lukai <lukai25@huawei.com>
Change-Id: I4dd30efd176fd33fefd064aee0cb30e5fd3e0477
2022-04-02 17:49:22 +08:00
hjzhangcm dc3f269547 add test case for propertybox and propertiescache
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-03-30 16:36:08 +08:00
hjzhangcm 2def8570d9 add test case for ProtoChangeDetails
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-03-30 10:08:40 +08:00
wengchangcheng 4f169b31a5 add -Werror -Wextra gn flag for 'compiler'
1. ignore llvm warning
2. fix warning of compiler module

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

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I09774e431743a26ea366ed28e3276ff027ae0d31
2022-03-25 15:31:59 +08: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
ding 03907dd85b Fix IC LoadMiss
Fix IC LoadMiss, when the op is not found, should not generate cache.

The bug occurs application can not get correct property from globalThis, add targetd test case.

Signed-off-by: ding <dingding5@huawei.com>
Change-Id: I8935fc903a26e65138608301033bfdc0c4f80e46
2022-03-24 11:09:34 +08:00
hjzhangcm 69eebc4b43 Modify symbol type
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-03-23 16:36:55 +08:00
openharmony_ci 9614384797 !815 Fix code review from issue
Merge pull request !815 from songzhengchao/reviewcode0321
2022-03-22 08:36:13 +00:00
songzhengchao 718b37beb0 Fix code review from issue
bool variable shoule assign value;
code delete reduant ";" and " ";
class construct function signal parameter shoule add explicit;
function declare return void when caller don't need return value;
and etc

issue: https://gitee.com/openharmony/ark_js_runtime/issues/I4YXYH?from=project-issue
Signed-off-by: songzhengchao <songzhengchao@huawei.com>
Change-Id: I59e26d49f94e98a4cced7a5852df3029a5544d47
2022-03-22 14:25:18 +08:00
hjzhangcm 8e374f4bec add test case for class ProfileTypeInfo
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-03-21 14:54:05 +08:00
luochuhao c705ce054b 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
zhaozhibo 6deef90f3b Fix internal issue list problem
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-03-14 16:32:33 +08:00
zhaozhibo 116b8f85cb Fix internal issue list problem
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-03-14 15:19:45 +08:00
zhangyukun ad7195057a Sync code from c_asm_interpreter to master
Use Stub to impl handlers of bytecodes and use tail call to impl
dispatch of handlers of bytecodes

Signed-off-by: zhangyukun <zhangyukun8@huawei.com>
Change-Id: I7afabdc40ddfa11345aa1029059514aa4f55b9f8
2022-02-22 17:01:18 +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
openharmony_ci 650e3bcec8 !435 optimize primitive type ACCESSORS
Merge pull request !435 from changcheng/master
2022-01-26 02:34:46 +00:00
wengchangcheng 9a2b7d04e8 optimize primitive type ACCESSORS
Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
2022-01-25 18:05:12 +08:00
hjzhangcm 136e6c7ef7 add ic_handler_test.cpp
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-01-25 15:03:46 +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
openharmony_ci 7216add2b4 !302 fix bugs of IC for ECMASCRIPT_ENABLE_RUNTIME_STAT
Merge pull request !302 from DaiHN/master
2021-12-27 11:55:06 +00:00
DaiHN 8b9adc3326 fix bugs of IC for ECMASCRIPT_ENABLE_RUNTIME_STAT
Signed-off-by: DaiHN <daihuina1@huawei.com>
2021-12-27 17:18:25 +08:00
openharmony_ci 3320420708 !290 Path changes for the compiled product
Merge pull request !290 from DaiHN/master
2021-12-25 08:44:56 +00:00
hjzhangcm 808fabd093 fix warning file
Signed-off-by: hjzhangcm <845154910@qq.com>
2021-12-24 18:37:44 +08:00
DaiHN 99666b5daa Redundant IC code removed
Signed-off-by: DaiHN <daihuina1@huawei.com>
2021-12-24 17:14:59 +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
xiongluo 1ec42f43ac heapdump
Signed-off-by: xiongluo <xiongluo@huawei.com>
2021-10-21 01:40:14 -10:00