Index: src/ia32/code-stubs-ia32.cc |
diff --git a/src/ia32/code-stubs-ia32.cc b/src/ia32/code-stubs-ia32.cc |
index 527800b80ede2bafb2efdc232c5b302cdc74df3d..e788d0ea516aa9584cfd11a06b839cf5716e49a5 100644 |
--- a/src/ia32/code-stubs-ia32.cc |
+++ b/src/ia32/code-stubs-ia32.cc |
@@ -4076,11 +4076,10 @@ void RecordWriteStub::CheckNeedsToInformIncrementalMarker( |
// We need an extra register for this, so we push the object register |
// temporarily. |
__ push(regs_.object()); |
- __ EnsureNotWhite(regs_.scratch0(), // The value. |
- regs_.scratch1(), // Scratch. |
- regs_.object(), // Scratch. |
- &need_incremental_pop_object, |
- Label::kNear); |
+ __ CheckIfWhite(regs_.scratch0(), // The value. |
+ regs_.scratch1(), // Scratch. |
+ regs_.object(), // Scratch. |
+ &need_incremental_pop_object, Label::kNear); |
__ pop(regs_.object()); |
regs_.Restore(masm); |