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 4173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4184 regs_.Save(masm); | 4184 regs_.Save(masm); |
4185 | 4185 |
4186 if (remembered_set_action() == EMIT_REMEMBERED_SET) { | 4186 if (remembered_set_action() == EMIT_REMEMBERED_SET) { |
4187 Label dont_need_remembered_set; | 4187 Label dont_need_remembered_set; |
4188 | 4188 |
4189 __ lw(regs_.scratch0(), MemOperand(regs_.address(), 0)); | 4189 __ lw(regs_.scratch0(), MemOperand(regs_.address(), 0)); |
4190 __ JumpIfNotInNewSpace(regs_.scratch0(), // Value. | 4190 __ JumpIfNotInNewSpace(regs_.scratch0(), // Value. |
4191 regs_.scratch0(), | 4191 regs_.scratch0(), |
4192 &dont_need_remembered_set); | 4192 &dont_need_remembered_set); |
4193 | 4193 |
4194 __ CheckPageFlag(regs_.object(), | 4194 __ JumpIfInNewSpace(regs_.object(), regs_.scratch0(), |
4195 regs_.scratch0(), | 4195 &dont_need_remembered_set); |
4196 1 << MemoryChunk::SCAN_ON_SCAVENGE, | |
4197 ne, | |
4198 &dont_need_remembered_set); | |
4199 | 4196 |
4200 // First notify the incremental marker if necessary, then update the | 4197 // First notify the incremental marker if necessary, then update the |
4201 // remembered set. | 4198 // remembered set. |
4202 CheckNeedsToInformIncrementalMarker( | 4199 CheckNeedsToInformIncrementalMarker( |
4203 masm, kUpdateRememberedSetOnNoNeedToInformIncrementalMarker, mode); | 4200 masm, kUpdateRememberedSetOnNoNeedToInformIncrementalMarker, mode); |
4204 InformIncrementalMarker(masm); | 4201 InformIncrementalMarker(masm); |
4205 regs_.Restore(masm); | 4202 regs_.Restore(masm); |
4206 __ RememberedSetHelper(object(), | 4203 __ RememberedSetHelper(object(), |
4207 address(), | 4204 address(), |
4208 value(), | 4205 value(), |
(...skipping 1409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5618 return_value_operand, NULL); | 5615 return_value_operand, NULL); |
5619 } | 5616 } |
5620 | 5617 |
5621 | 5618 |
5622 #undef __ | 5619 #undef __ |
5623 | 5620 |
5624 } // namespace internal | 5621 } // namespace internal |
5625 } // namespace v8 | 5622 } // namespace v8 |
5626 | 5623 |
5627 #endif // V8_TARGET_ARCH_MIPS | 5624 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |