| Index: src/compiler/wasm-compiler.cc
|
| diff --git a/src/compiler/wasm-compiler.cc b/src/compiler/wasm-compiler.cc
|
| index 1b61c1504edee8cec84e72d1f03489d4c24494d1..d0ec9f2f292ea6abe0083adcc1eda3f794d05bbd 100644
|
| --- a/src/compiler/wasm-compiler.cc
|
| +++ b/src/compiler/wasm-compiler.cc
|
| @@ -412,6 +412,7 @@ Node* WasmGraphBuilder::Int64Constant(int64_t value) {
|
|
|
| void WasmGraphBuilder::StackCheck(wasm::WasmCodePosition position,
|
| Node** effect, Node** control) {
|
| + if (FLAG_wasm_no_stack_checks) return;
|
| if (effect == nullptr) {
|
| effect = effect_;
|
| }
|
| @@ -2895,6 +2896,7 @@ void WasmGraphBuilder::BoundsCheckMem(MachineType memtype, Node* index,
|
| uint32_t offset,
|
| wasm::WasmCodePosition position) {
|
| DCHECK(module_ && module_->instance);
|
| + if (FLAG_wasm_no_bounds_checks) return;
|
| uint32_t size = module_->instance->mem_size;
|
| byte memsize = wasm::WasmOpcodes::MemSize(memtype);
|
|
|
|
|