| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #if V8_TARGET_ARCH_ARM64 | 5 #if V8_TARGET_ARCH_ARM64 |
| 6 | 6 |
| 7 #include "src/bootstrapper.h" | 7 #include "src/bootstrapper.h" |
| 8 #include "src/code-stubs.h" | 8 #include "src/code-stubs.h" |
| 9 #include "src/codegen.h" | 9 #include "src/codegen.h" |
| 10 #include "src/ic/handler-compiler.h" | 10 #include "src/ic/handler-compiler.h" |
| (...skipping 4043 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4054 // but we need to save them before using them. | 4054 // but we need to save them before using them. |
| 4055 regs_.Save(masm); | 4055 regs_.Save(masm); |
| 4056 | 4056 |
| 4057 if (remembered_set_action() == EMIT_REMEMBERED_SET) { | 4057 if (remembered_set_action() == EMIT_REMEMBERED_SET) { |
| 4058 Label dont_need_remembered_set; | 4058 Label dont_need_remembered_set; |
| 4059 | 4059 |
| 4060 Register val = regs_.scratch0(); | 4060 Register val = regs_.scratch0(); |
| 4061 __ Ldr(val, MemOperand(regs_.address())); | 4061 __ Ldr(val, MemOperand(regs_.address())); |
| 4062 __ JumpIfNotInNewSpace(val, &dont_need_remembered_set); | 4062 __ JumpIfNotInNewSpace(val, &dont_need_remembered_set); |
| 4063 | 4063 |
| 4064 __ CheckPageFlagSet(regs_.object(), val, 1 << MemoryChunk::SCAN_ON_SCAVENGE, | 4064 __ JumpIfInNewSpace(regs_.object(), regs_.scratch0(), |
| 4065 &dont_need_remembered_set); | 4065 &dont_need_remembered_set); |
| 4066 | 4066 |
| 4067 // First notify the incremental marker if necessary, then update the | 4067 // First notify the incremental marker if necessary, then update the |
| 4068 // remembered set. | 4068 // remembered set. |
| 4069 CheckNeedsToInformIncrementalMarker( | 4069 CheckNeedsToInformIncrementalMarker( |
| 4070 masm, kUpdateRememberedSetOnNoNeedToInformIncrementalMarker, mode); | 4070 masm, kUpdateRememberedSetOnNoNeedToInformIncrementalMarker, mode); |
| 4071 InformIncrementalMarker(masm); | 4071 InformIncrementalMarker(masm); |
| 4072 regs_.Restore(masm); // Restore the extra scratch registers we used. | 4072 regs_.Restore(masm); // Restore the extra scratch registers we used. |
| 4073 | 4073 |
| 4074 __ RememberedSetHelper(object(), address(), | 4074 __ RememberedSetHelper(object(), address(), |
| (...skipping 1779 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5854 MemOperand(fp, 6 * kPointerSize), NULL); | 5854 MemOperand(fp, 6 * kPointerSize), NULL); |
| 5855 } | 5855 } |
| 5856 | 5856 |
| 5857 | 5857 |
| 5858 #undef __ | 5858 #undef __ |
| 5859 | 5859 |
| 5860 } // namespace internal | 5860 } // namespace internal |
| 5861 } // namespace v8 | 5861 } // namespace v8 |
| 5862 | 5862 |
| 5863 #endif // V8_TARGET_ARCH_ARM64 | 5863 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |