mirror of
https://gitee.com/openharmony/arkcompiler_ets_runtime
synced 2024-11-23 18:20:04 +00:00
!3 add --ci-build test262 build paramter
Merge pull request !3 from wanyanglan/master
This commit is contained in:
commit
bfc3c3ccc2
@ -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>
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
### 简介<a name="section190813718209"></a>
|
||||
|
||||
**方舟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
|
||||
|
||||
## 相关仓<a name="section1371113476307"></a>
|
||||
|
||||
|
@ -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>
|
||||
|
@ -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!'
|
||||
|
Loading…
Reference in New Issue
Block a user