Commit Graph

26 Commits

Author SHA1 Message Date
Gongyuhang 7ad1977347 Description:
Delete the tests for checking EcmaString's behaivoir after
SetCompressedStringsEnabled(true).
Details:
Delete the part where SetCompressedStringsEnabled(true) is
called.
Issue:
https://gitee.com/openharmony/ark_js_runtime/issues/I5ANQA

Signed-off-by: Gongyuhang <gongyuhang5@huawei.com>
2022-06-03 19:39:28 +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
openharmony_ci c2c81a28ad !1060 fix EcmaString::FastSubString
Merge pull request !1060 from xliu/fix_substring
2022-04-20 09:20:14 +00:00
xliu 9f2b94c6f1 fix EcmaString::FastSubString
Description
  In the FastSubString interface of EcmaString, which is a fast path,
  there is a logical error in judging whether characters are compressible
Issue:
  #I53HR7:fix EcmaString::FastSubString

Signed-off-by: xliu <liuxin259@huawei.com>
Change-Id: If8d93fadbae5805bb2c8a674f3fc7725a562c032
2022-04-20 10:08:40 +08:00
xliu 014ed8150d fix EcmaString::EqualToSplicedString
Description
  1. The developer reported that the corresponding attribute could not
  be obtained through the key value.
  2. There is a bug in the comparison logic in ecmastring::
  equaltospilledstring function, which leads to unpredictable results.
  Modify the comparison logic to make the spliced two strings equal to
  the compared string.
Issue:
  #I52EB0: fix EcmaString::EqualToSplicedString

Signed-off-by: xliu <liuxin259@huawei.com>
Change-Id: I2186c4ffc6084b05ea2fe64b41a76c648103e408
2022-04-13 15:18:33 +08:00
zhaozhibo d8b13ea42c fix type error of test cases
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-03-24 10:39:26 +08:00
zhaozhibo 3c8dc8270d fix type error of test cases
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-03-23 19:26:31 +08:00
zhaozhibo 753ac0fe7f fix type error of test cases
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-03-23 19:08:33 +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
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
yingguofeng@huawei.com ef9b13734d Performance optimization for gc
1、Optimize GC parallel evacate strategy: evacuate to old space with FreeListAllocator.
2、Adjust strategy that whole region evacuate: Only support new fromspace to new tospace.
3、Adjust Semi space capacity growing/shrinking strategy and Adjust Semi space initialize size.

splay-benchmark:
blue zone: ark_js(2500), v8(2000)
ark-dev:  ark(1200), v8(1500)

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

Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
Change-Id: Ie9c6e94c47f531bf9c1ebf5bc7443dd1acb7d2ac
2022-02-15 14:23:43 +08:00
openharmony_ci acd198cc23 !419 add 'utf8Len' parameter for 'CanBeCompressed()'
Merge pull request !419 from zhaozhibo/master
2022-01-20 11:06:03 +00:00
zhaozhibo 04ee0ff782 add 'utf8Len' parameter for 'CanBeCompressed()'
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-01-20 10:13:01 +08:00
zhaozhibo 9ee9f9aa52 add 'utf8Len' parameter for 'CanBeCompressed()'
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-01-20 09:15:05 +08:00
zhaozhibo c5df14eea3 add 'utf8Len' parameter for 'CanBeCompressed()'
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-01-19 09:11:19 +08:00
openharmony_ci c22e2930d1 !410 modify ACCESSOR for EcmaString and TaggedArray
Merge pull request !410 from changcheng/master
2022-01-17 10:34:20 +00: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
zhaozhibo 1065502409 fix conversion function bug in 'utf_helper' when utf8 characters do not end with '\0' and reconstruct ecmastring
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-01-13 12:02:17 +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
Gongyuhang ff9da6187f chan TesrDownTestCase to TearDownTestCase
Signed-off-by: Gongyuhang <517563583@qq.com>
2021-10-22 19:47:25 +08:00
Gongyuhang cf2f40cf77 restore ecma_string_test.cpp and fix ecma_string.cpp
Signed-off-by: Gongyuhang <517563583@qq.com>
2021-10-11 20:14:30 +08:00
Gongyuhang b46fe4bc9c fix for ecma_string_test.cpp
Signed-off-by: Gongyuhang <517563583@qq.com>
2021-10-11 16:32:52 +08:00
Gongyuhang 87a2b2bc94 fix for ecma_string_test.cpp
Signed-off-by: Gongyuhang <517563583@qq.com>
2021-10-11 10:46:40 +08:00
Gongyuhang a5d6e9dd5a add test for ecma_string_test.cpp
Signed-off-by: Gongyuhang <517563583@qq.com>
2021-10-08 17:17:32 +08:00