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

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

Issue 1542113002: Do not mark from native code. Check color and call incremental marker instead. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 12 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 | « src/mips64/macro-assembler-mips64.cc ('k') | src/ppc/macro-assembler-ppc.h » ('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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_PPC 5 #if V8_TARGET_ARCH_PPC
6 6
7 #include "src/base/bits.h" 7 #include "src/base/bits.h"
8 #include "src/bootstrapper.h" 8 #include "src/bootstrapper.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 4214 matching lines...) Expand 10 before | Expand all | Expand 10 after
4225 regs_.scratch1(), // Scratch. 4225 regs_.scratch1(), // Scratch.
4226 MemoryChunk::kSkipEvacuationSlotsRecordingMask, eq, 4226 MemoryChunk::kSkipEvacuationSlotsRecordingMask, eq,
4227 &need_incremental); 4227 &need_incremental);
4228 4228
4229 __ bind(&ensure_not_white); 4229 __ bind(&ensure_not_white);
4230 } 4230 }
4231 4231
4232 // We need extra registers for this, so we push the object and the address 4232 // We need extra registers for this, so we push the object and the address
4233 // register temporarily. 4233 // register temporarily.
4234 __ Push(regs_.object(), regs_.address()); 4234 __ Push(regs_.object(), regs_.address());
4235 __ EnsureNotWhite(regs_.scratch0(), // The value. 4235 __ JumpIfWhite(regs_.scratch0(), // The value.
4236 regs_.scratch1(), // Scratch. 4236 regs_.scratch1(), // Scratch.
4237 regs_.object(), // Scratch. 4237 regs_.object(), // Scratch.
4238 regs_.address(), // Scratch. 4238 regs_.address(), // Scratch.
4239 &need_incremental_pop_scratch); 4239 &need_incremental_pop_scratch);
4240 __ Pop(regs_.object(), regs_.address()); 4240 __ Pop(regs_.object(), regs_.address());
4241 4241
4242 regs_.Restore(masm); 4242 regs_.Restore(masm);
4243 if (on_no_need == kUpdateRememberedSetOnNoNeedToInformIncrementalMarker) { 4243 if (on_no_need == kUpdateRememberedSetOnNoNeedToInformIncrementalMarker) {
4244 __ RememberedSetHelper(object(), address(), value(), save_fp_regs_mode(), 4244 __ RememberedSetHelper(object(), address(), value(), save_fp_regs_mode(),
4245 MacroAssembler::kReturnAtEnd); 4245 MacroAssembler::kReturnAtEnd);
4246 } else { 4246 } else {
4247 __ Ret(); 4247 __ Ret();
4248 } 4248 }
4249 4249
(...skipping 1397 matching lines...) Expand 10 before | Expand all | Expand 10 after
5647 kStackUnwindSpace, NULL, 5647 kStackUnwindSpace, NULL,
5648 MemOperand(fp, 6 * kPointerSize), NULL); 5648 MemOperand(fp, 6 * kPointerSize), NULL);
5649 } 5649 }
5650 5650
5651 5651
5652 #undef __ 5652 #undef __
5653 } // namespace internal 5653 } // namespace internal
5654 } // namespace v8 5654 } // namespace v8
5655 5655
5656 #endif // V8_TARGET_ARCH_PPC 5656 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/mips64/macro-assembler-mips64.cc ('k') | src/ppc/macro-assembler-ppc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698