--- a/src/hotspot/cpu/ppc/sharedRuntime_ppc.cpp Mon Nov 04 09:40:35 2019 +0100
+++ b/src/hotspot/cpu/ppc/sharedRuntime_ppc.cpp Mon Nov 04 09:54:00 2019 +0100
@@ -571,7 +571,6 @@
__ bctr();
}
-#ifdef COMPILER2
static int reg2slot(VMReg r) {
return r->reg2stack() + SharedRuntime::out_preserve_stack_slots();
}
@@ -579,7 +578,6 @@
static int reg2offset(VMReg r) {
return (r->reg2stack() + SharedRuntime::out_preserve_stack_slots()) * VMRegImpl::stack_slot_size;
}
-#endif
// ---------------------------------------------------------------------------
// Read the array of BasicTypes from a signature, and compute where the
@@ -1305,7 +1303,6 @@
return AdapterHandlerLibrary::new_entry(fingerprint, i2c_entry, c2i_entry, c2i_unverified_entry, c2i_no_clinit_check_entry);
}
-#ifdef COMPILER2
// An oop arg. Must pass a handle not the oop itself.
static void object_move(MacroAssembler* masm,
int frame_size_in_slots,
@@ -1813,8 +1810,6 @@
receiver_reg, member_reg, /*for_compiler_entry:*/ true);
}
-#endif // COMPILER2
-
// ---------------------------------------------------------------------------
// Generate a native wrapper for a given method. The method takes arguments
// in the Java compiled code convention, marshals them to the native
@@ -1851,7 +1846,6 @@
VMRegPair *in_regs,
BasicType ret_type,
address critical_entry) {
-#ifdef COMPILER2
if (method->is_method_handle_intrinsic()) {
vmIntrinsics::ID iid = method->intrinsic_id();
intptr_t start = (intptr_t)__ pc();
@@ -2108,7 +2102,7 @@
// Check ic: object class == cached class?
if (!method_is_static) {
- Register ic = as_Register(Matcher::inline_cache_reg_encode());
+ Register ic = R19_inline_cache_reg;
Register receiver_klass = r_temp_1;
__ cmpdi(CCR0, R3_ARG1, 0);
@@ -2638,12 +2632,10 @@
// Handler for pending exceptions (out-of-line).
// --------------------------------------------------------------------------
-
// Since this is a native call, we know the proper exception handler
// is the empty function. We just pop this frame and then jump to
// forward_exception_entry.
if (!is_critical_native) {
- __ align(InteriorEntryAlignment);
__ bind(handle_pending_exception);
__ pop_frame();
@@ -2656,7 +2648,6 @@
// --------------------------------------------------------------------------
if (!method_is_static) {
- __ align(InteriorEntryAlignment);
__ bind(ic_miss);
__ b64_patchable((address)SharedRuntime::get_ic_miss_stub(),
@@ -2683,10 +2674,6 @@
}
return nm;
-#else
- ShouldNotReachHere();
- return NULL;
-#endif // COMPILER2
}
// This function returns the adjust size (in number of words) to a c2i adapter
@@ -2863,7 +2850,7 @@
// We can't grab a free register here, because all registers may
// contain live values, so let the RegisterSaver do the adjustment
// of the return pc.
- const int return_pc_adjustment_no_exception = -HandlerImpl::size_deopt_handler();
+ const int return_pc_adjustment_no_exception = -MacroAssembler::bl64_patchable_size;
// Push the "unpack frame"
// Save everything in sight.