Commit Graph

27 Commits

Author SHA1 Message Date
yingguofeng@huawei.com
b5eedbb873 <Perf>(interpreter): Optimization PGO profile
1、Delete field VTable and Super in hclass.
    2、Opt dump hclass transition tree.
    3、Opt profileType of hclass.
    4、Class function supports ProfileTypeInfoCell.

Issue: #IA9QT3
Change-Id: I3d296f19433878c16f70d0260a3e77ce58ba9a3f
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2024-07-20 22:10:26 +08:00
Like
159fb5fb80 fix debug pgo 262
Signed-off-by: Like <zhenglike@huawei.com>
Change-Id: Ie4ccd34884980ce9d43464e1377f94d296b96f8e
2024-04-29 17:29:45 +08:00
Like
8463dad7ca privateproperty lowering
Signed-off-by: Like <zhenglike@huawei.com>
Change-Id: Idd4affbc9d1ea861d8ef1168ce5f36ee9ef495e7
2024-04-23 14:20:59 +08:00
wupengyong
09e16fc34a Reason:add propertycache clear success Assert
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8SFH1?from=project-issue

Signed-off-by: wupengyong <wupengyong@huawei.com>
Change-Id: I22066c1969d773a0595ecbac9809c8ddef7599bf
2023-12-30 16:07:02 +08:00
wupengyong
24229f0d02 Reason:add log for cannot set readonly property bug
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8Q2IP?from=project-issue

Signed-off-by: wupengyong <wupengyong@huawei.com>
Change-Id: Ib0fed1a01449d4f50ae6d53b7faa1914d879d6cc
2023-12-21 13:49:31 +08:00
chentianyu
6a27f23b15 Add napi interface to create object with properties
Signed-off-by: chentianyu <chentianyu31@huawei.com>
Change-Id: Ic5eb7299e9731a49a9e5edb35668892ff0b9840f
2023-12-13 10:09:11 +08:00
openharmony_ci
35edadd3c4
!5155 GC BugFix Layout sync
Merge pull request !5155 from yaoyuan/layoutSync
2023-11-06 15:54:41 +00:00
yingguofeng@huawei.com
d2ce6cc655 Feat(Aot/PGO/Runtime): Profile Transtion hclass type and aot
Issue: #I872U3
Change-Id: I148cdbc6ac95022cd8dc4a5ad19e526344bb82a3
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2023-11-06 22:15:31 +08:00
yaoyuan
64894a3a73 GC BugFix Layout Sync
Issue: I8DT4U

Signed-off-by: yaoyuan <yuanyao14@huawei.com>
Change-Id: Id4915b82ec4ae4ead274fb6c7c7d503092dbd8ac
2023-11-06 09:31:42 +08:00
zhangyukun8
eef37db2c3 Optimize for-in loop
1. Add EnumCache for simple properties and no-elements properties
2. Add fastpath for non-special objects
3. Avoid duplicated copy for slowpath
4. Transition hclass when detele prop in TS

Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I84DMO?from=project-issue

Signed-off-by: zhangyukun8 <zhangyukun8@huawei.com>
Change-Id: I81648b44cc83a907c50ec90c9e8de3bbb104cef8
2023-10-12 10:00:43 +08:00
dingding
6ba3e3f1db Fix Serialization of AOT PlainObject
1. Fix Serialization of AOT PlainObject.
2. Add UT.

Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I81P1A

Signed-off-by: dingding <dingding5@huawei.com>
Change-Id: I78c6fd31de2af7c41e3e2775a7b9c37d47114dad
2023-09-16 09:42:04 +08:00
dingwen
d81259c9c7 Fix AddPropertyByName tagged array extend bug
Description:Modify tagged array extend strategy
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7ZQ8G?from=project-issue

Signed-off-by: dingwen <dingwen6@huawei.com>
Change-Id: Idb88a8911b9d87df39e7e1cccc08cb1a1ddf4beb
2023-09-11 11:53:43 +08:00
yingguofeng@huawei.com
3b107f900a Feat(Aot): Track Double/Int field for aot compiler
Issue: #I7JI0Z
Change-Id: I24f762d505cf467e86d5a12f3fc78c9ecd4513f1
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2023-07-12 21:55:16 +08:00
yingguofeng@huawei.com
fb20da0b8f Feat(Aot): Part4 Load hclass info from ap for aot compiler
Issue: #I7EGRC
Change-Id: I2493cc4f22b5579f28a93433845481febf17effc
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2023-06-29 17:52:09 +08:00
yingguofeng@huawei.com
c85c0e5238 Feat(Aot): PGO hclass dump Inheritance relationship and suppor poly
Issue: #I79QXC
Change-Id: Ia955bc33c78531daccfa5ae5b6ce1c047c3ae8b6
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2023-06-17 19:33:10 +08:00
huangzhenghua
970f0a256a adapt napi_get_all_property_name
issue: https://gitee.com/openharmony/arkui_napi/issues/I7CK4V
Signed-off-by: huangzhenghua <huangzhenghua3@huawei.com>
Change-Id: Icfa0e5848462bdd6bed4395bcc48cb4447aa3f06
2023-06-11 23:50:16 +08:00
dingding
a1a67b6381 Intruduce TSClassAnalysisPass
1. Intruduce a new pass: TSClassAnalysisPass to process ts class type.
2. Use initialized property analysis to guide lowering to eliminate ConvertHoleAsUndefind.
3. Add class TSHClassGenerator to generate ts hclass in BytecodeCircuitBuilder.
4. Add test cases.

Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I73V8K

Signed-off-by: dingding <dingding5@huawei.com>
Change-Id: Ia47d01e9cab1355d8b87c809e53a427a5abded39
2023-05-26 16:45:32 +08:00
yingguofeng@huawei.com
cca4ba8fe4 Feat(PGO): PGO Support profile number type of object field
Issue: #I739C3
Change-Id: Ie57b6174d7b68121e81b72ffd8d71ec1b0d5f80f
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2023-05-24 15:36:53 +08:00
weng-xi
73f39aa7f3 AOT Supports VTable [PART_1]
1. Add fours fields to jshclass [LEVEL, SUPERS]
2. Add VTable class
3. Adjust type parser and TSHClass generation logic
4. Extended the weakvector class
5. Add SubtypeingOperator class

Issue: https://gitee.com/open_harmony/dashboard?issue_id=I6FVAJ
Signed-off-by: weng-xi <wengxi1@huawei.com>
Change-Id: I6640f3719fa067f505befd0f2cb0efb99d179dfc
2023-03-16 19:07:49 +08:00
yingguofeng@huawei.com
50417b0a01 perf(class): Optimization of Class Field
Closes #I5PKW0

Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
Change-Id: I7e7f1c619ec93c7978b4b735f170b762adc22981
2022-09-04 16:46:32 +08:00
linxiang
4a082f4f0b use full-path for all headers.
Signed-off-by: linxiang <linxiang8@huawei.com>
Change-Id: I20b5cf6245799839362b1999d3d9fb6955bf609a
2022-07-25 20:32:55 +08:00
ding
31137c0ece Resolve Compatibility Issues between TSAOT and ECMA spec
1.Add typelowering framework.
2.Add newobjdynrange in typelowering which brings static TS type
  info to runtime phase.
3.Serialize and deserialize hclass table with snapshot, fix minor bugs
  in snapshot by the way.
4.Add IsFormTSTypeBit in HClass to distinguish hclasses which come from
  compile phase.
5.Fix compatibility issues in property operations api and some builints
  api.
6.Add 3 compatibility issues test cases.

Issue:https://gitee.com/openharmony/ark_js_runtime/issues/I5E2N9

Signed-off-by: ding <dingding5@huawei.com>
Change-Id: I98626e6eea01f4455ec818ba0ad872b3be98b729
2022-06-28 14:43:16 +08:00
wengchangcheng
cc184ba66c Descriptor: delete some internal unused code
details: delete unused code
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5COHE

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I5fe62c58353839d4aac1144fc99e2cf87f4374eb
2022-06-17 23:03:42 +08:00
wengchangcheng
8faa5f9abc [part-1] delete "*-inl.h" of newest codex rule
move the definition to the declare head file

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

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: Ieeb0ec96281cda51d0bebd6a2e771fc8d4078306
2022-04-07 14:14:49 +08:00
wengchangcheng
839f39e500 modify ACCESSOR for EcmaString and TaggedArray
Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I2995dc75ed34e8eb2bf249f2cced62ec9d91250e
2022-01-17 11:51:50 +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