diff options
author | Alon Zakai <azakai@google.com> | 2022-07-14 17:10:15 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-15 00:10:15 +0000 |
commit | 2b31aeb98a0fc8a5a505b3998d44990ed14e8c38 (patch) | |
tree | b7e28f6ad6e3f77222e724afdb6d8668054410ea /src/ir/ReFinalize.cpp | |
parent | c0151e99996a7b51d3d135fd5018c69e146b5c02 (diff) | |
download | binaryen-2b31aeb98a0fc8a5a505b3998d44990ed14e8c38.tar.gz binaryen-2b31aeb98a0fc8a5a505b3998d44990ed14e8c38.tar.bz2 binaryen-2b31aeb98a0fc8a5a505b3998d44990ed14e8c38.zip |
[Strings] stringview_*.slice (#4805)
Unfortunately one slice is the same as python [start:end], using 2 params,
and the other slice is one param, [CURR:CURR+num] (where CURR is implied
by the current state in the iter). So we can't use a single class here. Perhaps
a different name would be good, like slice vs substring (like JS does), but
I picked names to match the current spec.
Diffstat (limited to 'src/ir/ReFinalize.cpp')
-rw-r--r-- | src/ir/ReFinalize.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ir/ReFinalize.cpp b/src/ir/ReFinalize.cpp index 2c3b6c1f0..771553e11 100644 --- a/src/ir/ReFinalize.cpp +++ b/src/ir/ReFinalize.cpp @@ -185,6 +185,10 @@ void ReFinalize::visitStringWTF8Advance(StringWTF8Advance* curr) { void ReFinalize::visitStringWTF16Get(StringWTF16Get* curr) { curr->finalize(); } void ReFinalize::visitStringIterNext(StringIterNext* curr) { curr->finalize(); } void ReFinalize::visitStringIterMove(StringIterMove* curr) { curr->finalize(); } +void ReFinalize::visitStringSliceWTF(StringSliceWTF* curr) { curr->finalize(); } +void ReFinalize::visitStringSliceIter(StringSliceIter* curr) { + curr->finalize(); +} void ReFinalize::visitFunction(Function* curr) { // we may have changed the body from unreachable to none, which might be bad |