Commit Graph

37 Commits

Author SHA1 Message Date
lifansheng 8ed6cd9ef7 issue:#I4VX1Q
reason: so far there are some problems include the bad codes and the code architecture in the ts type system

    solution:modify ts type system code inculde refactor the function and class

Signed-off-by: lifansheng <lifansheng1@huawei.com>
2022-03-03 17:25:07 +08:00
y00576111 9eeef5be33 js pandafile refactor, support actor function
When the worker thread is started
the part shared by the virtual machine is not recreated
only the part that cannot be shared is created

issue:https://gitee.com/openharmony/js_worker_module/issues/I4SMW8

Signed-off-by: y00576111 <yaojian16@huawei.com>
Change-Id: I3c01588bb8449bd9cd8b410cfd13ff55205f41c1
2022-03-02 15:33:19 +08:00
yingguofeng@huawei.com 12e27e6863 Heap code refactoring
Delete MemManager class. The allocation function move to heap.cpp. The Space
manage Allocator.

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

Change-Id: I03cef52d9a1c86b07323de1e19ead53fe6daaf99
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2022-02-25 16:03:15 +08:00
lifansheng 2964efc6b9 issue:#I4V1ZG
add macro PUBLIC_API and refactor the bad code, avoid some interfaces being optimized by the compiler

Signed-off-by: lifansheng <lifansheng1@huawei.com>
2022-02-24 14:21:31 +08:00
lifansheng b39418de15 issue:#I4P7EY
Reason: To support AOT compilation, add ts type system to provide some
    interfaces and struct to wrap ts type and help type infer

    Description: create the global class TSLoader to expose the external
    interfaces, create the TSType and it's derived class, TSClassType,
    TSClassInstanceType, TSImportType and so on to wrap ts type in runtime.

    Add TDD unitest.

Signed-off-by: lifansheng <lifansheng1@huawei.com>
2022-02-22 16:50:20 +08:00
openharmony_ci 7b58a8786f !575 Modify RegionFactory and Chunk
Merge pull request !575 from dingwen/master
2022-02-21 12:06:43 +00:00
dingwen 87e9f4ff3c Modify RegionFactory and Chunk
Description:Divide RegionFactory into HeapRegionAllocator and
NativeAreaAllocator,use ChunkVector replace some unreasonable CVector.
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I4TRB8

Signed-off-by: dingwen <dingwen6@huawei.com>
2022-02-21 15:22:01 +08:00
liuganlin 3f3e0162ac Add container ArrayList
Description
  To ensure the high performance of container classes, ArrayList is provided in ark.
Related issue
  #I4T65T:Add Container ArrayList

Signed-off-by: liuganlin <liuganlin@huawei.com>
2022-02-18 10:37:31 +08:00
xiongluo 82b0916295 GC name is unclear and confused. class_ in object factory are redundant.
Modify gc name and delete class_ in object factory.

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

Signed-off-by: xiongluo <xiongluo@huawei.com>
2022-02-16 01:10:53 -10:00
feng dce8f3ebb4 Performance optimization for String table
concat string table

issue:https://e.gitee.com/open_harmony/dashboard?issue=I4SASV

Signed-off-by: feng <yingguofeng@huawei.com>
Change-Id: I1ff7f15246c8d367c8c8a38f0effed9e6ace2bed
2022-02-15 14:23:43 +08:00
xliu 0bb3e25edc Description
To ensure the high performance of container classes, TreeMap and
  TreeSet is provided in ark.
  Add test cases for TaggedTree.
Related issue
  #I4PQ1G:add TreeMap and TreeSet

Change-Id: I5cda72d06a71380711374109a87e971af6a8c5b7
Signed-off-by: xliu <liuxin259@huawei.com>
2022-02-10 11:28:34 +08:00
wengchangcheng 9a2b7d04e8 optimize primitive type ACCESSORS
Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
2022-01-25 18:05:12 +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 03d7981c4c add 'utf8Len' parameter for 'CanBeCompressed()'
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-01-18 16:03:30 +08:00
zhaozhibo 687f1c2d32 add 'utf8Len' parameter for 'CanBeCompressed()'
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-01-18 15:49:44 +08:00
zhaozhibo e01f55e69e add 'utf8Len' parameter for 'CanBeCompressed()'
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-01-18 14:57:19 +08:00
zhaozhibo 8bfeb11554 add 'utf8Len' parameter for 'CanBeCompressed()'
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-01-17 12:30:13 +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
xliu aa2409e00f 1.add arraylist and ArkPrivate. 2.add special container in stub. 3.fix Switch
Signed-off-by: xliu <liuxin259@huawei.com>
Change-Id: I4082326fa075bce0c5c7bf8e6873282086fe5d6e
2022-01-04 19:30:40 +08:00
ding c4ffd76fd3 template class
Signed-off-by: ding <dingding5@huawei.com>
2021-12-25 09:51:43 +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
getingke aef57e484b fixed for review by wuzhefeng
Signed-off-by: getingke <getingke@huawei.com>
Change-Id: I7ceab6e9cc8b42ba73255813419baa3619381676
2021-10-28 20:59:19 +08:00
getingke bc69122046 increase base class FrameHandler for iterator stack frame
Signed-off-by: getingke <getingke@huawei.com>
Change-Id: I5643f176c169a2d3a754b6ead66698a0a8e33351
2021-10-28 16:28:40 +08:00
surpassgoodchao 0228910be4 bug fix
machine code and runtime_trampolines

Signed-off-by: surpassgoodchao <surpassgoodchao@qq.com>
2021-10-21 14:13:03 +08:00
openharmony_ci ebad65a675 !138 delete jsnativepointer
Merge pull request !138 from yingguofeng/nativepointer
2021-10-14 06:48:25 +00:00
yingguofeng@huawei.com c259d52c5f Concurrent sweep
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
Change-Id: I2a5a0172577971c96e156f99b5ccf1f6c3d0063c
2021-10-13 17:47:42 +08:00
surpassgoodchao d15fafc5ac fastboot review
Signed-off-by: surpassgoodchao <surpassgoodchao@qq.com>
2021-10-12 12:26:02 +08:00
yingguofeng@huawei.com 104878d175 Delete JSNativeObject
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
Change-Id: I2f4a2e518497bf1f8a4724c63ef566cefed28271
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2021-10-09 15:28:48 +08:00
openharmony_ci 0431c34492 !123 delete objectwrapper
Merge pull request !123 from yingguofeng/delete_objectwrap
2021-09-27 07:28:36 +00:00
yingguofeng@huawei.com 4919c829e6 delete objectWrapper
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
Change-Id: I0465495b40c9ad568bbc275ab026fa33e3120f26
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2021-09-27 14:19:21 +08:00
openharmony_ci 93f7e58252 !115 Encode StringItem with ASCII tag
Merge pull request !115 from DaiHN/master
2021-09-26 06:16:00 +00:00
DaiHN dcdb3370fb ISA Optimizated for string's tag
Signed-off-by: DaiHN <daihuina1@huawei.com>
2021-09-24 10:25:00 +08:00
panzhenyu1 44c8179d07 fix ace2.0 hashcode initialization bugs
Signed-off-by: panzhenyu1 <panzhenyu1@huawei.com>
2021-09-23 20:55:48 +08:00
linxiang 5c16f19a29 modify GetHeapObjectSize() to GetCommittedSize()
Signed-off-by: linxiang <linxiang8@huawei.com>
2021-09-22 10:21:30 +08:00
zhangyukun 7ffcc4b20f Sync js_runtime to openharmony
Signed-off-by: zhangyukun <zhangyukun8@huawei.com>
2021-09-08 09:20:53 +08:00
wanyanglan 86cfe52253 add ark js_runtime
Signed-off-by: wanyanglan <wanyanglan1@huawei.com>
Change-Id: Iac7851492f10c0ef1303c621febb65e5fdd22e41
2021-09-05 16:05:06 +08:00