1/*
2 * Copyright (c) 2024 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#include "jit_signcode.h"
17
18namespace panda::ecmascript::kungfu {
19
20JitSignCode::JitSignCode() {}
21
22void JitSignCode::SetCodeSigner(JitCodeSignerBase *p)
23{
24    codeSigner_ = p;
25}
26
27JitCodeSignerBase *JitSignCode::GetCodeSigner()
28{
29    return codeSigner_;
30}
31
32void JitSignCode::SetKind(int kind)
33{
34    kind_ = kind;
35}
36
37int JitSignCode::GetKind()
38{
39    return kind_;
40}
41
42void JitSignCode::Reset()
43{
44    codeSigner_ = nullptr;
45    kind_ = 0;
46    signTableSize_ = 0;
47}
48
49} // namespace panda::ecmascript::kungfu
50