Commit Graph

8 Commits

Author SHA1 Message Date
yaoyuan cfdfd3e1b9 Description:
Reduce redundant code by using predefined global constants instead of creating new constant strings
Move all global constant strings into nonmovable space to improve code efficiency.

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

Signed-off-by: yaoyuan <yuanyao14@huawei.com>
Change-Id: I1f92188175c3129c5d8cec72a0396f11ce17c1c7
2022-05-31 17:38:54 +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
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
zhaozhibo f9ac925822 add test case for utf_helper,accessor_data,ecmastring_table
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-03-25 17:54:47 +08:00
zhaozhibo 25fc72ea1c add test case for utf_helper,accessor_data,ecmastring_table
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-03-25 17:30:56 +08: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 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