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

Side by Side Diff: src/wasm/ast-decoder.h

Issue 2360983002: Enable component builds for fuzzers (Closed)
Patch Set: Rebase Created 4 years, 2 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 unified diff | Download patch
« no previous file with comments | « src/regexp/jsregexp.h ('k') | src/wasm/encoder.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_WASM_AST_DECODER_H_ 5 #ifndef V8_WASM_AST_DECODER_H_
6 #define V8_WASM_AST_DECODER_H_ 6 #define V8_WASM_AST_DECODER_H_
7 7
8 #include "src/signature.h" 8 #include "src/signature.h"
9 #include "src/wasm/decoder.h" 9 #include "src/wasm/decoder.h"
10 #include "src/wasm/wasm-opcodes.h" 10 #include "src/wasm/wasm-opcodes.h"
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 } 230 }
231 231
232 struct DecodeStruct { 232 struct DecodeStruct {
233 int unused; 233 int unused;
234 }; 234 };
235 typedef Result<DecodeStruct*> DecodeResult; 235 typedef Result<DecodeStruct*> DecodeResult;
236 inline std::ostream& operator<<(std::ostream& os, const DecodeStruct& tree) { 236 inline std::ostream& operator<<(std::ostream& os, const DecodeStruct& tree) {
237 return os; 237 return os;
238 } 238 }
239 239
240 DecodeResult VerifyWasmCode(AccountingAllocator* allocator, FunctionBody& body); 240 V8_EXPORT_PRIVATE DecodeResult VerifyWasmCode(AccountingAllocator* allocator,
241 FunctionBody& body);
241 DecodeResult BuildTFGraph(AccountingAllocator* allocator, TFBuilder* builder, 242 DecodeResult BuildTFGraph(AccountingAllocator* allocator, TFBuilder* builder,
242 FunctionBody& body); 243 FunctionBody& body);
243 bool PrintAst(AccountingAllocator* allocator, const FunctionBody& body, 244 bool PrintAst(AccountingAllocator* allocator, const FunctionBody& body,
244 std::ostream& os, 245 std::ostream& os,
245 std::vector<std::tuple<uint32_t, int, int>>* offset_table); 246 std::vector<std::tuple<uint32_t, int, int>>* offset_table);
246 247
247 // A simplified form of AST printing, e.g. from a debugger. 248 // A simplified form of AST printing, e.g. from a debugger.
248 void PrintAstForDebugging(const byte* start, const byte* end); 249 void PrintAstForDebugging(const byte* start, const byte* end);
249 250
250 inline DecodeResult VerifyWasmCode(AccountingAllocator* allocator, 251 inline DecodeResult VerifyWasmCode(AccountingAllocator* allocator,
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 } 339 }
339 340
340 bool has_next() { return pc_ < end_; } 341 bool has_next() { return pc_ < end_; }
341 }; 342 };
342 343
343 } // namespace wasm 344 } // namespace wasm
344 } // namespace internal 345 } // namespace internal
345 } // namespace v8 346 } // namespace v8
346 347
347 #endif // V8_WASM_AST_DECODER_H_ 348 #endif // V8_WASM_AST_DECODER_H_
OLDNEW
« no previous file with comments | « src/regexp/jsregexp.h ('k') | src/wasm/encoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698