Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(185)

Unified Diff: src/wasm/ast-decoder.h

Issue 2230063002: [wasm] Experimental: Add support for multiple non-homogeneous tables Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler/wasm-compiler.cc ('k') | src/wasm/ast-decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/wasm/ast-decoder.h
diff --git a/src/wasm/ast-decoder.h b/src/wasm/ast-decoder.h
index c4f6c1679a0bfb89d6d1b9c9c9197305e25aeca2..c76ce6bc70f83b1726f26ada368b1a35f7a46cc4 100644
--- a/src/wasm/ast-decoder.h
+++ b/src/wasm/ast-decoder.h
@@ -105,16 +105,23 @@ struct BreakDepthOperand {
struct CallIndirectOperand {
uint32_t arity;
- uint32_t index;
+ uint32_t sig_index;
FunctionSig* sig;
+ uint32_t table_index;
+ FunctionSig* table;
unsigned length;
inline CallIndirectOperand(Decoder* decoder, const byte* pc) {
unsigned len1 = 0;
unsigned len2 = 0;
+ unsigned len3 = 0;
arity = decoder->checked_read_u32v(pc, 1, &len1, "argument count");
- index = decoder->checked_read_u32v(pc, 1 + len1, &len2, "signature index");
- length = len1 + len2;
+ sig_index =
+ decoder->checked_read_u32v(pc, 1 + len1, &len2, "signature index");
+ table_index =
+ decoder->checked_read_u32v(pc, 1 + len1 + len2, &len3, "table index");
+ length = len1 + len2 + len3;
sig = nullptr;
+ table = nullptr;
}
};
« no previous file with comments | « src/compiler/wasm-compiler.cc ('k') | src/wasm/ast-decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698