< prev index next >

src/share/vm/code/icBuffer.hpp

Print this page




  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #ifndef SHARE_VM_CODE_ICBUFFER_HPP
  26 #define SHARE_VM_CODE_ICBUFFER_HPP
  27 
  28 #include "asm/codeBuffer.hpp"
  29 #include "code/stubs.hpp"
  30 #include "interpreter/bytecodes.hpp"
  31 #include "memory/allocation.hpp"

  32 
  33 //
  34 // For CompiledIC's:
  35 //
  36 // In cases where we do not have MT-safe state transformation,
  37 // we go to a transition state, using ICStubs. At a safepoint,
  38 // the inline caches are transferred from the transitional code:
  39 //
  40 //    instruction_address --> 01 set xxx_oop, Ginline_cache_klass
  41 //                            23 jump_to Gtemp, yyyy
  42 //                            4  nop
  43 
  44 class ICStub: public Stub {
  45  private:
  46   int                 _size;       // total size of the stub incl. code
  47   address             _ic_site;    // points at call instruction of owning ic-buffer
  48   /* stub code follows here */
  49  protected:
  50   friend class ICStubInterface;
  51   // This will be called only by ICStubInterface




  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #ifndef SHARE_VM_CODE_ICBUFFER_HPP
  26 #define SHARE_VM_CODE_ICBUFFER_HPP
  27 
  28 #include "asm/codeBuffer.hpp"
  29 #include "code/stubs.hpp"
  30 #include "interpreter/bytecodes.hpp"
  31 #include "memory/allocation.hpp"
  32 #include "utilities/align.hpp"
  33 
  34 //
  35 // For CompiledIC's:
  36 //
  37 // In cases where we do not have MT-safe state transformation,
  38 // we go to a transition state, using ICStubs. At a safepoint,
  39 // the inline caches are transferred from the transitional code:
  40 //
  41 //    instruction_address --> 01 set xxx_oop, Ginline_cache_klass
  42 //                            23 jump_to Gtemp, yyyy
  43 //                            4  nop
  44 
  45 class ICStub: public Stub {
  46  private:
  47   int                 _size;       // total size of the stub incl. code
  48   address             _ic_site;    // points at call instruction of owning ic-buffer
  49   /* stub code follows here */
  50  protected:
  51   friend class ICStubInterface;
  52   // This will be called only by ICStubInterface


< prev index next >