Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(169)

Side by Side Diff: src/mips/code-stubs-mips.cc

Issue 10977070: MIPS: Make the speed of incremental marking depend also on the rate at which we are hitting expensi… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased on r12737 Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 7615 matching lines...) Expand 10 before | Expand all | Expand 10 after
7626 7626
7627 7627
7628 void RecordWriteStub::CheckNeedsToInformIncrementalMarker( 7628 void RecordWriteStub::CheckNeedsToInformIncrementalMarker(
7629 MacroAssembler* masm, 7629 MacroAssembler* masm,
7630 OnNoNeedToInformIncrementalMarker on_no_need, 7630 OnNoNeedToInformIncrementalMarker on_no_need,
7631 Mode mode) { 7631 Mode mode) {
7632 Label on_black; 7632 Label on_black;
7633 Label need_incremental; 7633 Label need_incremental;
7634 Label need_incremental_pop_scratch; 7634 Label need_incremental_pop_scratch;
7635 7635
7636 __ And(regs_.scratch0(), regs_.object(), Operand(~Page::kPageAlignmentMask));
7637 __ lw(regs_.scratch1(),
7638 MemOperand(regs_.scratch0(),
7639 MemoryChunk::kWriteBarrierCounterOffset));
7640 __ Subu(regs_.scratch1(), regs_.scratch1(), Operand(1));
7641 __ sw(regs_.scratch1(),
7642 MemOperand(regs_.scratch0(),
7643 MemoryChunk::kWriteBarrierCounterOffset));
7644 __ Branch(&need_incremental, lt, regs_.scratch1(), Operand(zero_reg));
7645
7636 // Let's look at the color of the object: If it is not black we don't have 7646 // Let's look at the color of the object: If it is not black we don't have
7637 // to inform the incremental marker. 7647 // to inform the incremental marker.
7638 __ JumpIfBlack(regs_.object(), regs_.scratch0(), regs_.scratch1(), &on_black); 7648 __ JumpIfBlack(regs_.object(), regs_.scratch0(), regs_.scratch1(), &on_black);
7639 7649
7640 regs_.Restore(masm); 7650 regs_.Restore(masm);
7641 if (on_no_need == kUpdateRememberedSetOnNoNeedToInformIncrementalMarker) { 7651 if (on_no_need == kUpdateRememberedSetOnNoNeedToInformIncrementalMarker) {
7642 __ RememberedSetHelper(object_, 7652 __ RememberedSetHelper(object_,
7643 address_, 7653 address_,
7644 value_, 7654 value_,
7645 save_fp_regs_mode_, 7655 save_fp_regs_mode_,
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
7822 __ Pop(ra, t1, a1); 7832 __ Pop(ra, t1, a1);
7823 __ Ret(); 7833 __ Ret();
7824 } 7834 }
7825 7835
7826 7836
7827 #undef __ 7837 #undef __
7828 7838
7829 } } // namespace v8::internal 7839 } } // namespace v8::internal
7830 7840
7831 #endif // V8_TARGET_ARCH_MIPS 7841 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698