OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 7413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7424 | 7424 |
7425 | 7425 |
7426 void RecordWriteStub::CheckNeedsToInformIncrementalMarker( | 7426 void RecordWriteStub::CheckNeedsToInformIncrementalMarker( |
7427 MacroAssembler* masm, | 7427 MacroAssembler* masm, |
7428 OnNoNeedToInformIncrementalMarker on_no_need, | 7428 OnNoNeedToInformIncrementalMarker on_no_need, |
7429 Mode mode) { | 7429 Mode mode) { |
7430 Label on_black; | 7430 Label on_black; |
7431 Label need_incremental; | 7431 Label need_incremental; |
7432 Label need_incremental_pop_scratch; | 7432 Label need_incremental_pop_scratch; |
7433 | 7433 |
| 7434 __ and_(regs_.scratch0(), regs_.object(), Operand(~Page::kPageAlignmentMask)); |
| 7435 __ ldr(regs_.scratch1(), |
| 7436 MemOperand(regs_.scratch0(), |
| 7437 MemoryChunk::kWriteBarrierCounterOffset)); |
| 7438 __ sub(regs_.scratch1(), Immediate(1), SetCC); |
| 7439 __ str(regs_.scratch1(), |
| 7440 MemOperand(regs_.scratch0(), |
| 7441 MemoryChunk::kWriteBarrierCounterOffset)); |
| 7442 __ b(mi, &need_incremental); |
| 7443 |
7434 // Let's look at the color of the object: If it is not black we don't have | 7444 // Let's look at the color of the object: If it is not black we don't have |
7435 // to inform the incremental marker. | 7445 // to inform the incremental marker. |
7436 __ JumpIfBlack(regs_.object(), regs_.scratch0(), regs_.scratch1(), &on_black); | 7446 __ JumpIfBlack(regs_.object(), regs_.scratch0(), regs_.scratch1(), &on_black); |
7437 | 7447 |
7438 regs_.Restore(masm); | 7448 regs_.Restore(masm); |
7439 if (on_no_need == kUpdateRememberedSetOnNoNeedToInformIncrementalMarker) { | 7449 if (on_no_need == kUpdateRememberedSetOnNoNeedToInformIncrementalMarker) { |
7440 __ RememberedSetHelper(object_, | 7450 __ RememberedSetHelper(object_, |
7441 address_, | 7451 address_, |
7442 value_, | 7452 value_, |
7443 save_fp_regs_mode_, | 7453 save_fp_regs_mode_, |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7613 | 7623 |
7614 __ Pop(lr, r5, r1); | 7624 __ Pop(lr, r5, r1); |
7615 __ Ret(); | 7625 __ Ret(); |
7616 } | 7626 } |
7617 | 7627 |
7618 #undef __ | 7628 #undef __ |
7619 | 7629 |
7620 } } // namespace v8::internal | 7630 } } // namespace v8::internal |
7621 | 7631 |
7622 #endif // V8_TARGET_ARCH_ARM | 7632 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |