Index: src/arm64/code-stubs-arm64.cc |
diff --git a/src/arm64/code-stubs-arm64.cc b/src/arm64/code-stubs-arm64.cc |
index 9967847c62c38c01fb838687edafb6c962835c8c..2c8d2c254cffb2061aca649b8ddf0738ba421580 100644 |
--- a/src/arm64/code-stubs-arm64.cc |
+++ b/src/arm64/code-stubs-arm64.cc |
@@ -4106,12 +4106,12 @@ void RecordWriteStub::CheckNeedsToInformIncrementalMarker( |
// We need extra registers for this, so we push the object and the address |
// register temporarily. |
__ Push(regs_.address(), regs_.object()); |
- __ EnsureNotWhite(val, |
- regs_.scratch1(), // Scratch. |
- regs_.object(), // Scratch. |
- regs_.address(), // Scratch. |
- regs_.scratch2(), // Scratch. |
- &need_incremental_pop_scratch); |
+ __ JumpIfWhite(val, |
+ regs_.scratch1(), // Scratch. |
+ regs_.object(), // Scratch. |
+ regs_.address(), // Scratch. |
+ regs_.scratch2(), // Scratch. |
+ &need_incremental_pop_scratch); |
__ Pop(regs_.object(), regs_.address()); |
regs_.Restore(masm); // Restore the extra scratch registers we used. |