文件最后提交记录最后更新时间
reimplemented bytecodes for suspend/dispatch Issue: https://gitcode.com/openharmony/arkcompiler_runtime_core/issues/11144 Signed-off-by: Panferov Ivan <panferov.ivan@huawei-partners.com> Co-Authored-By: NA1 个月前
Refactor 'ImportPathManager' & 'ExternalSources' Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/8938 Description: ImportPathManager: 1. Make 'ImportPathManager' responsible for 'Program' creation. 2. Specialize 'Program's by 'util::ModuleKind', 'Program' is an abstract base. 3. Refactor 'Program::externalSources_'; 4. Gather all the global-caches under 'ImportPathManager' (ast-cache, source-cache, decl-cache). 5. Reduce 'resolvedSource', 'declPath', 'ohmUrl', 'declText' and etc. interference: * Define 'ohmUrl' as fs-independent 'resolvedSource' * 'moduleName' is formed in the following way: 1. Form 'resolvedSource' (absolute-path). 2. Form 'ohmUrl' based on matching 'resolvedSource' with fields of arktsconfig. 3. If wasn't matched, 'ohmUrl' is just a filename (w/o extension). 4. Form 'moduleName' by repalcing '/' with '.' in 'ohmUrl'. 6. Simplify '.etscache' path resolving by 'cacheDir'/'ohmUrl'.etscache. Phases: 1. Skip "before-emit-decl" phases for 'Program's constructed from decl-caches. 2. Replace 'PhaseForBodies' and 'PhaseForDeclarations' with 'PhaseFor<ModuleKind...>' Programs. 3. Introduce 'PhaseForProgramsToBeEmitted'. Signed-off-by: Daniel Kofanov <kofanov.daniil@huawei-partners.com> Co-authored-by: nikozer <ozerov.nikita@huawei-partners.com> Co-authored-by: Zelentsov Dmitriy <zelentsov.dmitry@huawei-partners.com> Co-authored-by: Klimentieva <klimentieva.maria@h-partners.com> Co-authored-by: lirismankarina <lirisman.karina@huawei-partners.com> Co-authored-by: Amosov Alexey <amosov.alexey1@huawei-partners.com> Co-authored-by: Dmitry Pimenov <pimenov.dmitry@huawei-partners.com> Change-Id: Icef66995940b4dcd69653108cdc6e2268b52102e4 个月前
Refactor 'ImportPathManager' & 'ExternalSources' Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/8938 Description: ImportPathManager: 1. Make 'ImportPathManager' responsible for 'Program' creation. 2. Specialize 'Program's by 'util::ModuleKind', 'Program' is an abstract base. 3. Refactor 'Program::externalSources_'; 4. Gather all the global-caches under 'ImportPathManager' (ast-cache, source-cache, decl-cache). 5. Reduce 'resolvedSource', 'declPath', 'ohmUrl', 'declText' and etc. interference: * Define 'ohmUrl' as fs-independent 'resolvedSource' * 'moduleName' is formed in the following way: 1. Form 'resolvedSource' (absolute-path). 2. Form 'ohmUrl' based on matching 'resolvedSource' with fields of arktsconfig. 3. If wasn't matched, 'ohmUrl' is just a filename (w/o extension). 4. Form 'moduleName' by repalcing '/' with '.' in 'ohmUrl'. 6. Simplify '.etscache' path resolving by 'cacheDir'/'ohmUrl'.etscache. Phases: 1. Skip "before-emit-decl" phases for 'Program's constructed from decl-caches. 2. Replace 'PhaseForBodies' and 'PhaseForDeclarations' with 'PhaseFor<ModuleKind...>' Programs. 3. Introduce 'PhaseForProgramsToBeEmitted'. Signed-off-by: Daniel Kofanov <kofanov.daniil@huawei-partners.com> Co-authored-by: nikozer <ozerov.nikita@huawei-partners.com> Co-authored-by: Zelentsov Dmitriy <zelentsov.dmitry@huawei-partners.com> Co-authored-by: Klimentieva <klimentieva.maria@h-partners.com> Co-authored-by: lirismankarina <lirisman.karina@huawei-partners.com> Co-authored-by: Amosov Alexey <amosov.alexey1@huawei-partners.com> Co-authored-by: Dmitry Pimenov <pimenov.dmitry@huawei-partners.com> Change-Id: Icef66995940b4dcd69653108cdc6e2268b52102e4 个月前
Refactor 'ImportPathManager' & 'ExternalSources' Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/8938 Description: ImportPathManager: 1. Make 'ImportPathManager' responsible for 'Program' creation. 2. Specialize 'Program's by 'util::ModuleKind', 'Program' is an abstract base. 3. Refactor 'Program::externalSources_'; 4. Gather all the global-caches under 'ImportPathManager' (ast-cache, source-cache, decl-cache). 5. Reduce 'resolvedSource', 'declPath', 'ohmUrl', 'declText' and etc. interference: * Define 'ohmUrl' as fs-independent 'resolvedSource' * 'moduleName' is formed in the following way: 1. Form 'resolvedSource' (absolute-path). 2. Form 'ohmUrl' based on matching 'resolvedSource' with fields of arktsconfig. 3. If wasn't matched, 'ohmUrl' is just a filename (w/o extension). 4. Form 'moduleName' by repalcing '/' with '.' in 'ohmUrl'. 6. Simplify '.etscache' path resolving by 'cacheDir'/'ohmUrl'.etscache. Phases: 1. Skip "before-emit-decl" phases for 'Program's constructed from decl-caches. 2. Replace 'PhaseForBodies' and 'PhaseForDeclarations' with 'PhaseFor<ModuleKind...>' Programs. 3. Introduce 'PhaseForProgramsToBeEmitted'. Signed-off-by: Daniel Kofanov <kofanov.daniil@huawei-partners.com> Co-authored-by: nikozer <ozerov.nikita@huawei-partners.com> Co-authored-by: Zelentsov Dmitriy <zelentsov.dmitry@huawei-partners.com> Co-authored-by: Klimentieva <klimentieva.maria@h-partners.com> Co-authored-by: lirismankarina <lirisman.karina@huawei-partners.com> Co-authored-by: Amosov Alexey <amosov.alexey1@huawei-partners.com> Co-authored-by: Dmitry Pimenov <pimenov.dmitry@huawei-partners.com> Change-Id: Icef66995940b4dcd69653108cdc6e2268b52102e4 个月前
Refactor 'ImportPathManager' & 'ExternalSources' Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/8938 Description: ImportPathManager: 1. Make 'ImportPathManager' responsible for 'Program' creation. 2. Specialize 'Program's by 'util::ModuleKind', 'Program' is an abstract base. 3. Refactor 'Program::externalSources_'; 4. Gather all the global-caches under 'ImportPathManager' (ast-cache, source-cache, decl-cache). 5. Reduce 'resolvedSource', 'declPath', 'ohmUrl', 'declText' and etc. interference: * Define 'ohmUrl' as fs-independent 'resolvedSource' * 'moduleName' is formed in the following way: 1. Form 'resolvedSource' (absolute-path). 2. Form 'ohmUrl' based on matching 'resolvedSource' with fields of arktsconfig. 3. If wasn't matched, 'ohmUrl' is just a filename (w/o extension). 4. Form 'moduleName' by repalcing '/' with '.' in 'ohmUrl'. 6. Simplify '.etscache' path resolving by 'cacheDir'/'ohmUrl'.etscache. Phases: 1. Skip "before-emit-decl" phases for 'Program's constructed from decl-caches. 2. Replace 'PhaseForBodies' and 'PhaseForDeclarations' with 'PhaseFor<ModuleKind...>' Programs. 3. Introduce 'PhaseForProgramsToBeEmitted'. Signed-off-by: Daniel Kofanov <kofanov.daniil@huawei-partners.com> Co-authored-by: nikozer <ozerov.nikita@huawei-partners.com> Co-authored-by: Zelentsov Dmitriy <zelentsov.dmitry@huawei-partners.com> Co-authored-by: Klimentieva <klimentieva.maria@h-partners.com> Co-authored-by: lirismankarina <lirisman.karina@huawei-partners.com> Co-authored-by: Amosov Alexey <amosov.alexey1@huawei-partners.com> Co-authored-by: Dmitry Pimenov <pimenov.dmitry@huawei-partners.com> Change-Id: Icef66995940b4dcd69653108cdc6e2268b52102e4 个月前
Fix annotation recheck error Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/9980 Co-Authored-By: Agent Signed-off-by: wangzhengji <wangzhengji3@huawei.com>27 天前
Refactor 'ImportPathManager' & 'ExternalSources' Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/8938 Description: ImportPathManager: 1. Make 'ImportPathManager' responsible for 'Program' creation. 2. Specialize 'Program's by 'util::ModuleKind', 'Program' is an abstract base. 3. Refactor 'Program::externalSources_'; 4. Gather all the global-caches under 'ImportPathManager' (ast-cache, source-cache, decl-cache). 5. Reduce 'resolvedSource', 'declPath', 'ohmUrl', 'declText' and etc. interference: * Define 'ohmUrl' as fs-independent 'resolvedSource' * 'moduleName' is formed in the following way: 1. Form 'resolvedSource' (absolute-path). 2. Form 'ohmUrl' based on matching 'resolvedSource' with fields of arktsconfig. 3. If wasn't matched, 'ohmUrl' is just a filename (w/o extension). 4. Form 'moduleName' by repalcing '/' with '.' in 'ohmUrl'. 6. Simplify '.etscache' path resolving by 'cacheDir'/'ohmUrl'.etscache. Phases: 1. Skip "before-emit-decl" phases for 'Program's constructed from decl-caches. 2. Replace 'PhaseForBodies' and 'PhaseForDeclarations' with 'PhaseFor<ModuleKind...>' Programs. 3. Introduce 'PhaseForProgramsToBeEmitted'. Signed-off-by: Daniel Kofanov <kofanov.daniil@huawei-partners.com> Co-authored-by: nikozer <ozerov.nikita@huawei-partners.com> Co-authored-by: Zelentsov Dmitriy <zelentsov.dmitry@huawei-partners.com> Co-authored-by: Klimentieva <klimentieva.maria@h-partners.com> Co-authored-by: lirismankarina <lirisman.karina@huawei-partners.com> Co-authored-by: Amosov Alexey <amosov.alexey1@huawei-partners.com> Co-authored-by: Dmitry Pimenov <pimenov.dmitry@huawei-partners.com> Change-Id: Icef66995940b4dcd69653108cdc6e2268b52102e4 个月前
Fix array size bug Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/9712 Co-Authored-By:Agent Signed-off-by: xuxjeeee <xuxinjie4@huawei.com>2 个月前
remove arrays from size Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/9384 Co-Authored-By: NA Change-Id: I964801b6670a822fdca8245b46d192cf46b3058f Signed-off-by: Klimentieva <klimentieva.maria@h-partners.com> Signed-off-by: ozerovnikita <ozerov.nikita@huawei-partners.com>3 个月前
Lowering support of forOf iteration over arrays Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/9928 Co-Authored-By: Agent Signed-off-by: Georgy Bronnikov <bronnikov.georgy@huawei.com>1 个月前
Lowering support of forOf iteration over arrays Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/9928 Co-Authored-By: Agent Signed-off-by: Georgy Bronnikov <bronnikov.georgy@huawei.com>1 个月前
bad bytecode of stringconcat in interop Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/9984 Co-Authored-By: Agent Signed-off-by: gcw_HJ4zMsdn <anjiaqi4@huawei.com>1 个月前
Refactor Tuple Types Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/9054 Tests: use Test-U-Runners and CI Signed-off-by: Zelentsov Dmitry <zelentsov.dmitry@huawei-partners.com>3 个月前
Fix override async Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/10942 Co-Authored-By: Agent Signed-off-by: tengtengh <tenghao9@huawei.com>16 天前
Refactor 'ImportPathManager' & 'ExternalSources' Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/8938 Description: ImportPathManager: 1. Make 'ImportPathManager' responsible for 'Program' creation. 2. Specialize 'Program's by 'util::ModuleKind', 'Program' is an abstract base. 3. Refactor 'Program::externalSources_'; 4. Gather all the global-caches under 'ImportPathManager' (ast-cache, source-cache, decl-cache). 5. Reduce 'resolvedSource', 'declPath', 'ohmUrl', 'declText' and etc. interference: * Define 'ohmUrl' as fs-independent 'resolvedSource' * 'moduleName' is formed in the following way: 1. Form 'resolvedSource' (absolute-path). 2. Form 'ohmUrl' based on matching 'resolvedSource' with fields of arktsconfig. 3. If wasn't matched, 'ohmUrl' is just a filename (w/o extension). 4. Form 'moduleName' by repalcing '/' with '.' in 'ohmUrl'. 6. Simplify '.etscache' path resolving by 'cacheDir'/'ohmUrl'.etscache. Phases: 1. Skip "before-emit-decl" phases for 'Program's constructed from decl-caches. 2. Replace 'PhaseForBodies' and 'PhaseForDeclarations' with 'PhaseFor<ModuleKind...>' Programs. 3. Introduce 'PhaseForProgramsToBeEmitted'. Signed-off-by: Daniel Kofanov <kofanov.daniil@huawei-partners.com> Co-authored-by: nikozer <ozerov.nikita@huawei-partners.com> Co-authored-by: Zelentsov Dmitriy <zelentsov.dmitry@huawei-partners.com> Co-authored-by: Klimentieva <klimentieva.maria@h-partners.com> Co-authored-by: lirismankarina <lirisman.karina@huawei-partners.com> Co-authored-by: Amosov Alexey <amosov.alexey1@huawei-partners.com> Co-authored-by: Dmitry Pimenov <pimenov.dmitry@huawei-partners.com> Change-Id: Icef66995940b4dcd69653108cdc6e2268b52102e4 个月前
Stackless lambds type deduction Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/9920 Co-Authored-By: NA Change-Id: I432b32a4873794ab723e06356b705e78ca8503b5 Signed-off-by: Nazarov Konstantin <nazarov.konstantin1@huawei.com>1 个月前
Throw statements stackless Support lowering of the throw statements in the stackless async functions Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/9684 Co-Authored-By: NA Change-Id: Ide0c47929649625af18280d0e30f7381bb1c9936 Signed-off-by: Nazarov Konstantin <nazarov.konstantin1@huawei.com>2 个月前
Allow awaiting on non-promise objects Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/9454 Signed-off-by: Georgy Bronnikov <bronnikov.georgy@huawei.com> Co-Authored-By: AGENT Change-Id: I7fa5570efbc375f3766f83224d30fc1aa42657cd3 个月前
Allow awaiting on non-promise objects Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/9454 Signed-off-by: Georgy Bronnikov <bronnikov.georgy@huawei.com> Co-Authored-By: AGENT Change-Id: I7fa5570efbc375f3766f83224d30fc1aa42657cd3 个月前
Fix instanceof for bigint Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/9948 Tests: all tests Co-Authored-By: Agent Signed-off-by: Prof <ishin.pavel@huawei.com>1 个月前
Refactor 'ImportPathManager' & 'ExternalSources' Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/8938 Description: ImportPathManager: 1. Make 'ImportPathManager' responsible for 'Program' creation. 2. Specialize 'Program's by 'util::ModuleKind', 'Program' is an abstract base. 3. Refactor 'Program::externalSources_'; 4. Gather all the global-caches under 'ImportPathManager' (ast-cache, source-cache, decl-cache). 5. Reduce 'resolvedSource', 'declPath', 'ohmUrl', 'declText' and etc. interference: * Define 'ohmUrl' as fs-independent 'resolvedSource' * 'moduleName' is formed in the following way: 1. Form 'resolvedSource' (absolute-path). 2. Form 'ohmUrl' based on matching 'resolvedSource' with fields of arktsconfig. 3. If wasn't matched, 'ohmUrl' is just a filename (w/o extension). 4. Form 'moduleName' by repalcing '/' with '.' in 'ohmUrl'. 6. Simplify '.etscache' path resolving by 'cacheDir'/'ohmUrl'.etscache. Phases: 1. Skip "before-emit-decl" phases for 'Program's constructed from decl-caches. 2. Replace 'PhaseForBodies' and 'PhaseForDeclarations' with 'PhaseFor<ModuleKind...>' Programs. 3. Introduce 'PhaseForProgramsToBeEmitted'. Signed-off-by: Daniel Kofanov <kofanov.daniil@huawei-partners.com> Co-authored-by: nikozer <ozerov.nikita@huawei-partners.com> Co-authored-by: Zelentsov Dmitriy <zelentsov.dmitry@huawei-partners.com> Co-authored-by: Klimentieva <klimentieva.maria@h-partners.com> Co-authored-by: lirismankarina <lirisman.karina@huawei-partners.com> Co-authored-by: Amosov Alexey <amosov.alexey1@huawei-partners.com> Co-authored-by: Dmitry Pimenov <pimenov.dmitry@huawei-partners.com> Change-Id: Icef66995940b4dcd69653108cdc6e2268b52102e4 个月前
Refactor 'ImportPathManager' & 'ExternalSources' Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/8938 Description: ImportPathManager: 1. Make 'ImportPathManager' responsible for 'Program' creation. 2. Specialize 'Program's by 'util::ModuleKind', 'Program' is an abstract base. 3. Refactor 'Program::externalSources_'; 4. Gather all the global-caches under 'ImportPathManager' (ast-cache, source-cache, decl-cache). 5. Reduce 'resolvedSource', 'declPath', 'ohmUrl', 'declText' and etc. interference: * Define 'ohmUrl' as fs-independent 'resolvedSource' * 'moduleName' is formed in the following way: 1. Form 'resolvedSource' (absolute-path). 2. Form 'ohmUrl' based on matching 'resolvedSource' with fields of arktsconfig. 3. If wasn't matched, 'ohmUrl' is just a filename (w/o extension). 4. Form 'moduleName' by repalcing '/' with '.' in 'ohmUrl'. 6. Simplify '.etscache' path resolving by 'cacheDir'/'ohmUrl'.etscache. Phases: 1. Skip "before-emit-decl" phases for 'Program's constructed from decl-caches. 2. Replace 'PhaseForBodies' and 'PhaseForDeclarations' with 'PhaseFor<ModuleKind...>' Programs. 3. Introduce 'PhaseForProgramsToBeEmitted'. Signed-off-by: Daniel Kofanov <kofanov.daniil@huawei-partners.com> Co-authored-by: nikozer <ozerov.nikita@huawei-partners.com> Co-authored-by: Zelentsov Dmitriy <zelentsov.dmitry@huawei-partners.com> Co-authored-by: Klimentieva <klimentieva.maria@h-partners.com> Co-authored-by: lirismankarina <lirisman.karina@huawei-partners.com> Co-authored-by: Amosov Alexey <amosov.alexey1@huawei-partners.com> Co-authored-by: Dmitry Pimenov <pimenov.dmitry@huawei-partners.com> Change-Id: Icef66995940b4dcd69653108cdc6e2268b52102e4 个月前
Refactor 'ImportPathManager' & 'ExternalSources' Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/8938 Description: ImportPathManager: 1. Make 'ImportPathManager' responsible for 'Program' creation. 2. Specialize 'Program's by 'util::ModuleKind', 'Program' is an abstract base. 3. Refactor 'Program::externalSources_'; 4. Gather all the global-caches under 'ImportPathManager' (ast-cache, source-cache, decl-cache). 5. Reduce 'resolvedSource', 'declPath', 'ohmUrl', 'declText' and etc. interference: * Define 'ohmUrl' as fs-independent 'resolvedSource' * 'moduleName' is formed in the following way: 1. Form 'resolvedSource' (absolute-path). 2. Form 'ohmUrl' based on matching 'resolvedSource' with fields of arktsconfig. 3. If wasn't matched, 'ohmUrl' is just a filename (w/o extension). 4. Form 'moduleName' by repalcing '/' with '.' in 'ohmUrl'. 6. Simplify '.etscache' path resolving by 'cacheDir'/'ohmUrl'.etscache. Phases: 1. Skip "before-emit-decl" phases for 'Program's constructed from decl-caches. 2. Replace 'PhaseForBodies' and 'PhaseForDeclarations' with 'PhaseFor<ModuleKind...>' Programs. 3. Introduce 'PhaseForProgramsToBeEmitted'. Signed-off-by: Daniel Kofanov <kofanov.daniil@huawei-partners.com> Co-authored-by: nikozer <ozerov.nikita@huawei-partners.com> Co-authored-by: Zelentsov Dmitriy <zelentsov.dmitry@huawei-partners.com> Co-authored-by: Klimentieva <klimentieva.maria@h-partners.com> Co-authored-by: lirismankarina <lirisman.karina@huawei-partners.com> Co-authored-by: Amosov Alexey <amosov.alexey1@huawei-partners.com> Co-authored-by: Dmitry Pimenov <pimenov.dmitry@huawei-partners.com> Change-Id: Icef66995940b4dcd69653108cdc6e2268b52102e4 个月前
Remove wrong error Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/9885 Co-Authored-By: Agent Signed-off-by: fanglou <fanglou@huawei.com> Change-Id: I042e7f6c3c67fb9c8cf645f8a0b043121029ed9f1 个月前
Refactor 'ImportPathManager' & 'ExternalSources' Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/8938 Description: ImportPathManager: 1. Make 'ImportPathManager' responsible for 'Program' creation. 2. Specialize 'Program's by 'util::ModuleKind', 'Program' is an abstract base. 3. Refactor 'Program::externalSources_'; 4. Gather all the global-caches under 'ImportPathManager' (ast-cache, source-cache, decl-cache). 5. Reduce 'resolvedSource', 'declPath', 'ohmUrl', 'declText' and etc. interference: * Define 'ohmUrl' as fs-independent 'resolvedSource' * 'moduleName' is formed in the following way: 1. Form 'resolvedSource' (absolute-path). 2. Form 'ohmUrl' based on matching 'resolvedSource' with fields of arktsconfig. 3. If wasn't matched, 'ohmUrl' is just a filename (w/o extension). 4. Form 'moduleName' by repalcing '/' with '.' in 'ohmUrl'. 6. Simplify '.etscache' path resolving by 'cacheDir'/'ohmUrl'.etscache. Phases: 1. Skip "before-emit-decl" phases for 'Program's constructed from decl-caches. 2. Replace 'PhaseForBodies' and 'PhaseForDeclarations' with 'PhaseFor<ModuleKind...>' Programs. 3. Introduce 'PhaseForProgramsToBeEmitted'. Signed-off-by: Daniel Kofanov <kofanov.daniil@huawei-partners.com> Co-authored-by: nikozer <ozerov.nikita@huawei-partners.com> Co-authored-by: Zelentsov Dmitriy <zelentsov.dmitry@huawei-partners.com> Co-authored-by: Klimentieva <klimentieva.maria@h-partners.com> Co-authored-by: lirismankarina <lirisman.karina@huawei-partners.com> Co-authored-by: Amosov Alexey <amosov.alexey1@huawei-partners.com> Co-authored-by: Dmitry Pimenov <pimenov.dmitry@huawei-partners.com> Change-Id: Icef66995940b4dcd69653108cdc6e2268b52102e4 个月前
Refactor 'ImportPathManager' & 'ExternalSources' Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/8938 Description: ImportPathManager: 1. Make 'ImportPathManager' responsible for 'Program' creation. 2. Specialize 'Program's by 'util::ModuleKind', 'Program' is an abstract base. 3. Refactor 'Program::externalSources_'; 4. Gather all the global-caches under 'ImportPathManager' (ast-cache, source-cache, decl-cache). 5. Reduce 'resolvedSource', 'declPath', 'ohmUrl', 'declText' and etc. interference: * Define 'ohmUrl' as fs-independent 'resolvedSource' * 'moduleName' is formed in the following way: 1. Form 'resolvedSource' (absolute-path). 2. Form 'ohmUrl' based on matching 'resolvedSource' with fields of arktsconfig. 3. If wasn't matched, 'ohmUrl' is just a filename (w/o extension). 4. Form 'moduleName' by repalcing '/' with '.' in 'ohmUrl'. 6. Simplify '.etscache' path resolving by 'cacheDir'/'ohmUrl'.etscache. Phases: 1. Skip "before-emit-decl" phases for 'Program's constructed from decl-caches. 2. Replace 'PhaseForBodies' and 'PhaseForDeclarations' with 'PhaseFor<ModuleKind...>' Programs. 3. Introduce 'PhaseForProgramsToBeEmitted'. Signed-off-by: Daniel Kofanov <kofanov.daniil@huawei-partners.com> Co-authored-by: nikozer <ozerov.nikita@huawei-partners.com> Co-authored-by: Zelentsov Dmitriy <zelentsov.dmitry@huawei-partners.com> Co-authored-by: Klimentieva <klimentieva.maria@h-partners.com> Co-authored-by: lirismankarina <lirisman.karina@huawei-partners.com> Co-authored-by: Amosov Alexey <amosov.alexey1@huawei-partners.com> Co-authored-by: Dmitry Pimenov <pimenov.dmitry@huawei-partners.com> Change-Id: Icef66995940b4dcd69653108cdc6e2268b52102e4 个月前
Refactor 'ImportPathManager' & 'ExternalSources' Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/8938 Description: ImportPathManager: 1. Make 'ImportPathManager' responsible for 'Program' creation. 2. Specialize 'Program's by 'util::ModuleKind', 'Program' is an abstract base. 3. Refactor 'Program::externalSources_'; 4. Gather all the global-caches under 'ImportPathManager' (ast-cache, source-cache, decl-cache). 5. Reduce 'resolvedSource', 'declPath', 'ohmUrl', 'declText' and etc. interference: * Define 'ohmUrl' as fs-independent 'resolvedSource' * 'moduleName' is formed in the following way: 1. Form 'resolvedSource' (absolute-path). 2. Form 'ohmUrl' based on matching 'resolvedSource' with fields of arktsconfig. 3. If wasn't matched, 'ohmUrl' is just a filename (w/o extension). 4. Form 'moduleName' by repalcing '/' with '.' in 'ohmUrl'. 6. Simplify '.etscache' path resolving by 'cacheDir'/'ohmUrl'.etscache. Phases: 1. Skip "before-emit-decl" phases for 'Program's constructed from decl-caches. 2. Replace 'PhaseForBodies' and 'PhaseForDeclarations' with 'PhaseFor<ModuleKind...>' Programs. 3. Introduce 'PhaseForProgramsToBeEmitted'. Signed-off-by: Daniel Kofanov <kofanov.daniil@huawei-partners.com> Co-authored-by: nikozer <ozerov.nikita@huawei-partners.com> Co-authored-by: Zelentsov Dmitriy <zelentsov.dmitry@huawei-partners.com> Co-authored-by: Klimentieva <klimentieva.maria@h-partners.com> Co-authored-by: lirismankarina <lirisman.karina@huawei-partners.com> Co-authored-by: Amosov Alexey <amosov.alexey1@huawei-partners.com> Co-authored-by: Dmitry Pimenov <pimenov.dmitry@huawei-partners.com> Change-Id: Icef66995940b4dcd69653108cdc6e2268b52102e4 个月前
Refactor 'ImportPathManager' & 'ExternalSources' Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/8938 Description: ImportPathManager: 1. Make 'ImportPathManager' responsible for 'Program' creation. 2. Specialize 'Program's by 'util::ModuleKind', 'Program' is an abstract base. 3. Refactor 'Program::externalSources_'; 4. Gather all the global-caches under 'ImportPathManager' (ast-cache, source-cache, decl-cache). 5. Reduce 'resolvedSource', 'declPath', 'ohmUrl', 'declText' and etc. interference: * Define 'ohmUrl' as fs-independent 'resolvedSource' * 'moduleName' is formed in the following way: 1. Form 'resolvedSource' (absolute-path). 2. Form 'ohmUrl' based on matching 'resolvedSource' with fields of arktsconfig. 3. If wasn't matched, 'ohmUrl' is just a filename (w/o extension). 4. Form 'moduleName' by repalcing '/' with '.' in 'ohmUrl'. 6. Simplify '.etscache' path resolving by 'cacheDir'/'ohmUrl'.etscache. Phases: 1. Skip "before-emit-decl" phases for 'Program's constructed from decl-caches. 2. Replace 'PhaseForBodies' and 'PhaseForDeclarations' with 'PhaseFor<ModuleKind...>' Programs. 3. Introduce 'PhaseForProgramsToBeEmitted'. Signed-off-by: Daniel Kofanov <kofanov.daniil@huawei-partners.com> Co-authored-by: nikozer <ozerov.nikita@huawei-partners.com> Co-authored-by: Zelentsov Dmitriy <zelentsov.dmitry@huawei-partners.com> Co-authored-by: Klimentieva <klimentieva.maria@h-partners.com> Co-authored-by: lirismankarina <lirisman.karina@huawei-partners.com> Co-authored-by: Amosov Alexey <amosov.alexey1@huawei-partners.com> Co-authored-by: Dmitry Pimenov <pimenov.dmitry@huawei-partners.com> Change-Id: Icef66995940b4dcd69653108cdc6e2268b52102e4 个月前
Refactor 'ImportPathManager' & 'ExternalSources' Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/8938 Description: ImportPathManager: 1. Make 'ImportPathManager' responsible for 'Program' creation. 2. Specialize 'Program's by 'util::ModuleKind', 'Program' is an abstract base. 3. Refactor 'Program::externalSources_'; 4. Gather all the global-caches under 'ImportPathManager' (ast-cache, source-cache, decl-cache). 5. Reduce 'resolvedSource', 'declPath', 'ohmUrl', 'declText' and etc. interference: * Define 'ohmUrl' as fs-independent 'resolvedSource' * 'moduleName' is formed in the following way: 1. Form 'resolvedSource' (absolute-path). 2. Form 'ohmUrl' based on matching 'resolvedSource' with fields of arktsconfig. 3. If wasn't matched, 'ohmUrl' is just a filename (w/o extension). 4. Form 'moduleName' by repalcing '/' with '.' in 'ohmUrl'. 6. Simplify '.etscache' path resolving by 'cacheDir'/'ohmUrl'.etscache. Phases: 1. Skip "before-emit-decl" phases for 'Program's constructed from decl-caches. 2. Replace 'PhaseForBodies' and 'PhaseForDeclarations' with 'PhaseFor<ModuleKind...>' Programs. 3. Introduce 'PhaseForProgramsToBeEmitted'. Signed-off-by: Daniel Kofanov <kofanov.daniil@huawei-partners.com> Co-authored-by: nikozer <ozerov.nikita@huawei-partners.com> Co-authored-by: Zelentsov Dmitriy <zelentsov.dmitry@huawei-partners.com> Co-authored-by: Klimentieva <klimentieva.maria@h-partners.com> Co-authored-by: lirismankarina <lirisman.karina@huawei-partners.com> Co-authored-by: Amosov Alexey <amosov.alexey1@huawei-partners.com> Co-authored-by: Dmitry Pimenov <pimenov.dmitry@huawei-partners.com> Change-Id: Icef66995940b4dcd69653108cdc6e2268b52102e4 个月前
Unify 'void' and 'undefined' types * Implement void-undefined boxing/unboxing with void type as primitive * Support IsSuperTypeOf and Identical methods for void/undefined according to Specification * Clean up now redundant CTEs and void-related patch-ups Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/9625 Co-Authored-By: Agent Signed-off-by: Maxim Bolshov <bolshov.maxim@huawei.com>2 个月前
Refactor 'ImportPathManager' & 'ExternalSources' Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/8938 Description: ImportPathManager: 1. Make 'ImportPathManager' responsible for 'Program' creation. 2. Specialize 'Program's by 'util::ModuleKind', 'Program' is an abstract base. 3. Refactor 'Program::externalSources_'; 4. Gather all the global-caches under 'ImportPathManager' (ast-cache, source-cache, decl-cache). 5. Reduce 'resolvedSource', 'declPath', 'ohmUrl', 'declText' and etc. interference: * Define 'ohmUrl' as fs-independent 'resolvedSource' * 'moduleName' is formed in the following way: 1. Form 'resolvedSource' (absolute-path). 2. Form 'ohmUrl' based on matching 'resolvedSource' with fields of arktsconfig. 3. If wasn't matched, 'ohmUrl' is just a filename (w/o extension). 4. Form 'moduleName' by repalcing '/' with '.' in 'ohmUrl'. 6. Simplify '.etscache' path resolving by 'cacheDir'/'ohmUrl'.etscache. Phases: 1. Skip "before-emit-decl" phases for 'Program's constructed from decl-caches. 2. Replace 'PhaseForBodies' and 'PhaseForDeclarations' with 'PhaseFor<ModuleKind...>' Programs. 3. Introduce 'PhaseForProgramsToBeEmitted'. Signed-off-by: Daniel Kofanov <kofanov.daniil@huawei-partners.com> Co-authored-by: nikozer <ozerov.nikita@huawei-partners.com> Co-authored-by: Zelentsov Dmitriy <zelentsov.dmitry@huawei-partners.com> Co-authored-by: Klimentieva <klimentieva.maria@h-partners.com> Co-authored-by: lirismankarina <lirisman.karina@huawei-partners.com> Co-authored-by: Amosov Alexey <amosov.alexey1@huawei-partners.com> Co-authored-by: Dmitry Pimenov <pimenov.dmitry@huawei-partners.com> Change-Id: Icef66995940b4dcd69653108cdc6e2268b52102e4 个月前
Unify 'void' and 'undefined' types * Implement void-undefined boxing/unboxing with void type as primitive * Support IsSuperTypeOf and Identical methods for void/undefined according to Specification * Clean up now redundant CTEs and void-related patch-ups Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/9625 Co-Authored-By: Agent Signed-off-by: Maxim Bolshov <bolshov.maxim@huawei.com>2 个月前
Fix ?. expression Co-Authored-By: Agent Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/9221 Signed-off-by: likaizheng <likaizheng@huawei.com>3 个月前
!10864 merge constant_before_declaration into master constant used before decl Created-by: blue_gym Commit-by: wudongchao Merged-by: openharmony_ci Description: Change-Id: I9ab7be34c8b7b8ef6eaf1deb76ba81d0c4f49dcd ### 关联的Issue [[Bug]: constant used before decl](https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/10306) ### 提交类型 - [ ] 需求 - [ ] bugfix ### 需求背景/Description <!-- 仅涉及需求时填写 --> ### 问题现象&&分析/Reason <!-- 仅涉及bugfix时填写 --> ### 修改方案/Scheme ### 测试结果(测试截图直接贴在对应测试项,主干已知问题需明确引入pr/责任人) #### 功能测试(除仅涉及文本外必测项)[wiki](https://gitee.com/openharmony/arkcompiler_ets_frontend/wikis/代码提交要求及测试验证流程) 1. es2abc测试用例(Debug模式) - [ ] 已通过 - [ ] 不涉及,无需验证 2. Verifier测试 - [ ] 已通过 - [ ] 不涉及,无需验证 3. 64位RK编译 - [ ] 已通过 - [ ] 不涉及,无需验证 4. 编译mac平台sdk - [ ] 已通过 - [ ] 不涉及,无需验证 #### 混淆测试(涉及arkguard改动时必测项)[wiki](https://gitee.com/openharmony/arkcompiler_ets_frontend/wikis/混淆测试验证流程?sort_id=11451209) 1. 单元测试 - [ ] 已通过 - [ ] 不涉及,无需验证 2. Compiler测试套 - [ ] 已通过 - [ ] 不涉及,无需验证 3. TSC extra测试套 - [ ] 已通过 - [ ] 不涉及,无需验证 4. Test262测试套 - [ ] 已通过 - [ ] 不涉及,无需验证 5. Benchmark测试 - [ ] 已通过 - [ ] 不涉及,无需验证 6. 应用自动化测试套 - [ ] 已通过 - [ ] 不涉及,无需验证 7. 是否创建全局变量,若创建全局变量,是否有清空操作 - [ ] 创建了全局变量,且已清空 - [ ] 创建了全局变量,未清空 - [ ] 未创建全局变量 #### 兼容性测试(指令生成、文件格式修改时) 1. 小版本兼容性测试 <!-- 修改导致新abc无法运行在老镜像上时,需新增版本号 --> - [ ] 已增加版本号 - [ ] 已通过 - [ ] 不涉及,无需验证 2. 大版本兼容性测试 <!-- 配置target-api-version时,生成的abc需要能在对应版本运行--> - [ ] 已通过 - [ ] 不涉及,无需验证 3. es2abc版本兼容性测试 <!-- 新版本es2abc编译的老版本API的abc文件,应能被老版本es2abc正常识别和处理--> **说明:如PR涉及版本控制用例的变更,需同步检查修改对其他分支的影响,并确认是否要同步受影响的分支** - [ ] 涉及,变更影响 API/字节码 版本, 需同步修改到其他分支 - [ ] 涉及,变更影响 API/字节码 版本, 无需同步到其他分支 - [ ] 不涉及,变更不涉及 API/字节码 版本 4. 是否涉及词法环境修改 **说明:如PR涉及词法环境修改,需验证对应热重载场景是否兼容** - [ ] 涉及,影响热重载场景,需排查影响 - [ ] 涉及,不影响热重载场景 - [ ] 不涉及 #### 性能测试 (新增语法检查等场景) - [ ] 已通过 - [ ] 不涉及,无需验证 #### 指令/abc格式修改自检,需联系下方邮箱,同步至相关领域 **重要:涉及runtime_core仓abc2program、libpandafile、isa目录下的修改,必须提供一个编译helloworld项目的hap包给对应领域,并联系下方邮箱** - [ ] 涉及,已同步 - [ ] 不涉及 **Email:** wutao185@huawei.com ### 是否已执行L0用例 - [ ] 已验证 - [ ] 不涉及。如不涉及,请写明理由 ### 是否已执行L0用例 - [ ] 已验证 - [ ] 不涉及。如不涉及,请写明理由 See merge request: openharmony/arkcompiler_ets_frontend!1086417 天前
Add warning for expression Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/9788 Co-Authored-By:Agent Signed-off-by: xuxjeeee <xuxinjie4@huawei.com>2 个月前
constructor issue Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/9725 Signed-off-by: wudongchao <wudongchao1@huawei.com> Co-Authored-By: Agent1 个月前
constructor issue Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/9725 Signed-off-by: wudongchao <wudongchao1@huawei.com> Co-Authored-By: Agent1 个月前
[ metadata ] Implement metadata deserialization Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/9912 Change-Id: I6fd1b806c0ce92f6b32112ade1e46b576ba662b8 Signed-off-by: Victor Petukhov <petukhov.victor@huawei-partners.com> Co-Authored-By: Victor Petukhov <petukhov.victor@huawei-partners.com>1 个月前
Refactor 'ImportPathManager' & 'ExternalSources' Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/8938 Description: ImportPathManager: 1. Make 'ImportPathManager' responsible for 'Program' creation. 2. Specialize 'Program's by 'util::ModuleKind', 'Program' is an abstract base. 3. Refactor 'Program::externalSources_'; 4. Gather all the global-caches under 'ImportPathManager' (ast-cache, source-cache, decl-cache). 5. Reduce 'resolvedSource', 'declPath', 'ohmUrl', 'declText' and etc. interference: * Define 'ohmUrl' as fs-independent 'resolvedSource' * 'moduleName' is formed in the following way: 1. Form 'resolvedSource' (absolute-path). 2. Form 'ohmUrl' based on matching 'resolvedSource' with fields of arktsconfig. 3. If wasn't matched, 'ohmUrl' is just a filename (w/o extension). 4. Form 'moduleName' by repalcing '/' with '.' in 'ohmUrl'. 6. Simplify '.etscache' path resolving by 'cacheDir'/'ohmUrl'.etscache. Phases: 1. Skip "before-emit-decl" phases for 'Program's constructed from decl-caches. 2. Replace 'PhaseForBodies' and 'PhaseForDeclarations' with 'PhaseFor<ModuleKind...>' Programs. 3. Introduce 'PhaseForProgramsToBeEmitted'. Signed-off-by: Daniel Kofanov <kofanov.daniil@huawei-partners.com> Co-authored-by: nikozer <ozerov.nikita@huawei-partners.com> Co-authored-by: Zelentsov Dmitriy <zelentsov.dmitry@huawei-partners.com> Co-authored-by: Klimentieva <klimentieva.maria@h-partners.com> Co-authored-by: lirismankarina <lirisman.karina@huawei-partners.com> Co-authored-by: Amosov Alexey <amosov.alexey1@huawei-partners.com> Co-authored-by: Dmitry Pimenov <pimenov.dmitry@huawei-partners.com> Change-Id: Icef66995940b4dcd69653108cdc6e2268b52102e4 个月前
Remove DefaultParametersInConstructorLowering Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/8777 Signed-off-by: xuxjeeee <xuxinjie4@huawei.com> Signed-off-by: Amosov Alexey <amosov.alexey1@huawei-partners.com>4 个月前
Refactor 'ImportPathManager' & 'ExternalSources' Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/8938 Description: ImportPathManager: 1. Make 'ImportPathManager' responsible for 'Program' creation. 2. Specialize 'Program's by 'util::ModuleKind', 'Program' is an abstract base. 3. Refactor 'Program::externalSources_'; 4. Gather all the global-caches under 'ImportPathManager' (ast-cache, source-cache, decl-cache). 5. Reduce 'resolvedSource', 'declPath', 'ohmUrl', 'declText' and etc. interference: * Define 'ohmUrl' as fs-independent 'resolvedSource' * 'moduleName' is formed in the following way: 1. Form 'resolvedSource' (absolute-path). 2. Form 'ohmUrl' based on matching 'resolvedSource' with fields of arktsconfig. 3. If wasn't matched, 'ohmUrl' is just a filename (w/o extension). 4. Form 'moduleName' by repalcing '/' with '.' in 'ohmUrl'. 6. Simplify '.etscache' path resolving by 'cacheDir'/'ohmUrl'.etscache. Phases: 1. Skip "before-emit-decl" phases for 'Program's constructed from decl-caches. 2. Replace 'PhaseForBodies' and 'PhaseForDeclarations' with 'PhaseFor<ModuleKind...>' Programs. 3. Introduce 'PhaseForProgramsToBeEmitted'. Signed-off-by: Daniel Kofanov <kofanov.daniil@huawei-partners.com> Co-authored-by: nikozer <ozerov.nikita@huawei-partners.com> Co-authored-by: Zelentsov Dmitriy <zelentsov.dmitry@huawei-partners.com> Co-authored-by: Klimentieva <klimentieva.maria@h-partners.com> Co-authored-by: lirismankarina <lirisman.karina@huawei-partners.com> Co-authored-by: Amosov Alexey <amosov.alexey1@huawei-partners.com> Co-authored-by: Dmitry Pimenov <pimenov.dmitry@huawei-partners.com> Change-Id: Icef66995940b4dcd69653108cdc6e2268b52102e4 个月前
Refactor 'ImportPathManager' & 'ExternalSources' Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/8938 Description: ImportPathManager: 1. Make 'ImportPathManager' responsible for 'Program' creation. 2. Specialize 'Program's by 'util::ModuleKind', 'Program' is an abstract base. 3. Refactor 'Program::externalSources_'; 4. Gather all the global-caches under 'ImportPathManager' (ast-cache, source-cache, decl-cache). 5. Reduce 'resolvedSource', 'declPath', 'ohmUrl', 'declText' and etc. interference: * Define 'ohmUrl' as fs-independent 'resolvedSource' * 'moduleName' is formed in the following way: 1. Form 'resolvedSource' (absolute-path). 2. Form 'ohmUrl' based on matching 'resolvedSource' with fields of arktsconfig. 3. If wasn't matched, 'ohmUrl' is just a filename (w/o extension). 4. Form 'moduleName' by repalcing '/' with '.' in 'ohmUrl'. 6. Simplify '.etscache' path resolving by 'cacheDir'/'ohmUrl'.etscache. Phases: 1. Skip "before-emit-decl" phases for 'Program's constructed from decl-caches. 2. Replace 'PhaseForBodies' and 'PhaseForDeclarations' with 'PhaseFor<ModuleKind...>' Programs. 3. Introduce 'PhaseForProgramsToBeEmitted'. Signed-off-by: Daniel Kofanov <kofanov.daniil@huawei-partners.com> Co-authored-by: nikozer <ozerov.nikita@huawei-partners.com> Co-authored-by: Zelentsov Dmitriy <zelentsov.dmitry@huawei-partners.com> Co-authored-by: Klimentieva <klimentieva.maria@h-partners.com> Co-authored-by: lirismankarina <lirisman.karina@huawei-partners.com> Co-authored-by: Amosov Alexey <amosov.alexey1@huawei-partners.com> Co-authored-by: Dmitry Pimenov <pimenov.dmitry@huawei-partners.com> Change-Id: Icef66995940b4dcd69653108cdc6e2268b52102e4 个月前
Refactor 'ImportPathManager' & 'ExternalSources' Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/8938 Description: ImportPathManager: 1. Make 'ImportPathManager' responsible for 'Program' creation. 2. Specialize 'Program's by 'util::ModuleKind', 'Program' is an abstract base. 3. Refactor 'Program::externalSources_'; 4. Gather all the global-caches under 'ImportPathManager' (ast-cache, source-cache, decl-cache). 5. Reduce 'resolvedSource', 'declPath', 'ohmUrl', 'declText' and etc. interference: * Define 'ohmUrl' as fs-independent 'resolvedSource' * 'moduleName' is formed in the following way: 1. Form 'resolvedSource' (absolute-path). 2. Form 'ohmUrl' based on matching 'resolvedSource' with fields of arktsconfig. 3. If wasn't matched, 'ohmUrl' is just a filename (w/o extension). 4. Form 'moduleName' by repalcing '/' with '.' in 'ohmUrl'. 6. Simplify '.etscache' path resolving by 'cacheDir'/'ohmUrl'.etscache. Phases: 1. Skip "before-emit-decl" phases for 'Program's constructed from decl-caches. 2. Replace 'PhaseForBodies' and 'PhaseForDeclarations' with 'PhaseFor<ModuleKind...>' Programs. 3. Introduce 'PhaseForProgramsToBeEmitted'. Signed-off-by: Daniel Kofanov <kofanov.daniil@huawei-partners.com> Co-authored-by: nikozer <ozerov.nikita@huawei-partners.com> Co-authored-by: Zelentsov Dmitriy <zelentsov.dmitry@huawei-partners.com> Co-authored-by: Klimentieva <klimentieva.maria@h-partners.com> Co-authored-by: lirismankarina <lirisman.karina@huawei-partners.com> Co-authored-by: Amosov Alexey <amosov.alexey1@huawei-partners.com> Co-authored-by: Dmitry Pimenov <pimenov.dmitry@huawei-partners.com> Change-Id: Icef66995940b4dcd69653108cdc6e2268b52102e4 个月前
Revert "generate DynamicABCPath" Issue: https://gitcode.com/openharmony/arkcompiler_runtime_core/issues/10754 This reverts commit 04208107ea83397b8170aba360762097717d56b7. Co-Authored-By: NA Signed-off-by: wanggengliang <GengLiangW@outlook.com>2 个月前
Refactor 'ImportPathManager' & 'ExternalSources' Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/8938 Description: ImportPathManager: 1. Make 'ImportPathManager' responsible for 'Program' creation. 2. Specialize 'Program's by 'util::ModuleKind', 'Program' is an abstract base. 3. Refactor 'Program::externalSources_'; 4. Gather all the global-caches under 'ImportPathManager' (ast-cache, source-cache, decl-cache). 5. Reduce 'resolvedSource', 'declPath', 'ohmUrl', 'declText' and etc. interference: * Define 'ohmUrl' as fs-independent 'resolvedSource' * 'moduleName' is formed in the following way: 1. Form 'resolvedSource' (absolute-path). 2. Form 'ohmUrl' based on matching 'resolvedSource' with fields of arktsconfig. 3. If wasn't matched, 'ohmUrl' is just a filename (w/o extension). 4. Form 'moduleName' by repalcing '/' with '.' in 'ohmUrl'. 6. Simplify '.etscache' path resolving by 'cacheDir'/'ohmUrl'.etscache. Phases: 1. Skip "before-emit-decl" phases for 'Program's constructed from decl-caches. 2. Replace 'PhaseForBodies' and 'PhaseForDeclarations' with 'PhaseFor<ModuleKind...>' Programs. 3. Introduce 'PhaseForProgramsToBeEmitted'. Signed-off-by: Daniel Kofanov <kofanov.daniil@huawei-partners.com> Co-authored-by: nikozer <ozerov.nikita@huawei-partners.com> Co-authored-by: Zelentsov Dmitriy <zelentsov.dmitry@huawei-partners.com> Co-authored-by: Klimentieva <klimentieva.maria@h-partners.com> Co-authored-by: lirismankarina <lirisman.karina@huawei-partners.com> Co-authored-by: Amosov Alexey <amosov.alexey1@huawei-partners.com> Co-authored-by: Dmitry Pimenov <pimenov.dmitry@huawei-partners.com> Change-Id: Icef66995940b4dcd69653108cdc6e2268b52102e4 个月前
lsp completion 2 Issue:https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/10124 Co-Authored-By: Agent Signed-off-by: fangxiao <fangxiao13@huawei.com> Change-Id: Ide363bb5b80d196788a87fae3dfa5402027a3ed326 天前
add cte for enums Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/9635 Co-Authored-By: Agent Signed-off-by: zhaoshuting <zhaoshuting2@huawei.com>1 个月前
Enum incorrectly in overload declaration Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/10015 Signed-off-by: wudongchao <wudongchao1@huawei.com> Co-Authored-By: Agent24 天前
Refactor 'ImportPathManager' & 'ExternalSources' Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/8938 Description: ImportPathManager: 1. Make 'ImportPathManager' responsible for 'Program' creation. 2. Specialize 'Program's by 'util::ModuleKind', 'Program' is an abstract base. 3. Refactor 'Program::externalSources_'; 4. Gather all the global-caches under 'ImportPathManager' (ast-cache, source-cache, decl-cache). 5. Reduce 'resolvedSource', 'declPath', 'ohmUrl', 'declText' and etc. interference: * Define 'ohmUrl' as fs-independent 'resolvedSource' * 'moduleName' is formed in the following way: 1. Form 'resolvedSource' (absolute-path). 2. Form 'ohmUrl' based on matching 'resolvedSource' with fields of arktsconfig. 3. If wasn't matched, 'ohmUrl' is just a filename (w/o extension). 4. Form 'moduleName' by repalcing '/' with '.' in 'ohmUrl'. 6. Simplify '.etscache' path resolving by 'cacheDir'/'ohmUrl'.etscache. Phases: 1. Skip "before-emit-decl" phases for 'Program's constructed from decl-caches. 2. Replace 'PhaseForBodies' and 'PhaseForDeclarations' with 'PhaseFor<ModuleKind...>' Programs. 3. Introduce 'PhaseForProgramsToBeEmitted'. Signed-off-by: Daniel Kofanov <kofanov.daniil@huawei-partners.com> Co-authored-by: nikozer <ozerov.nikita@huawei-partners.com> Co-authored-by: Zelentsov Dmitriy <zelentsov.dmitry@huawei-partners.com> Co-authored-by: Klimentieva <klimentieva.maria@h-partners.com> Co-authored-by: lirismankarina <lirisman.karina@huawei-partners.com> Co-authored-by: Amosov Alexey <amosov.alexey1@huawei-partners.com> Co-authored-by: Dmitry Pimenov <pimenov.dmitry@huawei-partners.com> Change-Id: Icef66995940b4dcd69653108cdc6e2268b52102e4 个月前
Refactor 'ImportPathManager' & 'ExternalSources' Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/8938 Description: ImportPathManager: 1. Make 'ImportPathManager' responsible for 'Program' creation. 2. Specialize 'Program's by 'util::ModuleKind', 'Program' is an abstract base. 3. Refactor 'Program::externalSources_'; 4. Gather all the global-caches under 'ImportPathManager' (ast-cache, source-cache, decl-cache). 5. Reduce 'resolvedSource', 'declPath', 'ohmUrl', 'declText' and etc. interference: * Define 'ohmUrl' as fs-independent 'resolvedSource' * 'moduleName' is formed in the following way: 1. Form 'resolvedSource' (absolute-path). 2. Form 'ohmUrl' based on matching 'resolvedSource' with fields of arktsconfig. 3. If wasn't matched, 'ohmUrl' is just a filename (w/o extension). 4. Form 'moduleName' by repalcing '/' with '.' in 'ohmUrl'. 6. Simplify '.etscache' path resolving by 'cacheDir'/'ohmUrl'.etscache. Phases: 1. Skip "before-emit-decl" phases for 'Program's constructed from decl-caches. 2. Replace 'PhaseForBodies' and 'PhaseForDeclarations' with 'PhaseFor<ModuleKind...>' Programs. 3. Introduce 'PhaseForProgramsToBeEmitted'. Signed-off-by: Daniel Kofanov <kofanov.daniil@huawei-partners.com> Co-authored-by: nikozer <ozerov.nikita@huawei-partners.com> Co-authored-by: Zelentsov Dmitriy <zelentsov.dmitry@huawei-partners.com> Co-authored-by: Klimentieva <klimentieva.maria@h-partners.com> Co-authored-by: lirismankarina <lirisman.karina@huawei-partners.com> Co-authored-by: Amosov Alexey <amosov.alexey1@huawei-partners.com> Co-authored-by: Dmitry Pimenov <pimenov.dmitry@huawei-partners.com> Change-Id: Icef66995940b4dcd69653108cdc6e2268b52102e4 个月前
Refactor 'ImportPathManager' & 'ExternalSources' Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/8938 Description: ImportPathManager: 1. Make 'ImportPathManager' responsible for 'Program' creation. 2. Specialize 'Program's by 'util::ModuleKind', 'Program' is an abstract base. 3. Refactor 'Program::externalSources_'; 4. Gather all the global-caches under 'ImportPathManager' (ast-cache, source-cache, decl-cache). 5. Reduce 'resolvedSource', 'declPath', 'ohmUrl', 'declText' and etc. interference: * Define 'ohmUrl' as fs-independent 'resolvedSource' * 'moduleName' is formed in the following way: 1. Form 'resolvedSource' (absolute-path). 2. Form 'ohmUrl' based on matching 'resolvedSource' with fields of arktsconfig. 3. If wasn't matched, 'ohmUrl' is just a filename (w/o extension). 4. Form 'moduleName' by repalcing '/' with '.' in 'ohmUrl'. 6. Simplify '.etscache' path resolving by 'cacheDir'/'ohmUrl'.etscache. Phases: 1. Skip "before-emit-decl" phases for 'Program's constructed from decl-caches. 2. Replace 'PhaseForBodies' and 'PhaseForDeclarations' with 'PhaseFor<ModuleKind...>' Programs. 3. Introduce 'PhaseForProgramsToBeEmitted'. Signed-off-by: Daniel Kofanov <kofanov.daniil@huawei-partners.com> Co-authored-by: nikozer <ozerov.nikita@huawei-partners.com> Co-authored-by: Zelentsov Dmitriy <zelentsov.dmitry@huawei-partners.com> Co-authored-by: Klimentieva <klimentieva.maria@h-partners.com> Co-authored-by: lirismankarina <lirisman.karina@huawei-partners.com> Co-authored-by: Amosov Alexey <amosov.alexey1@huawei-partners.com> Co-authored-by: Dmitry Pimenov <pimenov.dmitry@huawei-partners.com> Change-Id: Icef66995940b4dcd69653108cdc6e2268b52102e4 个月前
Refactor 'ImportPathManager' & 'ExternalSources' Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/8938 Description: ImportPathManager: 1. Make 'ImportPathManager' responsible for 'Program' creation. 2. Specialize 'Program's by 'util::ModuleKind', 'Program' is an abstract base. 3. Refactor 'Program::externalSources_'; 4. Gather all the global-caches under 'ImportPathManager' (ast-cache, source-cache, decl-cache). 5. Reduce 'resolvedSource', 'declPath', 'ohmUrl', 'declText' and etc. interference: * Define 'ohmUrl' as fs-independent 'resolvedSource' * 'moduleName' is formed in the following way: 1. Form 'resolvedSource' (absolute-path). 2. Form 'ohmUrl' based on matching 'resolvedSource' with fields of arktsconfig. 3. If wasn't matched, 'ohmUrl' is just a filename (w/o extension). 4. Form 'moduleName' by repalcing '/' with '.' in 'ohmUrl'. 6. Simplify '.etscache' path resolving by 'cacheDir'/'ohmUrl'.etscache. Phases: 1. Skip "before-emit-decl" phases for 'Program's constructed from decl-caches. 2. Replace 'PhaseForBodies' and 'PhaseForDeclarations' with 'PhaseFor<ModuleKind...>' Programs. 3. Introduce 'PhaseForProgramsToBeEmitted'. Signed-off-by: Daniel Kofanov <kofanov.daniil@huawei-partners.com> Co-authored-by: nikozer <ozerov.nikita@huawei-partners.com> Co-authored-by: Zelentsov Dmitriy <zelentsov.dmitry@huawei-partners.com> Co-authored-by: Klimentieva <klimentieva.maria@h-partners.com> Co-authored-by: lirismankarina <lirisman.karina@huawei-partners.com> Co-authored-by: Amosov Alexey <amosov.alexey1@huawei-partners.com> Co-authored-by: Dmitry Pimenov <pimenov.dmitry@huawei-partners.com> Change-Id: Icef66995940b4dcd69653108cdc6e2268b52102e4 个月前
Refactor 'ImportPathManager' & 'ExternalSources' Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/8938 Description: ImportPathManager: 1. Make 'ImportPathManager' responsible for 'Program' creation. 2. Specialize 'Program's by 'util::ModuleKind', 'Program' is an abstract base. 3. Refactor 'Program::externalSources_'; 4. Gather all the global-caches under 'ImportPathManager' (ast-cache, source-cache, decl-cache). 5. Reduce 'resolvedSource', 'declPath', 'ohmUrl', 'declText' and etc. interference: * Define 'ohmUrl' as fs-independent 'resolvedSource' * 'moduleName' is formed in the following way: 1. Form 'resolvedSource' (absolute-path). 2. Form 'ohmUrl' based on matching 'resolvedSource' with fields of arktsconfig. 3. If wasn't matched, 'ohmUrl' is just a filename (w/o extension). 4. Form 'moduleName' by repalcing '/' with '.' in 'ohmUrl'. 6. Simplify '.etscache' path resolving by 'cacheDir'/'ohmUrl'.etscache. Phases: 1. Skip "before-emit-decl" phases for 'Program's constructed from decl-caches. 2. Replace 'PhaseForBodies' and 'PhaseForDeclarations' with 'PhaseFor<ModuleKind...>' Programs. 3. Introduce 'PhaseForProgramsToBeEmitted'. Signed-off-by: Daniel Kofanov <kofanov.daniil@huawei-partners.com> Co-authored-by: nikozer <ozerov.nikita@huawei-partners.com> Co-authored-by: Zelentsov Dmitriy <zelentsov.dmitry@huawei-partners.com> Co-authored-by: Klimentieva <klimentieva.maria@h-partners.com> Co-authored-by: lirismankarina <lirisman.karina@huawei-partners.com> Co-authored-by: Amosov Alexey <amosov.alexey1@huawei-partners.com> Co-authored-by: Dmitry Pimenov <pimenov.dmitry@huawei-partners.com> Change-Id: Icef66995940b4dcd69653108cdc6e2268b52102e4 个月前
Refactor 'ImportPathManager' & 'ExternalSources' Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/8938 Description: ImportPathManager: 1. Make 'ImportPathManager' responsible for 'Program' creation. 2. Specialize 'Program's by 'util::ModuleKind', 'Program' is an abstract base. 3. Refactor 'Program::externalSources_'; 4. Gather all the global-caches under 'ImportPathManager' (ast-cache, source-cache, decl-cache). 5. Reduce 'resolvedSource', 'declPath', 'ohmUrl', 'declText' and etc. interference: * Define 'ohmUrl' as fs-independent 'resolvedSource' * 'moduleName' is formed in the following way: 1. Form 'resolvedSource' (absolute-path). 2. Form 'ohmUrl' based on matching 'resolvedSource' with fields of arktsconfig. 3. If wasn't matched, 'ohmUrl' is just a filename (w/o extension). 4. Form 'moduleName' by repalcing '/' with '.' in 'ohmUrl'. 6. Simplify '.etscache' path resolving by 'cacheDir'/'ohmUrl'.etscache. Phases: 1. Skip "before-emit-decl" phases for 'Program's constructed from decl-caches. 2. Replace 'PhaseForBodies' and 'PhaseForDeclarations' with 'PhaseFor<ModuleKind...>' Programs. 3. Introduce 'PhaseForProgramsToBeEmitted'. Signed-off-by: Daniel Kofanov <kofanov.daniil@huawei-partners.com> Co-authored-by: nikozer <ozerov.nikita@huawei-partners.com> Co-authored-by: Zelentsov Dmitriy <zelentsov.dmitry@huawei-partners.com> Co-authored-by: Klimentieva <klimentieva.maria@h-partners.com> Co-authored-by: lirismankarina <lirisman.karina@huawei-partners.com> Co-authored-by: Amosov Alexey <amosov.alexey1@huawei-partners.com> Co-authored-by: Dmitry Pimenov <pimenov.dmitry@huawei-partners.com> Change-Id: Icef66995940b4dcd69653108cdc6e2268b52102e4 个月前
Refactor 'ImportPathManager' & 'ExternalSources' Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/8938 Description: ImportPathManager: 1. Make 'ImportPathManager' responsible for 'Program' creation. 2. Specialize 'Program's by 'util::ModuleKind', 'Program' is an abstract base. 3. Refactor 'Program::externalSources_'; 4. Gather all the global-caches under 'ImportPathManager' (ast-cache, source-cache, decl-cache). 5. Reduce 'resolvedSource', 'declPath', 'ohmUrl', 'declText' and etc. interference: * Define 'ohmUrl' as fs-independent 'resolvedSource' * 'moduleName' is formed in the following way: 1. Form 'resolvedSource' (absolute-path). 2. Form 'ohmUrl' based on matching 'resolvedSource' with fields of arktsconfig. 3. If wasn't matched, 'ohmUrl' is just a filename (w/o extension). 4. Form 'moduleName' by repalcing '/' with '.' in 'ohmUrl'. 6. Simplify '.etscache' path resolving by 'cacheDir'/'ohmUrl'.etscache. Phases: 1. Skip "before-emit-decl" phases for 'Program's constructed from decl-caches. 2. Replace 'PhaseForBodies' and 'PhaseForDeclarations' with 'PhaseFor<ModuleKind...>' Programs. 3. Introduce 'PhaseForProgramsToBeEmitted'. Signed-off-by: Daniel Kofanov <kofanov.daniil@huawei-partners.com> Co-authored-by: nikozer <ozerov.nikita@huawei-partners.com> Co-authored-by: Zelentsov Dmitriy <zelentsov.dmitry@huawei-partners.com> Co-authored-by: Klimentieva <klimentieva.maria@h-partners.com> Co-authored-by: lirismankarina <lirisman.karina@huawei-partners.com> Co-authored-by: Amosov Alexey <amosov.alexey1@huawei-partners.com> Co-authored-by: Dmitry Pimenov <pimenov.dmitry@huawei-partners.com> Change-Id: Icef66995940b4dcd69653108cdc6e2268b52102e4 个月前
Refactor 'ImportPathManager' & 'ExternalSources' Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/8938 Description: ImportPathManager: 1. Make 'ImportPathManager' responsible for 'Program' creation. 2. Specialize 'Program's by 'util::ModuleKind', 'Program' is an abstract base. 3. Refactor 'Program::externalSources_'; 4. Gather all the global-caches under 'ImportPathManager' (ast-cache, source-cache, decl-cache). 5. Reduce 'resolvedSource', 'declPath', 'ohmUrl', 'declText' and etc. interference: * Define 'ohmUrl' as fs-independent 'resolvedSource' * 'moduleName' is formed in the following way: 1. Form 'resolvedSource' (absolute-path). 2. Form 'ohmUrl' based on matching 'resolvedSource' with fields of arktsconfig. 3. If wasn't matched, 'ohmUrl' is just a filename (w/o extension). 4. Form 'moduleName' by repalcing '/' with '.' in 'ohmUrl'. 6. Simplify '.etscache' path resolving by 'cacheDir'/'ohmUrl'.etscache. Phases: 1. Skip "before-emit-decl" phases for 'Program's constructed from decl-caches. 2. Replace 'PhaseForBodies' and 'PhaseForDeclarations' with 'PhaseFor<ModuleKind...>' Programs. 3. Introduce 'PhaseForProgramsToBeEmitted'. Signed-off-by: Daniel Kofanov <kofanov.daniil@huawei-partners.com> Co-authored-by: nikozer <ozerov.nikita@huawei-partners.com> Co-authored-by: Zelentsov Dmitriy <zelentsov.dmitry@huawei-partners.com> Co-authored-by: Klimentieva <klimentieva.maria@h-partners.com> Co-authored-by: lirismankarina <lirisman.karina@huawei-partners.com> Co-authored-by: Amosov Alexey <amosov.alexey1@huawei-partners.com> Co-authored-by: Dmitry Pimenov <pimenov.dmitry@huawei-partners.com> Change-Id: Icef66995940b4dcd69653108cdc6e2268b52102e4 个月前
Refactor 'ImportPathManager' & 'ExternalSources' Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/8938 Description: ImportPathManager: 1. Make 'ImportPathManager' responsible for 'Program' creation. 2. Specialize 'Program's by 'util::ModuleKind', 'Program' is an abstract base. 3. Refactor 'Program::externalSources_'; 4. Gather all the global-caches under 'ImportPathManager' (ast-cache, source-cache, decl-cache). 5. Reduce 'resolvedSource', 'declPath', 'ohmUrl', 'declText' and etc. interference: * Define 'ohmUrl' as fs-independent 'resolvedSource' * 'moduleName' is formed in the following way: 1. Form 'resolvedSource' (absolute-path). 2. Form 'ohmUrl' based on matching 'resolvedSource' with fields of arktsconfig. 3. If wasn't matched, 'ohmUrl' is just a filename (w/o extension). 4. Form 'moduleName' by repalcing '/' with '.' in 'ohmUrl'. 6. Simplify '.etscache' path resolving by 'cacheDir'/'ohmUrl'.etscache. Phases: 1. Skip "before-emit-decl" phases for 'Program's constructed from decl-caches. 2. Replace 'PhaseForBodies' and 'PhaseForDeclarations' with 'PhaseFor<ModuleKind...>' Programs. 3. Introduce 'PhaseForProgramsToBeEmitted'. Signed-off-by: Daniel Kofanov <kofanov.daniil@huawei-partners.com> Co-authored-by: nikozer <ozerov.nikita@huawei-partners.com> Co-authored-by: Zelentsov Dmitriy <zelentsov.dmitry@huawei-partners.com> Co-authored-by: Klimentieva <klimentieva.maria@h-partners.com> Co-authored-by: lirismankarina <lirisman.karina@huawei-partners.com> Co-authored-by: Amosov Alexey <amosov.alexey1@huawei-partners.com> Co-authored-by: Dmitry Pimenov <pimenov.dmitry@huawei-partners.com> Change-Id: Icef66995940b4dcd69653108cdc6e2268b52102e4 个月前
!10244 merge no-primitives-in-checker into master Remove some primitives from checker Created-by: gogabron Commit-by: Georgy Bronnikov Merged-by: openharmony_ci Description: ### **Issue** https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/9266 ### **Reason** The checker should never see any primitive types, at least in the AST nodes. ### **Description** For now, arithmetic code has not been touched. ### **Tests** ninja all tests **All required pre-merge tests passed. Results are available in the internal CI.** #### Functional Testing (Mandatory unless the change only involves text) [wiki](https://gitee.com/openharmony/arkcompiler_ets_frontend/wikis/代码提交要求及测试验证流程) 1. es2abc Test Cases (Debug Mode) - [ ] Passed - [x] Not applicable, no need to verify 2. Verifier Testing - [ ] Passed - [x] Not applicable, no need to verify 3. 64-bit RK Compilation - [ ] Passed - [x] Not applicable, no need to verify 4. Compile macOS SDK - [ ] Passed - [x] Not applicable, no need to verify #### Obfuscation Testing (Mandatory if ArkGuard-related changes are involved) [wiki](https://gitee.com/openharmony/arkcompiler_ets_frontend/wikis/混淆测试验证流程?sort_id=11451209) 1. Unit Tests - [ ] Passed - [x] Not applicable, no need to verify 2. Compiler Test Suite - [ ] Passed - [x] Not applicable, no need to verify 3. TSC Extra Test Suite - [ ] Passed - [x] Not applicable, no need to verify 4. Test262 Test Suite - [ ] Passed - [x] Not applicable, no need to verify 5. Benchmark Tests - [ ] Passed - [x] Not applicable, no need to verify 6. Automated Application Test Suite - [ ] Passed - [x] Not applicable, no need to verify 7. Global Variable Check — Were any global variables created? If so, were they cleared? - [ ] Global variables created and cleared - [ ] Global variables created but not cleared - [x] No global variables created #### Compatibility Testing (for instruction generation or file format changes) 1. Minor Version Compatibility Test <!-- If the change causes new ABC files to fail on older images, a new version number must be added --> - [ ] Version number added - [ ] Passed - [x] Not applicable, no need to verify 2. Major Version Compatibility Test <!-- When target-api-version is configured, the generated ABC must run on the corresponding version --> - [ ] Passed - [x] Not applicable, no need to verify 3. es2abc Version Compatibility Test <!-- ABC files compiled by the new es2abc from an old API version should still be recognized and processed by the old es2abc --> **Note: If the PR involves changes to version control test cases, you must also check its impact on other branches and confirm whether updates are needed in those branches.** - [ ] Affected — Changes impact API/bytecode version and need to be synced to other branches - [ ] Affected — Changes impact API/bytecode version but do not need to be synced to other branches - [x] Not affected — Changes do not involve API/bytecode version 4. Compatibility Testing for Lexical Environment Changes **Note: If the PR involves modifications to the lexical environment, verify whether it is compatible with hot reload scenarios.** - [ ] Involved, affects hot reload scenarios, requires impact assessment - [ ] Involved, does not affect hot reload scenarios - [x] Not involved #### Performance Testing (e.g., new syntax checking scenarios) - [ ] Passed - [x] Not applicable, no need to verify #### Command/abc format modification self-check, please contact the email below, synchronize to the relevant field **Important: For modifications involving the abc2program, libpandafile and isa directories in the runtime_core repository, you must provide a compiled hap package for the helloworld project to the corresponding domain and contact the email address below.** - [ ] Involved, already synchronized - [x] Not involved **Email:** wutao185@huawei.com Change-Id: I055b0c3d0f9820da0ee685ac2b01779352fcdbcd See merge request: openharmony/arkcompiler_ets_frontend!102442 个月前
Refactor 'ImportPathManager' & 'ExternalSources' Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/8938 Description: ImportPathManager: 1. Make 'ImportPathManager' responsible for 'Program' creation. 2. Specialize 'Program's by 'util::ModuleKind', 'Program' is an abstract base. 3. Refactor 'Program::externalSources_'; 4. Gather all the global-caches under 'ImportPathManager' (ast-cache, source-cache, decl-cache). 5. Reduce 'resolvedSource', 'declPath', 'ohmUrl', 'declText' and etc. interference: * Define 'ohmUrl' as fs-independent 'resolvedSource' * 'moduleName' is formed in the following way: 1. Form 'resolvedSource' (absolute-path). 2. Form 'ohmUrl' based on matching 'resolvedSource' with fields of arktsconfig. 3. If wasn't matched, 'ohmUrl' is just a filename (w/o extension). 4. Form 'moduleName' by repalcing '/' with '.' in 'ohmUrl'. 6. Simplify '.etscache' path resolving by 'cacheDir'/'ohmUrl'.etscache. Phases: 1. Skip "before-emit-decl" phases for 'Program's constructed from decl-caches. 2. Replace 'PhaseForBodies' and 'PhaseForDeclarations' with 'PhaseFor<ModuleKind...>' Programs. 3. Introduce 'PhaseForProgramsToBeEmitted'. Signed-off-by: Daniel Kofanov <kofanov.daniil@huawei-partners.com> Co-authored-by: nikozer <ozerov.nikita@huawei-partners.com> Co-authored-by: Zelentsov Dmitriy <zelentsov.dmitry@huawei-partners.com> Co-authored-by: Klimentieva <klimentieva.maria@h-partners.com> Co-authored-by: lirismankarina <lirisman.karina@huawei-partners.com> Co-authored-by: Amosov Alexey <amosov.alexey1@huawei-partners.com> Co-authored-by: Dmitry Pimenov <pimenov.dmitry@huawei-partners.com> Change-Id: Icef66995940b4dcd69653108cdc6e2268b52102e4 个月前
fix bug of Generic bridge on two cts issues Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/10286 Co-Authored-By: Agent Signed-off-by: anjiaqi257 <anjiaqi4@huawei.com>22 天前
%%property- refactoring Issue: https://gitcode.com/openharmony/arkcompiler_runtime_core/issues/11339 Co-Authored-By: Agent Signed-off-by: groshevmaksim <groshev.maksim@h-partners.com> Change-Id: I71b90355d7069ef8dd17bb6f863a2b0214d250541 个月前
fix init module Issue:https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/11182 Co-Authored-By:Agent Signed-off-by: f_t_q <fantianqi9@huawei.com>13 天前
Refactor 'ImportPathManager' & 'ExternalSources' Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/8938 Description: ImportPathManager: 1. Make 'ImportPathManager' responsible for 'Program' creation. 2. Specialize 'Program's by 'util::ModuleKind', 'Program' is an abstract base. 3. Refactor 'Program::externalSources_'; 4. Gather all the global-caches under 'ImportPathManager' (ast-cache, source-cache, decl-cache). 5. Reduce 'resolvedSource', 'declPath', 'ohmUrl', 'declText' and etc. interference: * Define 'ohmUrl' as fs-independent 'resolvedSource' * 'moduleName' is formed in the following way: 1. Form 'resolvedSource' (absolute-path). 2. Form 'ohmUrl' based on matching 'resolvedSource' with fields of arktsconfig. 3. If wasn't matched, 'ohmUrl' is just a filename (w/o extension). 4. Form 'moduleName' by repalcing '/' with '.' in 'ohmUrl'. 6. Simplify '.etscache' path resolving by 'cacheDir'/'ohmUrl'.etscache. Phases: 1. Skip "before-emit-decl" phases for 'Program's constructed from decl-caches. 2. Replace 'PhaseForBodies' and 'PhaseForDeclarations' with 'PhaseFor<ModuleKind...>' Programs. 3. Introduce 'PhaseForProgramsToBeEmitted'. Signed-off-by: Daniel Kofanov <kofanov.daniil@huawei-partners.com> Co-authored-by: nikozer <ozerov.nikita@huawei-partners.com> Co-authored-by: Zelentsov Dmitriy <zelentsov.dmitry@huawei-partners.com> Co-authored-by: Klimentieva <klimentieva.maria@h-partners.com> Co-authored-by: lirismankarina <lirisman.karina@huawei-partners.com> Co-authored-by: Amosov Alexey <amosov.alexey1@huawei-partners.com> Co-authored-by: Dmitry Pimenov <pimenov.dmitry@huawei-partners.com> Change-Id: Icef66995940b4dcd69653108cdc6e2268b52102e4 个月前
Move annos to stub Issue: https://gitcode.com/openharmony/arkcompiler_runtime_core/issues/10696 Signed-off-by: Aleksander Sotov <sotov.aleksander@huawei.com> Co-Authored-By: NA2 个月前
Refactor 'ImportPathManager' & 'ExternalSources' Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/8938 Description: ImportPathManager: 1. Make 'ImportPathManager' responsible for 'Program' creation. 2. Specialize 'Program's by 'util::ModuleKind', 'Program' is an abstract base. 3. Refactor 'Program::externalSources_'; 4. Gather all the global-caches under 'ImportPathManager' (ast-cache, source-cache, decl-cache). 5. Reduce 'resolvedSource', 'declPath', 'ohmUrl', 'declText' and etc. interference: * Define 'ohmUrl' as fs-independent 'resolvedSource' * 'moduleName' is formed in the following way: 1. Form 'resolvedSource' (absolute-path). 2. Form 'ohmUrl' based on matching 'resolvedSource' with fields of arktsconfig. 3. If wasn't matched, 'ohmUrl' is just a filename (w/o extension). 4. Form 'moduleName' by repalcing '/' with '.' in 'ohmUrl'. 6. Simplify '.etscache' path resolving by 'cacheDir'/'ohmUrl'.etscache. Phases: 1. Skip "before-emit-decl" phases for 'Program's constructed from decl-caches. 2. Replace 'PhaseForBodies' and 'PhaseForDeclarations' with 'PhaseFor<ModuleKind...>' Programs. 3. Introduce 'PhaseForProgramsToBeEmitted'. Signed-off-by: Daniel Kofanov <kofanov.daniil@huawei-partners.com> Co-authored-by: nikozer <ozerov.nikita@huawei-partners.com> Co-authored-by: Zelentsov Dmitriy <zelentsov.dmitry@huawei-partners.com> Co-authored-by: Klimentieva <klimentieva.maria@h-partners.com> Co-authored-by: lirismankarina <lirisman.karina@huawei-partners.com> Co-authored-by: Amosov Alexey <amosov.alexey1@huawei-partners.com> Co-authored-by: Dmitry Pimenov <pimenov.dmitry@huawei-partners.com> Change-Id: Icef66995940b4dcd69653108cdc6e2268b52102e4 个月前
Remove some primitives from checker Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/9266 Signed-off-by: Georgy Bronnikov <bronnikov.georgy@huawei.com> Co-Authored-By: AGENT2 个月前
Remove some primitives from checker Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/9266 Signed-off-by: Georgy Bronnikov <bronnikov.georgy@huawei.com> Co-Authored-By: AGENT2 个月前
fix objectLiteralLowering bug Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/9970 Co-Authored-By: Agent Signed-off-by: zhangli <1113989231@qq.com>19 天前
fix objectLiteralLowering bug Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/9970 Co-Authored-By: Agent Signed-off-by: zhangli <1113989231@qq.com>19 天前
Remove the NO_THROW flag Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/8794 Change-Id: Ibe3c6da5dec7ea72c3dd02469523acdac1f7f9fb Signed-off-by: Georgy Bronnikov <bronnikov.georgy@huawei.com>4 个月前
Refactor 'ImportPathManager' & 'ExternalSources' Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/8938 Description: ImportPathManager: 1. Make 'ImportPathManager' responsible for 'Program' creation. 2. Specialize 'Program's by 'util::ModuleKind', 'Program' is an abstract base. 3. Refactor 'Program::externalSources_'; 4. Gather all the global-caches under 'ImportPathManager' (ast-cache, source-cache, decl-cache). 5. Reduce 'resolvedSource', 'declPath', 'ohmUrl', 'declText' and etc. interference: * Define 'ohmUrl' as fs-independent 'resolvedSource' * 'moduleName' is formed in the following way: 1. Form 'resolvedSource' (absolute-path). 2. Form 'ohmUrl' based on matching 'resolvedSource' with fields of arktsconfig. 3. If wasn't matched, 'ohmUrl' is just a filename (w/o extension). 4. Form 'moduleName' by repalcing '/' with '.' in 'ohmUrl'. 6. Simplify '.etscache' path resolving by 'cacheDir'/'ohmUrl'.etscache. Phases: 1. Skip "before-emit-decl" phases for 'Program's constructed from decl-caches. 2. Replace 'PhaseForBodies' and 'PhaseForDeclarations' with 'PhaseFor<ModuleKind...>' Programs. 3. Introduce 'PhaseForProgramsToBeEmitted'. Signed-off-by: Daniel Kofanov <kofanov.daniil@huawei-partners.com> Co-authored-by: nikozer <ozerov.nikita@huawei-partners.com> Co-authored-by: Zelentsov Dmitriy <zelentsov.dmitry@huawei-partners.com> Co-authored-by: Klimentieva <klimentieva.maria@h-partners.com> Co-authored-by: lirismankarina <lirisman.karina@huawei-partners.com> Co-authored-by: Amosov Alexey <amosov.alexey1@huawei-partners.com> Co-authored-by: Dmitry Pimenov <pimenov.dmitry@huawei-partners.com> Change-Id: Icef66995940b4dcd69653108cdc6e2268b52102e4 个月前
AccessRestriction source code access control Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/9963 Co-Authored-By: NA Signed-off-by: Vsevolod Pukhov <pukhov.vsevolod1@huawei.com>1 个月前
InternalAPI restrictions and arkruntime module * Support arkruntime.annotation.InternalAPI annotation and API restrictions filters * Introduce core arkruntime module and several missing binary attributes * Remove excessive bytecode attributes from the codegen Issue: https://gitcode.com/openharmony/arkcompiler_runtime_core/issues/10160 Co-Authored-By: NA Signed-off-by: Vsevolod Pukhov <pukhov.vsevolod1@huawei.com>3 个月前
Iterable spread Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/9647 Signed-off-by: wudongchao <wudongchao1@huawei.com> Co-Authored-By: Agent19 天前
Iterable spread Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/9647 Signed-off-by: wudongchao <wudongchao1@huawei.com> Co-Authored-By: Agent19 天前
Fix line number Issue:https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/9861 Signed-off-by: yuan_chao_hua <yuanchaoxuan@huawei.com> Co-Authored-By: Agent1 个月前
Clear Counters Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/9405 Co-Authored-By: NA Signed-off-by: zhangli <1113989231@qq.com>3 个月前
Remove some primitives from checker Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/9266 Signed-off-by: Georgy Bronnikov <bronnikov.georgy@huawei.com> Co-Authored-By: AGENT2 个月前
Refactor 'ImportPathManager' & 'ExternalSources' Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/8938 Description: ImportPathManager: 1. Make 'ImportPathManager' responsible for 'Program' creation. 2. Specialize 'Program's by 'util::ModuleKind', 'Program' is an abstract base. 3. Refactor 'Program::externalSources_'; 4. Gather all the global-caches under 'ImportPathManager' (ast-cache, source-cache, decl-cache). 5. Reduce 'resolvedSource', 'declPath', 'ohmUrl', 'declText' and etc. interference: * Define 'ohmUrl' as fs-independent 'resolvedSource' * 'moduleName' is formed in the following way: 1. Form 'resolvedSource' (absolute-path). 2. Form 'ohmUrl' based on matching 'resolvedSource' with fields of arktsconfig. 3. If wasn't matched, 'ohmUrl' is just a filename (w/o extension). 4. Form 'moduleName' by repalcing '/' with '.' in 'ohmUrl'. 6. Simplify '.etscache' path resolving by 'cacheDir'/'ohmUrl'.etscache. Phases: 1. Skip "before-emit-decl" phases for 'Program's constructed from decl-caches. 2. Replace 'PhaseForBodies' and 'PhaseForDeclarations' with 'PhaseFor<ModuleKind...>' Programs. 3. Introduce 'PhaseForProgramsToBeEmitted'. Signed-off-by: Daniel Kofanov <kofanov.daniil@huawei-partners.com> Co-authored-by: nikozer <ozerov.nikita@huawei-partners.com> Co-authored-by: Zelentsov Dmitriy <zelentsov.dmitry@huawei-partners.com> Co-authored-by: Klimentieva <klimentieva.maria@h-partners.com> Co-authored-by: lirismankarina <lirisman.karina@huawei-partners.com> Co-authored-by: Amosov Alexey <amosov.alexey1@huawei-partners.com> Co-authored-by: Dmitry Pimenov <pimenov.dmitry@huawei-partners.com> Change-Id: Icef66995940b4dcd69653108cdc6e2268b52102e4 个月前
Fix clang-tidy jobs 2 Signed-off-by: Gareev Ruslan <gareev.ruslan1@h-partners.com> Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/9202 Co-Authored-By: NA Description: Fixed various code style warnings raised by clang-tidy, allowing clang-tidy to be included in CI again. Fixes include but are not limited to: Replaced ".size() == 0" with ".empty()" Fixed some .yaml's Changed parameters to be sent by-reference instead of by-value where possible Removed "noexcept" where it's not applicable Changed variables' names to match code style Supressed warnings with NOLINT where needed.3 个月前
Refactor 'ImportPathManager' & 'ExternalSources' Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/8938 Description: ImportPathManager: 1. Make 'ImportPathManager' responsible for 'Program' creation. 2. Specialize 'Program's by 'util::ModuleKind', 'Program' is an abstract base. 3. Refactor 'Program::externalSources_'; 4. Gather all the global-caches under 'ImportPathManager' (ast-cache, source-cache, decl-cache). 5. Reduce 'resolvedSource', 'declPath', 'ohmUrl', 'declText' and etc. interference: * Define 'ohmUrl' as fs-independent 'resolvedSource' * 'moduleName' is formed in the following way: 1. Form 'resolvedSource' (absolute-path). 2. Form 'ohmUrl' based on matching 'resolvedSource' with fields of arktsconfig. 3. If wasn't matched, 'ohmUrl' is just a filename (w/o extension). 4. Form 'moduleName' by repalcing '/' with '.' in 'ohmUrl'. 6. Simplify '.etscache' path resolving by 'cacheDir'/'ohmUrl'.etscache. Phases: 1. Skip "before-emit-decl" phases for 'Program's constructed from decl-caches. 2. Replace 'PhaseForBodies' and 'PhaseForDeclarations' with 'PhaseFor<ModuleKind...>' Programs. 3. Introduce 'PhaseForProgramsToBeEmitted'. Signed-off-by: Daniel Kofanov <kofanov.daniil@huawei-partners.com> Co-authored-by: nikozer <ozerov.nikita@huawei-partners.com> Co-authored-by: Zelentsov Dmitriy <zelentsov.dmitry@huawei-partners.com> Co-authored-by: Klimentieva <klimentieva.maria@h-partners.com> Co-authored-by: lirismankarina <lirisman.karina@huawei-partners.com> Co-authored-by: Amosov Alexey <amosov.alexey1@huawei-partners.com> Co-authored-by: Dmitry Pimenov <pimenov.dmitry@huawei-partners.com> Change-Id: Icef66995940b4dcd69653108cdc6e2268b52102e4 个月前
support UnionTypeArray for-of Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/8518 Signed-off-by: zhangli <1113989231@qq.com> Change-id: Ie4f43b9fa79c5ecc9c1a6a376846a6380a1a6de5a4 个月前
support UnionTypeArray for-of Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/8518 Signed-off-by: zhangli <1113989231@qq.com> Change-id: Ie4f43b9fa79c5ecc9c1a6a376846a6380a1a6de5a4 个月前
Refactor 'ImportPathManager' & 'ExternalSources' Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/8938 Description: ImportPathManager: 1. Make 'ImportPathManager' responsible for 'Program' creation. 2. Specialize 'Program's by 'util::ModuleKind', 'Program' is an abstract base. 3. Refactor 'Program::externalSources_'; 4. Gather all the global-caches under 'ImportPathManager' (ast-cache, source-cache, decl-cache). 5. Reduce 'resolvedSource', 'declPath', 'ohmUrl', 'declText' and etc. interference: * Define 'ohmUrl' as fs-independent 'resolvedSource' * 'moduleName' is formed in the following way: 1. Form 'resolvedSource' (absolute-path). 2. Form 'ohmUrl' based on matching 'resolvedSource' with fields of arktsconfig. 3. If wasn't matched, 'ohmUrl' is just a filename (w/o extension). 4. Form 'moduleName' by repalcing '/' with '.' in 'ohmUrl'. 6. Simplify '.etscache' path resolving by 'cacheDir'/'ohmUrl'.etscache. Phases: 1. Skip "before-emit-decl" phases for 'Program's constructed from decl-caches. 2. Replace 'PhaseForBodies' and 'PhaseForDeclarations' with 'PhaseFor<ModuleKind...>' Programs. 3. Introduce 'PhaseForProgramsToBeEmitted'. Signed-off-by: Daniel Kofanov <kofanov.daniil@huawei-partners.com> Co-authored-by: nikozer <ozerov.nikita@huawei-partners.com> Co-authored-by: Zelentsov Dmitriy <zelentsov.dmitry@huawei-partners.com> Co-authored-by: Klimentieva <klimentieva.maria@h-partners.com> Co-authored-by: lirismankarina <lirisman.karina@huawei-partners.com> Co-authored-by: Amosov Alexey <amosov.alexey1@huawei-partners.com> Co-authored-by: Dmitry Pimenov <pimenov.dmitry@huawei-partners.com> Change-Id: Icef66995940b4dcd69653108cdc6e2268b52102e4 个月前
Refactor 'ImportPathManager' & 'ExternalSources' Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/8938 Description: ImportPathManager: 1. Make 'ImportPathManager' responsible for 'Program' creation. 2. Specialize 'Program's by 'util::ModuleKind', 'Program' is an abstract base. 3. Refactor 'Program::externalSources_'; 4. Gather all the global-caches under 'ImportPathManager' (ast-cache, source-cache, decl-cache). 5. Reduce 'resolvedSource', 'declPath', 'ohmUrl', 'declText' and etc. interference: * Define 'ohmUrl' as fs-independent 'resolvedSource' * 'moduleName' is formed in the following way: 1. Form 'resolvedSource' (absolute-path). 2. Form 'ohmUrl' based on matching 'resolvedSource' with fields of arktsconfig. 3. If wasn't matched, 'ohmUrl' is just a filename (w/o extension). 4. Form 'moduleName' by repalcing '/' with '.' in 'ohmUrl'. 6. Simplify '.etscache' path resolving by 'cacheDir'/'ohmUrl'.etscache. Phases: 1. Skip "before-emit-decl" phases for 'Program's constructed from decl-caches. 2. Replace 'PhaseForBodies' and 'PhaseForDeclarations' with 'PhaseFor<ModuleKind...>' Programs. 3. Introduce 'PhaseForProgramsToBeEmitted'. Signed-off-by: Daniel Kofanov <kofanov.daniil@huawei-partners.com> Co-authored-by: nikozer <ozerov.nikita@huawei-partners.com> Co-authored-by: Zelentsov Dmitriy <zelentsov.dmitry@huawei-partners.com> Co-authored-by: Klimentieva <klimentieva.maria@h-partners.com> Co-authored-by: lirismankarina <lirisman.karina@huawei-partners.com> Co-authored-by: Amosov Alexey <amosov.alexey1@huawei-partners.com> Co-authored-by: Dmitry Pimenov <pimenov.dmitry@huawei-partners.com> Change-Id: Icef66995940b4dcd69653108cdc6e2268b52102e4 个月前
bad bytecode of stringconcat in interop Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/9984 Co-Authored-By: Agent Signed-off-by: gcw_HJ4zMsdn <anjiaqi4@huawei.com>1 个月前
Refactor 'ImportPathManager' & 'ExternalSources' Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/8938 Description: ImportPathManager: 1. Make 'ImportPathManager' responsible for 'Program' creation. 2. Specialize 'Program's by 'util::ModuleKind', 'Program' is an abstract base. 3. Refactor 'Program::externalSources_'; 4. Gather all the global-caches under 'ImportPathManager' (ast-cache, source-cache, decl-cache). 5. Reduce 'resolvedSource', 'declPath', 'ohmUrl', 'declText' and etc. interference: * Define 'ohmUrl' as fs-independent 'resolvedSource' * 'moduleName' is formed in the following way: 1. Form 'resolvedSource' (absolute-path). 2. Form 'ohmUrl' based on matching 'resolvedSource' with fields of arktsconfig. 3. If wasn't matched, 'ohmUrl' is just a filename (w/o extension). 4. Form 'moduleName' by repalcing '/' with '.' in 'ohmUrl'. 6. Simplify '.etscache' path resolving by 'cacheDir'/'ohmUrl'.etscache. Phases: 1. Skip "before-emit-decl" phases for 'Program's constructed from decl-caches. 2. Replace 'PhaseForBodies' and 'PhaseForDeclarations' with 'PhaseFor<ModuleKind...>' Programs. 3. Introduce 'PhaseForProgramsToBeEmitted'. Signed-off-by: Daniel Kofanov <kofanov.daniil@huawei-partners.com> Co-authored-by: nikozer <ozerov.nikita@huawei-partners.com> Co-authored-by: Zelentsov Dmitriy <zelentsov.dmitry@huawei-partners.com> Co-authored-by: Klimentieva <klimentieva.maria@h-partners.com> Co-authored-by: lirismankarina <lirisman.karina@huawei-partners.com> Co-authored-by: Amosov Alexey <amosov.alexey1@huawei-partners.com> Co-authored-by: Dmitry Pimenov <pimenov.dmitry@huawei-partners.com> Change-Id: Icef66995940b4dcd69653108cdc6e2268b52102e4 个月前
change to ETSIntrinsicNode [refactoring] Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/9020 Change-Id: I507c5dd1e42be05444667ff9de111372c098f383 Signed-off-by: Klimentieva <klimentieva.maria@h-partners.com>3 个月前
Refactor 'ImportPathManager' & 'ExternalSources' Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/8938 Description: ImportPathManager: 1. Make 'ImportPathManager' responsible for 'Program' creation. 2. Specialize 'Program's by 'util::ModuleKind', 'Program' is an abstract base. 3. Refactor 'Program::externalSources_'; 4. Gather all the global-caches under 'ImportPathManager' (ast-cache, source-cache, decl-cache). 5. Reduce 'resolvedSource', 'declPath', 'ohmUrl', 'declText' and etc. interference: * Define 'ohmUrl' as fs-independent 'resolvedSource' * 'moduleName' is formed in the following way: 1. Form 'resolvedSource' (absolute-path). 2. Form 'ohmUrl' based on matching 'resolvedSource' with fields of arktsconfig. 3. If wasn't matched, 'ohmUrl' is just a filename (w/o extension). 4. Form 'moduleName' by repalcing '/' with '.' in 'ohmUrl'. 6. Simplify '.etscache' path resolving by 'cacheDir'/'ohmUrl'.etscache. Phases: 1. Skip "before-emit-decl" phases for 'Program's constructed from decl-caches. 2. Replace 'PhaseForBodies' and 'PhaseForDeclarations' with 'PhaseFor<ModuleKind...>' Programs. 3. Introduce 'PhaseForProgramsToBeEmitted'. Signed-off-by: Daniel Kofanov <kofanov.daniil@huawei-partners.com> Co-authored-by: nikozer <ozerov.nikita@huawei-partners.com> Co-authored-by: Zelentsov Dmitriy <zelentsov.dmitry@huawei-partners.com> Co-authored-by: Klimentieva <klimentieva.maria@h-partners.com> Co-authored-by: lirismankarina <lirisman.karina@huawei-partners.com> Co-authored-by: Amosov Alexey <amosov.alexey1@huawei-partners.com> Co-authored-by: Dmitry Pimenov <pimenov.dmitry@huawei-partners.com> Change-Id: Icef66995940b4dcd69653108cdc6e2268b52102e4 个月前
Fix crash for invalid union property Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/9821 Tests: use Test-U-Runners and CI Co-Authored-By: NA Signed-off-by: Zelentsov Dmitry <zelentsov.dmitry@huawei-partners.com>1 个月前
Refactor 'ImportPathManager' & 'ExternalSources' Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/8938 Description: ImportPathManager: 1. Make 'ImportPathManager' responsible for 'Program' creation. 2. Specialize 'Program's by 'util::ModuleKind', 'Program' is an abstract base. 3. Refactor 'Program::externalSources_'; 4. Gather all the global-caches under 'ImportPathManager' (ast-cache, source-cache, decl-cache). 5. Reduce 'resolvedSource', 'declPath', 'ohmUrl', 'declText' and etc. interference: * Define 'ohmUrl' as fs-independent 'resolvedSource' * 'moduleName' is formed in the following way: 1. Form 'resolvedSource' (absolute-path). 2. Form 'ohmUrl' based on matching 'resolvedSource' with fields of arktsconfig. 3. If wasn't matched, 'ohmUrl' is just a filename (w/o extension). 4. Form 'moduleName' by repalcing '/' with '.' in 'ohmUrl'. 6. Simplify '.etscache' path resolving by 'cacheDir'/'ohmUrl'.etscache. Phases: 1. Skip "before-emit-decl" phases for 'Program's constructed from decl-caches. 2. Replace 'PhaseForBodies' and 'PhaseForDeclarations' with 'PhaseFor<ModuleKind...>' Programs. 3. Introduce 'PhaseForProgramsToBeEmitted'. Signed-off-by: Daniel Kofanov <kofanov.daniil@huawei-partners.com> Co-authored-by: nikozer <ozerov.nikita@huawei-partners.com> Co-authored-by: Zelentsov Dmitriy <zelentsov.dmitry@huawei-partners.com> Co-authored-by: Klimentieva <klimentieva.maria@h-partners.com> Co-authored-by: lirismankarina <lirisman.karina@huawei-partners.com> Co-authored-by: Amosov Alexey <amosov.alexey1@huawei-partners.com> Co-authored-by: Dmitry Pimenov <pimenov.dmitry@huawei-partners.com> Change-Id: Icef66995940b4dcd69653108cdc6e2268b52102e4 个月前
Refactor 'ImportPathManager' & 'ExternalSources' Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/8938 Description: ImportPathManager: 1. Make 'ImportPathManager' responsible for 'Program' creation. 2. Specialize 'Program's by 'util::ModuleKind', 'Program' is an abstract base. 3. Refactor 'Program::externalSources_'; 4. Gather all the global-caches under 'ImportPathManager' (ast-cache, source-cache, decl-cache). 5. Reduce 'resolvedSource', 'declPath', 'ohmUrl', 'declText' and etc. interference: * Define 'ohmUrl' as fs-independent 'resolvedSource' * 'moduleName' is formed in the following way: 1. Form 'resolvedSource' (absolute-path). 2. Form 'ohmUrl' based on matching 'resolvedSource' with fields of arktsconfig. 3. If wasn't matched, 'ohmUrl' is just a filename (w/o extension). 4. Form 'moduleName' by repalcing '/' with '.' in 'ohmUrl'. 6. Simplify '.etscache' path resolving by 'cacheDir'/'ohmUrl'.etscache. Phases: 1. Skip "before-emit-decl" phases for 'Program's constructed from decl-caches. 2. Replace 'PhaseForBodies' and 'PhaseForDeclarations' with 'PhaseFor<ModuleKind...>' Programs. 3. Introduce 'PhaseForProgramsToBeEmitted'. Signed-off-by: Daniel Kofanov <kofanov.daniil@huawei-partners.com> Co-authored-by: nikozer <ozerov.nikita@huawei-partners.com> Co-authored-by: Zelentsov Dmitriy <zelentsov.dmitry@huawei-partners.com> Co-authored-by: Klimentieva <klimentieva.maria@h-partners.com> Co-authored-by: lirismankarina <lirisman.karina@huawei-partners.com> Co-authored-by: Amosov Alexey <amosov.alexey1@huawei-partners.com> Co-authored-by: Dmitry Pimenov <pimenov.dmitry@huawei-partners.com> Change-Id: Icef66995940b4dcd69653108cdc6e2268b52102e4 个月前
Refactor 'ImportPathManager' & 'ExternalSources' Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/8938 Description: ImportPathManager: 1. Make 'ImportPathManager' responsible for 'Program' creation. 2. Specialize 'Program's by 'util::ModuleKind', 'Program' is an abstract base. 3. Refactor 'Program::externalSources_'; 4. Gather all the global-caches under 'ImportPathManager' (ast-cache, source-cache, decl-cache). 5. Reduce 'resolvedSource', 'declPath', 'ohmUrl', 'declText' and etc. interference: * Define 'ohmUrl' as fs-independent 'resolvedSource' * 'moduleName' is formed in the following way: 1. Form 'resolvedSource' (absolute-path). 2. Form 'ohmUrl' based on matching 'resolvedSource' with fields of arktsconfig. 3. If wasn't matched, 'ohmUrl' is just a filename (w/o extension). 4. Form 'moduleName' by repalcing '/' with '.' in 'ohmUrl'. 6. Simplify '.etscache' path resolving by 'cacheDir'/'ohmUrl'.etscache. Phases: 1. Skip "before-emit-decl" phases for 'Program's constructed from decl-caches. 2. Replace 'PhaseForBodies' and 'PhaseForDeclarations' with 'PhaseFor<ModuleKind...>' Programs. 3. Introduce 'PhaseForProgramsToBeEmitted'. Signed-off-by: Daniel Kofanov <kofanov.daniil@huawei-partners.com> Co-authored-by: nikozer <ozerov.nikita@huawei-partners.com> Co-authored-by: Zelentsov Dmitriy <zelentsov.dmitry@huawei-partners.com> Co-authored-by: Klimentieva <klimentieva.maria@h-partners.com> Co-authored-by: lirismankarina <lirisman.karina@huawei-partners.com> Co-authored-by: Amosov Alexey <amosov.alexey1@huawei-partners.com> Co-authored-by: Dmitry Pimenov <pimenov.dmitry@huawei-partners.com> Change-Id: Icef66995940b4dcd69653108cdc6e2268b52102e4 个月前
Add bridge methods for primitive type override Changes: - Add OverrideBridgesLowering phase for bridge method generation - Add const correctness to Signature::IsSubtypeOf and ETSChecker::HasSameAssemblySignature - Add move semantics to SavedCheckerContext - Add comprehensive test suite for override bridges Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/9230 Co-Authored-By: Agent Signed-off-by: Dmitry Pimenov <pimenov.dmitry@huawei-partners.com>2 个月前
Add bridge methods for primitive type override Changes: - Add OverrideBridgesLowering phase for bridge method generation - Add const correctness to Signature::IsSubtypeOf and ETSChecker::HasSameAssemblySignature - Add move semantics to SavedCheckerContext - Add comprehensive test suite for override bridges Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/9230 Co-Authored-By: Agent Signed-off-by: Dmitry Pimenov <pimenov.dmitry@huawei-partners.com>2 个月前
[ metadata ] Implement metadata loading Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/9623 Change-Id: I25782cd066223a2d645d05c7895b852ee64f4ff4 Signed-off-by: Victor Petukhov <petukhov.victor@huawei-partners.com> Signed-off-by: Lirisman Karina <lirisman.karina@huawei-partners.com> Co-Authored-By: Lirisman Karina <lirisman.karina@huawei-partners.com>2 个月前
Refactor 'ImportPathManager' & 'ExternalSources' Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/8938 Description: ImportPathManager: 1. Make 'ImportPathManager' responsible for 'Program' creation. 2. Specialize 'Program's by 'util::ModuleKind', 'Program' is an abstract base. 3. Refactor 'Program::externalSources_'; 4. Gather all the global-caches under 'ImportPathManager' (ast-cache, source-cache, decl-cache). 5. Reduce 'resolvedSource', 'declPath', 'ohmUrl', 'declText' and etc. interference: * Define 'ohmUrl' as fs-independent 'resolvedSource' * 'moduleName' is formed in the following way: 1. Form 'resolvedSource' (absolute-path). 2. Form 'ohmUrl' based on matching 'resolvedSource' with fields of arktsconfig. 3. If wasn't matched, 'ohmUrl' is just a filename (w/o extension). 4. Form 'moduleName' by repalcing '/' with '.' in 'ohmUrl'. 6. Simplify '.etscache' path resolving by 'cacheDir'/'ohmUrl'.etscache. Phases: 1. Skip "before-emit-decl" phases for 'Program's constructed from decl-caches. 2. Replace 'PhaseForBodies' and 'PhaseForDeclarations' with 'PhaseFor<ModuleKind...>' Programs. 3. Introduce 'PhaseForProgramsToBeEmitted'. Signed-off-by: Daniel Kofanov <kofanov.daniil@huawei-partners.com> Co-authored-by: nikozer <ozerov.nikita@huawei-partners.com> Co-authored-by: Zelentsov Dmitriy <zelentsov.dmitry@huawei-partners.com> Co-authored-by: Klimentieva <klimentieva.maria@h-partners.com> Co-authored-by: lirismankarina <lirisman.karina@huawei-partners.com> Co-authored-by: Amosov Alexey <amosov.alexey1@huawei-partners.com> Co-authored-by: Dmitry Pimenov <pimenov.dmitry@huawei-partners.com> Change-Id: Icef66995940b4dcd69653108cdc6e2268b52102e4 个月前
Refactor 'ImportPathManager' & 'ExternalSources' Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/8938 Description: ImportPathManager: 1. Make 'ImportPathManager' responsible for 'Program' creation. 2. Specialize 'Program's by 'util::ModuleKind', 'Program' is an abstract base. 3. Refactor 'Program::externalSources_'; 4. Gather all the global-caches under 'ImportPathManager' (ast-cache, source-cache, decl-cache). 5. Reduce 'resolvedSource', 'declPath', 'ohmUrl', 'declText' and etc. interference: * Define 'ohmUrl' as fs-independent 'resolvedSource' * 'moduleName' is formed in the following way: 1. Form 'resolvedSource' (absolute-path). 2. Form 'ohmUrl' based on matching 'resolvedSource' with fields of arktsconfig. 3. If wasn't matched, 'ohmUrl' is just a filename (w/o extension). 4. Form 'moduleName' by repalcing '/' with '.' in 'ohmUrl'. 6. Simplify '.etscache' path resolving by 'cacheDir'/'ohmUrl'.etscache. Phases: 1. Skip "before-emit-decl" phases for 'Program's constructed from decl-caches. 2. Replace 'PhaseForBodies' and 'PhaseForDeclarations' with 'PhaseFor<ModuleKind...>' Programs. 3. Introduce 'PhaseForProgramsToBeEmitted'. Signed-off-by: Daniel Kofanov <kofanov.daniil@huawei-partners.com> Co-authored-by: nikozer <ozerov.nikita@huawei-partners.com> Co-authored-by: Zelentsov Dmitriy <zelentsov.dmitry@huawei-partners.com> Co-authored-by: Klimentieva <klimentieva.maria@h-partners.com> Co-authored-by: lirismankarina <lirisman.karina@huawei-partners.com> Co-authored-by: Amosov Alexey <amosov.alexey1@huawei-partners.com> Co-authored-by: Dmitry Pimenov <pimenov.dmitry@huawei-partners.com> Change-Id: Icef66995940b4dcd69653108cdc6e2268b52102e4 个月前
Refactor 'ImportPathManager' & 'ExternalSources' Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/8938 Description: ImportPathManager: 1. Make 'ImportPathManager' responsible for 'Program' creation. 2. Specialize 'Program's by 'util::ModuleKind', 'Program' is an abstract base. 3. Refactor 'Program::externalSources_'; 4. Gather all the global-caches under 'ImportPathManager' (ast-cache, source-cache, decl-cache). 5. Reduce 'resolvedSource', 'declPath', 'ohmUrl', 'declText' and etc. interference: * Define 'ohmUrl' as fs-independent 'resolvedSource' * 'moduleName' is formed in the following way: 1. Form 'resolvedSource' (absolute-path). 2. Form 'ohmUrl' based on matching 'resolvedSource' with fields of arktsconfig. 3. If wasn't matched, 'ohmUrl' is just a filename (w/o extension). 4. Form 'moduleName' by repalcing '/' with '.' in 'ohmUrl'. 6. Simplify '.etscache' path resolving by 'cacheDir'/'ohmUrl'.etscache. Phases: 1. Skip "before-emit-decl" phases for 'Program's constructed from decl-caches. 2. Replace 'PhaseForBodies' and 'PhaseForDeclarations' with 'PhaseFor<ModuleKind...>' Programs. 3. Introduce 'PhaseForProgramsToBeEmitted'. Signed-off-by: Daniel Kofanov <kofanov.daniil@huawei-partners.com> Co-authored-by: nikozer <ozerov.nikita@huawei-partners.com> Co-authored-by: Zelentsov Dmitriy <zelentsov.dmitry@huawei-partners.com> Co-authored-by: Klimentieva <klimentieva.maria@h-partners.com> Co-authored-by: lirismankarina <lirisman.karina@huawei-partners.com> Co-authored-by: Amosov Alexey <amosov.alexey1@huawei-partners.com> Co-authored-by: Dmitry Pimenov <pimenov.dmitry@huawei-partners.com> Change-Id: Icef66995940b4dcd69653108cdc6e2268b52102e4 个月前
revert 'Remove ets.stobj.name and ets.ldobj.name' This reverts commit 3255af1f5b33e44161e98c2a2704b8f794d93ecc. Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/11229 Signed-off-by: xumoheng <xumoheng21@163.com> Co-Authored-By: Agent16 天前
Refactor 'ImportPathManager' & 'ExternalSources' Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/8938 Description: ImportPathManager: 1. Make 'ImportPathManager' responsible for 'Program' creation. 2. Specialize 'Program's by 'util::ModuleKind', 'Program' is an abstract base. 3. Refactor 'Program::externalSources_'; 4. Gather all the global-caches under 'ImportPathManager' (ast-cache, source-cache, decl-cache). 5. Reduce 'resolvedSource', 'declPath', 'ohmUrl', 'declText' and etc. interference: * Define 'ohmUrl' as fs-independent 'resolvedSource' * 'moduleName' is formed in the following way: 1. Form 'resolvedSource' (absolute-path). 2. Form 'ohmUrl' based on matching 'resolvedSource' with fields of arktsconfig. 3. If wasn't matched, 'ohmUrl' is just a filename (w/o extension). 4. Form 'moduleName' by repalcing '/' with '.' in 'ohmUrl'. 6. Simplify '.etscache' path resolving by 'cacheDir'/'ohmUrl'.etscache. Phases: 1. Skip "before-emit-decl" phases for 'Program's constructed from decl-caches. 2. Replace 'PhaseForBodies' and 'PhaseForDeclarations' with 'PhaseFor<ModuleKind...>' Programs. 3. Introduce 'PhaseForProgramsToBeEmitted'. Signed-off-by: Daniel Kofanov <kofanov.daniil@huawei-partners.com> Co-authored-by: nikozer <ozerov.nikita@huawei-partners.com> Co-authored-by: Zelentsov Dmitriy <zelentsov.dmitry@huawei-partners.com> Co-authored-by: Klimentieva <klimentieva.maria@h-partners.com> Co-authored-by: lirismankarina <lirisman.karina@huawei-partners.com> Co-authored-by: Amosov Alexey <amosov.alexey1@huawei-partners.com> Co-authored-by: Dmitry Pimenov <pimenov.dmitry@huawei-partners.com> Change-Id: Icef66995940b4dcd69653108cdc6e2268b52102e4 个月前
Refactor 'ImportPathManager' & 'ExternalSources' Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/8938 Description: ImportPathManager: 1. Make 'ImportPathManager' responsible for 'Program' creation. 2. Specialize 'Program's by 'util::ModuleKind', 'Program' is an abstract base. 3. Refactor 'Program::externalSources_'; 4. Gather all the global-caches under 'ImportPathManager' (ast-cache, source-cache, decl-cache). 5. Reduce 'resolvedSource', 'declPath', 'ohmUrl', 'declText' and etc. interference: * Define 'ohmUrl' as fs-independent 'resolvedSource' * 'moduleName' is formed in the following way: 1. Form 'resolvedSource' (absolute-path). 2. Form 'ohmUrl' based on matching 'resolvedSource' with fields of arktsconfig. 3. If wasn't matched, 'ohmUrl' is just a filename (w/o extension). 4. Form 'moduleName' by repalcing '/' with '.' in 'ohmUrl'. 6. Simplify '.etscache' path resolving by 'cacheDir'/'ohmUrl'.etscache. Phases: 1. Skip "before-emit-decl" phases for 'Program's constructed from decl-caches. 2. Replace 'PhaseForBodies' and 'PhaseForDeclarations' with 'PhaseFor<ModuleKind...>' Programs. 3. Introduce 'PhaseForProgramsToBeEmitted'. Signed-off-by: Daniel Kofanov <kofanov.daniil@huawei-partners.com> Co-authored-by: nikozer <ozerov.nikita@huawei-partners.com> Co-authored-by: Zelentsov Dmitriy <zelentsov.dmitry@huawei-partners.com> Co-authored-by: Klimentieva <klimentieva.maria@h-partners.com> Co-authored-by: lirismankarina <lirisman.karina@huawei-partners.com> Co-authored-by: Amosov Alexey <amosov.alexey1@huawei-partners.com> Co-authored-by: Dmitry Pimenov <pimenov.dmitry@huawei-partners.com> Change-Id: Icef66995940b4dcd69653108cdc6e2268b52102e4 个月前
Refactor 'ImportPathManager' & 'ExternalSources' Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/8938 Description: ImportPathManager: 1. Make 'ImportPathManager' responsible for 'Program' creation. 2. Specialize 'Program's by 'util::ModuleKind', 'Program' is an abstract base. 3. Refactor 'Program::externalSources_'; 4. Gather all the global-caches under 'ImportPathManager' (ast-cache, source-cache, decl-cache). 5. Reduce 'resolvedSource', 'declPath', 'ohmUrl', 'declText' and etc. interference: * Define 'ohmUrl' as fs-independent 'resolvedSource' * 'moduleName' is formed in the following way: 1. Form 'resolvedSource' (absolute-path). 2. Form 'ohmUrl' based on matching 'resolvedSource' with fields of arktsconfig. 3. If wasn't matched, 'ohmUrl' is just a filename (w/o extension). 4. Form 'moduleName' by repalcing '/' with '.' in 'ohmUrl'. 6. Simplify '.etscache' path resolving by 'cacheDir'/'ohmUrl'.etscache. Phases: 1. Skip "before-emit-decl" phases for 'Program's constructed from decl-caches. 2. Replace 'PhaseForBodies' and 'PhaseForDeclarations' with 'PhaseFor<ModuleKind...>' Programs. 3. Introduce 'PhaseForProgramsToBeEmitted'. Signed-off-by: Daniel Kofanov <kofanov.daniil@huawei-partners.com> Co-authored-by: nikozer <ozerov.nikita@huawei-partners.com> Co-authored-by: Zelentsov Dmitriy <zelentsov.dmitry@huawei-partners.com> Co-authored-by: Klimentieva <klimentieva.maria@h-partners.com> Co-authored-by: lirismankarina <lirisman.karina@huawei-partners.com> Co-authored-by: Amosov Alexey <amosov.alexey1@huawei-partners.com> Co-authored-by: Dmitry Pimenov <pimenov.dmitry@huawei-partners.com> Change-Id: Icef66995940b4dcd69653108cdc6e2268b52102e4 个月前
Stackless lambds type deduction Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/9920 Co-Authored-By: NA Change-Id: I432b32a4873794ab723e06356b705e78ca8503b5 Signed-off-by: Nazarov Konstantin <nazarov.konstantin1@huawei.com>1 个月前
Refactor 'ImportPathManager' & 'ExternalSources' Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/8938 Description: ImportPathManager: 1. Make 'ImportPathManager' responsible for 'Program' creation. 2. Specialize 'Program's by 'util::ModuleKind', 'Program' is an abstract base. 3. Refactor 'Program::externalSources_'; 4. Gather all the global-caches under 'ImportPathManager' (ast-cache, source-cache, decl-cache). 5. Reduce 'resolvedSource', 'declPath', 'ohmUrl', 'declText' and etc. interference: * Define 'ohmUrl' as fs-independent 'resolvedSource' * 'moduleName' is formed in the following way: 1. Form 'resolvedSource' (absolute-path). 2. Form 'ohmUrl' based on matching 'resolvedSource' with fields of arktsconfig. 3. If wasn't matched, 'ohmUrl' is just a filename (w/o extension). 4. Form 'moduleName' by repalcing '/' with '.' in 'ohmUrl'. 6. Simplify '.etscache' path resolving by 'cacheDir'/'ohmUrl'.etscache. Phases: 1. Skip "before-emit-decl" phases for 'Program's constructed from decl-caches. 2. Replace 'PhaseForBodies' and 'PhaseForDeclarations' with 'PhaseFor<ModuleKind...>' Programs. 3. Introduce 'PhaseForProgramsToBeEmitted'. Signed-off-by: Daniel Kofanov <kofanov.daniil@huawei-partners.com> Co-authored-by: nikozer <ozerov.nikita@huawei-partners.com> Co-authored-by: Zelentsov Dmitriy <zelentsov.dmitry@huawei-partners.com> Co-authored-by: Klimentieva <klimentieva.maria@h-partners.com> Co-authored-by: lirismankarina <lirisman.karina@huawei-partners.com> Co-authored-by: Amosov Alexey <amosov.alexey1@huawei-partners.com> Co-authored-by: Dmitry Pimenov <pimenov.dmitry@huawei-partners.com> Change-Id: Icef66995940b4dcd69653108cdc6e2268b52102e4 个月前
Fix as double Issue:https://gitcode.com/openharmony/arkcompiler_runtime_core/issues/11419 Signed-off-by: yuan_chao_hua <yuanchaoxuan@huawei.com> Co-Authored-By: Agent1 个月前
Refactor 'ImportPathManager' & 'ExternalSources' Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/8938 Description: ImportPathManager: 1. Make 'ImportPathManager' responsible for 'Program' creation. 2. Specialize 'Program's by 'util::ModuleKind', 'Program' is an abstract base. 3. Refactor 'Program::externalSources_'; 4. Gather all the global-caches under 'ImportPathManager' (ast-cache, source-cache, decl-cache). 5. Reduce 'resolvedSource', 'declPath', 'ohmUrl', 'declText' and etc. interference: * Define 'ohmUrl' as fs-independent 'resolvedSource' * 'moduleName' is formed in the following way: 1. Form 'resolvedSource' (absolute-path). 2. Form 'ohmUrl' based on matching 'resolvedSource' with fields of arktsconfig. 3. If wasn't matched, 'ohmUrl' is just a filename (w/o extension). 4. Form 'moduleName' by repalcing '/' with '.' in 'ohmUrl'. 6. Simplify '.etscache' path resolving by 'cacheDir'/'ohmUrl'.etscache. Phases: 1. Skip "before-emit-decl" phases for 'Program's constructed from decl-caches. 2. Replace 'PhaseForBodies' and 'PhaseForDeclarations' with 'PhaseFor<ModuleKind...>' Programs. 3. Introduce 'PhaseForProgramsToBeEmitted'. Signed-off-by: Daniel Kofanov <kofanov.daniil@huawei-partners.com> Co-authored-by: nikozer <ozerov.nikita@huawei-partners.com> Co-authored-by: Zelentsov Dmitriy <zelentsov.dmitry@huawei-partners.com> Co-authored-by: Klimentieva <klimentieva.maria@h-partners.com> Co-authored-by: lirismankarina <lirisman.karina@huawei-partners.com> Co-authored-by: Amosov Alexey <amosov.alexey1@huawei-partners.com> Co-authored-by: Dmitry Pimenov <pimenov.dmitry@huawei-partners.com> Change-Id: Icef66995940b4dcd69653108cdc6e2268b52102e4 个月前
Refactor 'ImportPathManager' & 'ExternalSources' Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/8938 Description: ImportPathManager: 1. Make 'ImportPathManager' responsible for 'Program' creation. 2. Specialize 'Program's by 'util::ModuleKind', 'Program' is an abstract base. 3. Refactor 'Program::externalSources_'; 4. Gather all the global-caches under 'ImportPathManager' (ast-cache, source-cache, decl-cache). 5. Reduce 'resolvedSource', 'declPath', 'ohmUrl', 'declText' and etc. interference: * Define 'ohmUrl' as fs-independent 'resolvedSource' * 'moduleName' is formed in the following way: 1. Form 'resolvedSource' (absolute-path). 2. Form 'ohmUrl' based on matching 'resolvedSource' with fields of arktsconfig. 3. If wasn't matched, 'ohmUrl' is just a filename (w/o extension). 4. Form 'moduleName' by repalcing '/' with '.' in 'ohmUrl'. 6. Simplify '.etscache' path resolving by 'cacheDir'/'ohmUrl'.etscache. Phases: 1. Skip "before-emit-decl" phases for 'Program's constructed from decl-caches. 2. Replace 'PhaseForBodies' and 'PhaseForDeclarations' with 'PhaseFor<ModuleKind...>' Programs. 3. Introduce 'PhaseForProgramsToBeEmitted'. Signed-off-by: Daniel Kofanov <kofanov.daniil@huawei-partners.com> Co-authored-by: nikozer <ozerov.nikita@huawei-partners.com> Co-authored-by: Zelentsov Dmitriy <zelentsov.dmitry@huawei-partners.com> Co-authored-by: Klimentieva <klimentieva.maria@h-partners.com> Co-authored-by: lirismankarina <lirisman.karina@huawei-partners.com> Co-authored-by: Amosov Alexey <amosov.alexey1@huawei-partners.com> Co-authored-by: Dmitry Pimenov <pimenov.dmitry@huawei-partners.com> Change-Id: Icef66995940b4dcd69653108cdc6e2268b52102e4 个月前
Refactor 'ImportPathManager' & 'ExternalSources' Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/8938 Description: ImportPathManager: 1. Make 'ImportPathManager' responsible for 'Program' creation. 2. Specialize 'Program's by 'util::ModuleKind', 'Program' is an abstract base. 3. Refactor 'Program::externalSources_'; 4. Gather all the global-caches under 'ImportPathManager' (ast-cache, source-cache, decl-cache). 5. Reduce 'resolvedSource', 'declPath', 'ohmUrl', 'declText' and etc. interference: * Define 'ohmUrl' as fs-independent 'resolvedSource' * 'moduleName' is formed in the following way: 1. Form 'resolvedSource' (absolute-path). 2. Form 'ohmUrl' based on matching 'resolvedSource' with fields of arktsconfig. 3. If wasn't matched, 'ohmUrl' is just a filename (w/o extension). 4. Form 'moduleName' by repalcing '/' with '.' in 'ohmUrl'. 6. Simplify '.etscache' path resolving by 'cacheDir'/'ohmUrl'.etscache. Phases: 1. Skip "before-emit-decl" phases for 'Program's constructed from decl-caches. 2. Replace 'PhaseForBodies' and 'PhaseForDeclarations' with 'PhaseFor<ModuleKind...>' Programs. 3. Introduce 'PhaseForProgramsToBeEmitted'. Signed-off-by: Daniel Kofanov <kofanov.daniil@huawei-partners.com> Co-authored-by: nikozer <ozerov.nikita@huawei-partners.com> Co-authored-by: Zelentsov Dmitriy <zelentsov.dmitry@huawei-partners.com> Co-authored-by: Klimentieva <klimentieva.maria@h-partners.com> Co-authored-by: lirismankarina <lirisman.karina@huawei-partners.com> Co-authored-by: Amosov Alexey <amosov.alexey1@huawei-partners.com> Co-authored-by: Dmitry Pimenov <pimenov.dmitry@huawei-partners.com> Change-Id: Icef66995940b4dcd69653108cdc6e2268b52102e4 个月前
Iterable spread Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/9647 Signed-off-by: wudongchao <wudongchao1@huawei.com> Co-Authored-By: Agent19 天前
Refactor 'ImportPathManager' & 'ExternalSources' Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/8938 Description: ImportPathManager: 1. Make 'ImportPathManager' responsible for 'Program' creation. 2. Specialize 'Program's by 'util::ModuleKind', 'Program' is an abstract base. 3. Refactor 'Program::externalSources_'; 4. Gather all the global-caches under 'ImportPathManager' (ast-cache, source-cache, decl-cache). 5. Reduce 'resolvedSource', 'declPath', 'ohmUrl', 'declText' and etc. interference: * Define 'ohmUrl' as fs-independent 'resolvedSource' * 'moduleName' is formed in the following way: 1. Form 'resolvedSource' (absolute-path). 2. Form 'ohmUrl' based on matching 'resolvedSource' with fields of arktsconfig. 3. If wasn't matched, 'ohmUrl' is just a filename (w/o extension). 4. Form 'moduleName' by repalcing '/' with '.' in 'ohmUrl'. 6. Simplify '.etscache' path resolving by 'cacheDir'/'ohmUrl'.etscache. Phases: 1. Skip "before-emit-decl" phases for 'Program's constructed from decl-caches. 2. Replace 'PhaseForBodies' and 'PhaseForDeclarations' with 'PhaseFor<ModuleKind...>' Programs. 3. Introduce 'PhaseForProgramsToBeEmitted'. Signed-off-by: Daniel Kofanov <kofanov.daniil@huawei-partners.com> Co-authored-by: nikozer <ozerov.nikita@huawei-partners.com> Co-authored-by: Zelentsov Dmitriy <zelentsov.dmitry@huawei-partners.com> Co-authored-by: Klimentieva <klimentieva.maria@h-partners.com> Co-authored-by: lirismankarina <lirisman.karina@huawei-partners.com> Co-authored-by: Amosov Alexey <amosov.alexey1@huawei-partners.com> Co-authored-by: Dmitry Pimenov <pimenov.dmitry@huawei-partners.com> Change-Id: Icef66995940b4dcd69653108cdc6e2268b52102e4 个月前
Unify 'void' and 'undefined' types * Implement void-undefined boxing/unboxing with void type as primitive * Support IsSuperTypeOf and Identical methods for void/undefined according to Specification * Clean up now redundant CTEs and void-related patch-ups Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/9625 Co-Authored-By: Agent Signed-off-by: Maxim Bolshov <bolshov.maxim@huawei.com>2 个月前
Refactor 'ImportPathManager' & 'ExternalSources' Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/8938 Description: ImportPathManager: 1. Make 'ImportPathManager' responsible for 'Program' creation. 2. Specialize 'Program's by 'util::ModuleKind', 'Program' is an abstract base. 3. Refactor 'Program::externalSources_'; 4. Gather all the global-caches under 'ImportPathManager' (ast-cache, source-cache, decl-cache). 5. Reduce 'resolvedSource', 'declPath', 'ohmUrl', 'declText' and etc. interference: * Define 'ohmUrl' as fs-independent 'resolvedSource' * 'moduleName' is formed in the following way: 1. Form 'resolvedSource' (absolute-path). 2. Form 'ohmUrl' based on matching 'resolvedSource' with fields of arktsconfig. 3. If wasn't matched, 'ohmUrl' is just a filename (w/o extension). 4. Form 'moduleName' by repalcing '/' with '.' in 'ohmUrl'. 6. Simplify '.etscache' path resolving by 'cacheDir'/'ohmUrl'.etscache. Phases: 1. Skip "before-emit-decl" phases for 'Program's constructed from decl-caches. 2. Replace 'PhaseForBodies' and 'PhaseForDeclarations' with 'PhaseFor<ModuleKind...>' Programs. 3. Introduce 'PhaseForProgramsToBeEmitted'. Signed-off-by: Daniel Kofanov <kofanov.daniil@huawei-partners.com> Co-authored-by: nikozer <ozerov.nikita@huawei-partners.com> Co-authored-by: Zelentsov Dmitriy <zelentsov.dmitry@huawei-partners.com> Co-authored-by: Klimentieva <klimentieva.maria@h-partners.com> Co-authored-by: lirismankarina <lirisman.karina@huawei-partners.com> Co-authored-by: Amosov Alexey <amosov.alexey1@huawei-partners.com> Co-authored-by: Dmitry Pimenov <pimenov.dmitry@huawei-partners.com> Change-Id: Icef66995940b4dcd69653108cdc6e2268b52102e4 个月前
Refactor 'ImportPathManager' & 'ExternalSources' Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/8938 Description: ImportPathManager: 1. Make 'ImportPathManager' responsible for 'Program' creation. 2. Specialize 'Program's by 'util::ModuleKind', 'Program' is an abstract base. 3. Refactor 'Program::externalSources_'; 4. Gather all the global-caches under 'ImportPathManager' (ast-cache, source-cache, decl-cache). 5. Reduce 'resolvedSource', 'declPath', 'ohmUrl', 'declText' and etc. interference: * Define 'ohmUrl' as fs-independent 'resolvedSource' * 'moduleName' is formed in the following way: 1. Form 'resolvedSource' (absolute-path). 2. Form 'ohmUrl' based on matching 'resolvedSource' with fields of arktsconfig. 3. If wasn't matched, 'ohmUrl' is just a filename (w/o extension). 4. Form 'moduleName' by repalcing '/' with '.' in 'ohmUrl'. 6. Simplify '.etscache' path resolving by 'cacheDir'/'ohmUrl'.etscache. Phases: 1. Skip "before-emit-decl" phases for 'Program's constructed from decl-caches. 2. Replace 'PhaseForBodies' and 'PhaseForDeclarations' with 'PhaseFor<ModuleKind...>' Programs. 3. Introduce 'PhaseForProgramsToBeEmitted'. Signed-off-by: Daniel Kofanov <kofanov.daniil@huawei-partners.com> Co-authored-by: nikozer <ozerov.nikita@huawei-partners.com> Co-authored-by: Zelentsov Dmitriy <zelentsov.dmitry@huawei-partners.com> Co-authored-by: Klimentieva <klimentieva.maria@h-partners.com> Co-authored-by: lirismankarina <lirisman.karina@huawei-partners.com> Co-authored-by: Amosov Alexey <amosov.alexey1@huawei-partners.com> Co-authored-by: Dmitry Pimenov <pimenov.dmitry@huawei-partners.com> Change-Id: Icef66995940b4dcd69653108cdc6e2268b52102e4 个月前
Refactor 'ImportPathManager' & 'ExternalSources' Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/8938 Description: ImportPathManager: 1. Make 'ImportPathManager' responsible for 'Program' creation. 2. Specialize 'Program's by 'util::ModuleKind', 'Program' is an abstract base. 3. Refactor 'Program::externalSources_'; 4. Gather all the global-caches under 'ImportPathManager' (ast-cache, source-cache, decl-cache). 5. Reduce 'resolvedSource', 'declPath', 'ohmUrl', 'declText' and etc. interference: * Define 'ohmUrl' as fs-independent 'resolvedSource' * 'moduleName' is formed in the following way: 1. Form 'resolvedSource' (absolute-path). 2. Form 'ohmUrl' based on matching 'resolvedSource' with fields of arktsconfig. 3. If wasn't matched, 'ohmUrl' is just a filename (w/o extension). 4. Form 'moduleName' by repalcing '/' with '.' in 'ohmUrl'. 6. Simplify '.etscache' path resolving by 'cacheDir'/'ohmUrl'.etscache. Phases: 1. Skip "before-emit-decl" phases for 'Program's constructed from decl-caches. 2. Replace 'PhaseForBodies' and 'PhaseForDeclarations' with 'PhaseFor<ModuleKind...>' Programs. 3. Introduce 'PhaseForProgramsToBeEmitted'. Signed-off-by: Daniel Kofanov <kofanov.daniil@huawei-partners.com> Co-authored-by: nikozer <ozerov.nikita@huawei-partners.com> Co-authored-by: Zelentsov Dmitriy <zelentsov.dmitry@huawei-partners.com> Co-authored-by: Klimentieva <klimentieva.maria@h-partners.com> Co-authored-by: lirismankarina <lirisman.karina@huawei-partners.com> Co-authored-by: Amosov Alexey <amosov.alexey1@huawei-partners.com> Co-authored-by: Dmitry Pimenov <pimenov.dmitry@huawei-partners.com> Change-Id: Icef66995940b4dcd69653108cdc6e2268b52102e4 个月前
Implement Wildcard Type Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/9505 Tests: use Test-U-Runners and CI Co-Authored-By: NA Signed-off-by: Zelentsov Dmitry <zelentsov.dmitry@huawei-partners.com>2 个月前
Refactor 'ImportPathManager' & 'ExternalSources' Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/8938 Description: ImportPathManager: 1. Make 'ImportPathManager' responsible for 'Program' creation. 2. Specialize 'Program's by 'util::ModuleKind', 'Program' is an abstract base. 3. Refactor 'Program::externalSources_'; 4. Gather all the global-caches under 'ImportPathManager' (ast-cache, source-cache, decl-cache). 5. Reduce 'resolvedSource', 'declPath', 'ohmUrl', 'declText' and etc. interference: * Define 'ohmUrl' as fs-independent 'resolvedSource' * 'moduleName' is formed in the following way: 1. Form 'resolvedSource' (absolute-path). 2. Form 'ohmUrl' based on matching 'resolvedSource' with fields of arktsconfig. 3. If wasn't matched, 'ohmUrl' is just a filename (w/o extension). 4. Form 'moduleName' by repalcing '/' with '.' in 'ohmUrl'. 6. Simplify '.etscache' path resolving by 'cacheDir'/'ohmUrl'.etscache. Phases: 1. Skip "before-emit-decl" phases for 'Program's constructed from decl-caches. 2. Replace 'PhaseForBodies' and 'PhaseForDeclarations' with 'PhaseFor<ModuleKind...>' Programs. 3. Introduce 'PhaseForProgramsToBeEmitted'. Signed-off-by: Daniel Kofanov <kofanov.daniil@huawei-partners.com> Co-authored-by: nikozer <ozerov.nikita@huawei-partners.com> Co-authored-by: Zelentsov Dmitriy <zelentsov.dmitry@huawei-partners.com> Co-authored-by: Klimentieva <klimentieva.maria@h-partners.com> Co-authored-by: lirismankarina <lirisman.karina@huawei-partners.com> Co-authored-by: Amosov Alexey <amosov.alexey1@huawei-partners.com> Co-authored-by: Dmitry Pimenov <pimenov.dmitry@huawei-partners.com> Change-Id: Icef66995940b4dcd69653108cdc6e2268b52102e4 个月前
Iterable spread Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/9647 Signed-off-by: wudongchao <wudongchao1@huawei.com> Co-Authored-By: Agent19 天前
Refactor 'ImportPathManager' & 'ExternalSources' Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/8938 Description: ImportPathManager: 1. Make 'ImportPathManager' responsible for 'Program' creation. 2. Specialize 'Program's by 'util::ModuleKind', 'Program' is an abstract base. 3. Refactor 'Program::externalSources_'; 4. Gather all the global-caches under 'ImportPathManager' (ast-cache, source-cache, decl-cache). 5. Reduce 'resolvedSource', 'declPath', 'ohmUrl', 'declText' and etc. interference: * Define 'ohmUrl' as fs-independent 'resolvedSource' * 'moduleName' is formed in the following way: 1. Form 'resolvedSource' (absolute-path). 2. Form 'ohmUrl' based on matching 'resolvedSource' with fields of arktsconfig. 3. If wasn't matched, 'ohmUrl' is just a filename (w/o extension). 4. Form 'moduleName' by repalcing '/' with '.' in 'ohmUrl'. 6. Simplify '.etscache' path resolving by 'cacheDir'/'ohmUrl'.etscache. Phases: 1. Skip "before-emit-decl" phases for 'Program's constructed from decl-caches. 2. Replace 'PhaseForBodies' and 'PhaseForDeclarations' with 'PhaseFor<ModuleKind...>' Programs. 3. Introduce 'PhaseForProgramsToBeEmitted'. Signed-off-by: Daniel Kofanov <kofanov.daniil@huawei-partners.com> Co-authored-by: nikozer <ozerov.nikita@huawei-partners.com> Co-authored-by: Zelentsov Dmitriy <zelentsov.dmitry@huawei-partners.com> Co-authored-by: Klimentieva <klimentieva.maria@h-partners.com> Co-authored-by: lirismankarina <lirisman.karina@huawei-partners.com> Co-authored-by: Amosov Alexey <amosov.alexey1@huawei-partners.com> Co-authored-by: Dmitry Pimenov <pimenov.dmitry@huawei-partners.com> Change-Id: Icef66995940b4dcd69653108cdc6e2268b52102e4 个月前
Refactor 'ImportPathManager' & 'ExternalSources' Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/8938 Description: ImportPathManager: 1. Make 'ImportPathManager' responsible for 'Program' creation. 2. Specialize 'Program's by 'util::ModuleKind', 'Program' is an abstract base. 3. Refactor 'Program::externalSources_'; 4. Gather all the global-caches under 'ImportPathManager' (ast-cache, source-cache, decl-cache). 5. Reduce 'resolvedSource', 'declPath', 'ohmUrl', 'declText' and etc. interference: * Define 'ohmUrl' as fs-independent 'resolvedSource' * 'moduleName' is formed in the following way: 1. Form 'resolvedSource' (absolute-path). 2. Form 'ohmUrl' based on matching 'resolvedSource' with fields of arktsconfig. 3. If wasn't matched, 'ohmUrl' is just a filename (w/o extension). 4. Form 'moduleName' by repalcing '/' with '.' in 'ohmUrl'. 6. Simplify '.etscache' path resolving by 'cacheDir'/'ohmUrl'.etscache. Phases: 1. Skip "before-emit-decl" phases for 'Program's constructed from decl-caches. 2. Replace 'PhaseForBodies' and 'PhaseForDeclarations' with 'PhaseFor<ModuleKind...>' Programs. 3. Introduce 'PhaseForProgramsToBeEmitted'. Signed-off-by: Daniel Kofanov <kofanov.daniil@huawei-partners.com> Co-authored-by: nikozer <ozerov.nikita@huawei-partners.com> Co-authored-by: Zelentsov Dmitriy <zelentsov.dmitry@huawei-partners.com> Co-authored-by: Klimentieva <klimentieva.maria@h-partners.com> Co-authored-by: lirismankarina <lirisman.karina@huawei-partners.com> Co-authored-by: Amosov Alexey <amosov.alexey1@huawei-partners.com> Co-authored-by: Dmitry Pimenov <pimenov.dmitry@huawei-partners.com> Change-Id: Icef66995940b4dcd69653108cdc6e2268b52102e4 个月前
Refactor 'ImportPathManager' & 'ExternalSources' Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/8938 Description: ImportPathManager: 1. Make 'ImportPathManager' responsible for 'Program' creation. 2. Specialize 'Program's by 'util::ModuleKind', 'Program' is an abstract base. 3. Refactor 'Program::externalSources_'; 4. Gather all the global-caches under 'ImportPathManager' (ast-cache, source-cache, decl-cache). 5. Reduce 'resolvedSource', 'declPath', 'ohmUrl', 'declText' and etc. interference: * Define 'ohmUrl' as fs-independent 'resolvedSource' * 'moduleName' is formed in the following way: 1. Form 'resolvedSource' (absolute-path). 2. Form 'ohmUrl' based on matching 'resolvedSource' with fields of arktsconfig. 3. If wasn't matched, 'ohmUrl' is just a filename (w/o extension). 4. Form 'moduleName' by repalcing '/' with '.' in 'ohmUrl'. 6. Simplify '.etscache' path resolving by 'cacheDir'/'ohmUrl'.etscache. Phases: 1. Skip "before-emit-decl" phases for 'Program's constructed from decl-caches. 2. Replace 'PhaseForBodies' and 'PhaseForDeclarations' with 'PhaseFor<ModuleKind...>' Programs. 3. Introduce 'PhaseForProgramsToBeEmitted'. Signed-off-by: Daniel Kofanov <kofanov.daniil@huawei-partners.com> Co-authored-by: nikozer <ozerov.nikita@huawei-partners.com> Co-authored-by: Zelentsov Dmitriy <zelentsov.dmitry@huawei-partners.com> Co-authored-by: Klimentieva <klimentieva.maria@h-partners.com> Co-authored-by: lirismankarina <lirisman.karina@huawei-partners.com> Co-authored-by: Amosov Alexey <amosov.alexey1@huawei-partners.com> Co-authored-by: Dmitry Pimenov <pimenov.dmitry@huawei-partners.com> Change-Id: Icef66995940b4dcd69653108cdc6e2268b52102e4 个月前
Refactor 'ImportPathManager' & 'ExternalSources' Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/8938 Description: ImportPathManager: 1. Make 'ImportPathManager' responsible for 'Program' creation. 2. Specialize 'Program's by 'util::ModuleKind', 'Program' is an abstract base. 3. Refactor 'Program::externalSources_'; 4. Gather all the global-caches under 'ImportPathManager' (ast-cache, source-cache, decl-cache). 5. Reduce 'resolvedSource', 'declPath', 'ohmUrl', 'declText' and etc. interference: * Define 'ohmUrl' as fs-independent 'resolvedSource' * 'moduleName' is formed in the following way: 1. Form 'resolvedSource' (absolute-path). 2. Form 'ohmUrl' based on matching 'resolvedSource' with fields of arktsconfig. 3. If wasn't matched, 'ohmUrl' is just a filename (w/o extension). 4. Form 'moduleName' by repalcing '/' with '.' in 'ohmUrl'. 6. Simplify '.etscache' path resolving by 'cacheDir'/'ohmUrl'.etscache. Phases: 1. Skip "before-emit-decl" phases for 'Program's constructed from decl-caches. 2. Replace 'PhaseForBodies' and 'PhaseForDeclarations' with 'PhaseFor<ModuleKind...>' Programs. 3. Introduce 'PhaseForProgramsToBeEmitted'. Signed-off-by: Daniel Kofanov <kofanov.daniil@huawei-partners.com> Co-authored-by: nikozer <ozerov.nikita@huawei-partners.com> Co-authored-by: Zelentsov Dmitriy <zelentsov.dmitry@huawei-partners.com> Co-authored-by: Klimentieva <klimentieva.maria@h-partners.com> Co-authored-by: lirismankarina <lirisman.karina@huawei-partners.com> Co-authored-by: Amosov Alexey <amosov.alexey1@huawei-partners.com> Co-authored-by: Dmitry Pimenov <pimenov.dmitry@huawei-partners.com> Change-Id: Icef66995940b4dcd69653108cdc6e2268b52102e4 个月前
Refactor 'ImportPathManager' & 'ExternalSources' Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/8938 Description: ImportPathManager: 1. Make 'ImportPathManager' responsible for 'Program' creation. 2. Specialize 'Program's by 'util::ModuleKind', 'Program' is an abstract base. 3. Refactor 'Program::externalSources_'; 4. Gather all the global-caches under 'ImportPathManager' (ast-cache, source-cache, decl-cache). 5. Reduce 'resolvedSource', 'declPath', 'ohmUrl', 'declText' and etc. interference: * Define 'ohmUrl' as fs-independent 'resolvedSource' * 'moduleName' is formed in the following way: 1. Form 'resolvedSource' (absolute-path). 2. Form 'ohmUrl' based on matching 'resolvedSource' with fields of arktsconfig. 3. If wasn't matched, 'ohmUrl' is just a filename (w/o extension). 4. Form 'moduleName' by repalcing '/' with '.' in 'ohmUrl'. 6. Simplify '.etscache' path resolving by 'cacheDir'/'ohmUrl'.etscache. Phases: 1. Skip "before-emit-decl" phases for 'Program's constructed from decl-caches. 2. Replace 'PhaseForBodies' and 'PhaseForDeclarations' with 'PhaseFor<ModuleKind...>' Programs. 3. Introduce 'PhaseForProgramsToBeEmitted'. Signed-off-by: Daniel Kofanov <kofanov.daniil@huawei-partners.com> Co-authored-by: nikozer <ozerov.nikita@huawei-partners.com> Co-authored-by: Zelentsov Dmitriy <zelentsov.dmitry@huawei-partners.com> Co-authored-by: Klimentieva <klimentieva.maria@h-partners.com> Co-authored-by: lirismankarina <lirisman.karina@huawei-partners.com> Co-authored-by: Amosov Alexey <amosov.alexey1@huawei-partners.com> Co-authored-by: Dmitry Pimenov <pimenov.dmitry@huawei-partners.com> Change-Id: Icef66995940b4dcd69653108cdc6e2268b52102e4 个月前
Unify 'void' and 'undefined' types * Implement void-undefined boxing/unboxing with void type as primitive * Support IsSuperTypeOf and Identical methods for void/undefined according to Specification * Clean up now redundant CTEs and void-related patch-ups Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/9625 Co-Authored-By: Agent Signed-off-by: Maxim Bolshov <bolshov.maxim@huawei.com>2 个月前
Refactor 'ImportPathManager' & 'ExternalSources' Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/8938 Description: ImportPathManager: 1. Make 'ImportPathManager' responsible for 'Program' creation. 2. Specialize 'Program's by 'util::ModuleKind', 'Program' is an abstract base. 3. Refactor 'Program::externalSources_'; 4. Gather all the global-caches under 'ImportPathManager' (ast-cache, source-cache, decl-cache). 5. Reduce 'resolvedSource', 'declPath', 'ohmUrl', 'declText' and etc. interference: * Define 'ohmUrl' as fs-independent 'resolvedSource' * 'moduleName' is formed in the following way: 1. Form 'resolvedSource' (absolute-path). 2. Form 'ohmUrl' based on matching 'resolvedSource' with fields of arktsconfig. 3. If wasn't matched, 'ohmUrl' is just a filename (w/o extension). 4. Form 'moduleName' by repalcing '/' with '.' in 'ohmUrl'. 6. Simplify '.etscache' path resolving by 'cacheDir'/'ohmUrl'.etscache. Phases: 1. Skip "before-emit-decl" phases for 'Program's constructed from decl-caches. 2. Replace 'PhaseForBodies' and 'PhaseForDeclarations' with 'PhaseFor<ModuleKind...>' Programs. 3. Introduce 'PhaseForProgramsToBeEmitted'. Signed-off-by: Daniel Kofanov <kofanov.daniil@huawei-partners.com> Co-authored-by: nikozer <ozerov.nikita@huawei-partners.com> Co-authored-by: Zelentsov Dmitriy <zelentsov.dmitry@huawei-partners.com> Co-authored-by: Klimentieva <klimentieva.maria@h-partners.com> Co-authored-by: lirismankarina <lirisman.karina@huawei-partners.com> Co-authored-by: Amosov Alexey <amosov.alexey1@huawei-partners.com> Co-authored-by: Dmitry Pimenov <pimenov.dmitry@huawei-partners.com> Change-Id: Icef66995940b4dcd69653108cdc6e2268b52102e4 个月前
Unify 'void' and 'undefined' types * Implement void-undefined boxing/unboxing with void type as primitive * Support IsSuperTypeOf and Identical methods for void/undefined according to Specification * Clean up now redundant CTEs and void-related patch-ups Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/9625 Co-Authored-By: Agent Signed-off-by: Maxim Bolshov <bolshov.maxim@huawei.com>2 个月前
Refactor 'ImportPathManager' & 'ExternalSources' Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/8938 Description: ImportPathManager: 1. Make 'ImportPathManager' responsible for 'Program' creation. 2. Specialize 'Program's by 'util::ModuleKind', 'Program' is an abstract base. 3. Refactor 'Program::externalSources_'; 4. Gather all the global-caches under 'ImportPathManager' (ast-cache, source-cache, decl-cache). 5. Reduce 'resolvedSource', 'declPath', 'ohmUrl', 'declText' and etc. interference: * Define 'ohmUrl' as fs-independent 'resolvedSource' * 'moduleName' is formed in the following way: 1. Form 'resolvedSource' (absolute-path). 2. Form 'ohmUrl' based on matching 'resolvedSource' with fields of arktsconfig. 3. If wasn't matched, 'ohmUrl' is just a filename (w/o extension). 4. Form 'moduleName' by repalcing '/' with '.' in 'ohmUrl'. 6. Simplify '.etscache' path resolving by 'cacheDir'/'ohmUrl'.etscache. Phases: 1. Skip "before-emit-decl" phases for 'Program's constructed from decl-caches. 2. Replace 'PhaseForBodies' and 'PhaseForDeclarations' with 'PhaseFor<ModuleKind...>' Programs. 3. Introduce 'PhaseForProgramsToBeEmitted'. Signed-off-by: Daniel Kofanov <kofanov.daniil@huawei-partners.com> Co-authored-by: nikozer <ozerov.nikita@huawei-partners.com> Co-authored-by: Zelentsov Dmitriy <zelentsov.dmitry@huawei-partners.com> Co-authored-by: Klimentieva <klimentieva.maria@h-partners.com> Co-authored-by: lirismankarina <lirisman.karina@huawei-partners.com> Co-authored-by: Amosov Alexey <amosov.alexey1@huawei-partners.com> Co-authored-by: Dmitry Pimenov <pimenov.dmitry@huawei-partners.com> Change-Id: Icef66995940b4dcd69653108cdc6e2268b52102e4 个月前
revert 'Remove ets.stobj.name and ets.ldobj.name' Not all files were fully reverted last time(in this issue https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/11233); some leftover code changes remain to be rolled back. Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/11635 Signed-off-by: xumoheng <xumoheng21@163.com> Co-Authored-By: Agent4 天前
Fix clang-tidy jobs 2 Signed-off-by: Gareev Ruslan <gareev.ruslan1@h-partners.com> Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/9202 Co-Authored-By: NA Description: Fixed various code style warnings raised by clang-tidy, allowing clang-tidy to be included in CI again. Fixes include but are not limited to: Replaced ".size() == 0" with ".empty()" Fixed some .yaml's Changed parameters to be sent by-reference instead of by-value where possible Removed "noexcept" where it's not applicable Changed variables' names to match code style Supressed warnings with NOLINT where needed.3 个月前
revert 'Remove ets.stobj.name and ets.ldobj.name' This reverts commit 3255af1f5b33e44161e98c2a2704b8f794d93ecc. Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/11229 Signed-off-by: xumoheng <xumoheng21@163.com> Co-Authored-By: Agent16 天前
revert 'Remove ets.stobj.name and ets.ldobj.name' This reverts commit 3255af1f5b33e44161e98c2a2704b8f794d93ecc. Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/11229 Signed-off-by: xumoheng <xumoheng21@163.com> Co-Authored-By: Agent16 天前