| OLD | NEW |
| 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_IA32 | 5 #if V8_TARGET_ARCH_IA32 |
| 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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 Register reg = saved_regs[i]; | 166 Register reg = saved_regs[i]; |
| 167 if (!reg.is(exclusion1) && !reg.is(exclusion2) && !reg.is(exclusion3)) { | 167 if (!reg.is(exclusion1) && !reg.is(exclusion2) && !reg.is(exclusion3)) { |
| 168 pop(reg); | 168 pop(reg); |
| 169 } | 169 } |
| 170 } | 170 } |
| 171 } | 171 } |
| 172 | 172 |
| 173 void MacroAssembler::InNewSpace(Register object, Register scratch, Condition cc, | 173 void MacroAssembler::InNewSpace(Register object, Register scratch, Condition cc, |
| 174 Label* condition_met, | 174 Label* condition_met, |
| 175 Label::Distance distance) { | 175 Label::Distance distance) { |
| 176 const int mask = | 176 CheckPageFlag(object, scratch, MemoryChunk::kIsInNewSpaceMask, cc, |
| 177 (1 << MemoryChunk::IN_FROM_SPACE) | (1 << MemoryChunk::IN_TO_SPACE); | 177 condition_met, distance); |
| 178 CheckPageFlag(object, scratch, mask, cc, condition_met, distance); | |
| 179 } | 178 } |
| 180 | 179 |
| 181 | 180 |
| 182 void MacroAssembler::RememberedSetHelper( | 181 void MacroAssembler::RememberedSetHelper( |
| 183 Register object, // Only used for debug checks. | 182 Register object, // Only used for debug checks. |
| 184 Register addr, | 183 Register addr, |
| 185 Register scratch, | 184 Register scratch, |
| 186 SaveFPRegsMode save_fp, | 185 SaveFPRegsMode save_fp, |
| 187 MacroAssembler::RememberedSetFinalAction and_then) { | 186 MacroAssembler::RememberedSetFinalAction and_then) { |
| 188 Label done; | 187 Label done; |
| (...skipping 3269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3458 mov(eax, dividend); | 3457 mov(eax, dividend); |
| 3459 shr(eax, 31); | 3458 shr(eax, 31); |
| 3460 add(edx, eax); | 3459 add(edx, eax); |
| 3461 } | 3460 } |
| 3462 | 3461 |
| 3463 | 3462 |
| 3464 } // namespace internal | 3463 } // namespace internal |
| 3465 } // namespace v8 | 3464 } // namespace v8 |
| 3466 | 3465 |
| 3467 #endif // V8_TARGET_ARCH_IA32 | 3466 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |