1.Change the implementation of gateType from enum to class.
2.Add some base type opeartions between GateType and GlobalTSTypeRef to simplify the code.
3.Delete class GateTypeCoder
4.Extract GlobalTSTypeRef as an independent file.
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I5A893
Signed-off-by: ding <dingding5@huawei.com>
Change-Id: I3d80595ebccc9ac942af9b9bcc67c0974bb9b712
Description
1.To ensure the high performance of container classes, List and LinkedList is provided in ark.
2.modify Copyright 2021->2022.
3.fix containers.
Related issue
#I58XA9:Add Containers List And LinkedList.
Signed-off-by: chenqi <chenqi151@huawei.com>
1.Re-write union type mechanism, store gt in components.
2.Refactor module tabale, now builtins type table and global infer table set in fixed index of 0 and 1.
3.Integrate some interfaces and logic.
Signed-off-by: ding <dingding5@huawei.com>
Change-Id: Ie709705798b21206f1f272fc5cacafb3781ed940
Description
To ensure the high performance of container classes, vector is
provided in ark.
Related issue
#I4XCD9:add container vector
Signed-off-by: shisan_forwork <chengjunxiong@huawei.com>
When runing debug tests, there are too many dump test logs printing on console which affect developers to spot errors quickly.
Solution:
Instead of printing to std::out, we print to a string stream.
Issues: https://gitee.com/openharmony/ark_js_runtime/issues/I57LN5
Signed-off-by: yaoyuan <yuanyao14@huawei.com>
Change-Id: I4ddd71cb6687013278940dcd9822c452faa1c491
Description
To ensure the high performance of container classes, Plainarray is
provided in ark.
Related issue
#I4XXYA:Add Container Plainarray
Signed-off-by: zhangjixing <zhangjixing4@huawei.com>
Description
To ensure the high performance of container classes, Deque and Stack
is provided in ark.
Related issue
#I4X8GV:Add Container Deque And Stack
Signed-off-by: zhangjixing <zhangjixing4@huawei.com>
1.modify transitions to weak reference and delete parent field in JSHClass.
2.add targeted test case to intercept the issue.
3.fix weak ref in parallel gc
4.fix TaggedCastToWeakReferentUnChecked() in stub
Change-Id: I118d293a04390fba6c21179a0a8ac7993dae5e96
Signed-off-by: ding <dingding5@huawei.com>
Description
To ensure the high performance of container classes, Queue is provided in ark.
Related issue
#I4TKAU:Add Container Queue
Signed-off-by: chenqi <chenqi151@huawei.com>
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>
Description
1.fix arrayList GC bug
2.add other containers case in lazy loading
3.change containers Iterator ACCESSORS() to ACCESSORS_PRIMITIVE_FIELD()
Related issue
#I4W3P3:Modify Containers
Signed-off-by: chenqi <chenqi151@huawei.com>
add macro PUBLIC_API and refactor the bad code, avoid some interfaces being optimized by the compiler
Signed-off-by: lifansheng <lifansheng1@huawei.com>
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>