Fix CN–EN mismatch Created-by: li_yue1999 Commit-by: liyue Merged-by: openharmony_ci Description: ### 关联的Issue https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/8680 ### 提交类型 - [ ] 需求 - [x] bugfix ### 需求背景/Description <!-- 仅涉及需求时填写 --> ### 问题现象&&分析/Reason <!-- 仅涉及bugfix时填写 --> 修复中英文不匹配 ### 修改方案/Scheme 修改英文翻译 ### 测试结果(测试截图直接贴在对应测试项,主干已知问题需明确引入pr/责任人) #### 功能测试(除仅涉及文本外必测项)[wiki](https://gitee.com/openharmony/arkcompiler_ets_frontend/wikis/代码提交要求及测试验证流程) 1. es2abc测试用例(Debug模式) - [ ] 已通过 - [x] 不涉及,无需验证 2. Verifier测试 - [ ] 已通过 - [x] 不涉及,无需验证 3. 64位RK编译 - [ ] 已通过 - [x] 不涉及,无需验证 4. 编译mac平台sdk - [ ] 已通过 - [x] 不涉及,无需验证 #### 混淆测试(涉及arkguard改动时必测项)[wiki](https://gitee.com/openharmony/arkcompiler_ets_frontend/wikis/混淆测试验证流程?sort_id=11451209) 1. 单元测试 - [ ] 已通过 - [x] 不涉及,无需验证 2. Compiler测试套 - [ ] 已通过 - [x] 不涉及,无需验证 3. TSC extra测试套 - [ ] 已通过 - [x] 不涉及,无需验证 4. Test262测试套 - [ ] 已通过 - [x] 不涉及,无需验证 5. Benchmark测试 - [ ] 已通过 - [x] 不涉及,无需验证 6. 应用自动化测试套 - [ ] 已通过 - [x] 不涉及,无需验证 7. 是否创建全局变量,若创建全局变量,是否有清空操作 - [ ] 创建了全局变量,且已清空 - [ ] 创建了全局变量,未清空 - [x] 未创建全局变量 #### 兼容性测试(指令生成、文件格式修改时) 1. 小版本兼容性测试 <!-- 修改导致新abc无法运行在老镜像上时,需新增版本号 --> - [ ] 已增加版本号 - [ ] 已通过 - [x] 不涉及,无需验证 2. 大版本兼容性测试 <!-- 配置target-api-version时,生成的abc需要能在对应版本运行--> - [ ] 已通过 - [x] 不涉及,无需验证 3. es2abc版本兼容性测试 <!-- 新版本es2abc编译的老版本API的abc文件,应能被老版本es2abc正常识别和处理--> **说明:如PR涉及版本控制用例的变更,需同步检查修改对其他分支的影响,并确认是否要同步受影响的分支** - [ ] 涉及,变更影响 API/字节码 版本, 需同步修改到其他分支 - [ ] 涉及,变更影响 API/字节码 版本, 无需同步到其他分支 - [x] 不涉及,变更不涉及 API/字节码 版本 4. 是否涉及词法环境修改 **说明:如PR涉及词法环境修改,需验证对应热重载场景是否兼容** - [ ] 涉及,影响热重载场景,需排查影响 - [ ] 涉及,不影响热重载场景 - [x] 不涉及 #### 性能测试 (新增语法检查等场景) - [ ] 已通过 - [x] 不涉及,无需验证 #### 指令/abc格式修改自检,需联系下方邮箱,同步至相关领域 **重要:涉及runtime_core仓abc2program、libpandafile、isa目录下的修改,必须提供一个编译helloworld项目的hap包给对应领域,并联系下方邮箱** - [ ] 涉及,已同步 - [x] 不涉及 **Email:** wutao185@huawei.com ### 是否已执行L0用例 - [ ] 已验证 - [x] 不涉及。如不涉及,请写明理由 ### 是否已执行L0用例 - [ ] 已验证 - [x] 不涉及。如不涉及,请写明理由 See merge request: openharmony/arkcompiler_ets_frontend!9539
15 KiB
ets_frontend
Introduction
ets_frontend is a front-end tool in the ARK Runtime Subsystem. Combined with the ace-ets2bundle component, it supports converting ETS files into ARK bytecode files.
For more information, see: ARK Runtime Subsystem.
ets_frontend architecture
Directory Structure
/arkcompiler/ets_frontend/
├── test262 # scripts for configuration and running Test262
├── testTs # system test cases
├── test_ecma_bcopt # bytecode_optimize test cases
├── test # sdk,xts test cases
├── es2panda
├── aot # logical entry
├── binder # info binding
├── compiler # compiling logic
├── ir # Bytecode generation
├── lexer # lexical analysis
├── parser # syntax parsing, AST generation
├── scripts # script directory
├── test # test directory
├── typescript # typescript support
└── util # tool directory
├── legacy_bin # API8 Compiler directory
├── merge_abc
├── protos # proto template directory
├── scripts # script directory
├── src # proto Serialization and deserialization directory
Build
ets_frontend uses the command line interaction mode and converts JS code into ARK bytecode files that can be run on an ARK runtime system. ets_frontend supports Windows, Linux, and macOS. Front-end tools, converting JS source code into ARK bytecode, can be built by specifying the --build-target with ets_frontend_build on Linux.
$ ./build.sh --product-name rk3568 --build-target ets_frontend_build
Usage Guidelines
Usage For Es2panda
Use the es2abc executable under the ets_frontend component to convert JavaScript files into Ark bytecode files
$ cd out/rk3568/clang_x64/arkcompiler/ets_frontend/
$ ./es2abc [options] file.js
If no parameter is specified for [options], an ARK binary file is generated by default.
For more information, please see: ARK-Runtime-Usage-Guide.
