summaryrefslogtreecommitdiff
path: root/src/binary-reader.cc
diff options
context:
space:
mode:
authorBen Smith <binjimin@gmail.com>2017-11-21 14:51:34 -0800
committerGitHub <noreply@github.com>2017-11-21 14:51:34 -0800
commita630c95d472dc1615640bfe7d33849d45631778c (patch)
treee9b4e6b3568d70f1fa767c2cc0a5d2d0eca7263a /src/binary-reader.cc
parent49b7984544ddaf14d5e2f1ad9115dad7e9a2b299 (diff)
downloadwabt-a630c95d472dc1615640bfe7d33849d45631778c.tar.gz
wabt-a630c95d472dc1615640bfe7d33849d45631778c.tar.bz2
wabt-a630c95d472dc1615640bfe7d33849d45631778c.zip
Rename {wake,wait} -> atomic.{wake,wait} (#672)
This was recently changed in the spec.
Diffstat (limited to 'src/binary-reader.cc')
-rw-r--r--src/binary-reader.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/binary-reader.cc b/src/binary-reader.cc
index 06cf9bb4..1aeef2af 100644
--- a/src/binary-reader.cc
+++ b/src/binary-reader.cc
@@ -959,25 +959,25 @@ Result BinaryReader::ReadFunctionBody(Offset end_offset) {
CALLBACK0(OnOpcodeBare);
break;
- case Opcode::Wake: {
+ case Opcode::AtomicWake: {
uint32_t alignment_log2;
CHECK_RESULT(ReadU32Leb128(&alignment_log2, "load alignment"));
Address offset;
CHECK_RESULT(ReadU32Leb128(&offset, "load offset"));
- CALLBACK(OnWakeExpr, opcode, alignment_log2, offset);
+ CALLBACK(OnAtomicWakeExpr, opcode, alignment_log2, offset);
CALLBACK(OnOpcodeUint32Uint32, alignment_log2, offset);
break;
}
- case Opcode::I32Wait:
- case Opcode::I64Wait: {
+ case Opcode::I32AtomicWait:
+ case Opcode::I64AtomicWait: {
uint32_t alignment_log2;
CHECK_RESULT(ReadU32Leb128(&alignment_log2, "load alignment"));
Address offset;
CHECK_RESULT(ReadU32Leb128(&offset, "load offset"));
- CALLBACK(OnWaitExpr, opcode, alignment_log2, offset);
+ CALLBACK(OnAtomicWaitExpr, opcode, alignment_log2, offset);
CALLBACK(OnOpcodeUint32Uint32, alignment_log2, offset);
break;
}