@@ -271,8 +271,8 @@ void branch(const Code& code, OperandStack& stack, const Instr*& pc, const uint8
271
271
}
272
272
273
273
template <class F >
274
- bool invoke_function (
275
- const FuncType& func_type, const F& func, Instance& instance, OperandStack& stack, int depth)
274
+ bool invoke_function (const FuncType& func_type, const F& func, Instance& instance,
275
+ OperandStack& stack, int depth) noexcept
276
276
{
277
277
const auto num_args = func_type.inputs .size ();
278
278
assert (stack.size () >= num_args);
@@ -296,9 +296,9 @@ bool invoke_function(
296
296
}
297
297
298
298
inline bool invoke_function (const FuncType& func_type, uint32_t func_idx, Instance& instance,
299
- OperandStack& stack, int depth)
299
+ OperandStack& stack, int depth) noexcept
300
300
{
301
- const auto func = [func_idx](Instance& _instance, span<const Value> args, int _depth) {
301
+ const auto func = [func_idx](Instance& _instance, span<const Value> args, int _depth) noexcept {
302
302
return execute (_instance, func_idx, args, _depth);
303
303
};
304
304
return invoke_function (func_type, func, instance, stack, depth);
@@ -801,7 +801,8 @@ std::unique_ptr<Instance> instantiate(Module module,
801
801
return instance;
802
802
}
803
803
804
- ExecutionResult execute (Instance& instance, FuncIdx func_idx, span<const Value> args, int depth)
804
+ ExecutionResult execute (
805
+ Instance& instance, FuncIdx func_idx, span<const Value> args, int depth) noexcept
805
806
{
806
807
assert (depth >= 0 );
807
808
if (depth > CallStackLimit)
0 commit comments