Skip to content

Commit

Permalink
Further optimisation
Browse files Browse the repository at this point in the history
  • Loading branch information
axic committed Oct 5, 2020
1 parent e0d1d78 commit 5c601fc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/fizzy/execute.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -456,9 +456,8 @@ inline bool invoke_function(const FuncType& func_type, uint32_t func_idx, Instan
{
const auto num_args = func_type.inputs.size();
assert(stack.size() >= num_args);
span<const Value> call_args{stack.rend() - num_args, num_args};

const auto ret = execute(instance, func_idx, call_args.data(), depth + 1);
const auto ret = execute(instance, func_idx, stack.rend() - num_args, depth + 1);
// Bubble up traps
if (ret.trapped)
return false;
Expand Down

0 comments on commit 5c601fc

Please sign in to comment.