mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-25 22:04:51 +02:00
8255271: Avoid generating duplicate interpreter entries for subword types
Reviewed-by: iklam, coleenp
This commit is contained in:
parent
5ec1b80c4a
commit
cc861134f4
5 changed files with 48 additions and 43 deletions
|
@ -556,7 +556,11 @@ class CodeBuffer: public StackObj {
|
|||
static int locator_sect(int locator) { return locator & sect_mask; }
|
||||
static int locator(int pos, int sect) { return (pos << sect_bits) | sect; }
|
||||
int locator(address addr) const;
|
||||
address locator_address(int locator) const;
|
||||
address locator_address(int locator) const {
|
||||
if (locator < 0) return NULL;
|
||||
address start = code_section(locator_sect(locator))->start();
|
||||
return start + locator_pos(locator);
|
||||
}
|
||||
|
||||
// Heuristic for pre-packing the taken/not-taken bit of a predicted branch.
|
||||
bool is_backward_branch(Label& L);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue