diff options
Diffstat (limited to 'src/ir/cost.h')
-rw-r--r-- | src/ir/cost.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ir/cost.h b/src/ir/cost.h index 7cf0de926..7c18a8200 100644 --- a/src/ir/cost.h +++ b/src/ir/cost.h @@ -544,6 +544,7 @@ struct CostAnalyzer : public OverriddenVisitor<CostAnalyzer, CostType> { CostType visitTableSet(TableSet* curr) { return 2 + visit(curr->index) + visit(curr->value); } + CostType visitTableSize(TableSize* curr) { return 1; } CostType visitTry(Try* curr) { // We assume no exception will be thrown in most cases return visit(curr->body); |