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

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

Issue 2407733003: X87: [heap] New heuristics for incremental marking step size. (Closed)
Patch Set: Created 4 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
« 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 // 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
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
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
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