Index: test/common/wasm/wasm-module-runner.cc |
diff --git a/test/common/wasm/wasm-module-runner.cc b/test/common/wasm/wasm-module-runner.cc |
index 01c4b624b09a08e542acbcf46db826b17e56e8f1..a4730e2f3dec19f1f88764698e920a5e3a48c02e 100644 |
--- a/test/common/wasm/wasm-module-runner.cc |
+++ b/test/common/wasm/wasm-module-runner.cc |
@@ -114,7 +114,7 @@ int32_t CompileAndRunWasmModule(Isolate* isolate, const byte* module_start, |
int32_t InterpretWasmModule(Isolate* isolate, ErrorThrower* thrower, |
const WasmModule* module, int function_index, |
- WasmVal* args) { |
+ WasmVal* args, bool* may_produced_nan) { |
titzer
2016/10/20 13:45:48
name this also possible_nondeterminism?
ahaas
2016/10/20 13:48:34
Done.
|
CHECK(module != nullptr); |
Zone zone(isolate->allocator(), ZONE_NAME); |
@@ -165,6 +165,7 @@ int32_t InterpretWasmModule(Isolate* isolate, ErrorThrower* thrower, |
if (instance.mem_start) { |
free(instance.mem_start); |
} |
+ *may_produced_nan = thread->PossibleNondeterminism(); |
if (interpreter_result == WasmInterpreter::FINISHED) { |
WasmVal val = thread->GetReturnValue(); |
return val.to<int32_t>(); |