hotspot/src/cpu/ppc/vm/c1_LIRGenerator_ppc.cpp
changeset 44738 11431bbc9549
parent 42884 05815125c157
child 46458 3c12af929e7d
equal deleted inserted replaced
44737:d090627aedb8 44738:11431bbc9549
  1129     patching_info = state_for(x, x->state_before());
  1129     patching_info = state_for(x, x->state_before());
  1130   }
  1130   }
  1131   obj.load_item();
  1131   obj.load_item();
  1132   LIR_Opr out_reg = rlock_result(x);
  1132   LIR_Opr out_reg = rlock_result(x);
  1133   CodeStub* stub;
  1133   CodeStub* stub;
  1134   CodeEmitInfo* info_for_exception = state_for(x);
  1134   CodeEmitInfo* info_for_exception =
       
  1135       (x->needs_exception_state() ? state_for(x) :
       
  1136                                     state_for(x, x->state_before(), true /*ignore_xhandler*/));
  1135 
  1137 
  1136   if (x->is_incompatible_class_change_check()) {
  1138   if (x->is_incompatible_class_change_check()) {
  1137     assert(patching_info == NULL, "can't patch this");
  1139     assert(patching_info == NULL, "can't patch this");
  1138     stub = new SimpleExceptionStub(Runtime1::throw_incompatible_class_change_error_id,
  1140     stub = new SimpleExceptionStub(Runtime1::throw_incompatible_class_change_error_id,
  1139                                    LIR_OprFact::illegalOpr, info_for_exception);
  1141                                    LIR_OprFact::illegalOpr, info_for_exception);
       
  1142   } else if (x->is_invokespecial_receiver_check()) {
       
  1143     assert(patching_info == NULL, "can't patch this");
       
  1144     stub = new DeoptimizeStub(info_for_exception,
       
  1145                               Deoptimization::Reason_class_check,
       
  1146                               Deoptimization::Action_none);
  1140   } else {
  1147   } else {
  1141     stub = new SimpleExceptionStub(Runtime1::throw_class_cast_exception_id, obj.result(), info_for_exception);
  1148     stub = new SimpleExceptionStub(Runtime1::throw_class_cast_exception_id, obj.result(), info_for_exception);
  1142   }
  1149   }
  1143   // Following registers are used by slow_subtype_check:
  1150   // Following registers are used by slow_subtype_check:
  1144   LIR_Opr tmp1 = FrameMap::R4_oop_opr; // super_klass
  1151   LIR_Opr tmp1 = FrameMap::R4_oop_opr; // super_klass