OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_MIPS | 5 #if V8_TARGET_ARCH_MIPS |
6 | 6 |
7 #include "src/base/bits.h" | 7 #include "src/base/bits.h" |
8 #include "src/bootstrapper.h" | 8 #include "src/bootstrapper.h" |
9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
(...skipping 4168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4179 regs_.Save(masm); | 4179 regs_.Save(masm); |
4180 | 4180 |
4181 if (remembered_set_action() == EMIT_REMEMBERED_SET) { | 4181 if (remembered_set_action() == EMIT_REMEMBERED_SET) { |
4182 Label dont_need_remembered_set; | 4182 Label dont_need_remembered_set; |
4183 | 4183 |
4184 __ lw(regs_.scratch0(), MemOperand(regs_.address(), 0)); | 4184 __ lw(regs_.scratch0(), MemOperand(regs_.address(), 0)); |
4185 __ JumpIfNotInNewSpace(regs_.scratch0(), // Value. | 4185 __ JumpIfNotInNewSpace(regs_.scratch0(), // Value. |
4186 regs_.scratch0(), | 4186 regs_.scratch0(), |
4187 &dont_need_remembered_set); | 4187 &dont_need_remembered_set); |
4188 | 4188 |
4189 __ CheckPageFlag(regs_.object(), | 4189 __ JumpIfInNewSpace(regs_.object(), regs_.scratch0(), |
4190 regs_.scratch0(), | 4190 &dont_need_remembered_set); |
4191 1 << MemoryChunk::SCAN_ON_SCAVENGE, | |
4192 ne, | |
4193 &dont_need_remembered_set); | |
4194 | 4191 |
4195 // First notify the incremental marker if necessary, then update the | 4192 // First notify the incremental marker if necessary, then update the |
4196 // remembered set. | 4193 // remembered set. |
4197 CheckNeedsToInformIncrementalMarker( | 4194 CheckNeedsToInformIncrementalMarker( |
4198 masm, kUpdateRememberedSetOnNoNeedToInformIncrementalMarker, mode); | 4195 masm, kUpdateRememberedSetOnNoNeedToInformIncrementalMarker, mode); |
4199 InformIncrementalMarker(masm); | 4196 InformIncrementalMarker(masm); |
4200 regs_.Restore(masm); | 4197 regs_.Restore(masm); |
4201 __ RememberedSetHelper(object(), | 4198 __ RememberedSetHelper(object(), |
4202 address(), | 4199 address(), |
4203 value(), | 4200 value(), |
(...skipping 1415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5619 MemOperand(fp, 6 * kPointerSize), NULL); | 5616 MemOperand(fp, 6 * kPointerSize), NULL); |
5620 } | 5617 } |
5621 | 5618 |
5622 | 5619 |
5623 #undef __ | 5620 #undef __ |
5624 | 5621 |
5625 } // namespace internal | 5622 } // namespace internal |
5626 } // namespace v8 | 5623 } // namespace v8 |
5627 | 5624 |
5628 #endif // V8_TARGET_ARCH_MIPS | 5625 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |