diff options
Diffstat (limited to 'src/wasm2js.h')
-rw-r--r-- | src/wasm2js.h | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/wasm2js.h b/src/wasm2js.h index ad8e32647..3e264f98b 100644 --- a/src/wasm2js.h +++ b/src/wasm2js.h @@ -1298,12 +1298,11 @@ Ref Wasm2JSBuilder::processFunctionBody(Module* m, // If the target has effects that interact with the operands, we must // reorder it to the start. bool mustReorder = false; - EffectAnalyzer targetEffects( - parent->options, module->features, curr->target); + EffectAnalyzer targetEffects(parent->options, *module, curr->target); if (targetEffects.hasAnything()) { for (auto* operand : curr->operands) { if (targetEffects.invalidates( - EffectAnalyzer(parent->options, module->features, operand))) { + EffectAnalyzer(parent->options, *module, operand))) { mustReorder = true; break; } @@ -1930,11 +1929,9 @@ Ref Wasm2JSBuilder::processFunctionBody(Module* m, // side effects, as a JS conditional does not visit both sides. bool useLocals = false; EffectAnalyzer conditionEffects( - parent->options, module->features, curr->condition); - EffectAnalyzer ifTrueEffects( - parent->options, module->features, curr->ifTrue); - EffectAnalyzer ifFalseEffects( - parent->options, module->features, curr->ifFalse); + parent->options, *module, curr->condition); + EffectAnalyzer ifTrueEffects(parent->options, *module, curr->ifTrue); + EffectAnalyzer ifFalseEffects(parent->options, *module, curr->ifFalse); if (conditionEffects.invalidates(ifTrueEffects) || conditionEffects.invalidates(ifFalseEffects) || ifTrueEffects.hasSideEffects() || ifFalseEffects.hasSideEffects()) { |