Index: src/ia32/code-stubs-ia32.cc |
diff --git a/src/ia32/code-stubs-ia32.cc b/src/ia32/code-stubs-ia32.cc |
index 2ef5a87da26eba19a5c4f9069bd90ebf8fef9633..5c9056abb578acca57dcd7fedd1711fc80c882aa 100644 |
--- a/src/ia32/code-stubs-ia32.cc |
+++ b/src/ia32/code-stubs-ia32.cc |
@@ -4691,7 +4691,7 @@ void RecordWriteStub::GenerateIncremental(MacroAssembler* masm, Mode mode) { |
masm, |
kUpdateRememberedSetOnNoNeedToInformIncrementalMarker, |
mode); |
- InformIncrementalMarker(masm, mode); |
+ InformIncrementalMarker(masm); |
regs_.Restore(masm); |
__ RememberedSetHelper(object_, |
address_, |
@@ -4706,13 +4706,13 @@ void RecordWriteStub::GenerateIncremental(MacroAssembler* masm, Mode mode) { |
masm, |
kReturnOnNoNeedToInformIncrementalMarker, |
mode); |
- InformIncrementalMarker(masm, mode); |
+ InformIncrementalMarker(masm); |
regs_.Restore(masm); |
__ ret(0); |
} |
-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()); |
@@ -4722,18 +4722,11 @@ void RecordWriteStub::InformIncrementalMarker(MacroAssembler* masm, Mode mode) { |
Immediate(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_); |
} |