253 #endif // def HAVE_DTRACE_H
254
255 // Creation support
256 nmethod(Method* method,
257 int nmethod_size,
258 int compile_id,
259 int entry_bci,
260 CodeOffsets* offsets,
261 int orig_pc_offset,
262 DebugInformationRecorder *recorder,
263 Dependencies* dependencies,
264 CodeBuffer *code_buffer,
265 int frame_size,
266 OopMapSet* oop_maps,
267 ExceptionHandlerTable* handler_table,
268 ImplicitExceptionTable* nul_chk_table,
269 AbstractCompiler* compiler,
270 int comp_level);
271
272 // helper methods
273 void* operator new(size_t size, int nmethod_size) throw();
274
275 const char* reloc_string_for(u_char* begin, u_char* end);
276 // Returns true if this thread changed the state of the nmethod or
277 // false if another thread performed the transition.
278 bool make_not_entrant_or_zombie(unsigned int state);
279 void inc_decompile_count();
280
281 // Used to manipulate the exception cache
282 void add_exception_cache_entry(ExceptionCache* new_entry);
283 ExceptionCache* exception_cache_entry_for_exception(Handle exception);
284
285 // Inform external interfaces that a compiled method has been unloaded
286 void post_compiled_method_unload();
287
288 // Initailize fields to their default values
289 void init_defaults();
290
291 public:
292 // create nmethod with entry_bci
293 static nmethod* new_nmethod(methodHandle method,
|
253 #endif // def HAVE_DTRACE_H
254
255 // Creation support
256 nmethod(Method* method,
257 int nmethod_size,
258 int compile_id,
259 int entry_bci,
260 CodeOffsets* offsets,
261 int orig_pc_offset,
262 DebugInformationRecorder *recorder,
263 Dependencies* dependencies,
264 CodeBuffer *code_buffer,
265 int frame_size,
266 OopMapSet* oop_maps,
267 ExceptionHandlerTable* handler_table,
268 ImplicitExceptionTable* nul_chk_table,
269 AbstractCompiler* compiler,
270 int comp_level);
271
272 // helper methods
273 void* operator new(size_t size, int nmethod_size, int comp_level) throw();
274
275 const char* reloc_string_for(u_char* begin, u_char* end);
276 // Returns true if this thread changed the state of the nmethod or
277 // false if another thread performed the transition.
278 bool make_not_entrant_or_zombie(unsigned int state);
279 void inc_decompile_count();
280
281 // Used to manipulate the exception cache
282 void add_exception_cache_entry(ExceptionCache* new_entry);
283 ExceptionCache* exception_cache_entry_for_exception(Handle exception);
284
285 // Inform external interfaces that a compiled method has been unloaded
286 void post_compiled_method_unload();
287
288 // Initailize fields to their default values
289 void init_defaults();
290
291 public:
292 // create nmethod with entry_bci
293 static nmethod* new_nmethod(methodHandle method,
|