Index: src/wasm/ast-decoder.h |
diff --git a/src/wasm/ast-decoder.h b/src/wasm/ast-decoder.h |
index edcafa42a1a62843aebc585f9ea39d0ac308d4d4..4a02ea5abfec73bc487141a6622a7190ba4aa55f 100644 |
--- a/src/wasm/ast-decoder.h |
+++ b/src/wasm/ast-decoder.h |
@@ -194,21 +194,25 @@ typedef Result<Tree*> TreeResult; |
std::ostream& operator<<(std::ostream& os, const Tree& tree); |
-TreeResult VerifyWasmCode(FunctionBody& body); |
-TreeResult BuildTFGraph(TFBuilder* builder, FunctionBody& body); |
-void PrintAst(FunctionBody& body); |
- |
-inline TreeResult VerifyWasmCode(ModuleEnv* module, FunctionSig* sig, |
+TreeResult VerifyWasmCode(base::AccountingAllocator* allocator, |
+ FunctionBody& body); |
+TreeResult BuildTFGraph(base::AccountingAllocator* allocator, |
+ TFBuilder* builder, FunctionBody& body); |
+void PrintAst(base::AccountingAllocator* allocator, FunctionBody& body); |
+ |
+inline TreeResult VerifyWasmCode(base::AccountingAllocator* allocator, |
+ ModuleEnv* module, FunctionSig* sig, |
const byte* start, const byte* end) { |
FunctionBody body = {module, sig, nullptr, start, end}; |
- return VerifyWasmCode(body); |
+ return VerifyWasmCode(allocator, body); |
} |
-inline TreeResult BuildTFGraph(TFBuilder* builder, ModuleEnv* module, |
+inline TreeResult BuildTFGraph(base::AccountingAllocator* allocator, |
+ TFBuilder* builder, ModuleEnv* module, |
FunctionSig* sig, const byte* start, |
const byte* end) { |
FunctionBody body = {module, sig, nullptr, start, end}; |
- return BuildTFGraph(builder, body); |
+ return BuildTFGraph(allocator, builder, body); |
} |
enum ReadUnsignedLEB128ErrorCode { kNoError, kInvalidLEB128, kMissingLEB128 }; |
@@ -216,8 +220,8 @@ enum ReadUnsignedLEB128ErrorCode { kNoError, kInvalidLEB128, kMissingLEB128 }; |
ReadUnsignedLEB128ErrorCode ReadUnsignedLEB128Operand(const byte*, const byte*, |
int*, uint32_t*); |
-std::vector<LocalType>* DecodeLocalDeclsForTesting(const byte* start, |
- const byte* end); |
+std::vector<LocalType>* DecodeLocalDeclsForTesting( |
+ base::AccountingAllocator* allocator, const byte* start, const byte* end); |
BitVector* AnalyzeLoopAssignmentForTesting(Zone* zone, size_t num_locals, |
const byte* start, const byte* end); |