1. Use fixed length(WeakVector::DEFAULT_CAPACITY) supers array as default supers of hclass.
2. Eliminate level check if level is less than DEFAULT_CAPACITY.
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I70J0X
Signed-off-by: dingding <dingding5@huawei.com>
Change-Id: I81227d1e766f28621050e0c0c4c7893fff347af4
1. change the logic of load/store operations when use AOT HClass
2. Supplement ut case
3. Add two new IC handlers
4. Add removeAOTFlag method to arktools
5. Add accessor flag to AOT HCLASS
Issues: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I692NO
Signed-off-by: weng-xi <wengxi1@huawei.com>
Change-Id: I9ca7e329b77e83b6c5a2c98525d551b5b4a1a9a4
desc: add TreeString and LineString
solu:
1. add TreeString and LineString
2. all string fucntions fit new construction
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5X82Y
Signed-off-by: wanghuan <wanghuan80@huawei.com>
Change-Id: I6c6ded38ee67741b5c0f17f19b72e68a4375b303
Since the class TSImportType has never been verified correctness in AOT,
there are some bugs and redundant design. Also, the system of TSImportType
has not been updated in multiple refactorings of both frontend and AOT.
In order to support type inference from import types, we need to adapt these changes.
Issue:
https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I60M4F
Tests:
aot test, typeinfer test
Signed-off-by: huoqingyi <huoqingyi@huawei.com>
Change-Id: I82ed369e3c449cf7b365657e2b191d24315e541b
Description:
All Containers create the same undefined iterator object which can be space and time consuming.
Create Empty undefined iterator and put it on global constants which can be shared by all containers.
Issue:
https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5UCGK
Signed-off-by: yuan-yao14 <yuanyao14@huawei.com>
Change-Id: I7ffa7b990cac380d48dc4e18348fb265a2c961db
1. Init and get module environment by index
2. Set and get module var and namespace by index
3. restore binding with index and module or namespace
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5RSN7
Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I8bf3f6245e047d95ec1afd5d4475e6f8405ae77c
Part1
The functionextrainfo, profiletypeinfo, module under JSFunction
and the jspandafile field under ConstantPool can be streamlined and optimized
Closes #I5MYJH
Change-Id: I9e08beaf5409a2b4041316f6a2535247be9d19e8
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
Details:
1. Add old Opcode defines
2. Add new inst handler of throw & wide & deprecated
3. Modify interpreter for new inst
4. Modify typeinfer for new inst
5. Modify asm interpreter for new inst
6. Modify aot circuit builder for new inst
7. Translate old inst to first level inst
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5LPNL
Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: If9e0b60cafc32a662a5fb1676887939d5a2b9ebf
Description
1.To ensure the high performance of container classes, HashMap and HashSet is provided in ark.
2.Add test cases for HashMap and HashSet.
Related issue
#I5D0WV:Add Containers HashMap and HashSet
Signed-off-by: liuganlin <liuganlin@huawei.com>
1. Optimize the enumerableownpropertynames interface by adding cache;
2. Remove the number to string conversion of array iterator;
3. Share hclass of iterator result;
4. Share the return result of closeiterator;
5. Fix EnumerableOwnNames bugs.
6. Fix Array IteratorNext bugs.
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5G288
Signed-off-by: xliu <liuxin259@huawei.com>
Change-Id: Ie03278f0afed3cf7eb967dd92eac13c2fc0eeb4e