summaryrefslogtreecommitdiff
path: root/chromium/v8/src/wasm/wasm-constants.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/v8/src/wasm/wasm-constants.h')
-rw-r--r--chromium/v8/src/wasm/wasm-constants.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/chromium/v8/src/wasm/wasm-constants.h b/chromium/v8/src/wasm/wasm-constants.h
index 49525d9143f..668b08eba93 100644
--- a/chromium/v8/src/wasm/wasm-constants.h
+++ b/chromium/v8/src/wasm/wasm-constants.h
@@ -71,14 +71,19 @@ enum SectionCode : int8_t {
kElementSectionCode = 9, // Elements section
kCodeSectionCode = 10, // Function code
kDataSectionCode = 11, // Data segments
- kNameSectionCode = 12, // Name section (encoded as a string)
- kExceptionSectionCode = 13, // Exception section
- kSourceMappingURLSectionCode = 14, // Source Map URL section
+ kExceptionSectionCode = 12, // Exception section
+ kDataCountSectionCode = 13, // Number of data segments
+
+ // The following sections are custom sections, and are identified using a
+ // string rather than an integer. Their enumeration values are not guaranteed
+ // to be consistent.
+ kNameSectionCode, // Name section (encoded as a string)
+ kSourceMappingURLSectionCode, // Source Map URL section
// Helper values
kFirstSectionInModule = kTypeSectionCode,
kLastKnownModuleSection = kSourceMappingURLSectionCode,
- kFirstUnorderedSection = kNameSectionCode,
+ kFirstUnorderedSection = kExceptionSectionCode,
};
// Binary encoding of name section kinds.