--- a/hotspot/src/cpu/aarch64/vm/sharedRuntime_aarch64.cpp Tue Jul 04 15:58:10 2017 +0200
+++ b/hotspot/src/cpu/aarch64/vm/sharedRuntime_aarch64.cpp Thu Apr 13 09:57:51 2017 +0200
@@ -123,7 +123,7 @@
assert(!save_vectors, "vectors are generated only by C2 and JVMCI");
#endif
- int frame_size_in_bytes = round_to(additional_frame_words*wordSize +
+ int frame_size_in_bytes = align_up(additional_frame_words*wordSize +
reg_save_size*BytesPerInt, 16);
// OopMap frame size is in compiler stack slots (jint's) not bytes or words
int frame_size_in_slots = frame_size_in_bytes / BytesPerInt;
@@ -190,7 +190,7 @@
__ ldr(r0, Address(sp, r0_offset_in_bytes()));
// Pop all of the register save are off the stack
- __ add(sp, sp, round_to(return_offset_in_bytes(), 16));
+ __ add(sp, sp, align_up(return_offset_in_bytes(), 16));
}
// Is vector's size (in bytes) bigger than a size saved by default?
@@ -317,7 +317,7 @@
}
}
- return round_to(stk_args, 2);
+ return align_up(stk_args, 2);
}
// Patch the callers callsite with entry to compiled code if it exists.
@@ -375,7 +375,7 @@
__ mov(r13, sp);
// stack is aligned, keep it that way
- extraspace = round_to(extraspace, 2*wordSize);
+ extraspace = align_up(extraspace, 2*wordSize);
if (extraspace)
__ sub(sp, sp, extraspace);
@@ -547,7 +547,7 @@
}
// Cut-out for having no stack args.
- int comp_words_on_stack = round_to(comp_args_on_stack*VMRegImpl::stack_slot_size, wordSize)>>LogBytesPerWord;
+ int comp_words_on_stack = align_up(comp_args_on_stack*VMRegImpl::stack_slot_size, wordSize)>>LogBytesPerWord;
if (comp_args_on_stack) {
__ sub(rscratch1, sp, comp_words_on_stack * wordSize);
__ andr(sp, rscratch1, -16);
@@ -1486,7 +1486,7 @@
total_save_slots = double_slots * 2 + single_slots;
// align the save area
if (double_slots != 0) {
- stack_slots = round_to(stack_slots, 2);
+ stack_slots = align_up(stack_slots, 2);
}
}
@@ -1543,7 +1543,7 @@
// Now compute actual number of stack words we need rounding to make
// stack properly aligned.
- stack_slots = round_to(stack_slots, StackAlignmentInSlots);
+ stack_slots = align_up(stack_slots, StackAlignmentInSlots);
int stack_size = stack_slots * VMRegImpl::stack_slot_size;
@@ -2293,7 +2293,7 @@
return 0; // No adjustment for negative locals
int diff = (callee_locals - callee_parameters) * Interpreter::stackElementWords;
// diff is counted in stack words
- return round_to(diff, 2);
+ return align_up(diff, 2);
}