forked from chakra-core/ChakraCore
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWasmSection.cpp
More file actions
23 lines (20 loc) · 871 Bytes
/
WasmSection.cpp
File metadata and controls
23 lines (20 loc) · 871 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------
#include "WasmReaderPch.h"
#ifdef ENABLE_WASM
namespace Wasm
{
SectionInfo::SectionInfo(
SectionFlag flag,
SectionCode precedent,
const char16* name,
const uint32 nameLength
): flag(flag), precedent(precedent), name(name), nameLength(nameLength) {}
SectionInfo SectionInfo::All[bSectLimit] = {
#define WASM_SECTION(_, id, flag, precedent) {flag, bSect ## precedent, static_cast<const char16*>(_u(id)), sizeof(id)},
#include "WasmSections.h"
};
}
#endif