1/*
2 * Copyright (c) 2023 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 *     http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16#ifndef ECMASCRIPT_COMPILER_AOT_SNAPSHOT_AOT_SNAPSHOT_CONSTANTS_H
17#define ECMASCRIPT_COMPILER_AOT_SNAPSHOT_AOT_SNAPSHOT_CONSTANTS_H
18
19#include <cstdint>
20
21#include "ecmascript/compiler/aot_snapshot/snapshot_global_data.h"
22
23namespace panda::ecmascript {
24using CP_TOP_ITEM = kungfu::SnapshotGlobalData::CP_TOP_ITEM;
25
26class AOTSnapshotConstants final {
27public:
28    static constexpr uint8_t SNAPSHOT_DATA_ITEM_SIZE = static_cast<uint8_t>(CP_TOP_ITEM::COUNT);
29    static constexpr uint8_t SNAPSHOT_CP_ARRAY_ITEM_SIZE = 2;
30
31private:
32    AOTSnapshotConstants() = default;
33    ~AOTSnapshotConstants() = default;
34};
35}  // panda::ecmascript::kungfu
36#endif // ECMASCRIPT_COMPILER_AOT_SNAPSHOT_AOT_SNAPSHOT_CONSTANTS_H
37