Index: src/wasm/wasm-interpreter.h |
diff --git a/src/wasm/wasm-interpreter.h b/src/wasm/wasm-interpreter.h |
index 2ed6053ddbd7787018912dfae3296739aebe5c9c..360362b994c02640b77c325ef01935337c9f5a42 100644 |
--- a/src/wasm/wasm-interpreter.h |
+++ b/src/wasm/wasm-interpreter.h |
@@ -125,6 +125,10 @@ class V8_EXPORT_PRIVATE WasmInterpreter { |
virtual const WasmFrame* GetFrame(int index) = 0; |
virtual WasmFrame* GetMutableFrame(int index) = 0; |
virtual WasmVal GetReturnValue(int index = 0) = 0; |
+ // Returns true if the thread executed an instruction which may produce |
+ // nondeterministic results, e.g. float div, float sqrt, and float mul, |
+ // where the sign bit of a NaN is nondeterministic. |
+ virtual bool PossibleNondeterminism() = 0; |
// Thread-specific breakpoints. |
bool SetBreakpoint(const WasmFunction* function, int pc, bool enabled); |