236
237 return value;
238
239 }
240
241 void generate_initial() {
242 // Generates all stubs and initializes the entry points
243
244 // entry points that exist in all platforms Note: This is code
245 // that could be shared among different platforms - however the
246 // benefit seems to be smaller than the disadvantage of having a
247 // much more complicated generator structure. See also comment in
248 // stubRoutines.hpp.
249
250 StubRoutines::_forward_exception_entry = ShouldNotCallThisStub();
251 StubRoutines::_call_stub_entry = (address) call_stub;
252 StubRoutines::_catch_exception_entry = ShouldNotCallThisStub();
253
254 // atomic calls
255 StubRoutines::_atomic_xchg_entry = ShouldNotCallThisStub();
256 StubRoutines::_atomic_xchg_ptr_entry = ShouldNotCallThisStub();
257 StubRoutines::_atomic_cmpxchg_entry = ShouldNotCallThisStub();
258 StubRoutines::_atomic_cmpxchg_ptr_entry = ShouldNotCallThisStub();
259 StubRoutines::_atomic_cmpxchg_byte_entry = ShouldNotCallThisStub();
260 StubRoutines::_atomic_cmpxchg_long_entry = ShouldNotCallThisStub();
261 StubRoutines::_atomic_add_entry = ShouldNotCallThisStub();
262 StubRoutines::_atomic_add_ptr_entry = ShouldNotCallThisStub();
263 StubRoutines::_fence_entry = ShouldNotCallThisStub();
264 }
265
266 void generate_all() {
267 // Generates all stubs and initializes the entry points
268
269 // These entry points require SharedInfo::stack0 to be set up in
270 // non-core builds and need to be relocatable, so they each
271 // fabricate a RuntimeStub internally.
272 StubRoutines::_throw_AbstractMethodError_entry =
273 ShouldNotCallThisStub();
274
275 StubRoutines::_throw_NullPointerException_at_call_entry =
276 ShouldNotCallThisStub();
277
278 StubRoutines::_throw_StackOverflowError_entry =
|
236
237 return value;
238
239 }
240
241 void generate_initial() {
242 // Generates all stubs and initializes the entry points
243
244 // entry points that exist in all platforms Note: This is code
245 // that could be shared among different platforms - however the
246 // benefit seems to be smaller than the disadvantage of having a
247 // much more complicated generator structure. See also comment in
248 // stubRoutines.hpp.
249
250 StubRoutines::_forward_exception_entry = ShouldNotCallThisStub();
251 StubRoutines::_call_stub_entry = (address) call_stub;
252 StubRoutines::_catch_exception_entry = ShouldNotCallThisStub();
253
254 // atomic calls
255 StubRoutines::_atomic_xchg_entry = ShouldNotCallThisStub();
256 StubRoutines::_atomic_xchg_long_entry = ShouldNotCallThisStub();
257 StubRoutines::_atomic_cmpxchg_entry = ShouldNotCallThisStub();
258 StubRoutines::_atomic_cmpxchg_byte_entry = ShouldNotCallThisStub();
259 StubRoutines::_atomic_cmpxchg_long_entry = ShouldNotCallThisStub();
260 StubRoutines::_atomic_add_entry = ShouldNotCallThisStub();
261 StubRoutines::_atomic_add_ptr_entry = ShouldNotCallThisStub();
262 StubRoutines::_fence_entry = ShouldNotCallThisStub();
263 }
264
265 void generate_all() {
266 // Generates all stubs and initializes the entry points
267
268 // These entry points require SharedInfo::stack0 to be set up in
269 // non-core builds and need to be relocatable, so they each
270 // fabricate a RuntimeStub internally.
271 StubRoutines::_throw_AbstractMethodError_entry =
272 ShouldNotCallThisStub();
273
274 StubRoutines::_throw_NullPointerException_at_call_entry =
275 ShouldNotCallThisStub();
276
277 StubRoutines::_throw_StackOverflowError_entry =
|