| 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 <limits.h> // For LONG_MIN, LONG_MAX. | 5 #include <limits.h> // For LONG_MIN, LONG_MAX. |
| 6 | 6 |
| 7 #include "src/v8.h" | 7 #include "src/v8.h" |
| 8 | 8 |
| 9 #if V8_TARGET_ARCH_ARM | 9 #if V8_TARGET_ARCH_ARM |
| 10 | 10 |
| (...skipping 1586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1597 ldr(scratch, FieldMemOperand(scratch, token_offset)); | 1597 ldr(scratch, FieldMemOperand(scratch, token_offset)); |
| 1598 ldr(ip, FieldMemOperand(ip, token_offset)); | 1598 ldr(ip, FieldMemOperand(ip, token_offset)); |
| 1599 cmp(scratch, Operand(ip)); | 1599 cmp(scratch, Operand(ip)); |
| 1600 b(ne, miss); | 1600 b(ne, miss); |
| 1601 | 1601 |
| 1602 bind(&same_contexts); | 1602 bind(&same_contexts); |
| 1603 } | 1603 } |
| 1604 | 1604 |
| 1605 | 1605 |
| 1606 // Compute the hash code from the untagged key. This must be kept in sync with | 1606 // Compute the hash code from the untagged key. This must be kept in sync with |
| 1607 // ComputeIntegerHash in utils.h and KeyedLoadGenericElementStub in | 1607 // ComputeIntegerHash in utils.h and KeyedLoadGenericStub in |
| 1608 // code-stub-hydrogen.cc | 1608 // code-stub-hydrogen.cc |
| 1609 void MacroAssembler::GetNumberHash(Register t0, Register scratch) { | 1609 void MacroAssembler::GetNumberHash(Register t0, Register scratch) { |
| 1610 // First of all we assign the hash seed to scratch. | 1610 // First of all we assign the hash seed to scratch. |
| 1611 LoadRoot(scratch, Heap::kHashSeedRootIndex); | 1611 LoadRoot(scratch, Heap::kHashSeedRootIndex); |
| 1612 SmiUntag(scratch); | 1612 SmiUntag(scratch); |
| 1613 | 1613 |
| 1614 // Xor original key with a seed. | 1614 // Xor original key with a seed. |
| 1615 eor(t0, t0, Operand(scratch)); | 1615 eor(t0, t0, Operand(scratch)); |
| 1616 | 1616 |
| 1617 // Compute the hash code from the untagged key. This must be kept in sync | 1617 // Compute the hash code from the untagged key. This must be kept in sync |
| (...skipping 2484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4102 sub(result, result, Operand(dividend)); | 4102 sub(result, result, Operand(dividend)); |
| 4103 } | 4103 } |
| 4104 if (ms.shift() > 0) mov(result, Operand(result, ASR, ms.shift())); | 4104 if (ms.shift() > 0) mov(result, Operand(result, ASR, ms.shift())); |
| 4105 add(result, result, Operand(dividend, LSR, 31)); | 4105 add(result, result, Operand(dividend, LSR, 31)); |
| 4106 } | 4106 } |
| 4107 | 4107 |
| 4108 | 4108 |
| 4109 } } // namespace v8::internal | 4109 } } // namespace v8::internal |
| 4110 | 4110 |
| 4111 #endif // V8_TARGET_ARCH_ARM | 4111 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |