185
186 // declare global stub id enum
187
188 #define STUB_ENUM_DECLARE(blob_name, stub_name) \
189 STUB_ID_NAME(stub_name) ,
190
191 enum StubGenStubId : int {
192 NO_STUBID = -1,
193 STUBGEN_STUBS_DO(STUB_ENUM_DECLARE)
194 NUM_STUBIDS
195 };
196
197 #undef STUB_ENUM_DECLARE
198
199 class StubRoutines: AllStatic {
200
201 public:
202 // Dependencies
203 friend class StubGenerator;
204 friend class VMStructs;
205 #if INCLUDE_JVMCI
206 friend class JVMCIVMStructs;
207 #endif
208
209 #include CPU_HEADER(stubRoutines)
210
211 // declare blob and stub name storage and associated lookup methods
212
213 private:
214 static bool _inited_names;
215 static const char* _blob_names[StubGenBlobId::NUM_BLOBIDS];
216 static const char* _stub_names[StubGenStubId::NUM_STUBIDS];
217
218 public:
219 static bool init_names();
220 static const char* get_blob_name(StubGenBlobId id);
221 static const char* get_stub_name(StubGenStubId id);
222
223 // declare blob fields
224
|
185
186 // declare global stub id enum
187
188 #define STUB_ENUM_DECLARE(blob_name, stub_name) \
189 STUB_ID_NAME(stub_name) ,
190
191 enum StubGenStubId : int {
192 NO_STUBID = -1,
193 STUBGEN_STUBS_DO(STUB_ENUM_DECLARE)
194 NUM_STUBIDS
195 };
196
197 #undef STUB_ENUM_DECLARE
198
199 class StubRoutines: AllStatic {
200
201 public:
202 // Dependencies
203 friend class StubGenerator;
204 friend class VMStructs;
205 friend class SCAddressTable;
206 #if INCLUDE_JVMCI
207 friend class JVMCIVMStructs;
208 #endif
209
210 #include CPU_HEADER(stubRoutines)
211
212 // declare blob and stub name storage and associated lookup methods
213
214 private:
215 static bool _inited_names;
216 static const char* _blob_names[StubGenBlobId::NUM_BLOBIDS];
217 static const char* _stub_names[StubGenStubId::NUM_STUBIDS];
218
219 public:
220 static bool init_names();
221 static const char* get_blob_name(StubGenBlobId id);
222 static const char* get_stub_name(StubGenStubId id);
223
224 // declare blob fields
225
|