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