mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-06-18 02:59:21 +00:00
Compare commits
16 Commits
9102e6a796
...
10e7fb7012
Author | SHA1 | Date | |
---|---|---|---|
![]() |
10e7fb7012 | ||
![]() |
0860d7fda6 | ||
![]() |
0df6dc42af | ||
![]() |
26c35cbb6c | ||
![]() |
db6ea1d0f4 | ||
![]() |
14be14f337 | ||
![]() |
0c9dd5a346 | ||
![]() |
4d73ab0bbc | ||
![]() |
b8bd1ef274 | ||
![]() |
766145a166 | ||
![]() |
3f3a214411 | ||
![]() |
0e8b57d8a8 | ||
![]() |
88b5f6a535 | ||
![]() |
ac2fe552d5 | ||
![]() |
ea417d7619 | ||
![]() |
bb36a43fa4 |
|
@ -424,8 +424,7 @@ jobs:
|
||||||
VERBOSE=1
|
VERBOSE=1
|
||||||
cmake -S . -B build ${{ matrix.make_options }}
|
cmake -S . -B build ${{ matrix.make_options }}
|
||||||
cmake --build build --config Debug --parallel 4
|
cmake --build build --config Debug --parallel 4
|
||||||
./build/callback_chain
|
ctest --test-dir build --output-on-failure
|
||||||
ctest -V --test-dir build --output-on-failure
|
|
||||||
working-directory: samples/wasm-c-api
|
working-directory: samples/wasm-c-api
|
||||||
|
|
||||||
build_samples_others:
|
build_samples_others:
|
||||||
|
|
|
@ -5711,6 +5711,7 @@ orcjit_thread_callback(void *arg)
|
||||||
static void
|
static void
|
||||||
orcjit_stop_compile_threads(WASMModule *module)
|
orcjit_stop_compile_threads(WASMModule *module)
|
||||||
{
|
{
|
||||||
|
#if WASM_ENABLE_LAZY_JIT != 0
|
||||||
uint32 i, thread_num = (uint32)(sizeof(module->orcjit_thread_args)
|
uint32 i, thread_num = (uint32)(sizeof(module->orcjit_thread_args)
|
||||||
/ sizeof(OrcJitThreadArg));
|
/ sizeof(OrcJitThreadArg));
|
||||||
|
|
||||||
|
@ -5719,6 +5720,7 @@ orcjit_stop_compile_threads(WASMModule *module)
|
||||||
if (module->orcjit_threads[i])
|
if (module->orcjit_threads[i])
|
||||||
os_thread_join(module->orcjit_threads[i], NULL);
|
os_thread_join(module->orcjit_threads[i], NULL);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
|
@ -5741,7 +5743,7 @@ compile_jit_functions(WASMModule *module, char *error_buf,
|
||||||
|
|
||||||
if (os_thread_create(&module->orcjit_threads[i], orcjit_thread_callback,
|
if (os_thread_create(&module->orcjit_threads[i], orcjit_thread_callback,
|
||||||
(void *)&module->orcjit_thread_args[i],
|
(void *)&module->orcjit_thread_args[i],
|
||||||
APP_THREAD_STACK_SIZE_DEFAULT * 2)
|
APP_THREAD_STACK_SIZE_DEFAULT)
|
||||||
!= 0) {
|
!= 0) {
|
||||||
set_error_buf(error_buf, error_buf_size,
|
set_error_buf(error_buf, error_buf_size,
|
||||||
"create orcjit compile thread failed");
|
"create orcjit compile thread failed");
|
||||||
|
@ -9197,6 +9199,15 @@ preserve_referenced_local(WASMLoaderContext *loader_ctx, uint8 opcode,
|
||||||
loader_ctx->preserved_local_offset += 2;
|
loader_ctx->preserved_local_offset += 2;
|
||||||
emit_label(EXT_OP_COPY_STACK_TOP_I64);
|
emit_label(EXT_OP_COPY_STACK_TOP_I64);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* overflow */
|
||||||
|
if (preserved_offset > loader_ctx->preserved_local_offset) {
|
||||||
|
set_error_buf_v(error_buf, error_buf_size,
|
||||||
|
"too much local cells 0x%x",
|
||||||
|
loader_ctx->preserved_local_offset);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
emit_operand(loader_ctx, local_index);
|
emit_operand(loader_ctx, local_index);
|
||||||
emit_operand(loader_ctx, preserved_offset);
|
emit_operand(loader_ctx, preserved_offset);
|
||||||
emit_label(opcode);
|
emit_label(opcode);
|
||||||
|
|
|
@ -2493,6 +2493,7 @@ orcjit_thread_callback(void *arg)
|
||||||
static void
|
static void
|
||||||
orcjit_stop_compile_threads(WASMModule *module)
|
orcjit_stop_compile_threads(WASMModule *module)
|
||||||
{
|
{
|
||||||
|
#if WASM_ENABLE_LAZY_JIT != 0
|
||||||
uint32 i, thread_num = (uint32)(sizeof(module->orcjit_thread_args)
|
uint32 i, thread_num = (uint32)(sizeof(module->orcjit_thread_args)
|
||||||
/ sizeof(OrcJitThreadArg));
|
/ sizeof(OrcJitThreadArg));
|
||||||
|
|
||||||
|
@ -2501,6 +2502,7 @@ orcjit_stop_compile_threads(WASMModule *module)
|
||||||
if (module->orcjit_threads[i])
|
if (module->orcjit_threads[i])
|
||||||
os_thread_join(module->orcjit_threads[i], NULL);
|
os_thread_join(module->orcjit_threads[i], NULL);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
|
@ -4778,6 +4780,11 @@ preserve_referenced_local(WASMLoaderContext *loader_ctx, uint8 opcode,
|
||||||
loader_ctx->preserved_local_offset += 2;
|
loader_ctx->preserved_local_offset += 2;
|
||||||
emit_label(EXT_OP_COPY_STACK_TOP_I64);
|
emit_label(EXT_OP_COPY_STACK_TOP_I64);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* overflow */
|
||||||
|
bh_assert(preserved_offset
|
||||||
|
<= loader_ctx->preserved_local_offset);
|
||||||
|
|
||||||
emit_operand(loader_ctx, local_index);
|
emit_operand(loader_ctx, local_index);
|
||||||
emit_operand(loader_ctx, preserved_offset);
|
emit_operand(loader_ctx, preserved_offset);
|
||||||
emit_label(opcode);
|
emit_label(opcode);
|
||||||
|
|
|
@ -1,14 +1,17 @@
|
||||||
# WARM API
|
# WAMR API
|
||||||
|
|
||||||
* **Notice**: The python package `wamr.wamrapi.wamr` need python >= `3.10`.
|
* **Notice**: The python package `wamr.wamrapi.wamr` requires a python version >= `3.10`.
|
||||||
|
|
||||||
## Setup
|
## Setup
|
||||||
|
|
||||||
### Pre-requisites
|
### Pre-requisites
|
||||||
|
#### Install requirements
|
||||||
|
Before proceeding it is necessary to make sure your Python environment is correctly configured. To do ths open a terminal session in this directory and perfom the following:
|
||||||
|
|
||||||
Install requirements,
|
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
|
python3 -m venv venv
|
||||||
|
source venv/bin/activate
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user