35 Commits

Author SHA1 Message Date
xuxinjie4
1ed994c1c8 Support LiteralArrayValue in bytecode
Issue: https://gitee.com/openharmony/arkcompiler_runtime_core/issues/IAZUBL?from=project-issue

Description:
1. Support LiteralArrayValue in bytecode;
2. Support serializeFieldValue in disassembler

Signed-off-by: xuxinjie4 <xuxinjie4@huawei.com>
2024-11-16 14:20:29 +08:00
Rokashevich Svetlana
e1fd0d21d2 Fix codecheck warning in disassembler
Issue: https://gitee.com/openharmony/arkcompiler_runtime_core/issues/IB2BXQ

Signed-off-by: Rokashevich Svetlana <rokashevich.svetlana1@huawei-partners.com>
2024-11-05 21:44:51 +03:00
Shimenkov Mikhail
f8ae29ac44 Fixes for standalone win build
Issue: https://gitee.com/openharmony/arkcompiler_runtime_core/issues/IAOXUE
Tests: python ark.py mingw_x86_64.release static_core
--gn-args="is_standard_system=true"

Change-Id: I7d0360fe85cc27366e0aa3daa76c6cf3f760f52a
Signed-off-by: Shimenkov Mikhail <shimenkov.mikhail@huawei-partners.com>
2024-10-22 16:35:29 +03:00
Rokashevich Svetlana
df2ceebc7e Suppress/fix codecheck warnings
Suppress/fix codecheck warnings in cmake, disassembler, gn, isa, libpandafile folders

Issue: https://gitee.com/openharmony/arkcompiler_runtime_core/issues/IAUVLC

Signed-off-by: Rokashevich Svetlana <rokashevich.svetlana1@huawei-partners.com>
2024-10-11 10:22:40 +03:00
ermolaevavarvara
f941ca0e2d !2371 [GN] Fix gn files for standalone build
Issue: https://gitee.com/openharmony/arkcompiler_runtime_core/issues/IAMX9U

Signed-off-by: varvara <ermolaeva.varvara@huawei-partners.com>
2024-09-16 12:12:16 +03:00
Artem Udovichenko
28be615a5a Add timer module
Description: implementation of setTimeout/clearTimeout, setInterval/clearInterval

Issue: IABHOH
Tests: ninja tests

Change-Id: I2c2a77e9246b4fbdbf0b8e6dcca8f69a522dad0b
Signed-off-by: Artem Udovichenko <artem.udovichenko@huawei.com>
2024-08-22 12:55:33 +03:00
Sergey Khil
3a3ca53b43 Fix codecheck
Issue: #IAIKVH

Signed-off-by: Sergey Khil <khil.sergey@huawei.com>
2024-08-09 12:11:44 +03:00
Maxim Bolshov
0646a3bf0a Fix codecheck for disassembler and verification
Issue: #IAHAG1
Testing: ninja tests

Signed-off-by: Maxim Bolshov <bolshov.maxim@huawei.com>
2024-08-02 11:58:47 +03:00
Shimenkov Mikhail
a1ef77546f Fix codecheck
Issue: https://gitee.com/openharmony/arkcompiler_runtime_core/issues/IADQNQ

Change-Id: Ifed083179879a7888077afab66867134efe3347b
Signed-off-by: Shimenkov Mikhail <shimenkov.mikhail@huawei-partners.com>
2024-07-23 23:31:28 +03:00
molotkovmikhail
a5563dc39a Update all copyrights
Update all copyrights headers with 2024

Issue: #IAEF1K

Tests: `ninja tests`

Signed-off-by: molotkovmikhail <molotkov.mikhail@huawei-partners.com>
2024-07-20 18:52:46 +03:00
Roman Zhuykov
8f5be92014 [LLVM AOT] Bring-up GN build for AOT and LLVMAOT
LLVM integration disabled by default, use
--gn-args is_llvmbackend=true \
--gn-args llvm_host_dir=<llvm-15-release-x86_64 path> \
--gn-args llvm_target_dir=<llvm-15-release-ohos-gn path>
to enable.

Also fix Irtoc offsets

Issue: I90SH6

Test: build and tests

Signed-off-by: Roman Zhuykov <roman.zhuykov@huawei.com>
2024-07-02 14:52:06 +03:00
openharmony_ci
755547c1bf
!1915 [ArkTS] Fix disassembler verbose mode
Merge pull request !1915 from slynkodenis/fix_disasm_verbose_mode
2024-06-28 19:36:51 +00:00
Denis Slynko
3770cf1087 [ArkTS] Fix disasm verbose mode
Description:
- Add verbose information about fields of external records. This fixes method `Disassembler::SerializeFields` when `printInformation` is true.

Issue: IA717I

Change-Id: I4f17eabab5305314b7979394c3d7b2a558e67ad8
Signed-off-by: Denis Slynko <slynko.denis@huawei-partners.com>
2024-06-27 11:23:38 +03:00
Denis Zavedeev
7f33e82e99 [LLVM AOT] Introduce llvm pre-optimizations
* Introduce --llvm-pre-opt option to run more Ark passes
* Improve division on aarch64
* Fix parallel compilation: introduce ScopedCompilerThread

Issue: #IA4GXS

Signed-off-by: Denis Zavedeev <zavedeev.denis@huawei.com>
2024-06-13 13:20:29 +03:00
Vyacheslav Cherkashin
68f7ccd8d2 interop_js: Add rest parametes support
Issue: #I91IS7

Testing: CI tests passed

Signed-off-by: Vyacheslav Cherkashin <cherkashin.vyacheslav@huawei.com>
Signed-off-by: churkinaleksey <churkin.aleksey@huawei-partners.com>
2024-05-15 18:47:32 +03:00
Denis Slynko
f4998cf8c7 [PT] Refactor ArkTS VM Inspector
Make ArkTS VM depend on arkcompiler_toolchain websocket implementation.
This eliminates the previous dependency on asio and websocketpp third-party libraries,
which blocked libarkinspector target from being added into OHOS build tree

Issue: https://gitee.com/openharmony/arkcompiler_runtime_core/issues/I8W825

Testing: All required pre-merge tests passed

Change-Id: I9dbac64183fac26ea83a0cca06f899f1ea7cf53d
Signed-off-by: Denis Slynko <slynko.denis@huawei-partners.com>
2024-03-21 17:00:07 +03:00
Robert Sipka
9bfedbd51c Revert the implementation of the builtin void type
Change-Id: I155b9235c324f419e830c3c030c02df262072575

Signed-off-by: Gergo Torok <gergo.torok@huawei.com>
Signed-off-by: Robert Sipka <robert.sipka@huawei.com>
2024-03-06 18:27:40 +03:00
Andrey Efremov
214abc5973 Fuse JSValue->primitive casts in interop
* build IntrinsicInst instead of Call in BCO to allow optimizations
based on intrinsic flags
* refactor gen.rb parameters to allow passing several YAMLs

Issue: https://gitee.com/open_harmony/dashboard?issue_id=I8OJFU&from=project-issue

Testing: internal pipeline

Change-Id: I302e21124a27f031d0a846f00075841e3cb7cde4

Signed-off-by: Andrey Efremov <efremov.andrey@huawei-partners.com>
2024-02-26 14:34:24 +03:00
Malinin Andrey
8f884df2ca Fixing checked files
Issue: I8WCNH
Testing: CI
Signed-off-by: Malinin Andrey <malinin.andrey@huawei-partners.com>
2024-02-14 16:43:19 +08:00
Svetlana Rokashevich
569a6c97e7 Replace namespace panda with ark
* Apply clang-force-format
* Temporary change link to vixl in static_core/scripts/third-party-lists/public
* Don't include static_core directory in arkplatform/tests/BUILD.gn

Signed-off-by: Svetlana Rokashevich <rokashevich.svetlana@huawei-partners.com>
2024-02-07 10:24:58 +03:00
openharmony_ci
287afb6ffc
!1002 Fix plugin files for pipeline in GN build, refactor usage of plugin options in templates
Merge pull request !1002 from Efremov Andrey/pipeline-fix-gn
2024-01-29 16:46:38 +00:00
Artem Udovichenko
e5ca038848 Fix code style issues
Issue: #I8R9EU
Testing: CI

Change-Id: I954475b2209cf26074f5fdb8e4cff41ed70a67a7
Signed-off-by: Artem Udovichenko <artem.udovichenko@huawei.com>
2024-01-25 11:40:25 +03:00
Andrey Efremov
bcf925a031 Fix plugin files for pipeline in GN build
Also refactor usage of plugin options in templates

Issue: https://gitee.com/openharmony/arkcompiler_runtime_core/issues/I8X0RQ?from=project-issue

Testing: build, internal pipeline

Change-Id: Ibfadf3a72a7470e340953a572e2a8afa53706f7e
Signed-off-by: Andrey Efremov <efremov.andrey@huawei-partners.com>
2024-01-24 17:08:50 +03:00
Petrov Igor
206d43b876 [Codestyle] Fix space indentations
Issue: #I8RW9U

Testing: `ninja all tests`

Signed-off-by: Sergey Chernykh <chernykh.sergey1@huawei.com>
2024-01-12 16:11:57 +03:00
Petrov Igor
59f966b17a [MM] Yet fixes for codecheck
Fix clang-tidy, codecheck reports, several builds

Issue: #I8RW9U

Testing: `ninja all tests`

Signed-off-by: Petrov Igor <petrov.826961@huawei.com>
2024-01-12 10:08:07 +03:00
Petrov Igor
2132e40a85 [Codestyle] More fixes for clang-tidy
Issue: #I8RW9U

Testing: `ninja all tests`

Signed-off-by: Petrov Igor <petrov.826961@huawei.com>
2024-01-11 17:14:14 +03:00
Petrov Igor
5a5728da03 [Codestyle] Fix build after codestyle
Issue: #I8RW9U

Testing: `ninja all tests`

Signed-off-by: Petrov Igor <petrov.826961@huawei.com>
2024-01-11 14:10:21 +03:00
Petrov Igor
e5fd6f5d7b [Codestyle] Fix asserts declaration
Issue: #I8RW9U

Testing: `ninja all tests`

Signed-off-by: Petrov Igor <petrov.826961@huawei.com>
2024-01-10 21:35:22 +03:00
Daniel Kofanov
d7a2793159 [Codestyle] Capitalize asserts
Issue: #I8RW9U

Testing: `ninja all tests`

Signed-off-by: Daniel Kofanov <kofanov.daniil@huawei-partners.com>
2024-01-10 19:14:19 +03:00
Petrov Igor
eff61e3d48 [Codestyle] Change static VM codestyle
Change variable names in static VM according to Huawei guidelines

Issue: #I8RW9U

Testing: ninja clang-tidy-check

Signed-off-by: Petrov Igor <petrov.826961@huawei.com>
2024-01-10 16:09:23 +03:00
Maxim Bolshov
8154bc12fd Fix codestyle for various components of static_core
Fix codestyle for:
* assembler
* disassembler
* bytecode_optimizer
* runtime and plugins/ets/runtime
* tests/interop_js
* libpandabase
* irtoc

Issue: https://gitee.com/openharmony/arkcompiler_runtime_core/issues/I8G41E

Signed-off-by: Maxim Bolshov <bolshov.maxim@huawei.com>
Signed-off-by: Redkin Mikhail <redkin.mikhail@huawei-partners.com>
Signed-off-by: Shimenkov Mikhail <shimenkov.mikhail@huawei-partners.com>
Signed-off-by: Molokanov Yaroslav <molokanov.yaroslav@huawei-partners.com>
Signed-off-by: aleksisch <churkin.aleksey@huawei-partners.com>
Signed-off-by: Akmaev Alexey <akmaev.alexey@huawei-partners.com>
2023-11-14 19:00:41 +03:00
Igor Oberman
3663cdee07 Fix compiler codestyle
Issue: https://gitee.com/openharmony/arkcompiler_runtime_core/issues/I8DPR6
Signed-off-by: Igor Oberman <oberman.igor@huawei-partners.com>
2023-11-09 16:26:14 +03:00
Artem Udovichenko
ee226f493f Fix formatting for gn files
Change-Id: Id78a2302d7663f4aa78a917773af1e4c4812a51f
Signed-off-by: Artem Udovichenko <artem.udovichenko@huawei.com>
2023-10-07 16:50:18 +03:00
Artem Udovichenko
edd7648fdd Rebase + detach es2panda
Change-Id: If6344554b89229aee0d46221fd3de50e3c8b6b7a
Signed-off-by: Artem Udovichenko <artem.udovichenko@huawei.com>
2023-10-03 20:44:06 +03:00
Artem Udovichenko
d386df8ba4 Add arkplatform and static_core
Commit in SIG repository is d4f68dcd4885305251453b0f4d5f986efbf7cb2a

Change-Id: I0e2de819f97978468c9dc36c2f5755179f374ed4
Signed-off-by: Artem Udovichenko <artem.udovichenko@huawei.com>
2023-09-29 17:50:24 +03:00