OLD | NEW |
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/globals.h" | 8 #include "src/globals.h" |
9 #include "src/wasm/ast-decoder.h" | 9 #include "src/wasm/function-body-decoder.h" |
10 #include "src/wasm/wasm-module.h" | 10 #include "src/wasm/wasm-module.h" |
11 #include "src/wasm/wasm-result.h" | 11 #include "src/wasm/wasm-result.h" |
12 | 12 |
13 namespace v8 { | 13 namespace v8 { |
14 namespace internal { | 14 namespace internal { |
15 namespace wasm { | 15 namespace wasm { |
16 | 16 |
17 typedef Result<const WasmModule*> ModuleResult; | 17 typedef Result<const WasmModule*> ModuleResult; |
18 typedef Result<WasmFunction*> FunctionResult; | 18 typedef Result<WasmFunction*> FunctionResult; |
19 typedef std::vector<std::pair<int, int>> FunctionOffsets; | 19 typedef std::vector<std::pair<int, int>> FunctionOffsets; |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 // failure if the wasm bytes are detected as invalid. Note that this validation | 62 // failure if the wasm bytes are detected as invalid. Note that this validation |
63 // is not complete. | 63 // is not complete. |
64 AsmJsOffsetsResult DecodeAsmJsOffsets(const byte* module_start, | 64 AsmJsOffsetsResult DecodeAsmJsOffsets(const byte* module_start, |
65 const byte* module_end); | 65 const byte* module_end); |
66 | 66 |
67 } // namespace wasm | 67 } // namespace wasm |
68 } // namespace internal | 68 } // namespace internal |
69 } // namespace v8 | 69 } // namespace v8 |
70 | 70 |
71 #endif // V8_WASM_MODULE_DECODER_H_ | 71 #endif // V8_WASM_MODULE_DECODER_H_ |
OLD | NEW |