• 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 #include <cstdint>
17 #include "libpandafile/file.h"
18 #include "runtime/include/class.h"
19 #include "runtime/include/coretypes/array.h"
20 #include "runtime/include/coretypes/native_pointer.h"
21 #include "runtime/include/coretypes/string.h"
22 #include "runtime/include/field.h"
23 #include "runtime/include/hclass.h"
24 #include "runtime/include/method.h"
25 #include "runtime/include/mtmanaged_thread.h"
26 #include "runtime/mem/tlab.h"
27 #include "utils/cframe_layout.h"
28 
29 #include "plugins_defines.h"
30 
31 namespace panda {
32 
33 #define DEFINE_VALUE(name, value)                                                         \
34     void AsmDefinition_##name()                                                           \
35     {                                                                                     \
36         asm volatile("\n.ascii \"^^" #name " %0^^\"" ::"i"(static_cast<int64_t>(value))); \
37     }
38 #include "asm_defines.def"
39 
40 }  // namespace panda
41