| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
performance optimization for es2abc Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/9061 Change-Id: I5801999542dd483c604608879afc284d58a721f3 Signed-off-by: ElevenDuan <duanshiyi1@huawei.com> Signed-off-by: zmw <zhongmingwei2@huawei.com> | 7 个月前 | |
Fix incorrect bytecode for async statements Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/9581 Signed-off-by: liyue <liyue210@huawei.com> Co-Authored-By: Cursor Change-Id: I1cb3f75d02c5dc260c43ff8649d7146720c92170 | 6 个月前 | |
set funckind for method in class Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/8504 Co-Authored-By: Agent Signed-off-by: duyuhan <duyuhan2@huawei.com> Change-Id: Ic227f2b82f396ecbd730eb6c3521a46ab1745dcf | 6 个月前 | |
!9877 merge callable_release into master feat: funcName is not callable Created-by: liujia178 Commit-by: liujia178 Merged-by: openharmony_ci Description: ### 关联的Issue https://gitcode.com/openharmony/arkcompiler_ets_runtime/issues/12410 ### 提交类型 - [ ] 需求 - [ ] bugfix ### 需求背景/Description <!-- 仅涉及需求时填写 --> is not callable异常信息无法返回函数名 ### 问题现象&&分析/Reason <!-- 仅涉及bugfix时填写 --> ### 修改方案/Scheme 新增字节码携带函数名 ### Change-Id Change-Id: I69c2ab56275a802c72a08eda0c01254a015f008b ### 测试结果(测试截图直接贴在对应测试项,主干已知问题需明确引入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!9877 | 7 个月前 | |
Add AGENTS.md for es2panda Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/9099 Signed-off-by: zmw <zhongmingwei2@huawei.com> Change-Id: I9417108beac7185cb5e7d4226247ef30e9908cfb | 7 个月前 | |
Fix decorator AST node source location Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/9651 Co-Authored-By: Agent Change-Id: I78b1ba89fb2794b197613fd01234e0fd43e26ad8 Signed-off-by: ElevenDuan <duanshiyi1@huawei.com> | 6 个月前 | |
!9877 merge callable_release into master feat: funcName is not callable Created-by: liujia178 Commit-by: liujia178 Merged-by: openharmony_ci Description: ### 关联的Issue https://gitcode.com/openharmony/arkcompiler_ets_runtime/issues/12410 ### 提交类型 - [ ] 需求 - [ ] bugfix ### 需求背景/Description <!-- 仅涉及需求时填写 --> is not callable异常信息无法返回函数名 ### 问题现象&&分析/Reason <!-- 仅涉及bugfix时填写 --> ### 修改方案/Scheme 新增字节码携带函数名 ### Change-Id Change-Id: I69c2ab56275a802c72a08eda0c01254a015f008b ### 测试结果(测试截图直接贴在对应测试项,主干已知问题需明确引入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!9877 | 7 个月前 | |
Fix decorator AST node source location Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/9651 Co-Authored-By: Agent Change-Id: I78b1ba89fb2794b197613fd01234e0fd43e26ad8 Signed-off-by: ElevenDuan <duanshiyi1@huawei.com> | 6 个月前 | |
Remove unused checker code Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/9117 Signed-off-by: duyuhan <duyuhan2@huawei.com> Change-Id: I76a6dfcd35ae3124ca17140afd8f1ba67fdaae43 | 7 个月前 | |
[UT] Add unit tests for ParserContext Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/9064 Signed-off-by: duyuhan <duyuhan2@huawei.com> Co-Authored-By: Agent Change-Id: I7219644040c5521019a52cde0b4c8600e4a25924 | 6 个月前 | |
performance optimization for es2abc Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/9061 Change-Id: I5801999542dd483c604608879afc284d58a721f3 Signed-off-by: ElevenDuan <duanshiyi1@huawei.com> Signed-off-by: zmw <zhongmingwei2@huawei.com> | 7 个月前 | |
Add AGENTS.md for es2panda Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/9099 Signed-off-by: zmw <zhongmingwei2@huawei.com> Change-Id: I9417108beac7185cb5e7d4226247ef30e9908cfb | 7 个月前 | |
[UT] Add unit tests for ParserContext Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/9064 Signed-off-by: duyuhan <duyuhan2@huawei.com> Co-Authored-By: Agent Change-Id: I7219644040c5521019a52cde0b4c8600e4a25924 | 6 个月前 | |
Remove unused checker code Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/9117 Signed-off-by: duyuhan <duyuhan2@huawei.com> Change-Id: I76a6dfcd35ae3124ca17140afd8f1ba67fdaae43 | 7 个月前 | |
Add original es2panda compiler based on 05ddb192 of master Change-Id: I26f663c67b42f6549c7777a88c8bf00bd845fc96 Signed-off-by: zhuoli72 <pengzhuoli@huawei.com> | 4 年前 | |
gn format Signed-off-by: lijunru <lijunru9@h-partners.com> Change-Id: Ie4ddc8f283483bcde06866b02d4c3051f7730a13 | 1 年前 | |
performance optimization for es2abc Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/9061 Change-Id: I5801999542dd483c604608879afc284d58a721f3 Signed-off-by: ElevenDuan <duanshiyi1@huawei.com> Signed-off-by: zmw <zhongmingwei2@huawei.com> | 7 个月前 | |
performance optimization for es2abc Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/9061 Change-Id: I5801999542dd483c604608879afc284d58a721f3 Signed-off-by: ElevenDuan <duanshiyi1@huawei.com> Signed-off-by: zmw <zhongmingwei2@huawei.com> | 7 个月前 |
Es2panda
All in one JavaScript/TypeScript parser and compiler.
Usage
es2panda [OPTIONS] [input file] -- [arguments]
Optional arguments
--debug-info: Compile with debug info--dump-assembly: Dump pandasm--dump-ast: Dump the parsed AST--dump-debug-info: Dump debug info--dump-size-stat: Dump binary size statistics--extension: Parse the input as the given extension (options: js | ts | as)--module: Parse the input as module--opt-level: Compiler optimization level (options: 0 | 1 | 2)--output: Compiler binary output (.abc)--parse-only: Parse the input only--strict: Parse the input in strict mode
Tail arguments
input: input file
Running the tests
pip install tqdm
python3 test/runner.py [OPTIONS] [build_directory]
Optional arguments
--regression: Run regression tests--test262: Run test262--no-progress: Don't show progress bar
Tail arguments
build_directory: Path to panda build directory
Skip list
Skip list for the runtime: test/test262skiplist.txt, test/test262skiplist-long.txt.