| Index: src/wasm/wasm-module.h
|
| diff --git a/src/wasm/wasm-module.h b/src/wasm/wasm-module.h
|
| index cd237566bfec1aecfc8e943a3ab8e9a1959fafb8..d7b843e40774e906ba8fca08e998774bf841a2a8 100644
|
| --- a/src/wasm/wasm-module.h
|
| +++ b/src/wasm/wasm-module.h
|
| @@ -33,40 +33,6 @@ class CallDescriptor;
|
| namespace wasm {
|
| class ErrorThrower;
|
|
|
| -const uint32_t kWasmMagic = 0x6d736100;
|
| -const uint32_t kWasmVersion = 0x01;
|
| -// Legacy version supported for short transitionary period.
|
| -const uint32_t kWasmLegacyVersion = 0x0d;
|
| -
|
| -const uint8_t kWasmFunctionTypeForm = 0x60;
|
| -const uint8_t kWasmAnyFunctionTypeForm = 0x70;
|
| -
|
| -enum WasmSectionCode {
|
| - kUnknownSectionCode = 0, // code for unknown sections
|
| - kTypeSectionCode = 1, // Function signature declarations
|
| - kImportSectionCode = 2, // Import declarations
|
| - kFunctionSectionCode = 3, // Function declarations
|
| - kTableSectionCode = 4, // Indirect function table and other tables
|
| - kMemorySectionCode = 5, // Memory attributes
|
| - kGlobalSectionCode = 6, // Global declarations
|
| - kExportSectionCode = 7, // Exports
|
| - kStartSectionCode = 8, // Start function declaration
|
| - kElementSectionCode = 9, // Elements section
|
| - kCodeSectionCode = 10, // Function code
|
| - kDataSectionCode = 11, // Data segments
|
| - kNameSectionCode = 12, // Name section (encoded as a string)
|
| -};
|
| -
|
| -inline bool IsValidSectionCode(uint8_t byte) {
|
| - return kTypeSectionCode <= byte && byte <= kDataSectionCode;
|
| -}
|
| -
|
| -const char* SectionName(WasmSectionCode code);
|
| -
|
| -// Constants for fixed-size elements within a module.
|
| -static const uint8_t kResizableMaximumFlag = 1;
|
| -static const int32_t kInvalidFunctionIndex = -1;
|
| -
|
| enum WasmExternalKind {
|
| kExternalFunction = 0,
|
| kExternalTable = 1,
|
|
|