Commit Graph

25 Commits

Author SHA1 Message Date
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
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 6bcdd2cbf9 simplify gn file
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-04-20 17:13:49 +08:00
lifansheng be15a6b2d8 issue:#I52QHU
Fix the function NumberToString double percision BUG

Signed-off-by: lifansheng <lifansheng1@huawei.com>
Change-Id: I88a5ea73b8bded8edfff7e7e92abd6ec80430f5f
2022-04-16 15:57:04 +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
hjzhangcm 4f59c0934c add test case for numberhelper
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-04-01 17:49:51 +08:00
zhaozhibo bf103e9a2c fix unittest error
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-03-31 11:20:23 +08:00
openharmony_ci 023440d587 !886 add test case
Merge pull request !886 from zhaozhibo/master
2022-03-28 03:59:20 +00:00
zhaozhibo 24e106d640 add test case for utf_helper, accessor_data, ecmaString_table
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-03-25 17:05:43 +08:00
zhaozhibo 2333210cec add test case for utf_helper, accessor_data and ecmaString_table
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-03-25 16:27:12 +08:00
zhaozhibo 0fc26ce539 add test case for utf_helper, accesser_data and ecmastring_table
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-03-25 15:32:15 +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
zhaozhibo b16df7a104 add test case for accessor_data, utf_helper, ecmastring_table
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-03-25 15:21:02 +08:00
zhaozhibo 2593aed608 add test case for utf_helper, accessor_data, ecmastring_table
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-03-25 15:12:44 +08:00
zhaozhibo 52a38fd75c add test case for utf_helper, accessor_data and ecmastring_table
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-03-25 14:54:48 +08:00
zhaozhibo 07bbe8cddd add test case
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-03-25 12:07:22 +08:00
hjzhangcm 69eebc4b43 Modify symbol type
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-03-23 16:36:55 +08: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
wanyanglan 97543eb1c3 Clean Code
CodeHub ark_js_runtime of issue

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

Signed-off-by: wanyanglan <wanyanglan1@huawei.com>
Change-Id: I6c7b10e2475e80006598f86d0d51792693b714b5
2022-03-19 14:31:04 +08:00
zhaozhibo 116b8f85cb Fix internal issue list problem
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-03-14 15:19:45 +08:00
hjzhangcm ad45f41e43 add test case for GCRingBuffer
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-03-03 11:20:01 +08:00
hjzhangcm 3504587087 add json_parser_test.cpp to test class jsonparser
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-02-28 14:15:58 +08:00
hjzhangcm 90bc8f0140 add a test case named json_stringifier_test.cpp to test json_stringifier
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-02-18 13:52:44 +08:00
hjzhangcm 6b195de14e add BuiltinsBaseTest.cpp
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-02-14 18:32:03 +08:00
hjzhangcm 3de441c36e add array_helper_test.cpp
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-02-14 10:11:24 +08:00