[wasm] Pull return true out of macro

Change-Id: I7fd794342a13718059b47ea25c26d850ed2da509
Reviewed-on: https://chromium-review.googlesource.com/564189
Reviewed-by: Clemens Hammacher <clemensh@chromium.org>
Commit-Queue: Clemens Hammacher <clemensh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#46506}
This commit is contained in:
Loo Rong Jie 2017-07-08 21:04:59 +08:00 committed by Commit Bot
parent 5359d8680a
commit c5b46fd3dd

View File

@ -248,11 +248,10 @@ const char* WasmOpcodes::OpcodeName(WasmOpcode opcode) {
bool WasmOpcodes::IsPrefixOpcode(WasmOpcode opcode) {
switch (opcode) {
#define CHECK_PREFIX(name, opcode) \
case k##name##Prefix: \
return true;
#define CHECK_PREFIX(name, opcode) case k##name##Prefix:
FOREACH_PREFIX(CHECK_PREFIX)
#undef CHECK_PREFIX
return true;
default:
return false;
}
@ -260,11 +259,10 @@ bool WasmOpcodes::IsPrefixOpcode(WasmOpcode opcode) {
bool WasmOpcodes::IsControlOpcode(WasmOpcode opcode) {
switch (opcode) {
#define CHECK_OPCODE(name, opcode, _) \
case kExpr##name: \
return true;
#define CHECK_OPCODE(name, opcode, _) case kExpr##name:
FOREACH_CONTROL_OPCODE(CHECK_OPCODE)
#undef CHECK_OPCODE
return true;
default:
return false;
}