Mercurial > hg > truffle
comparison src/share/vm/asm/codeBuffer.cpp @ 7199:cd3d6a6b95d9
8003240: x86: move MacroAssembler into separate file
Reviewed-by: kvn
author | twisti |
---|---|
date | Fri, 30 Nov 2012 15:23:16 -0800 |
parents | 1acccb7c0b01 |
children | d2f8c38e543d |
comparison
equal
deleted
inserted
replaced
7198:6ab62ad83507 | 7199:cd3d6a6b95d9 |
---|---|
250 | 250 |
251 address CodeBuffer::locator_address(int locator) const { | 251 address CodeBuffer::locator_address(int locator) const { |
252 if (locator < 0) return NULL; | 252 if (locator < 0) return NULL; |
253 address start = code_section(locator_sect(locator))->start(); | 253 address start = code_section(locator_sect(locator))->start(); |
254 return start + locator_pos(locator); | 254 return start + locator_pos(locator); |
255 } | |
256 | |
257 bool CodeBuffer::is_backward_branch(Label& L) { | |
258 return L.is_bound() && insts_end() <= locator_address(L.loc()); | |
255 } | 259 } |
256 | 260 |
257 address CodeBuffer::decode_begin() { | 261 address CodeBuffer::decode_begin() { |
258 address begin = _insts.start(); | 262 address begin = _insts.start(); |
259 if (_decode_begin != NULL && _decode_begin > begin) | 263 if (_decode_begin != NULL && _decode_begin > begin) |