@@ -2196,46 +2196,6 @@ class StubGenerator: public StubCodeGenerator {
2196
2196
StubRoutines::_arrayof_jint_fill = generate_fill (T_INT, true , " arrayof_jint_fill" );
2197
2197
}
2198
2198
2199
- // Safefetch stubs.
2200
- void generate_safefetch (const char * name, int size, address* entry,
2201
- address* fault_pc, address* continuation_pc) {
2202
- // safefetch signatures:
2203
- // int SafeFetch32(int* adr, int errValue)
2204
- // intptr_t SafeFetchN (intptr_t* adr, intptr_t errValue)
2205
- //
2206
- // arguments:
2207
- // c_rarg0 = adr
2208
- // c_rarg1 = errValue
2209
- //
2210
- // result:
2211
- // PPC_RET = *adr or errValue
2212
- assert_cond (entry != NULL && fault_pc != NULL && continuation_pc != NULL );
2213
- StubCodeMark mark (this , " StubRoutines" , name);
2214
-
2215
- // Entry point, pc or function descriptor.
2216
- *entry = __ pc ();
2217
-
2218
- // Load *adr into c_rarg1, may fault.
2219
- *fault_pc = __ pc ();
2220
- switch (size) {
2221
- case 4 :
2222
- // int32_t
2223
- __ lw (c_rarg1, Address (c_rarg0, 0 ));
2224
- break ;
2225
- case 8 :
2226
- // int64_t
2227
- __ ld (c_rarg1, Address (c_rarg0, 0 ));
2228
- break ;
2229
- default :
2230
- ShouldNotReachHere ();
2231
- }
2232
-
2233
- // return errValue or *adr
2234
- *continuation_pc = __ pc ();
2235
- __ mv (x10, c_rarg1);
2236
- __ ret ();
2237
- }
2238
-
2239
2199
// code for comparing 16 bytes of strings with same encoding
2240
2200
void compare_string_16_bytes_same (Label &DIFF1, Label &DIFF2) {
2241
2201
const Register result = x10, str1 = x11, cnt1 = x12, str2 = x13, tmp1 = x28, tmp2 = x29, tmp4 = x7, tmp5 = x31;
@@ -3767,13 +3727,6 @@ class StubGenerator: public StubCodeGenerator {
3767
3727
generate_throw_exception (" delayed StackOverflowError throw_exception" ,
3768
3728
CAST_FROM_FN_PTR (address,
3769
3729
SharedRuntime::throw_delayed_StackOverflowError));
3770
- // Safefetch stubs.
3771
- generate_safefetch (" SafeFetch32" , sizeof (int ), &StubRoutines::_safefetch32_entry,
3772
- &StubRoutines::_safefetch32_fault_pc,
3773
- &StubRoutines::_safefetch32_continuation_pc);
3774
- generate_safefetch (" SafeFetchN" , sizeof (intptr_t ), &StubRoutines::_safefetchN_entry,
3775
- &StubRoutines::_safefetchN_fault_pc,
3776
- &StubRoutines::_safefetchN_continuation_pc);
3777
3730
}
3778
3731
3779
3732
void generate_all () {
0 commit comments