Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/openj9
Path: blob/master/runtime/ddr/jitflagsddr.c
5991 views
1
/*******************************************************************************
2
* Copyright (c) 1991, 2019 IBM Corp. and others
3
*
4
* This program and the accompanying materials are made available under
5
* the terms of the Eclipse Public License 2.0 which accompanies this
6
* distribution and is available at https://www.eclipse.org/legal/epl-2.0/
7
* or the Apache License, Version 2.0 which accompanies this distribution and
8
* is available at https://www.apache.org/licenses/LICENSE-2.0.
9
*
10
* This Source Code may also be made available under the following
11
* Secondary Licenses when the conditions for such availability set
12
* forth in the Eclipse Public License, v. 2.0 are satisfied: GNU
13
* General Public License, version 2 with the GNU Classpath
14
* Exception [1] and GNU General Public License, version 2 with the
15
* OpenJDK Assembly Exception [2].
16
*
17
* [1] https://www.gnu.org/software/classpath/license.html
18
* [2] http://openjdk.java.net/legal/assembly-exception.html
19
*
20
* SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 OR LicenseRef-GPL-2.0 WITH Assembly-exception
21
*******************************************************************************/
22
23
#include <limits.h>
24
#include "j9ddr.h"
25
#include "ddrtable.h"
26
#include "env/defines.h" /* for TR_HOST_XXX */
27
28
/* @ddr_namespace: map_to_type=TRBuildFlags */
29
30
/* Pseudo-structure to hold build constants */
31
J9DDRConstantTableBegin(TRBuildFlags)
32
#if defined(TR_HOST_ARM)
33
#define host_ARM 1
34
#else
35
#define host_ARM 0
36
#endif
37
J9DDRConstantTableEntryWithValue("host_ARM", host_ARM)
38
39
#if defined(TR_HOST_AARCH64)
40
#define host_AARCH64 1
41
#else
42
#define host_AARCH64 0
43
#endif
44
J9DDRConstantTableEntryWithValue("host_AARCH64", host_AARCH64)
45
46
#if defined(TR_HOST_IA32)
47
#define host_IA32 1
48
#else
49
#define host_IA32 0
50
#endif
51
J9DDRConstantTableEntryWithValue("host_IA32", host_IA32)
52
53
#if defined(TR_HOST_POWER)
54
#define host_POWER 1
55
#else
56
#define host_POWER 0
57
#endif
58
J9DDRConstantTableEntryWithValue("host_POWER",host_POWER)
59
60
#if defined(TR_HOST_PPC)
61
#define host_PPC 1
62
#else
63
#define host_PPC 0
64
#endif
65
J9DDRConstantTableEntryWithValue("host_PPC", host_PPC)
66
67
#if defined(TR_HOST_RISCV)
68
#define host_RISCV 1
69
#else
70
#define host_RISCV 0
71
#endif
72
J9DDRConstantTableEntryWithValue("host_RISCV", host_RISCV)
73
74
#if defined(TR_HOST_S390)
75
#define host_S390 1
76
#else
77
#define host_S390 0
78
#endif
79
J9DDRConstantTableEntryWithValue("host_S390", host_S390)
80
81
#if defined(TR_HOST_X86)
82
#define host_X86 1
83
#else
84
#define host_X86 0
85
#endif
86
J9DDRConstantTableEntryWithValue("host_X86", host_X86)
87
88
#if defined(TR_HOST_32BIT)
89
#define host_32BIT 1
90
#else
91
#define host_32BIT 0
92
#endif
93
J9DDRConstantTableEntryWithValue("host_32BIT", host_32BIT)
94
95
#if defined(TR_HOST_64BIT)
96
#define host_64BIT 1
97
#else
98
#define host_64BIT 0
99
#endif
100
J9DDRConstantTableEntryWithValue("host_64BIT", host_64BIT)
101
102
J9DDRConstantTableEnd
103
104
J9DDRConstantTableBegin(CLimits)
105
J9DDRConstantTableEntryWithValue("CHAR_MAX",CHAR_MAX)
106
J9DDRConstantTableEntryWithValue("CHAR_MIN",CHAR_MIN)
107
J9DDRConstantTableEntryWithValue("INT_MAX",INT_MAX)
108
J9DDRConstantTableEntryWithValue("INT_MIN",INT_MIN)
109
J9DDRConstantTableEntryWithValue("LONG_MAX",LONG_MAX)
110
J9DDRConstantTableEntryWithValue("LONG_MIN",LONG_MIN)
111
J9DDRConstantTableEntryWithValue("SCHAR_MAX",SCHAR_MAX)
112
J9DDRConstantTableEntryWithValue("SCHAR_MIN",SCHAR_MIN)
113
J9DDRConstantTableEntryWithValue("SHRT_MAX",SHRT_MAX)
114
J9DDRConstantTableEntryWithValue("SHRT_MIN",SHRT_MIN)
115
J9DDRConstantTableEntryWithValue("UCHAR_MAX",UCHAR_MAX)
116
J9DDRConstantTableEntryWithValue("UINT_MAX",UINT_MAX)
117
J9DDRConstantTableEntryWithValue("ULONG_MAX",ULONG_MAX)
118
J9DDRConstantTableEntryWithValue("USHRT_MAX",USHRT_MAX)
119
J9DDRConstantTableEnd
120
121
J9DDRStructTableBegin(JIT)
122
J9DDREmptyStruct(TRBuildFlags, NULL)
123
J9DDREmptyStruct(CLimits, NULL)
124
J9DDRStructTableEnd
125
126
const J9DDRStructDefinition *
127
getJITStructTable()
128
{
129
return J9DDR_JIT_structs;
130
}
131
132