comparison src/cpu/x86/vm/sharedRuntime_x86_32.cpp @ 6513:e4ae9932c292

enable hashCode fast path in generate_native_wrapper for GRAAL
author Lukas Stadler <lukas.stadler@jku.at>
date Fri, 05 Oct 2012 09:59:21 +0200
parents 1d7922586cf6
children 2dfab5607b3d
comparison
equal deleted inserted replaced
6511:0b62a9d44c21 6513:e4ae9932c292
1715 1715
1716 __ bind(hit); 1716 __ bind(hit);
1717 1717
1718 int vep_offset = ((intptr_t)__ pc()) - start; 1718 int vep_offset = ((intptr_t)__ pc()) - start;
1719 1719
1720 #ifdef COMPILER1 1720 #ifdef COMPILER1 || GRAAL
1721 if (InlineObjectHash && method->intrinsic_id() == vmIntrinsics::_hashCode) { 1721 if (InlineObjectHash && method->intrinsic_id() == vmIntrinsics::_hashCode) {
1722 // Object.hashCode can pull the hashCode from the header word 1722 // Object.hashCode can pull the hashCode from the header word
1723 // instead of doing a full VM transition once it's been computed. 1723 // instead of doing a full VM transition once it's been computed.
1724 // Since hashCode is usually polymorphic at call sites we can't do 1724 // Since hashCode is usually polymorphic at call sites we can't do
1725 // this optimization at the call site without a lot of work. 1725 // this optimization at the call site without a lot of work.