{"id":19946226,"url":"https://github.com/ekil1100/arkcompiler_ets_runtime","last_synced_at":"2025-06-30T02:37:18.249Z","repository":{"id":248625990,"uuid":"828901082","full_name":"ekil1100/arkcompiler_ets_runtime","owner":"ekil1100","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-09T07:18:48.000Z","size":56928,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-08-09T11:30:20.436Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ekil1100.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-15T11:00:33.000Z","updated_at":"2024-08-09T11:30:20.436Z","dependencies_parsed_at":"2024-10-20T12:59:53.661Z","dependency_job_id":null,"html_url":"https://github.com/ekil1100/arkcompiler_ets_runtime","commit_stats":null,"previous_names":["ekil1100/arkcompiler_ets_runtime"],"tags_count":28,"template":false,"template_full_name":null,"purl":"pkg:github/ekil1100/arkcompiler_ets_runtime","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekil1100%2Farkcompiler_ets_runtime","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekil1100%2Farkcompiler_ets_runtime/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekil1100%2Farkcompiler_ets_runtime/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekil1100%2Farkcompiler_ets_runtime/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ekil1100","download_url":"https://codeload.github.com/ekil1100/arkcompiler_ets_runtime/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekil1100%2Farkcompiler_ets_runtime/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262699924,"owners_count":23350397,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T00:28:51.381Z","updated_at":"2025-06-30T02:37:14.649Z","avatar_url":"https://github.com/ekil1100.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ArkCompiler JS Runtime\n\n### Introduction\n\nArkCompiler JS Runtime is the default JS runtime on OpenHarmony. It supports ECMAScript libraries and efficient container libraries. It also provides a set of native APIs for C++ and JS interaction and a variety of garbage collectors that features high performance.\n\nFor more information, see [ArkCompiler JS Runtime](https://gitee.com/openharmony/docs/blob/master/en/readme/ARK-Runtime-Subsystem.md).\n\n**ArkCompiler JS Runtime architecture**\n\n![](/docs/figures/en-us_image_ark-js-arch.png)\n\n## Directory Structure\n\n```\n/arkcompiler/ets_runtime\n├─ ecmascript             # Implementation of ArkCompiler JS Runtime, including the ECMAScript library, interpreter, and memory management\n│   ├─ base               # Base helper class\n│   ├─ builtins           # ECMAScript libraries\n│   ├─ compiler           # JS compiler\n│   ├─ containers         # Non-ECMAScript containers\n│   ├─ dfx                # Memory and profiling tool\n│   ├─ ic                 # Inline cache module\n│   ├─ interpreter        # JS interpreter\n│   ├─ jobs               # Queue of jobs\n│   ├─ js_vm              # Command line tool\n│   ├─ jspandafile        # abc file management module\n│   ├─ mem                # Memory management module\n│   ├─ module             # ECMAScript module\n│   ├─ napi               # C++ API module\n│   ├─ taskpool           # Task pool\n│   ├─ regexp             # Regular expression engine module\n│   ├─ snapshot           # Snapshot module\n│   ├─ stubs              # Runtime stub functions\n│   ├─ tests              # Unit test cases\n│   ├─ debugger           # JS debugger\n│   ├─ trampoline         # Trampoline function\n│   ├─ ts_type            # TS type management module\n└─ test                   # Module test cases    \n```\n\n## Constraints\n\n* Only the ArkCompiler bytecode files generated by ts2abc, which is the ArkCompiler JS frontend toolchain, can be run.\n* Only the ES2021 standard and strict modes are supported.\n* Functions cannot be dynamically created using strings, such as new Function(\"console.log(1);\")).\n\n## Building\n\n```\n$./build.sh --product-name hispark_taurus_standard --build-target ark_js_host_linux_tools_packages\n```\n\n### Available APIs\n\nSee [NAPI](https://gitee.com/openharmony/arkui_napi/blob/master/README.md).\n\n### Usage\n\nFor details about how to generate JS bytecodes, see [Using the Toolchain](docs/using-the-toolchain.md).\n\nTo run bytecodes: \n```\nLD_LIBRARY_PATH=out/hispark_taurus/clang_x64/arkcompiler/ets_runtime:out/hispark_taurus/clang_x64/thirdparty/icu:prebuilts/clang/ohos/linux-x86_64/llvm/lib ./out/hispark_taurus/clang_x64/arkcompiler/ets_runtime/ark_js_vm helloworld.abc\n\n```\n\nFor more information, see [ARK Runtime Usage Guide](https://gitee.com/openharmony/arkcompiler_ets_runtime/blob/master/\ndocs/ARK-Runtime-Usage-Guide.md).\n\n## Repositories Involved\n\n[arkcompiler\\_runtime\\_core](https://gitee.com/openharmony/arkcompiler_runtime_core)\n\n**[arkcompiler\\_ets\\_runtime](https://gitee.com/openharmony/arkcompiler_ets_runtime)**\n\n[arkcompiler\\_ets\\_frontend](https://gitee.com/openharmony/arkcompiler_ets_frontend)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fekil1100%2Farkcompiler_ets_runtime","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fekil1100%2Farkcompiler_ets_runtime","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fekil1100%2Farkcompiler_ets_runtime/lists"}