Mercurial > hg > truffle
comparison src/cpu/x86/vm/x86_64.ad @ 12226:7944aba7ba41
8015107: NPG: Use consistent naming for metaspace concepts
Reviewed-by: coleenp, mgerdin, hseigel
author | ehelin |
---|---|
date | Mon, 12 Aug 2013 17:37:02 +0200 |
parents | 740e263c80c6 |
children | 190899198332 c9ccd7b85f20 |
comparison
equal
deleted
inserted
replaced
12186:313b724f8911 | 12226:7944aba7ba41 |
---|---|
1389 | 1389 |
1390 //============================================================================= | 1390 //============================================================================= |
1391 #ifndef PRODUCT | 1391 #ifndef PRODUCT |
1392 void MachUEPNode::format(PhaseRegAlloc* ra_, outputStream* st) const | 1392 void MachUEPNode::format(PhaseRegAlloc* ra_, outputStream* st) const |
1393 { | 1393 { |
1394 if (UseCompressedKlassPointers) { | 1394 if (UseCompressedClassPointers) { |
1395 st->print_cr("movl rscratch1, [j_rarg0 + oopDesc::klass_offset_in_bytes()]\t# compressed klass"); | 1395 st->print_cr("movl rscratch1, [j_rarg0 + oopDesc::klass_offset_in_bytes()]\t# compressed klass"); |
1396 st->print_cr("\tdecode_klass_not_null rscratch1, rscratch1"); | 1396 st->print_cr("\tdecode_klass_not_null rscratch1, rscratch1"); |
1397 st->print_cr("\tcmpq rax, rscratch1\t # Inline cache check"); | 1397 st->print_cr("\tcmpq rax, rscratch1\t # Inline cache check"); |
1398 } else { | 1398 } else { |
1399 st->print_cr("\tcmpq rax, [j_rarg0 + oopDesc::klass_offset_in_bytes()]\t" | 1399 st->print_cr("\tcmpq rax, [j_rarg0 + oopDesc::klass_offset_in_bytes()]\t" |
1406 | 1406 |
1407 void MachUEPNode::emit(CodeBuffer& cbuf, PhaseRegAlloc* ra_) const | 1407 void MachUEPNode::emit(CodeBuffer& cbuf, PhaseRegAlloc* ra_) const |
1408 { | 1408 { |
1409 MacroAssembler masm(&cbuf); | 1409 MacroAssembler masm(&cbuf); |
1410 uint insts_size = cbuf.insts_size(); | 1410 uint insts_size = cbuf.insts_size(); |
1411 if (UseCompressedKlassPointers) { | 1411 if (UseCompressedClassPointers) { |
1412 masm.load_klass(rscratch1, j_rarg0); | 1412 masm.load_klass(rscratch1, j_rarg0); |
1413 masm.cmpptr(rax, rscratch1); | 1413 masm.cmpptr(rax, rscratch1); |
1414 } else { | 1414 } else { |
1415 masm.cmpptr(rax, Address(j_rarg0, oopDesc::klass_offset_in_bytes())); | 1415 masm.cmpptr(rax, Address(j_rarg0, oopDesc::klass_offset_in_bytes())); |
1416 } | 1416 } |
1555 assert(UseCompressedOops, "only for compressed oops code"); | 1555 assert(UseCompressedOops, "only for compressed oops code"); |
1556 return (LogMinObjAlignmentInBytes <= 3); | 1556 return (LogMinObjAlignmentInBytes <= 3); |
1557 } | 1557 } |
1558 | 1558 |
1559 bool Matcher::narrow_klass_use_complex_address() { | 1559 bool Matcher::narrow_klass_use_complex_address() { |
1560 assert(UseCompressedKlassPointers, "only for compressed klass code"); | 1560 assert(UseCompressedClassPointers, "only for compressed klass code"); |
1561 return (LogKlassAlignmentInBytes <= 3); | 1561 return (LogKlassAlignmentInBytes <= 3); |
1562 } | 1562 } |
1563 | 1563 |
1564 // Is it better to copy float constants, or load them directly from | 1564 // Is it better to copy float constants, or load them directly from |
1565 // memory? Intel can load a float constant from a direct address, | 1565 // memory? Intel can load a float constant from a direct address, |