From 5c2f9b1038975a1b6404cfceb38bf12609b69e09 Mon Sep 17 00:00:00 2001 From: wanyanglan Date: Mon, 6 Sep 2021 17:21:09 +0800 Subject: [PATCH 1/2] test262 ci build Signed-off-by: wanyanglan Change-Id: I66b447c1d88d610b308aef37621a30b347f9cfa0 --- run_test262.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run_test262.sh b/run_test262.sh index 82bb8468a6..734b3f8279 100755 --- a/run_test262.sh +++ b/run_test262.sh @@ -20,7 +20,7 @@ pushd ark/ts2abc mkdir report fi - python3 test262/run_test262.py --es2015 all --libs-dir ../../out/ohos-arm-release/clang_x64/ark/ark:../../out/ohos-arm-release/clang_x64/ark/ark_js_runtime:../../out/ohos-arm-release/clang_x64/global/i18n_standard:../../prebuilts/clang/ohos/linux-x86_64/llvm/lib --ark-tool=../../out/ohos-arm-release/clang_x64/ark/ark_js_runtime/ark_js_vm --ark-frontend-tool=../../out/ohos-arm-release/clang_x64/ark/ark/build/src/index.js + python3 test262/run_test262.py --ci-build --libs-dir ../../out/ohos-arm-release/clang_x64/ark/ark:../../out/ohos-arm-release/clang_x64/ark/ark_js_runtime:../../out/ohos-arm-release/clang_x64/global/i18n_standard:../../prebuilts/clang/ohos/linux-x86_64/llvm/lib --ark-tool=../../out/ohos-arm-release/clang_x64/ark/ark_js_runtime/ark_js_vm --ark-frontend-tool=../../out/ohos-arm-release/clang_x64/ark/ark/build/src/index.js if [ $? -ne 0 ];then echo 'execute run_test262.py failed!' -- Gitee From a5a133b6405d91566c99a5c70b461b5d1b3e4482 Mon Sep 17 00:00:00 2001 From: wanyanglan Date: Mon, 6 Sep 2021 21:47:09 +0800 Subject: [PATCH 2/2] modify document Signed-off-by: wanyanglan Change-Id: I10859549651a3e1cdba210ef29bd7a217e9741fd --- README.md | 4 +++- README_zh.md | 6 ++++-- docs/using-the-toolchain.md | 6 +++--- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index a04c8b6b1b..4850e21ad7 100644 --- a/README.md +++ b/README.md @@ -63,7 +63,9 @@ To run bytecodes: cd out/release -LD\_LIBRARY\_PATH=clang\_x64/ark/ark:clang\_x64/global/i18n:../../prebuilts/clang/ohos/linux-x86\_64/llvm/lib/ ./clang\_x64/ark/ark/ark\_js\_vm helloworld.abc \_GLOBAL::func\_main\_0 +LD\_LIBRARY\_PATH=clang\_x64/ark/ark:clang\_x64/global/i18n:../../prebuilts/clang/ohos/linux-x86\_64/llvm/lib/ + +./clang\_x64/ark/ark/ark\_js\_vm helloworld.abc ## Repositories Involved diff --git a/README_zh.md b/README_zh.md index 65616edc35..d9e3ba6b87 100644 --- a/README_zh.md +++ b/README_zh.md @@ -10,7 +10,7 @@ ### 简介 -**方舟JS运行时(ARK JavaScript Runtime)**是OpenHarmony上JS应用使用的运行时。包含JS对象的分配器以及垃圾回收器(GC)、符合ECMAScript规范的标准库、用于运行ARK前端组件生成的方舟字节码(ARK Bytecode,abc)的解释器、用于存储隐藏类的内联缓存、方舟JS运行时对外的函数接口(AFFI)等模块。 +方舟JS运行时(ARK JavaScript Runtime)是OpenHarmony上JS应用使用的运行时。包含JS对象的分配器以及垃圾回收器(GC)、符合ECMAScript规范的标准库、用于运行ARK前端组件生成的方舟字节码(ARK Bytecode,abc)的解释器、用于存储隐藏类的内联缓存、方舟JS运行时对外的函数接口(AFFI)等模块。 **方舟JS运行时组件架构图:** @@ -63,7 +63,9 @@ JS生成字节码参考[工具链使用](docs/工具链使用.md) cd out/release -LD\_LIBRARY\_PATH=clang\_x64/ark/ark:clang\_x64/global/i18n:../../prebuilts/clang/ohos/linux-x86\_64/llvm/lib/ ./clang\_x64/ark/ark\_js\_runtime/ark\_js\_vm helloworld.abc \_GLOBAL::func\_main\_0 +LD\_LIBRARY\_PATH=clang\_x64/ark/ark:clang\_x64/global/i18n:../../prebuilts/clang/ohos/linux-x86\_64/llvm/lib/ + +./clang\_x64/ark/ark\_js\_runtime/ark\_js\_vm helloworld.abc ## 相关仓 diff --git a/docs/using-the-toolchain.md b/docs/using-the-toolchain.md index 2dbbf9db70..95446f2227 100644 --- a/docs/using-the-toolchain.md +++ b/docs/using-the-toolchain.md @@ -191,14 +191,14 @@ Input file: ARK bytecodes in text format Output file: ARK bytecodes in binary format -Disassembler ark\_dissam +Disassembler ark\_disasm -The ark\_dissam disassembler converts binary ARK bytecodes into readable text ARK bytecodes. +The ark\_disasm disassembler converts binary ARK bytecodes into readable text ARK bytecodes. Command: ``` -ark_dissam [Option] Input file Output file +ark_disasm [Option] Input file Output file ``` -- Gitee