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_MIPS64 | 5 #if V8_TARGET_ARCH_MIPS64 |
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 4188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4199 regs_.Save(masm); | 4199 regs_.Save(masm); |
4200 | 4200 |
4201 if (remembered_set_action() == EMIT_REMEMBERED_SET) { | 4201 if (remembered_set_action() == EMIT_REMEMBERED_SET) { |
4202 Label dont_need_remembered_set; | 4202 Label dont_need_remembered_set; |
4203 | 4203 |
4204 __ ld(regs_.scratch0(), MemOperand(regs_.address(), 0)); | 4204 __ ld(regs_.scratch0(), MemOperand(regs_.address(), 0)); |
4205 __ JumpIfNotInNewSpace(regs_.scratch0(), // Value. | 4205 __ JumpIfNotInNewSpace(regs_.scratch0(), // Value. |
4206 regs_.scratch0(), | 4206 regs_.scratch0(), |
4207 &dont_need_remembered_set); | 4207 &dont_need_remembered_set); |
4208 | 4208 |
4209 __ CheckPageFlag(regs_.object(), | 4209 __ JumpIfInNewSpace(regs_.object(), regs_.scratch0(), |
4210 regs_.scratch0(), | 4210 &dont_need_remembered_set); |
4211 1 << MemoryChunk::SCAN_ON_SCAVENGE, | |
4212 ne, | |
4213 &dont_need_remembered_set); | |
4214 | 4211 |
4215 // First notify the incremental marker if necessary, then update the | 4212 // First notify the incremental marker if necessary, then update the |
4216 // remembered set. | 4213 // remembered set. |
4217 CheckNeedsToInformIncrementalMarker( | 4214 CheckNeedsToInformIncrementalMarker( |
4218 masm, kUpdateRememberedSetOnNoNeedToInformIncrementalMarker, mode); | 4215 masm, kUpdateRememberedSetOnNoNeedToInformIncrementalMarker, mode); |
4219 InformIncrementalMarker(masm); | 4216 InformIncrementalMarker(masm); |
4220 regs_.Restore(masm); | 4217 regs_.Restore(masm); |
4221 __ RememberedSetHelper(object(), | 4218 __ RememberedSetHelper(object(), |
4222 address(), | 4219 address(), |
4223 value(), | 4220 value(), |
(...skipping 1417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5641 return_value_operand, NULL); | 5638 return_value_operand, NULL); |
5642 } | 5639 } |
5643 | 5640 |
5644 | 5641 |
5645 #undef __ | 5642 #undef __ |
5646 | 5643 |
5647 } // namespace internal | 5644 } // namespace internal |
5648 } // namespace v8 | 5645 } // namespace v8 |
5649 | 5646 |
5650 #endif // V8_TARGET_ARCH_MIPS64 | 5647 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |