| 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/code-stubs.h" | 7 #include "src/code-stubs.h" |
| 8 #include "src/api-arguments.h" | 8 #include "src/api-arguments.h" |
| 9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
| 10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
| (...skipping 3168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3179 | 3179 |
| 3180 | 3180 |
| 3181 void RecordWriteStub::CheckNeedsToInformIncrementalMarker( | 3181 void RecordWriteStub::CheckNeedsToInformIncrementalMarker( |
| 3182 MacroAssembler* masm, | 3182 MacroAssembler* masm, |
| 3183 OnNoNeedToInformIncrementalMarker on_no_need, | 3183 OnNoNeedToInformIncrementalMarker on_no_need, |
| 3184 Mode mode) { | 3184 Mode mode) { |
| 3185 Label on_black; | 3185 Label on_black; |
| 3186 Label need_incremental; | 3186 Label need_incremental; |
| 3187 Label need_incremental_pop_scratch; | 3187 Label need_incremental_pop_scratch; |
| 3188 | 3188 |
| 3189 __ And(regs_.scratch0(), regs_.object(), Operand(~Page::kPageAlignmentMask)); | |
| 3190 __ ld(regs_.scratch1(), | |
| 3191 MemOperand(regs_.scratch0(), | |
| 3192 MemoryChunk::kWriteBarrierCounterOffset)); | |
| 3193 __ Dsubu(regs_.scratch1(), regs_.scratch1(), Operand(1)); | |
| 3194 __ sd(regs_.scratch1(), | |
| 3195 MemOperand(regs_.scratch0(), | |
| 3196 MemoryChunk::kWriteBarrierCounterOffset)); | |
| 3197 __ Branch(&need_incremental, lt, regs_.scratch1(), Operand(zero_reg)); | |
| 3198 | |
| 3199 // Let's look at the color of the object: If it is not black we don't have | 3189 // Let's look at the color of the object: If it is not black we don't have |
| 3200 // to inform the incremental marker. | 3190 // to inform the incremental marker. |
| 3201 __ JumpIfBlack(regs_.object(), regs_.scratch0(), regs_.scratch1(), &on_black); | 3191 __ JumpIfBlack(regs_.object(), regs_.scratch0(), regs_.scratch1(), &on_black); |
| 3202 | 3192 |
| 3203 regs_.Restore(masm); | 3193 regs_.Restore(masm); |
| 3204 if (on_no_need == kUpdateRememberedSetOnNoNeedToInformIncrementalMarker) { | 3194 if (on_no_need == kUpdateRememberedSetOnNoNeedToInformIncrementalMarker) { |
| 3205 __ RememberedSetHelper(object(), | 3195 __ RememberedSetHelper(object(), |
| 3206 address(), | 3196 address(), |
| 3207 value(), | 3197 value(), |
| 3208 save_fp_regs_mode(), | 3198 save_fp_regs_mode(), |
| (...skipping 1928 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5137 kStackUnwindSpace, kInvalidStackOffset, | 5127 kStackUnwindSpace, kInvalidStackOffset, |
| 5138 return_value_operand, NULL); | 5128 return_value_operand, NULL); |
| 5139 } | 5129 } |
| 5140 | 5130 |
| 5141 #undef __ | 5131 #undef __ |
| 5142 | 5132 |
| 5143 } // namespace internal | 5133 } // namespace internal |
| 5144 } // namespace v8 | 5134 } // namespace v8 |
| 5145 | 5135 |
| 5146 #endif // V8_TARGET_ARCH_MIPS64 | 5136 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |