mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 18:14:38 +02:00
8245521: Remove STACK_BIAS
Reviewed-by: dholmes, mbaesken, kvn
This commit is contained in:
parent
44a0a08991
commit
1401fe0087
13 changed files with 23 additions and 40 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -82,7 +82,7 @@ CallingConvention* FrameMap::java_calling_convention(const BasicTypeArray* signa
|
|||
if (opr->is_address()) {
|
||||
LIR_Address* addr = opr->as_address_ptr();
|
||||
assert(addr->disp() == (int)addr->disp(), "out of range value");
|
||||
out_preserve = MAX2(out_preserve, (intptr_t)(addr->disp() - STACK_BIAS) / 4);
|
||||
out_preserve = MAX2(out_preserve, (intptr_t)addr->disp() / 4);
|
||||
}
|
||||
i += type2size[t];
|
||||
}
|
||||
|
@ -133,7 +133,7 @@ CallingConvention* FrameMap::c_calling_convention(const BasicTypeArray* signatur
|
|||
args->append(opr);
|
||||
if (opr->is_address()) {
|
||||
LIR_Address* addr = opr->as_address_ptr();
|
||||
out_preserve = MAX2(out_preserve, (intptr_t)(addr->disp() - STACK_BIAS) / 4);
|
||||
out_preserve = MAX2(out_preserve, (intptr_t)addr->disp() / 4);
|
||||
}
|
||||
i += type2size[t];
|
||||
}
|
||||
|
@ -174,7 +174,7 @@ FrameMap::FrameMap(ciMethod* method, int monitors, int reserved_argument_area_si
|
|||
LIR_Opr opr = _incoming_arguments->at(i);
|
||||
if (opr->is_address()) {
|
||||
LIR_Address* address = opr->as_address_ptr();
|
||||
_argument_locations->at_put(java_index, address->disp() - STACK_BIAS);
|
||||
_argument_locations->at_put(java_index, address->disp());
|
||||
_incoming_arguments->args()->at_put(i, LIR_OprFact::stack(java_index, as_BasicType(as_ValueType(address->type()))));
|
||||
}
|
||||
java_index += type2size[opr->type()];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue