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

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

Issue 2359903002: [heap] New heuristics for incremental marking step size. (Closed)
Patch Set: use space iterator 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 | src/arm64/code-stubs-arm64.cc » ('j') | 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_ARM 5 #if V8_TARGET_ARCH_ARM
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 3220 matching lines...) Expand 10 before | Expand all | Expand 10 after
3231 3231
3232 3232
3233 void RecordWriteStub::CheckNeedsToInformIncrementalMarker( 3233 void RecordWriteStub::CheckNeedsToInformIncrementalMarker(
3234 MacroAssembler* masm, 3234 MacroAssembler* masm,
3235 OnNoNeedToInformIncrementalMarker on_no_need, 3235 OnNoNeedToInformIncrementalMarker on_no_need,
3236 Mode mode) { 3236 Mode mode) {
3237 Label on_black; 3237 Label on_black;
3238 Label need_incremental; 3238 Label need_incremental;
3239 Label need_incremental_pop_scratch; 3239 Label need_incremental_pop_scratch;
3240 3240
3241 __ and_(regs_.scratch0(), regs_.object(), Operand(~Page::kPageAlignmentMask));
3242 __ ldr(regs_.scratch1(),
3243 MemOperand(regs_.scratch0(),
3244 MemoryChunk::kWriteBarrierCounterOffset));
3245 __ sub(regs_.scratch1(), regs_.scratch1(), Operand(1), SetCC);
3246 __ str(regs_.scratch1(),
3247 MemOperand(regs_.scratch0(),
3248 MemoryChunk::kWriteBarrierCounterOffset));
3249 __ b(mi, &need_incremental);
3250
3251 // Let's look at the color of the object: If it is not black we don't have 3241 // Let's look at the color of the object: If it is not black we don't have
3252 // to inform the incremental marker. 3242 // to inform the incremental marker.
3253 __ JumpIfBlack(regs_.object(), regs_.scratch0(), regs_.scratch1(), &on_black); 3243 __ JumpIfBlack(regs_.object(), regs_.scratch0(), regs_.scratch1(), &on_black);
3254 3244
3255 regs_.Restore(masm); 3245 regs_.Restore(masm);
3256 if (on_no_need == kUpdateRememberedSetOnNoNeedToInformIncrementalMarker) { 3246 if (on_no_need == kUpdateRememberedSetOnNoNeedToInformIncrementalMarker) {
3257 __ RememberedSetHelper(object(), address(), value(), save_fp_regs_mode(), 3247 __ RememberedSetHelper(object(), address(), value(), save_fp_regs_mode(),
3258 MacroAssembler::kReturnAtEnd); 3248 MacroAssembler::kReturnAtEnd);
3259 } else { 3249 } else {
3260 __ Ret(); 3250 __ Ret();
(...skipping 1916 matching lines...) Expand 10 before | Expand all | Expand 10 after
5177 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, 5167 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref,
5178 kStackUnwindSpace, NULL, return_value_operand, NULL); 5168 kStackUnwindSpace, NULL, return_value_operand, NULL);
5179 } 5169 }
5180 5170
5181 #undef __ 5171 #undef __
5182 5172
5183 } // namespace internal 5173 } // namespace internal
5184 } // namespace v8 5174 } // namespace v8
5185 5175
5186 #endif // V8_TARGET_ARCH_ARM 5176 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm64/code-stubs-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698