291 return &dcon->value;
292 }
293 void AbstractAssembler::update_delayed_values() {
294 DelayedConstant::update_all();
295 }
296
297 void AbstractAssembler::block_comment(const char* comment) {
298 if (sect() == CodeBuffer::SECT_INSTS) {
299 code_section()->outer()->block_comment(offset(), comment);
300 }
301 }
302
303 const char* AbstractAssembler::code_string(const char* str) {
304 if (sect() == CodeBuffer::SECT_INSTS || sect() == CodeBuffer::SECT_STUBS) {
305 return code_section()->outer()->code_string(str);
306 }
307 return NULL;
308 }
309
310 bool MacroAssembler::needs_explicit_null_check(intptr_t offset) {
311 // Exception handler checks the nmethod's implicit null checks table
312 // only when this method returns false.
313 #ifdef _LP64
314 if (UseCompressedOops && Universe::narrow_oop_base() != NULL) {
315 assert (Universe::heap() != NULL, "java heap should be initialized");
316 // The first page after heap_base is unmapped and
317 // the 'offset' is equal to [heap_base + offset] for
318 // narrow oop implicit null checks.
319 uintptr_t base = (uintptr_t)Universe::narrow_oop_base();
320 if ((uintptr_t)offset >= base) {
321 // Normalize offset for the next check.
322 offset = (intptr_t)(pointer_delta((void*)offset, (void*)base, 1));
323 }
324 }
325 #endif
326 return offset < 0 || os::vm_page_size() <= offset;
327 }
|
291 return &dcon->value;
292 }
293 void AbstractAssembler::update_delayed_values() {
294 DelayedConstant::update_all();
295 }
296
297 void AbstractAssembler::block_comment(const char* comment) {
298 if (sect() == CodeBuffer::SECT_INSTS) {
299 code_section()->outer()->block_comment(offset(), comment);
300 }
301 }
302
303 const char* AbstractAssembler::code_string(const char* str) {
304 if (sect() == CodeBuffer::SECT_INSTS || sect() == CodeBuffer::SECT_STUBS) {
305 return code_section()->outer()->code_string(str);
306 }
307 return NULL;
308 }
309
310 bool MacroAssembler::needs_explicit_null_check(intptr_t offset) {
311 return BarrierSet::barrier_set()->barrier_set_assembler()->needs_explicit_null_check(offset);
312 }
|