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

Side by Side Diff: src/ppc/macro-assembler-ppc.cc

Issue 2286613002: [heap] MemoryChunk cleanup (Closed)
Patch Set: rebase Created 4 years, 3 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/s390/macro-assembler-s390.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 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 #include <assert.h> // For assert 5 #include <assert.h> // For assert
6 #include <limits.h> // For LONG_MIN, LONG_MAX. 6 #include <limits.h> // For LONG_MIN, LONG_MAX.
7 7
8 #if V8_TARGET_ARCH_PPC 8 #if V8_TARGET_ARCH_PPC
9 9
10 #include "src/base/bits.h" 10 #include "src/base/bits.h"
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 Condition cond) { 275 Condition cond) {
276 DCHECK(Heap::RootCanBeWrittenAfterInitialization(index)); 276 DCHECK(Heap::RootCanBeWrittenAfterInitialization(index));
277 DCHECK(cond == al); 277 DCHECK(cond == al);
278 StoreP(source, MemOperand(kRootRegister, index << kPointerSizeLog2), r0); 278 StoreP(source, MemOperand(kRootRegister, index << kPointerSizeLog2), r0);
279 } 279 }
280 280
281 281
282 void MacroAssembler::InNewSpace(Register object, Register scratch, 282 void MacroAssembler::InNewSpace(Register object, Register scratch,
283 Condition cond, Label* branch) { 283 Condition cond, Label* branch) {
284 DCHECK(cond == eq || cond == ne); 284 DCHECK(cond == eq || cond == ne);
285 const int mask = 285 CheckPageFlag(object, scratch, MemoryChunk::kIsInNewSpaceMask, cond, branch);
286 (1 << MemoryChunk::IN_FROM_SPACE) | (1 << MemoryChunk::IN_TO_SPACE);
287 CheckPageFlag(object, scratch, mask, cond, branch);
288 } 286 }
289 287
290 288
291 void MacroAssembler::RecordWriteField( 289 void MacroAssembler::RecordWriteField(
292 Register object, int offset, Register value, Register dst, 290 Register object, int offset, Register value, Register dst,
293 LinkRegisterStatus lr_status, SaveFPRegsMode save_fp, 291 LinkRegisterStatus lr_status, SaveFPRegsMode save_fp,
294 RememberedSetAction remembered_set_action, SmiCheck smi_check, 292 RememberedSetAction remembered_set_action, SmiCheck smi_check,
295 PointersToHereCheck pointers_to_here_check_for_value) { 293 PointersToHereCheck pointers_to_here_check_for_value) {
296 // First, check if a write barrier is even needed. The tests below 294 // First, check if a write barrier is even needed. The tests below
297 // catch stores of Smis. 295 // catch stores of Smis.
(...skipping 4579 matching lines...) Expand 10 before | Expand all | Expand 10 after
4877 } 4875 }
4878 if (mag.shift > 0) srawi(result, result, mag.shift); 4876 if (mag.shift > 0) srawi(result, result, mag.shift);
4879 ExtractBit(r0, dividend, 31); 4877 ExtractBit(r0, dividend, 31);
4880 add(result, result, r0); 4878 add(result, result, r0);
4881 } 4879 }
4882 4880
4883 } // namespace internal 4881 } // namespace internal
4884 } // namespace v8 4882 } // namespace v8
4885 4883
4886 #endif // V8_TARGET_ARCH_PPC 4884 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/mips64/macro-assembler-mips64.cc ('k') | src/s390/macro-assembler-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698