mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-16 17:14:41 +02:00
8195776: [x86,sparc] A row of minor fixes and enhancements
Reviewed-by: kvn
This commit is contained in:
parent
0ddc8c6900
commit
490d2ce747
17 changed files with 151 additions and 98 deletions
|
@ -1510,11 +1510,11 @@ void Assembler::call(Address adr) {
|
|||
}
|
||||
|
||||
void Assembler::call_literal(address entry, RelocationHolder const& rspec) {
|
||||
assert(entry != NULL, "call most probably wrong");
|
||||
InstructionMark im(this);
|
||||
emit_int8((unsigned char)0xE8);
|
||||
intptr_t disp = entry - (pc() + sizeof(int32_t));
|
||||
assert(is_simm32(disp), "must be 32bit offset (call2)");
|
||||
// Entry is NULL in case of a scratch emit.
|
||||
assert(entry == NULL || is_simm32(disp), "disp=" INTPTR_FORMAT " must be 32bit offset (call2)", disp);
|
||||
// Technically, should use call32_operand, but this format is
|
||||
// implied by the fact that we're emitting a call instruction.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue