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 4073 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4084 // but we need to save them before using them. | 4084 // but we need to save them before using them. |
4085 regs_.Save(masm); | 4085 regs_.Save(masm); |
4086 | 4086 |
4087 if (remembered_set_action() == EMIT_REMEMBERED_SET) { | 4087 if (remembered_set_action() == EMIT_REMEMBERED_SET) { |
4088 Label dont_need_remembered_set; | 4088 Label dont_need_remembered_set; |
4089 | 4089 |
4090 Register val = regs_.scratch0(); | 4090 Register val = regs_.scratch0(); |
4091 __ Ldr(val, MemOperand(regs_.address())); | 4091 __ Ldr(val, MemOperand(regs_.address())); |
4092 __ JumpIfNotInNewSpace(val, &dont_need_remembered_set); | 4092 __ JumpIfNotInNewSpace(val, &dont_need_remembered_set); |
4093 | 4093 |
4094 __ CheckPageFlagSet(regs_.object(), val, 1 << MemoryChunk::SCAN_ON_SCAVENGE, | 4094 __ JumpIfInNewSpace(regs_.object(), &dont_need_remembered_set); |
4095 &dont_need_remembered_set); | |
4096 | 4095 |
4097 // First notify the incremental marker if necessary, then update the | 4096 // First notify the incremental marker if necessary, then update the |
4098 // remembered set. | 4097 // remembered set. |
4099 CheckNeedsToInformIncrementalMarker( | 4098 CheckNeedsToInformIncrementalMarker( |
4100 masm, kUpdateRememberedSetOnNoNeedToInformIncrementalMarker, mode); | 4099 masm, kUpdateRememberedSetOnNoNeedToInformIncrementalMarker, mode); |
4101 InformIncrementalMarker(masm); | 4100 InformIncrementalMarker(masm); |
4102 regs_.Restore(masm); // Restore the extra scratch registers we used. | 4101 regs_.Restore(masm); // Restore the extra scratch registers we used. |
4103 | 4102 |
4104 __ RememberedSetHelper(object(), address(), | 4103 __ RememberedSetHelper(object(), address(), |
4105 value(), // scratch1 | 4104 value(), // scratch1 |
(...skipping 1784 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5890 return_value_operand, NULL); | 5889 return_value_operand, NULL); |
5891 } | 5890 } |
5892 | 5891 |
5893 | 5892 |
5894 #undef __ | 5893 #undef __ |
5895 | 5894 |
5896 } // namespace internal | 5895 } // namespace internal |
5897 } // namespace v8 | 5896 } // namespace v8 |
5898 | 5897 |
5899 #endif // V8_TARGET_ARCH_ARM64 | 5898 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |