summaryrefslogtreecommitdiff
path: root/weerun_jit.cpp
diff options
context:
space:
mode:
authorHanjie Wu <hanjiew@andrew.cmu.edu>2022-12-08 20:10:53 -0500
committerHanjie Wu <hanjiew@andrew.cmu.edu>2022-12-08 20:10:53 -0500
commit78061fe66132bf053ed70c5a1d3cf1d9e2495afa (patch)
tree562ab1ece2df3ae4b37d088bcc284eeecb6ce286 /weerun_jit.cpp
parenta054755b62e660d3d8aba42fdb0a992e2d215599 (diff)
add option to choose from JIT/interpertermain
Diffstat (limited to 'weerun_jit.cpp')
-rw-r--r--weerun_jit.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/weerun_jit.cpp b/weerun_jit.cpp
index ece5b4f..542748f 100644
--- a/weerun_jit.cpp
+++ b/weerun_jit.cpp
@@ -212,8 +212,8 @@ void trap() {
std::exit(-1);
}
-wasm_jit_t::wasm_jit_t(uint64_t code_size)
- : CodeGenerator(code_size), enable_check_(true) {
+wasm_jit_t::wasm_jit_t(uint64_t code_size, bool check)
+ : CodeGenerator(code_size), enable_check_(check) {
size_t pos = getSize();
endbr64();
push(rbp);