Index: src/x64/code-stubs-x64.cc |
diff --git a/src/x64/code-stubs-x64.cc b/src/x64/code-stubs-x64.cc |
index 9cf02fafd9473b5fd0f7d7ed23fa3bf524a573bf..bced059f56daa36f2037dae28d678454e3b23bef 100644 |
--- a/src/x64/code-stubs-x64.cc |
+++ b/src/x64/code-stubs-x64.cc |
@@ -4537,7 +4537,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_, |
@@ -4550,13 +4550,13 @@ void RecordWriteStub::GenerateIncremental(MacroAssembler* masm, Mode mode) { |
CheckNeedsToInformIncrementalMarker( |
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_); |
Register address = |
arg_reg_1.is(regs_.address()) ? kScratchRegister : regs_.address(); |
@@ -4572,18 +4572,10 @@ void RecordWriteStub::InformIncrementalMarker(MacroAssembler* masm, Mode mode) { |
AllowExternalCallThatCantCauseGC scope(masm); |
__ PrepareCallCFunction(argument_count); |
- 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_); |
} |