hotspot/src/share/vm/interpreter/bytecode.hpp
changeset 46620 750c6edff33b
parent 46504 38048d4d20e7
child 46625 edefffab74e2
equal deleted inserted replaced
46619:a3919f5e8d2b 46620:750c6edff33b
    42   const Bytecodes::Code _code;
    42   const Bytecodes::Code _code;
    43 
    43 
    44   // Address computation
    44   // Address computation
    45   address addr_at            (int offset)        const     { return (address)_bcp + offset; }
    45   address addr_at            (int offset)        const     { return (address)_bcp + offset; }
    46   u_char byte_at(int offset) const               { return *addr_at(offset); }
    46   u_char byte_at(int offset) const               { return *addr_at(offset); }
    47   address aligned_addr_at    (int offset)        const     { return (address)round_to((intptr_t)addr_at(offset), jintSize); }
    47   address aligned_addr_at    (int offset)        const     { return align_up(addr_at(offset), jintSize); }
    48 
    48 
    49   // Word access:
    49   // Word access:
    50   int     get_Java_u2_at     (int offset)        const     { return Bytes::get_Java_u2(addr_at(offset)); }
    50   int     get_Java_u2_at     (int offset)        const     { return Bytes::get_Java_u2(addr_at(offset)); }
    51   int     get_Java_u4_at     (int offset)        const     { return Bytes::get_Java_u4(addr_at(offset)); }
    51   int     get_Java_u4_at     (int offset)        const     { return Bytes::get_Java_u4(addr_at(offset)); }
    52   int     get_aligned_Java_u4_at(int offset)     const     { return Bytes::get_Java_u4(aligned_addr_at(offset)); }
    52   int     get_aligned_Java_u4_at(int offset)     const     { return Bytes::get_Java_u4(aligned_addr_at(offset)); }