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

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

Issue 2708373004: Merged: [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 | « src/wasm/module-decoder.cc ('k') | no next file » | 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_H_ 5 #ifndef V8_WASM_MODULE_H_
6 #define V8_WASM_MODULE_H_ 6 #define V8_WASM_MODULE_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "src/api.h" 10 #include "src/api.h"
(...skipping 18 matching lines...) Expand all
29 namespace compiler { 29 namespace compiler {
30 class CallDescriptor; 30 class CallDescriptor;
31 class WasmCompilationUnit; 31 class WasmCompilationUnit;
32 } 32 }
33 33
34 namespace wasm { 34 namespace wasm {
35 class ErrorThrower; 35 class ErrorThrower;
36 36
37 const uint32_t kWasmMagic = 0x6d736100; 37 const uint32_t kWasmMagic = 0x6d736100;
38 const uint32_t kWasmVersion = 0x01; 38 const uint32_t kWasmVersion = 0x01;
39 // Legacy version supported for short transitionary period.
40 const uint32_t kWasmLegacyVersion = 0x0d;
41 39
42 const uint8_t kWasmFunctionTypeForm = 0x60; 40 const uint8_t kWasmFunctionTypeForm = 0x60;
43 const uint8_t kWasmAnyFunctionTypeForm = 0x70; 41 const uint8_t kWasmAnyFunctionTypeForm = 0x70;
44 42
45 enum WasmSectionCode { 43 enum WasmSectionCode {
46 kUnknownSectionCode = 0, // code for unknown sections 44 kUnknownSectionCode = 0, // code for unknown sections
47 kTypeSectionCode = 1, // Function signature declarations 45 kTypeSectionCode = 1, // Function signature declarations
48 kImportSectionCode = 2, // Import declarations 46 kImportSectionCode = 2, // Import declarations
49 kFunctionSectionCode = 3, // Function declarations 47 kFunctionSectionCode = 3, // Function declarations
50 kTableSectionCode = 4, // Indirect function table and other tables 48 kTableSectionCode = 4, // Indirect function table and other tables
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
459 void ValidateModuleState(Isolate* isolate, Handle<WasmModuleObject> module_obj); 457 void ValidateModuleState(Isolate* isolate, Handle<WasmModuleObject> module_obj);
460 void ValidateOrphanedInstance(Isolate* isolate, 458 void ValidateOrphanedInstance(Isolate* isolate,
461 Handle<WasmInstanceObject> instance); 459 Handle<WasmInstanceObject> instance);
462 460
463 } // namespace testing 461 } // namespace testing
464 } // namespace wasm 462 } // namespace wasm
465 } // namespace internal 463 } // namespace internal
466 } // namespace v8 464 } // namespace v8
467 465
468 #endif // V8_WASM_MODULE_H_ 466 #endif // V8_WASM_MODULE_H_
OLDNEW
« no previous file with comments | « src/wasm/module-decoder.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698