!3 add --ci-build test262 build paramter

Merge pull request !3 from wanyanglan/master
This commit is contained in:
openharmony_ci 2021-09-07 01:44:00 +00:00 committed by Gitee
commit bfc3c3ccc2
4 changed files with 11 additions and 7 deletions

View File

@ -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<a name="section1371113476307"></a>

View File

@ -10,7 +10,7 @@
### 简介<a name="section190813718209"></a>
**方舟JS运行时ARK JavaScript Runtime**是OpenHarmony上JS应用使用的运行时。包含JS对象的分配器以及垃圾回收器GC、符合ECMAScript规范的标准库、用于运行ARK前端组件生成的方舟字节码ARK Bytecodeabc的解释器、用于存储隐藏类的内联缓存、方舟JS运行时对外的函数接口AFFI等模块。
方舟JS运行时ARK JavaScript Runtime是OpenHarmony上JS应用使用的运行时。包含JS对象的分配器以及垃圾回收器GC、符合ECMAScript规范的标准库、用于运行ARK前端组件生成的方舟字节码ARK Bytecodeabc的解释器、用于存储隐藏类的内联缓存、方舟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
## 相关仓<a name="section1371113476307"></a>

View File

@ -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
```
<a name="table125062517328"></a>

View File

@ -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!'