diff options
Diffstat (limited to 'src/ir/cost.h')
-rw-r--r-- | src/ir/cost.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ir/cost.h b/src/ir/cost.h index e7287de77..73d027788 100644 --- a/src/ir/cost.h +++ b/src/ir/cost.h @@ -574,6 +574,9 @@ struct CostAnalyzer : public OverriddenVisitor<CostAnalyzer, CostType> { CostType visitTableGrow(TableGrow* curr) { return Unacceptable + visit(curr->value) + visit(curr->delta); } + CostType visitTableFill(TableFill* curr) { + return 6 + visit(curr->dest) + visit(curr->value) + visit(curr->size); + } CostType visitTry(Try* curr) { // We assume no exception will be thrown in most cases return visit(curr->body); |