equal
deleted
inserted
replaced
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)); } |