diff options
author | Max Graey <maxgraey@gmail.com> | 2020-10-10 01:01:00 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-09 15:01:00 -0700 |
commit | 7f5bb7ab4c4d44316dc191f17a3cbdf7fb2e6d31 (patch) | |
tree | 2d5721e7c670f9ca82987c18a7d0147179c64ad6 /src/wasm-interpreter.h | |
parent | 788974a6bcdd00d5edc3ddaafc70107bc8c37c86 (diff) | |
download | binaryen-7f5bb7ab4c4d44316dc191f17a3cbdf7fb2e6d31.tar.gz binaryen-7f5bb7ab4c4d44316dc191f17a3cbdf7fb2e6d31.tar.bz2 binaryen-7f5bb7ab4c4d44316dc191f17a3cbdf7fb2e6d31.zip |
Refactor naming convention for functions handling tuples (#3196)
When there are two versions of a function, one handling tuples and the other handling non-tuple values, the previous naming convention was to have "Single" in the name of the non-tuple handling function. This PR simplifies the convention and shortens function names by making the names plural for the tuple-handling version and singular for the non-tuple-handling version.
Diffstat (limited to 'src/wasm-interpreter.h')
-rw-r--r-- | src/wasm-interpreter.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wasm-interpreter.h b/src/wasm-interpreter.h index 1f61685b8..b683de632 100644 --- a/src/wasm-interpreter.h +++ b/src/wasm-interpreter.h @@ -1995,7 +1995,7 @@ private: locals[i] = {arguments[i]}; } else { assert(function->isVar(i)); - locals[i] = Literal::makeZero(function->getLocalType(i)); + locals[i] = Literal::makeZeros(function->getLocalType(i)); } } } @@ -2371,7 +2371,7 @@ private: Address src = instance.getFinalAddress( curr, flow.getSingleValue(), curr->op == Load32Zero ? 32 : 64); auto zero = - Literal::makeSingleZero(curr->op == Load32Zero ? Type::i32 : Type::i64); + Literal::makeZero(curr->op == Load32Zero ? Type::i32 : Type::i64); if (curr->op == Load32Zero) { auto val = Literal(instance.externalInterface->load32u(src)); return Literal(std::array<Literal, 4>{{val, zero, zero, zero}}); |