diff options
author | Alon Zakai <azakai@google.com> | 2024-11-01 16:12:02 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-01 16:12:02 -0700 |
commit | 3b301784b86eada1ed2a9c52cbfd3a04564420fc (patch) | |
tree | 5637649f29120d52af05acea52b9bb1255c5c36a /src/tools | |
parent | 1b066cb3101dade3fe5be69218a7de41fa79599f (diff) | |
download | binaryen-3b301784b86eada1ed2a9c52cbfd3a04564420fc.tar.gz binaryen-3b301784b86eada1ed2a9c52cbfd3a04564420fc.tar.bz2 binaryen-3b301784b86eada1ed2a9c52cbfd3a04564420fc.zip |
[NFC] Use RAII to manage call depth tracking in the interpreter (#7049)
The old code manually managed it for no good reason that I can see.
After this, there is no difference between callFunction and callFunctionInternal,
so fold them together.
Diffstat (limited to 'src/tools')
-rw-r--r-- | src/tools/wasm-ctor-eval.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/wasm-ctor-eval.cpp b/src/tools/wasm-ctor-eval.cpp index 464654d4f..72ad459d3 100644 --- a/src/tools/wasm-ctor-eval.cpp +++ b/src/tools/wasm-ctor-eval.cpp @@ -350,7 +350,7 @@ struct CtorEvalExternalInterface : EvallingModuleRunner::ExternalInterface { targetFunc.toString()); } if (!func->imported()) { - return instance.callFunctionInternal(targetFunc, arguments); + return instance.callFunction(targetFunc, arguments); } else { throw FailToEvalException( std::string("callTable on imported function: ") + |