| 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_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 1682 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1693   mov_b(Operand(destination, 0), scratch); |  1693   mov_b(Operand(destination, 0), scratch); | 
|  1694   inc(source); |  1694   inc(source); | 
|  1695   inc(destination); |  1695   inc(destination); | 
|  1696   dec(length); |  1696   dec(length); | 
|  1697   j(not_zero, &short_loop); |  1697   j(not_zero, &short_loop); | 
|  1698  |  1698  | 
|  1699   bind(&done); |  1699   bind(&done); | 
|  1700 } |  1700 } | 
|  1701  |  1701  | 
|  1702  |  1702  | 
|  1703 void MacroAssembler::InitializeFieldsWithFiller(Register start_offset, |  1703 void MacroAssembler::InitializeFieldsWithFiller(Register current_address, | 
|  1704                                                 Register end_offset, |  1704                                                 Register end_address, | 
|  1705                                                 Register filler) { |  1705                                                 Register filler) { | 
|  1706   Label loop, entry; |  1706   Label loop, entry; | 
|  1707   jmp(&entry); |  1707   jmp(&entry); | 
|  1708   bind(&loop); |  1708   bind(&loop); | 
|  1709   mov(Operand(start_offset, 0), filler); |  1709   mov(Operand(current_address, 0), filler); | 
|  1710   add(start_offset, Immediate(kPointerSize)); |  1710   add(current_address, Immediate(kPointerSize)); | 
|  1711   bind(&entry); |  1711   bind(&entry); | 
|  1712   cmp(start_offset, end_offset); |  1712   cmp(current_address, end_address); | 
|  1713   j(below, &loop); |  1713   j(below, &loop); | 
|  1714 } |  1714 } | 
|  1715  |  1715  | 
|  1716  |  1716  | 
|  1717 void MacroAssembler::BooleanBitTest(Register object, |  1717 void MacroAssembler::BooleanBitTest(Register object, | 
|  1718                                     int field_offset, |  1718                                     int field_offset, | 
|  1719                                     int bit_index) { |  1719                                     int bit_index) { | 
|  1720   bit_index += kSmiTagSize + kSmiShiftSize; |  1720   bit_index += kSmiTagSize + kSmiShiftSize; | 
|  1721   DCHECK(base::bits::IsPowerOfTwo32(kBitsPerByte)); |  1721   DCHECK(base::bits::IsPowerOfTwo32(kBitsPerByte)); | 
|  1722   int byte_index = bit_index / kBitsPerByte; |  1722   int byte_index = bit_index / kBitsPerByte; | 
| (...skipping 1288 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  3011   mov(eax, dividend); |  3011   mov(eax, dividend); | 
|  3012   shr(eax, 31); |  3012   shr(eax, 31); | 
|  3013   add(edx, eax); |  3013   add(edx, eax); | 
|  3014 } |  3014 } | 
|  3015  |  3015  | 
|  3016  |  3016  | 
|  3017 }  // namespace internal |  3017 }  // namespace internal | 
|  3018 }  // namespace v8 |  3018 }  // namespace v8 | 
|  3019  |  3019  | 
|  3020 #endif  // V8_TARGET_ARCH_X87 |  3020 #endif  // V8_TARGET_ARCH_X87 | 
| OLD | NEW |