Index: src/mips/code-stubs-mips.cc |
diff --git a/src/mips/code-stubs-mips.cc b/src/mips/code-stubs-mips.cc |
index dba129ac9a1c3b3c6993638240e39ebc338dfd17..4f8f77d81ae06dee34c6dd6749eb781ef6d9b75a 100644 |
--- a/src/mips/code-stubs-mips.cc |
+++ b/src/mips/code-stubs-mips.cc |
@@ -5026,7 +5026,7 @@ void RecordWriteStub::GenerateIncremental(MacroAssembler* masm, Mode mode) { |
// remembered set. |
CheckNeedsToInformIncrementalMarker( |
masm, kUpdateRememberedSetOnNoNeedToInformIncrementalMarker, mode); |
- InformIncrementalMarker(masm, mode); |
+ InformIncrementalMarker(masm); |
regs_.Restore(masm); |
__ RememberedSetHelper(object_, |
address_, |
@@ -5039,13 +5039,13 @@ void RecordWriteStub::GenerateIncremental(MacroAssembler* masm, Mode mode) { |
CheckNeedsToInformIncrementalMarker( |
masm, kReturnOnNoNeedToInformIncrementalMarker, mode); |
- InformIncrementalMarker(masm, mode); |
+ InformIncrementalMarker(masm); |
regs_.Restore(masm); |
__ Ret(); |
} |
-void RecordWriteStub::InformIncrementalMarker(MacroAssembler* masm, Mode mode) { |
+void RecordWriteStub::InformIncrementalMarker(MacroAssembler* masm) { |
regs_.SaveCallerSaveRegisters(masm, save_fp_regs_mode_); |
int argument_count = 3; |
__ PrepareCallCFunction(argument_count, regs_.scratch0()); |
@@ -5059,18 +5059,10 @@ void RecordWriteStub::InformIncrementalMarker(MacroAssembler* masm, Mode mode) { |
__ li(a2, Operand(ExternalReference::isolate_address(masm->isolate()))); |
AllowExternalCallThatCantCauseGC scope(masm); |
- if (mode == INCREMENTAL_COMPACTION) { |
- __ CallCFunction( |
- ExternalReference::incremental_evacuation_record_write_function( |
- masm->isolate()), |
- argument_count); |
- } else { |
- ASSERT(mode == INCREMENTAL); |
- __ CallCFunction( |
- ExternalReference::incremental_marking_record_write_function( |
- masm->isolate()), |
- argument_count); |
- } |
+ __ CallCFunction( |
+ ExternalReference::incremental_marking_record_write_function( |
+ masm->isolate()), |
+ argument_count); |
regs_.RestoreCallerSaveRegisters(masm, save_fp_regs_mode_); |
} |