@@ -1492,9 +1492,6 @@ LocationSummary* StoreIndexedInstr::MakeLocationSummary(Zone* zone,
14921492
14931493 bool needs_base = false ;
14941494 intptr_t kNumTemps = 0 ;
1495- if (ShouldEmitStoreBarrier ()) {
1496- kNumTemps += 1 ; // Block LR for the store barrier.
1497- }
14981495 if (CanBeImmediateIndex (index (), class_id (), IsExternal (),
14991496 false , // Store.
15001497 &needs_base)) {
@@ -1562,10 +1559,6 @@ LocationSummary* StoreIndexedInstr::MakeLocationSummary(Zone* zone,
15621559 return NULL ;
15631560 }
15641561
1565- if (ShouldEmitStoreBarrier ()) {
1566- locs->set_temp (kNumTemps - 1 , Location::RegisterLocation (LR));
1567- }
1568-
15691562 return locs;
15701563}
15711564
@@ -2196,8 +2189,7 @@ LocationSummary* StoreInstanceFieldInstr::MakeLocationSummary(Zone* zone,
21962189 bool opt) const {
21972190 const intptr_t kNumInputs = 2 ;
21982191 const intptr_t kNumTemps =
2199- ((IsUnboxedStore () && opt) ? 2 : ((IsPotentialUnboxedStore ()) ? 3 : 0 )) +
2200- (ShouldEmitStoreBarrier () ? 1 : 0 ); // Block LR for the store barrier.
2192+ ((IsUnboxedStore () && opt) ? 2 : ((IsPotentialUnboxedStore ()) ? 3 : 0 ));
22012193 LocationSummary* summary = new (zone)
22022194 LocationSummary (zone, kNumInputs , kNumTemps ,
22032195 ((IsUnboxedStore () && opt && is_initialization ()) ||
@@ -2228,9 +2220,6 @@ LocationSummary* StoreInstanceFieldInstr::MakeLocationSummary(Zone* zone,
22282220 : Location::RegisterOrConstant (value ()));
22292221#endif
22302222 }
2231- if (ShouldEmitStoreBarrier ()) {
2232- summary->set_temp (kNumTemps - 1 , Location::RegisterLocation (LR));
2233- }
22342223 return summary;
22352224}
22362225
@@ -2433,8 +2422,7 @@ void LoadStaticFieldInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
24332422LocationSummary* StoreStaticFieldInstr::MakeLocationSummary (Zone* zone,
24342423 bool opt) const {
24352424 const intptr_t kNumInputs = 1 ;
2436- const intptr_t kNumTemps =
2437- value ()->NeedsWriteBarrier () ? 2 : 1 ; // Block LR for the store barrier.
2425+ const intptr_t kNumTemps = 1 ;
24382426 LocationSummary* locs = new (zone)
24392427 LocationSummary (zone, kNumInputs , kNumTemps , LocationSummary::kNoCall );
24402428#if defined(CONCURRENT_MARKING)
@@ -2444,9 +2432,6 @@ LocationSummary* StoreStaticFieldInstr::MakeLocationSummary(Zone* zone,
24442432 : Location::RequiresRegister ());
24452433#endif
24462434 locs->set_temp (0 , Location::RequiresRegister ());
2447- if (value ()->NeedsWriteBarrier ()) {
2448- locs->set_temp (kNumTemps - 1 , Location::RegisterLocation (LR));
2449- }
24502435 return locs;
24512436}
24522437
@@ -3063,8 +3048,7 @@ class CheckStackOverflowSlowPath
30633048 ? Thread::stack_overflow_shared_with_fpu_regs_entry_point_offset ()
30643049 : Thread::
30653050 stack_overflow_shared_without_fpu_regs_entry_point_offset ();
3066- ASSERT (instruction ()->locs ()->temp (1 ).IsRegister () &&
3067- instruction ()->locs ()->temp (1 ).reg () == LR);
3051+ ASSERT (kReservedCpuRegisters & (1 << LR));
30683052 __ ldr (LR, Address (THR, entry_point_offset));
30693053 __ blx (LR);
30703054 compiler->RecordSafepoint (instruction ()->locs (), kNumSlowPathArgs );
0 commit comments