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

Side by Side Diff: src/mips64/macro-assembler-mips64.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/mips/macro-assembler-mips.cc ('k') | src/ppc/macro-assembler-ppc.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 #include <limits.h> // For LONG_MIN, LONG_MAX. 5 #include <limits.h> // For LONG_MIN, LONG_MAX.
6 6
7 #if V8_TARGET_ARCH_MIPS64 7 #if V8_TARGET_ARCH_MIPS64
8 8
9 #include "src/base/division-by-constant.h" 9 #include "src/base/division-by-constant.h"
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 int register_offset = SafepointRegisterStackIndex(reg.code()) * kPointerSize; 193 int register_offset = SafepointRegisterStackIndex(reg.code()) * kPointerSize;
194 return MemOperand(sp, doubles_size + register_offset); 194 return MemOperand(sp, doubles_size + register_offset);
195 } 195 }
196 196
197 197
198 void MacroAssembler::InNewSpace(Register object, 198 void MacroAssembler::InNewSpace(Register object,
199 Register scratch, 199 Register scratch,
200 Condition cc, 200 Condition cc,
201 Label* branch) { 201 Label* branch) {
202 DCHECK(cc == eq || cc == ne); 202 DCHECK(cc == eq || cc == ne);
203 const int mask = 203 CheckPageFlag(object, scratch, MemoryChunk::kIsInNewSpaceMask, cc, branch);
204 1 << MemoryChunk::IN_FROM_SPACE | 1 << MemoryChunk::IN_TO_SPACE;
205 CheckPageFlag(object, scratch, mask, cc, branch);
206 } 204 }
207 205
208 206
209 // Clobbers object, dst, value, and ra, if (ra_status == kRAHasBeenSaved) 207 // Clobbers object, dst, value, and ra, if (ra_status == kRAHasBeenSaved)
210 // The register 'object' contains a heap object pointer. The heap object 208 // The register 'object' contains a heap object pointer. The heap object
211 // tag is shifted away. 209 // tag is shifted away.
212 void MacroAssembler::RecordWriteField( 210 void MacroAssembler::RecordWriteField(
213 Register object, 211 Register object,
214 int offset, 212 int offset,
215 Register value, 213 Register value,
(...skipping 7193 matching lines...) Expand 10 before | Expand all | Expand 10 after
7409 if (mag.shift > 0) sra(result, result, mag.shift); 7407 if (mag.shift > 0) sra(result, result, mag.shift);
7410 srl(at, dividend, 31); 7408 srl(at, dividend, 31);
7411 Addu(result, result, Operand(at)); 7409 Addu(result, result, Operand(at));
7412 } 7410 }
7413 7411
7414 7412
7415 } // namespace internal 7413 } // namespace internal
7416 } // namespace v8 7414 } // namespace v8
7417 7415
7418 #endif // V8_TARGET_ARCH_MIPS64 7416 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips/macro-assembler-mips.cc ('k') | src/ppc/macro-assembler-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698