src/hotspot/cpu/arm/c1_Runtime1_arm.cpp
changeset 50094 2f79462aab9b
parent 49938 2c2a722a2c0c
child 50380 bec342339138
equal deleted inserted replaced
50093:55153a374d18 50094:2f79462aab9b
   364 
   364 
   365 
   365 
   366 OopMapSet* Runtime1::generate_exception_throw(StubAssembler* sasm, address target, bool has_argument) {
   366 OopMapSet* Runtime1::generate_exception_throw(StubAssembler* sasm, address target, bool has_argument) {
   367   OopMap* oop_map = save_live_registers(sasm);
   367   OopMap* oop_map = save_live_registers(sasm);
   368 
   368 
       
   369   int call_offset;
   369   if (has_argument) {
   370   if (has_argument) {
   370     __ ldr(R1, Address(SP, arg1_offset));
   371     __ ldr(R1, Address(SP, arg1_offset));
   371   }
   372     __ ldr(R2, Address(SP, arg2_offset));
   372 
   373     call_offset = __ call_RT(noreg, noreg, target, R1, R2);
   373   int call_offset = __ call_RT(noreg, noreg, target);
   374   } else {
       
   375     call_offset = __ call_RT(noreg, noreg, target);
       
   376   }
       
   377 
   374   OopMapSet* oop_maps = new OopMapSet();
   378   OopMapSet* oop_maps = new OopMapSet();
   375   oop_maps->add_gc_map(call_offset, oop_map);
   379   oop_maps->add_gc_map(call_offset, oop_map);
   376 
   380 
   377   DEBUG_ONLY(STOP("generate_exception_throw");)  // Should not reach here
   381   DEBUG_ONLY(STOP("generate_exception_throw");)  // Should not reach here
   378   return oop_maps;
   382   return oop_maps;