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

Side by Side Diff: src/x87/macro-assembler-x87.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/x64/macro-assembler-x64.cc ('k') | no next file » | 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_X87 5 #if V8_TARGET_ARCH_X87
6 6
7 #include "src/base/bits.h" 7 #include "src/base/bits.h"
8 #include "src/base/division-by-constant.h" 8 #include "src/base/division-by-constant.h"
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 Register reg = saved_regs[i]; 160 Register reg = saved_regs[i];
161 if (!reg.is(exclusion1) && !reg.is(exclusion2) && !reg.is(exclusion3)) { 161 if (!reg.is(exclusion1) && !reg.is(exclusion2) && !reg.is(exclusion3)) {
162 pop(reg); 162 pop(reg);
163 } 163 }
164 } 164 }
165 } 165 }
166 166
167 void MacroAssembler::InNewSpace(Register object, Register scratch, Condition cc, 167 void MacroAssembler::InNewSpace(Register object, Register scratch, Condition cc,
168 Label* condition_met, 168 Label* condition_met,
169 Label::Distance distance) { 169 Label::Distance distance) {
170 const int mask = 170 CheckPageFlag(object, scratch, MemoryChunk::kIsInNewSpaceMask, cc,
171 (1 << MemoryChunk::IN_FROM_SPACE) | (1 << MemoryChunk::IN_TO_SPACE); 171 condition_met, distance);
172 CheckPageFlag(object, scratch, mask, cc, condition_met, distance);
173 } 172 }
174 173
175 174
176 void MacroAssembler::RememberedSetHelper( 175 void MacroAssembler::RememberedSetHelper(
177 Register object, // Only used for debug checks. 176 Register object, // Only used for debug checks.
178 Register addr, Register scratch, SaveFPRegsMode save_fp, 177 Register addr, Register scratch, SaveFPRegsMode save_fp,
179 MacroAssembler::RememberedSetFinalAction and_then) { 178 MacroAssembler::RememberedSetFinalAction and_then) {
180 Label done; 179 Label done;
181 if (emit_debug_code()) { 180 if (emit_debug_code()) {
182 Label ok; 181 Label ok;
(...skipping 3122 matching lines...) Expand 10 before | Expand all | Expand 10 after
3305 mov(eax, dividend); 3304 mov(eax, dividend);
3306 shr(eax, 31); 3305 shr(eax, 31);
3307 add(edx, eax); 3306 add(edx, eax);
3308 } 3307 }
3309 3308
3310 3309
3311 } // namespace internal 3310 } // namespace internal
3312 } // namespace v8 3311 } // namespace v8
3313 3312
3314 #endif // V8_TARGET_ARCH_X87 3313 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/x64/macro-assembler-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698