Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
gumb0 committed Oct 21, 2020
1 parent 51d45da commit 45c070b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/fizzy/instantiate.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,14 @@ struct ExternalFunction
FuncType type;
};

// Table element, which references a function in any instance.
struct TableElement
{
Instance* instance;
FuncIdx func_idx;
// This pointer is empty most of the time and is used only to keep instance alive in one edge
// case, when start function traps, but instantiate has already modified some elements of a
// shared (imported) table.
std::shared_ptr<Instance> shared_instance;
};

Expand Down

0 comments on commit 45c070b

Please sign in to comment.