hotspot/src/share/vm/code/icBuffer.hpp
changeset 13887 89b873bcc55b
parent 13728 882756847a04
child 16368 713209c45a82
equal deleted inserted replaced
13886:8d82c4dfa722 13887:89b873bcc55b
    23  */
    23  */
    24 
    24 
    25 #ifndef SHARE_VM_CODE_ICBUFFER_HPP
    25 #ifndef SHARE_VM_CODE_ICBUFFER_HPP
    26 #define SHARE_VM_CODE_ICBUFFER_HPP
    26 #define SHARE_VM_CODE_ICBUFFER_HPP
    27 
    27 
       
    28 #include "asm/codeBuffer.hpp"
    28 #include "code/stubs.hpp"
    29 #include "code/stubs.hpp"
    29 #include "interpreter/bytecodes.hpp"
    30 #include "interpreter/bytecodes.hpp"
    30 #include "memory/allocation.hpp"
    31 #include "memory/allocation.hpp"
    31 
    32 
    32 //
    33 //
    46   address             _ic_site;    // points at call instruction of owning ic-buffer
    47   address             _ic_site;    // points at call instruction of owning ic-buffer
    47   /* stub code follows here */
    48   /* stub code follows here */
    48  protected:
    49  protected:
    49   friend class ICStubInterface;
    50   friend class ICStubInterface;
    50   // This will be called only by ICStubInterface
    51   // This will be called only by ICStubInterface
    51   void    initialize(int size) { _size = size; _ic_site = NULL; }
    52   void    initialize(int size,
       
    53                      CodeComments comments)      { _size = size; _ic_site = NULL; }
    52   void    finalize(); // called when a method is removed
    54   void    finalize(); // called when a method is removed
    53 
    55 
    54   // General info
    56   // General info
    55   int     size() const                           { return _size; }
    57   int     size() const                           { return _size; }
    56   static  int code_size_to_size(int code_size)   { return round_to(sizeof(ICStub), CodeEntryAlignment) + code_size; }
    58   static  int code_size_to_size(int code_size)   { return round_to(sizeof(ICStub), CodeEntryAlignment) + code_size; }