193 int comp_level
194 #if INCLUDE_JVMCI
195 , Handle installed_code,
196 Handle speculation_log
197 #endif
198 );
199
200 // helper methods
201 void* operator new(size_t size, int nmethod_size, int comp_level) throw();
202
203 const char* reloc_string_for(u_char* begin, u_char* end);
204 // Returns true if this thread changed the state of the nmethod or
205 // false if another thread performed the transition.
206 bool make_not_entrant_or_zombie(unsigned int state);
207 bool make_entrant() { Unimplemented(); return false; }
208 void inc_decompile_count();
209
210 // Inform external interfaces that a compiled method has been unloaded
211 void post_compiled_method_unload();
212
213 // Initailize fields to their default values
214 void init_defaults();
215
216 // Offsets
217 int content_offset() const { return content_begin() - header_begin(); }
218 int data_offset() const { return _data_offset; }
219
220 address header_end() const { return (address) header_begin() + header_size(); }
221
222 public:
223 // create nmethod with entry_bci
224 static nmethod* new_nmethod(const methodHandle& method,
225 int compile_id,
226 int entry_bci,
227 CodeOffsets* offsets,
228 int orig_pc_offset,
229 DebugInformationRecorder* recorder,
230 Dependencies* dependencies,
231 CodeBuffer *code_buffer,
232 int frame_size,
233 OopMapSet* oop_maps,
|
193 int comp_level
194 #if INCLUDE_JVMCI
195 , Handle installed_code,
196 Handle speculation_log
197 #endif
198 );
199
200 // helper methods
201 void* operator new(size_t size, int nmethod_size, int comp_level) throw();
202
203 const char* reloc_string_for(u_char* begin, u_char* end);
204 // Returns true if this thread changed the state of the nmethod or
205 // false if another thread performed the transition.
206 bool make_not_entrant_or_zombie(unsigned int state);
207 bool make_entrant() { Unimplemented(); return false; }
208 void inc_decompile_count();
209
210 // Inform external interfaces that a compiled method has been unloaded
211 void post_compiled_method_unload();
212
213 // Initialize fields to their default values
214 void init_defaults();
215
216 // Offsets
217 int content_offset() const { return content_begin() - header_begin(); }
218 int data_offset() const { return _data_offset; }
219
220 address header_end() const { return (address) header_begin() + header_size(); }
221
222 public:
223 // create nmethod with entry_bci
224 static nmethod* new_nmethod(const methodHandle& method,
225 int compile_id,
226 int entry_bci,
227 CodeOffsets* offsets,
228 int orig_pc_offset,
229 DebugInformationRecorder* recorder,
230 Dependencies* dependencies,
231 CodeBuffer *code_buffer,
232 int frame_size,
233 OopMapSet* oop_maps,
|