• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2021-2022 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 PANDA_RUNTIME_CORE_CORE_ITABLE_BUILDER_H_
17 #define PANDA_RUNTIME_CORE_CORE_ITABLE_BUILDER_H_
18 
19 #include "runtime/include/itable_builder.h"
20 
21 namespace panda {
22 
23 class CoreITableBuilder : public ITableBuilder {
24 public:
Build(ClassLinker * class_linker,Class * base,Span<Class * > class_interfaces,bool is_interface)25     void Build([[maybe_unused]] ClassLinker *class_linker, [[maybe_unused]] Class *base,
26                [[maybe_unused]] Span<Class *> class_interfaces, [[maybe_unused]] bool is_interface) override
27     {
28         ASSERT(base->IsObjectClass());
29         ASSERT(base->GetITable().Size() == 0);
30         ASSERT(class_interfaces.Empty());
31         ASSERT(!is_interface);
32     }
33 
Resolve(Class * klass)34     void Resolve([[maybe_unused]] Class *klass) override {};
35 
UpdateClass(Class * klass)36     void UpdateClass([[maybe_unused]] Class *klass) override {};
37 
DumpITable(Class * klass)38     void DumpITable([[maybe_unused]] Class *klass) override {};
39 
GetITable()40     ITable GetITable() const override
41     {
42         return {};
43     };
44 };
45 
46 }  // namespace panda
47 
48 #endif  // PANDA_RUNTIME_CORE_CORE_ITABLE_BUILDER_H_
49