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

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

Issue 2345593003: [wasm] Master CL for Binary 0xC changes. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix test failures and TSAN races. 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/wasm/encoder.cc ('k') | src/wasm/module-decoder.cc » ('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_MODULE_DECODER_H_ 5 #ifndef V8_WASM_MODULE_DECODER_H_
6 #define V8_WASM_MODULE_DECODER_H_ 6 #define V8_WASM_MODULE_DECODER_H_
7 7
8 #include "src/wasm/ast-decoder.h" 8 #include "src/wasm/ast-decoder.h"
9 #include "src/wasm/wasm-module.h" 9 #include "src/wasm/wasm-module.h"
10 10
(...skipping 14 matching lines...) Expand all
25 25
26 // Decodes the bytes of a WASM function between 26 // Decodes the bytes of a WASM function between
27 // {function_start} and {function_end}. 27 // {function_start} and {function_end}.
28 FunctionResult DecodeWasmFunction(Isolate* isolate, Zone* zone, ModuleEnv* env, 28 FunctionResult DecodeWasmFunction(Isolate* isolate, Zone* zone, ModuleEnv* env,
29 const byte* function_start, 29 const byte* function_start,
30 const byte* function_end); 30 const byte* function_end);
31 31
32 // Extracts the function offset table from the wasm module bytes. 32 // Extracts the function offset table from the wasm module bytes.
33 // Returns a vector with <offset, length> entries, or failure if the wasm bytes 33 // Returns a vector with <offset, length> entries, or failure if the wasm bytes
34 // are detected as invalid. Note that this validation is not complete. 34 // are detected as invalid. Note that this validation is not complete.
35 FunctionOffsetsResult DecodeWasmFunctionOffsets(const byte* module_start, 35 FunctionOffsetsResult DecodeWasmFunctionOffsets(
36 const byte* module_end); 36 const byte* module_start, const byte* module_end,
37 uint32_t num_imported_functions);
38
39 WasmInitExpr DecodeWasmInitExprForTesting(const byte* start, const byte* end);
37 40
38 } // namespace wasm 41 } // namespace wasm
39 } // namespace internal 42 } // namespace internal
40 } // namespace v8 43 } // namespace v8
41 44
42 #endif // V8_WASM_MODULE_DECODER_H_ 45 #endif // V8_WASM_MODULE_DECODER_H_
OLDNEW
« no previous file with comments | « src/wasm/encoder.cc ('k') | src/wasm/module-decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698