diff options
author | Max Graey <maxgraey@gmail.com> | 2021-10-09 05:26:08 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-08 19:26:08 -0700 |
commit | ef686a4d932b9b86edc34a3b9b15926f943f6f7b (patch) | |
tree | 38a89d5b555d4501b7d504a66c7aec409e45e9b1 /src/ir/cost.h | |
parent | 53c5e3e62db25fe3522a1fa615a1f53c4cefdf06 (diff) | |
download | binaryen-ef686a4d932b9b86edc34a3b9b15926f943f6f7b.tar.gz binaryen-ef686a4d932b9b86edc34a3b9b15926f943f6f7b.tar.bz2 binaryen-ef686a4d932b9b86edc34a3b9b15926f943f6f7b.zip |
Add table.size operation (#4224)
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); |