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

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

Issue 2706303004: Revert of [wasm] Remove support for experimental version 0xD. (Closed)
Patch Set: Created 3 years, 10 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 | « no previous file | 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/globals.h" 8 #include "src/globals.h"
9 #include "src/wasm/function-body-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 const uint32_t kWasmMagic = 0x6d736100; 17 const uint32_t kWasmMagic = 0x6d736100;
18 const uint32_t kWasmVersion = 0x01; 18 const uint32_t kWasmVersion = 0x01;
19 const uint32_t kWasmLegacyVersion = 0x0d; // TODO(titzer): remove 0xD!
19 const uint8_t kWasmFunctionTypeForm = 0x60; 20 const uint8_t kWasmFunctionTypeForm = 0x60;
20 const uint8_t kWasmAnyFunctionTypeForm = 0x70; 21 const uint8_t kWasmAnyFunctionTypeForm = 0x70;
21 const uint8_t kResizableMaximumFlag = 1; 22 const uint8_t kResizableMaximumFlag = 1;
22 23
23 enum WasmSectionCode { 24 enum WasmSectionCode {
24 kUnknownSectionCode = 0, // code for unknown sections 25 kUnknownSectionCode = 0, // code for unknown sections
25 kTypeSectionCode = 1, // Function signature declarations 26 kTypeSectionCode = 1, // Function signature declarations
26 kImportSectionCode = 2, // Import declarations 27 kImportSectionCode = 2, // Import declarations
27 kFunctionSectionCode = 3, // Function declarations 28 kFunctionSectionCode = 3, // Function declarations
28 kTableSectionCode = 4, // Indirect function table and other tables 29 kTableSectionCode = 4, // Indirect function table and other tables
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 // failure if the wasm bytes are detected as invalid. Note that this validation 103 // failure if the wasm bytes are detected as invalid. Note that this validation
103 // is not complete. 104 // is not complete.
104 AsmJsOffsetsResult DecodeAsmJsOffsets(const byte* module_start, 105 AsmJsOffsetsResult DecodeAsmJsOffsets(const byte* module_start,
105 const byte* module_end); 106 const byte* module_end);
106 107
107 } // namespace wasm 108 } // namespace wasm
108 } // namespace internal 109 } // namespace internal
109 } // namespace v8 110 } // namespace v8
110 111
111 #endif // V8_WASM_MODULE_DECODER_H_ 112 #endif // V8_WASM_MODULE_DECODER_H_
OLDNEW
« no previous file with comments | « no previous file | src/wasm/module-decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698