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