From 155d0b5f42b57100582649dfbdb81806b10579a2 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Mon, 22 Jan 2018 17:36:06 -0800 Subject: Atomic wait/wake fixes (#1383) * fix wait and wake binary format support, they have alignments and offsets * don't emit unreachable parts of atomic operations, for simplicity and to avoid special handling * don't emit atomic waits by default in the fuzzer, they hang in native vm support --- src/passes/Print.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/passes/Print.cpp') diff --git a/src/passes/Print.cpp b/src/passes/Print.cpp index 7651414e0..66b0fa8f5 100644 --- a/src/passes/Print.cpp +++ b/src/passes/Print.cpp @@ -411,6 +411,9 @@ struct PrintSExpression : public Visitor { o << '(' ; prepareColor(o); o << printWasmType(curr->expectedType) << ".wait"; + if (curr->offset) { + o << " offset=" << curr->offset; + } restoreNormalColor(o); incIndent(); printFullLine(curr->ptr); @@ -420,6 +423,9 @@ struct PrintSExpression : public Visitor { } void visitAtomicWake(AtomicWake* curr) { printOpening(o, "wake"); + if (curr->offset) { + o << " offset=" << curr->offset; + } incIndent(); printFullLine(curr->ptr); printFullLine(curr->wakeCount); -- cgit v1.2.3