| 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_X87 | 5 #if V8_TARGET_ARCH_X87 |
| 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/base/bits.h" | 9 #include "src/base/bits.h" |
| 10 #include "src/bootstrapper.h" | 10 #include "src/bootstrapper.h" |
| (...skipping 2729 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2740 regs_.RestoreCallerSaveRegisters(masm, save_fp_regs_mode()); | 2740 regs_.RestoreCallerSaveRegisters(masm, save_fp_regs_mode()); |
| 2741 } | 2741 } |
| 2742 | 2742 |
| 2743 | 2743 |
| 2744 void RecordWriteStub::CheckNeedsToInformIncrementalMarker( | 2744 void RecordWriteStub::CheckNeedsToInformIncrementalMarker( |
| 2745 MacroAssembler* masm, | 2745 MacroAssembler* masm, |
| 2746 OnNoNeedToInformIncrementalMarker on_no_need, | 2746 OnNoNeedToInformIncrementalMarker on_no_need, |
| 2747 Mode mode) { | 2747 Mode mode) { |
| 2748 Label object_is_black, need_incremental, need_incremental_pop_object; | 2748 Label object_is_black, need_incremental, need_incremental_pop_object; |
| 2749 | 2749 |
| 2750 __ mov(regs_.scratch0(), Immediate(~Page::kPageAlignmentMask)); | |
| 2751 __ and_(regs_.scratch0(), regs_.object()); | |
| 2752 __ mov(regs_.scratch1(), | |
| 2753 Operand(regs_.scratch0(), | |
| 2754 MemoryChunk::kWriteBarrierCounterOffset)); | |
| 2755 __ sub(regs_.scratch1(), Immediate(1)); | |
| 2756 __ mov(Operand(regs_.scratch0(), | |
| 2757 MemoryChunk::kWriteBarrierCounterOffset), | |
| 2758 regs_.scratch1()); | |
| 2759 __ j(negative, &need_incremental); | |
| 2760 | |
| 2761 // Let's look at the color of the object: If it is not black we don't have | 2750 // Let's look at the color of the object: If it is not black we don't have |
| 2762 // to inform the incremental marker. | 2751 // to inform the incremental marker. |
| 2763 __ JumpIfBlack(regs_.object(), | 2752 __ JumpIfBlack(regs_.object(), |
| 2764 regs_.scratch0(), | 2753 regs_.scratch0(), |
| 2765 regs_.scratch1(), | 2754 regs_.scratch1(), |
| 2766 &object_is_black, | 2755 &object_is_black, |
| 2767 Label::kNear); | 2756 Label::kNear); |
| 2768 | 2757 |
| 2769 regs_.Restore(masm); | 2758 regs_.Restore(masm); |
| 2770 if (on_no_need == kUpdateRememberedSetOnNoNeedToInformIncrementalMarker) { | 2759 if (on_no_need == kUpdateRememberedSetOnNoNeedToInformIncrementalMarker) { |
| (...skipping 2234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5005 kStackUnwindSpace, nullptr, return_value_operand, | 4994 kStackUnwindSpace, nullptr, return_value_operand, |
| 5006 NULL); | 4995 NULL); |
| 5007 } | 4996 } |
| 5008 | 4997 |
| 5009 #undef __ | 4998 #undef __ |
| 5010 | 4999 |
| 5011 } // namespace internal | 5000 } // namespace internal |
| 5012 } // namespace v8 | 5001 } // namespace v8 |
| 5013 | 5002 |
| 5014 #endif // V8_TARGET_ARCH_X87 | 5003 #endif // V8_TARGET_ARCH_X87 |
| OLD | NEW |