summaryrefslogtreecommitdiff
path: root/deps/v8/src/wasm/wasm-constants.h
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/wasm/wasm-constants.h')
-rw-r--r--deps/v8/src/wasm/wasm-constants.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/deps/v8/src/wasm/wasm-constants.h b/deps/v8/src/wasm/wasm-constants.h
index 70794fc7ab..8e1f508979 100644
--- a/deps/v8/src/wasm/wasm-constants.h
+++ b/deps/v8/src/wasm/wasm-constants.h
@@ -25,7 +25,8 @@ enum ValueTypeCode : uint8_t {
kLocalF64 = 0x7c,
kLocalS128 = 0x7b,
kLocalAnyFunc = 0x70,
- kLocalAnyRef = 0x6f
+ kLocalAnyRef = 0x6f,
+ kLocalExceptRef = 0x68,
};
// Binary encoding of other types.
constexpr uint8_t kWasmFunctionTypeCode = 0x60;
@@ -35,7 +36,8 @@ enum ImportExportKindCode : uint8_t {
kExternalFunction = 0,
kExternalTable = 1,
kExternalMemory = 2,
- kExternalGlobal = 3
+ kExternalGlobal = 3,
+ kExternalException = 4
};
// Binary encoding of maximum and shared flags for memories.
@@ -64,10 +66,12 @@ enum SectionCode : int8_t {
kDataSectionCode = 11, // Data segments
kNameSectionCode = 12, // Name section (encoded as a string)
kExceptionSectionCode = 13, // Exception section
+ kSourceMappingURLSectionCode = 14, // Source Map URL section
// Helper values
kFirstSectionInModule = kTypeSectionCode,
- kLastKnownModuleSection = kExceptionSectionCode,
+ kLastKnownModuleSection = kSourceMappingURLSectionCode,
+ kFirstUnorderedSection = kNameSectionCode,
};
// Binary encoding of name section kinds.
@@ -75,7 +79,7 @@ enum NameSectionKindCode : uint8_t { kModule = 0, kFunction = 1, kLocal = 2 };
constexpr size_t kWasmPageSize = 0x10000;
constexpr uint32_t kWasmPageSizeLog2 = 16;
-constexpr int kInvalidExceptionTag = -1;
+static_assert(kWasmPageSize == size_t{1} << kWasmPageSizeLog2, "consistency");
// TODO(wasm): Wrap WasmCodePosition in a struct.
using WasmCodePosition = int;