| 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 #include "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_IA32 | 7 #if V8_TARGET_ARCH_IA32 |
| 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 1132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1143 // hash = hash ^ (hash >> 4); | 1143 // hash = hash ^ (hash >> 4); |
| 1144 mov(scratch, r0); | 1144 mov(scratch, r0); |
| 1145 shr(scratch, 4); | 1145 shr(scratch, 4); |
| 1146 xor_(r0, scratch); | 1146 xor_(r0, scratch); |
| 1147 // hash = hash * 2057; | 1147 // hash = hash * 2057; |
| 1148 imul(r0, r0, 2057); | 1148 imul(r0, r0, 2057); |
| 1149 // hash = hash ^ (hash >> 16); | 1149 // hash = hash ^ (hash >> 16); |
| 1150 mov(scratch, r0); | 1150 mov(scratch, r0); |
| 1151 shr(scratch, 16); | 1151 shr(scratch, 16); |
| 1152 xor_(r0, scratch); | 1152 xor_(r0, scratch); |
| 1153 and_(r0, 0x3fffffff); |
| 1153 } | 1154 } |
| 1154 | 1155 |
| 1155 | 1156 |
| 1156 | 1157 |
| 1157 void MacroAssembler::LoadFromNumberDictionary(Label* miss, | 1158 void MacroAssembler::LoadFromNumberDictionary(Label* miss, |
| 1158 Register elements, | 1159 Register elements, |
| 1159 Register key, | 1160 Register key, |
| 1160 Register r0, | 1161 Register r0, |
| 1161 Register r1, | 1162 Register r1, |
| 1162 Register r2, | 1163 Register r2, |
| (...skipping 2059 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3222 if (mag.shift > 0) sar(edx, mag.shift); | 3223 if (mag.shift > 0) sar(edx, mag.shift); |
| 3223 mov(eax, dividend); | 3224 mov(eax, dividend); |
| 3224 shr(eax, 31); | 3225 shr(eax, 31); |
| 3225 add(edx, eax); | 3226 add(edx, eax); |
| 3226 } | 3227 } |
| 3227 | 3228 |
| 3228 | 3229 |
| 3229 } } // namespace v8::internal | 3230 } } // namespace v8::internal |
| 3230 | 3231 |
| 3231 #endif // V8_TARGET_ARCH_IA32 | 3232 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |