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

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

Issue 2709753003: [wasm] Remove support for experimental version 0xD. (Closed)
Patch Set: Fix jsapi-harness.js 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!
20 const uint8_t kWasmFunctionTypeForm = 0x60; 19 const uint8_t kWasmFunctionTypeForm = 0x60;
21 const uint8_t kWasmAnyFunctionTypeForm = 0x70; 20 const uint8_t kWasmAnyFunctionTypeForm = 0x70;
22 const uint8_t kResizableMaximumFlag = 1; 21 const uint8_t kResizableMaximumFlag = 1;
23 22
24 enum WasmSectionCode { 23 enum WasmSectionCode {
25 kUnknownSectionCode = 0, // code for unknown sections 24 kUnknownSectionCode = 0, // code for unknown sections
26 kTypeSectionCode = 1, // Function signature declarations 25 kTypeSectionCode = 1, // Function signature declarations
27 kImportSectionCode = 2, // Import declarations 26 kImportSectionCode = 2, // Import declarations
28 kFunctionSectionCode = 3, // Function declarations 27 kFunctionSectionCode = 3, // Function declarations
29 kTableSectionCode = 4, // Indirect function table and other tables 28 kTableSectionCode = 4, // Indirect function table and other tables
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 // failure if the wasm bytes are detected as invalid. Note that this validation 102 // failure if the wasm bytes are detected as invalid. Note that this validation
104 // is not complete. 103 // is not complete.
105 AsmJsOffsetsResult DecodeAsmJsOffsets(const byte* module_start, 104 AsmJsOffsetsResult DecodeAsmJsOffsets(const byte* module_start,
106 const byte* module_end); 105 const byte* module_end);
107 106
108 } // namespace wasm 107 } // namespace wasm
109 } // namespace internal 108 } // namespace internal
110 } // namespace v8 109 } // namespace v8
111 110
112 #endif // V8_WASM_MODULE_DECODER_H_ 111 #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