diff options
author | Alon Zakai (kripken) <alonzakai@gmail.com> | 2017-05-27 12:48:34 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2017-06-01 13:16:53 -0700 |
commit | a5e32dfc7c3cd2899739298d80a2e707cc025bb2 (patch) | |
tree | a218196abf0ccaf3c8887b9f75a5c92f85bb8cef /src/wasm-interpreter.h | |
parent | 61f0890c258753dd08afeb24ec822e2f6f99d794 (diff) | |
download | binaryen-a5e32dfc7c3cd2899739298d80a2e707cc025bb2.tar.gz binaryen-a5e32dfc7c3cd2899739298d80a2e707cc025bb2.tar.bz2 binaryen-a5e32dfc7c3cd2899739298d80a2e707cc025bb2.zip |
fix call depth detection in wasm-opt interpreting
Diffstat (limited to 'src/wasm-interpreter.h')
-rw-r--r-- | src/wasm-interpreter.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm-interpreter.h b/src/wasm-interpreter.h index b06afb1a1..a8eda4e8f 100644 --- a/src/wasm-interpreter.h +++ b/src/wasm-interpreter.h @@ -692,6 +692,7 @@ private: // stack traces. std::vector<Name> functionStack; +public: // Call a function, starting an invocation. Literal callFunction(Name name, LiteralList& arguments) { // if the last call ended in a jump up the stack, it might have left stuff for us to clean up here @@ -700,7 +701,6 @@ private: return callFunctionInternal(name, arguments); } -public: // Internal function call. Must be public so that callTable implementations can use it (refactor?) Literal callFunctionInternal(Name name, LiteralList& arguments) { |