| Index: src/wasm/wasm-opcodes.cc
|
| diff --git a/src/wasm/wasm-opcodes.cc b/src/wasm/wasm-opcodes.cc
|
| index dbb9675629365db2eccd9bd33c3e942f60e8bc63..bbde4c62784f6205613551e48ab81feccffbfe31 100644
|
| --- a/src/wasm/wasm-opcodes.cc
|
| +++ b/src/wasm/wasm-opcodes.cc
|
| @@ -51,13 +51,10 @@ std::ostream& operator<<(std::ostream& os, const FunctionSig& sig) {
|
| return os;
|
| }
|
|
|
| -
|
| #define DECLARE_SIG_ENUM(name, ...) kSigEnum_##name,
|
|
|
| -
|
| enum WasmOpcodeSig { FOREACH_SIGNATURE(DECLARE_SIG_ENUM) };
|
|
|
| -
|
| // TODO(titzer): not static-initializer safe. Wrap in LazyInstance.
|
| #define DECLARE_SIG(name, ...) \
|
| static LocalType kTypes_##name[] = {__VA_ARGS__}; \
|
| @@ -73,7 +70,6 @@ static const FunctionSig* kSimpleExprSigs[] = {
|
|
|
| static byte kSimpleExprSigTable[256];
|
|
|
| -
|
| // Initialize the signature table.
|
| static void InitSigTable() {
|
| #define SET_SIG_TABLE(name, opcode, sig) \
|
| @@ -83,7 +79,6 @@ static void InitSigTable() {
|
| #undef SET_SIG_TABLE
|
| }
|
|
|
| -
|
| FunctionSig* WasmOpcodes::Signature(WasmOpcode opcode) {
|
| // TODO(titzer): use LazyInstance to make this thread safe.
|
| if (kSimpleExprSigTable[kExprI32Add] == 0) InitSigTable();
|
| @@ -91,7 +86,6 @@ FunctionSig* WasmOpcodes::Signature(WasmOpcode opcode) {
|
| kSimpleExprSigs[kSimpleExprSigTable[static_cast<byte>(opcode)]]);
|
| }
|
|
|
| -
|
| // TODO(titzer): pull WASM_64 up to a common header.
|
| #if !V8_TARGET_ARCH_32_BIT || V8_TARGET_ARCH_X64
|
| #define WASM_64 1
|
|
|