diff --git a/README.md b/README.md index a04c8b6b1b47e3349f946bc14e893f9cfd502e00..4850e21ad7bde4438f05fb68743c3d7d858936f0 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 65616edc35b8aa9d416dba5c3149e2da115919d2..d9e3ba6b87fa793aaa77967109c0029d87e11aca 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 2dbbf9db70cb04446cc3cda0e5987c5fbab79bce..95446f2227e3e431343a26ea6e25725e3be8a062 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 ``` diff --git a/run_test262.sh b/run_test262.sh index 82bb8468a61ad9ce2e62b3ef32c338c6a63adb33..734b3f827985cc589a411cac7a8598c8cfdf4bc9 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!'