Chromium Code Reviews| Index: src/wasm/ast-decoder.h |
| diff --git a/src/wasm/ast-decoder.h b/src/wasm/ast-decoder.h |
| index 40363a2cdba6e513a537811864a8acc857192460..a0e98f7587ab227b3f4e7ffae8f3106024a1f9f9 100644 |
| --- a/src/wasm/ast-decoder.h |
| +++ b/src/wasm/ast-decoder.h |
| @@ -150,6 +150,16 @@ struct CallImportOperand { |
| } |
| }; |
| +struct JITSingleFunctionOperand { |
|
John
2016/07/13 19:56:59
why not make this a class, with getters/setters?
ritesht
2016/07/13 23:58:45
It looks like the rest of the module doesn't use c
|
| + uint32_t sig_index; |
| + FunctionSig* sig; |
| + unsigned length; |
| + inline JITSingleFunctionOperand(Decoder* decoder, const byte* pc) { |
| + sig_index = decoder->checked_read_u32v(pc, 1, &length, "signature index"); |
| + sig = nullptr; |
| + } |
| +}; |
| + |
| struct BranchTableOperand { |
| uint32_t arity; |
| uint32_t table_count; |