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

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

Issue 1504713014: Initial import of v8-native WASM. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef V8_WASM_MODULE_DECODER_H_
6 #define V8_WASM_MODULE_DECODER_H_
7
8 #include "src/wasm/ast-decoder.h"
9 #include "src/wasm/wasm-module.h"
10
11 namespace v8 {
12 namespace internal {
13 namespace wasm {
14 // Decodes the bytes of a WASM module between {module_start} and {module_end}.
15 ModuleResult DecodeWasmModule(Isolate* isolate, Zone* zone,
16 const byte* module_start, const byte* module_end,
17 bool verify_functions, bool asm_js);
18
19 // Exposed for testing. Decodes a single function signature, allocating it
20 // in the given zone. Returns {nullptr} upon failure.
21 FunctionSig* DecodeWasmSignatureForTesting(Zone* zone, const byte* start,
22 const byte* end);
23
24 // Decodes the bytes of a WASM function between
25 // {function_start} and {function_end}.
26 FunctionResult DecodeWasmFunction(Isolate* isolate, Zone* zone, ModuleEnv* env,
27 const byte* function_start,
28 const byte* function_end);
29 } // namespace wasm
30 } // namespace internal
31 } // namespace v8
32
33 #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