| 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/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
| 10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
| (...skipping 1262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1273 Context::SECURITY_TOKEN_INDEX * kPointerSize; | 1273 Context::SECURITY_TOKEN_INDEX * kPointerSize; |
| 1274 mov(scratch1, FieldOperand(scratch1, token_offset)); | 1274 mov(scratch1, FieldOperand(scratch1, token_offset)); |
| 1275 cmp(scratch1, FieldOperand(scratch2, token_offset)); | 1275 cmp(scratch1, FieldOperand(scratch2, token_offset)); |
| 1276 j(not_equal, miss); | 1276 j(not_equal, miss); |
| 1277 | 1277 |
| 1278 bind(&same_contexts); | 1278 bind(&same_contexts); |
| 1279 } | 1279 } |
| 1280 | 1280 |
| 1281 | 1281 |
| 1282 // Compute the hash code from the untagged key. This must be kept in sync with | 1282 // Compute the hash code from the untagged key. This must be kept in sync with |
| 1283 // ComputeIntegerHash in utils.h and KeyedLoadGenericElementStub in | 1283 // ComputeIntegerHash in utils.h and KeyedLoadGenericStub in |
| 1284 // code-stub-hydrogen.cc | 1284 // code-stub-hydrogen.cc |
| 1285 // | 1285 // |
| 1286 // Note: r0 will contain hash code | 1286 // Note: r0 will contain hash code |
| 1287 void MacroAssembler::GetNumberHash(Register r0, Register scratch) { | 1287 void MacroAssembler::GetNumberHash(Register r0, Register scratch) { |
| 1288 // Xor original key with a seed. | 1288 // Xor original key with a seed. |
| 1289 if (serializer_enabled()) { | 1289 if (serializer_enabled()) { |
| 1290 ExternalReference roots_array_start = | 1290 ExternalReference roots_array_start = |
| 1291 ExternalReference::roots_array_start(isolate()); | 1291 ExternalReference::roots_array_start(isolate()); |
| 1292 mov(scratch, Immediate(Heap::kHashSeedRootIndex)); | 1292 mov(scratch, Immediate(Heap::kHashSeedRootIndex)); |
| 1293 mov(scratch, | 1293 mov(scratch, |
| (...skipping 2136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3430 if (ms.shift() > 0) sar(edx, ms.shift()); | 3430 if (ms.shift() > 0) sar(edx, ms.shift()); |
| 3431 mov(eax, dividend); | 3431 mov(eax, dividend); |
| 3432 shr(eax, 31); | 3432 shr(eax, 31); |
| 3433 add(edx, eax); | 3433 add(edx, eax); |
| 3434 } | 3434 } |
| 3435 | 3435 |
| 3436 | 3436 |
| 3437 } } // namespace v8::internal | 3437 } } // namespace v8::internal |
| 3438 | 3438 |
| 3439 #endif // V8_TARGET_ARCH_IA32 | 3439 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |