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

Side by Side Diff: src/mips/macro-assembler-mips.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/ia32/macro-assembler-ia32.cc ('k') | src/mips64/macro-assembler-mips64.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_MIPS 7 #if V8_TARGET_ARCH_MIPS
8 8
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/base/division-by-constant.h" 10 #include "src/base/division-by-constant.h"
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 int register_offset = SafepointRegisterStackIndex(reg.code()) * kPointerSize; 177 int register_offset = SafepointRegisterStackIndex(reg.code()) * kPointerSize;
178 return MemOperand(sp, doubles_size + register_offset); 178 return MemOperand(sp, doubles_size + register_offset);
179 } 179 }
180 180
181 181
182 void MacroAssembler::InNewSpace(Register object, 182 void MacroAssembler::InNewSpace(Register object,
183 Register scratch, 183 Register scratch,
184 Condition cc, 184 Condition cc,
185 Label* branch) { 185 Label* branch) {
186 DCHECK(cc == eq || cc == ne); 186 DCHECK(cc == eq || cc == ne);
187 const int mask = 187 CheckPageFlag(object, scratch, MemoryChunk::kIsInNewSpaceMask, cc, branch);
188 1 << MemoryChunk::IN_FROM_SPACE | 1 << MemoryChunk::IN_TO_SPACE;
189 CheckPageFlag(object, scratch, mask, cc, branch);
190 } 188 }
191 189
192 190
193 // Clobbers object, dst, value, and ra, if (ra_status == kRAHasBeenSaved) 191 // Clobbers object, dst, value, and ra, if (ra_status == kRAHasBeenSaved)
194 // The register 'object' contains a heap object pointer. The heap object 192 // The register 'object' contains a heap object pointer. The heap object
195 // tag is shifted away. 193 // tag is shifted away.
196 void MacroAssembler::RecordWriteField( 194 void MacroAssembler::RecordWriteField(
197 Register object, 195 Register object,
198 int offset, 196 int offset,
199 Register value, 197 Register value,
(...skipping 6782 matching lines...) Expand 10 before | Expand all | Expand 10 after
6982 if (mag.shift > 0) sra(result, result, mag.shift); 6980 if (mag.shift > 0) sra(result, result, mag.shift);
6983 srl(at, dividend, 31); 6981 srl(at, dividend, 31);
6984 Addu(result, result, Operand(at)); 6982 Addu(result, result, Operand(at));
6985 } 6983 }
6986 6984
6987 6985
6988 } // namespace internal 6986 } // namespace internal
6989 } // namespace v8 6987 } // namespace v8
6990 6988
6991 #endif // V8_TARGET_ARCH_MIPS 6989 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/ia32/macro-assembler-ia32.cc ('k') | src/mips64/macro-assembler-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698