| 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 1715 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1726 mov_b(Operand(destination, 0), scratch); | 1726 mov_b(Operand(destination, 0), scratch); |
| 1727 inc(source); | 1727 inc(source); |
| 1728 inc(destination); | 1728 inc(destination); |
| 1729 dec(length); | 1729 dec(length); |
| 1730 j(not_zero, &short_loop); | 1730 j(not_zero, &short_loop); |
| 1731 | 1731 |
| 1732 bind(&done); | 1732 bind(&done); |
| 1733 } | 1733 } |
| 1734 | 1734 |
| 1735 | 1735 |
| 1736 void MacroAssembler::InitializeFieldsWithFiller(Register start_offset, | 1736 void MacroAssembler::InitializeFieldsWithFiller(Register current_address, |
| 1737 Register end_offset, | 1737 Register end_address, |
| 1738 Register filler) { | 1738 Register filler) { |
| 1739 Label loop, entry; | 1739 Label loop, entry; |
| 1740 jmp(&entry); | 1740 jmp(&entry); |
| 1741 bind(&loop); | 1741 bind(&loop); |
| 1742 mov(Operand(start_offset, 0), filler); | 1742 mov(Operand(current_address, 0), filler); |
| 1743 add(start_offset, Immediate(kPointerSize)); | 1743 add(current_address, Immediate(kPointerSize)); |
| 1744 bind(&entry); | 1744 bind(&entry); |
| 1745 cmp(start_offset, end_offset); | 1745 cmp(current_address, end_address); |
| 1746 j(below, &loop); | 1746 j(below, &loop); |
| 1747 } | 1747 } |
| 1748 | 1748 |
| 1749 | 1749 |
| 1750 void MacroAssembler::BooleanBitTest(Register object, | 1750 void MacroAssembler::BooleanBitTest(Register object, |
| 1751 int field_offset, | 1751 int field_offset, |
| 1752 int bit_index) { | 1752 int bit_index) { |
| 1753 bit_index += kSmiTagSize + kSmiShiftSize; | 1753 bit_index += kSmiTagSize + kSmiShiftSize; |
| 1754 DCHECK(base::bits::IsPowerOfTwo32(kBitsPerByte)); | 1754 DCHECK(base::bits::IsPowerOfTwo32(kBitsPerByte)); |
| 1755 int byte_index = bit_index / kBitsPerByte; | 1755 int byte_index = bit_index / kBitsPerByte; |
| (...skipping 1391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3147 mov(eax, dividend); | 3147 mov(eax, dividend); |
| 3148 shr(eax, 31); | 3148 shr(eax, 31); |
| 3149 add(edx, eax); | 3149 add(edx, eax); |
| 3150 } | 3150 } |
| 3151 | 3151 |
| 3152 | 3152 |
| 3153 } // namespace internal | 3153 } // namespace internal |
| 3154 } // namespace v8 | 3154 } // namespace v8 |
| 3155 | 3155 |
| 3156 #endif // V8_TARGET_ARCH_IA32 | 3156 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |