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_MIPS64 | 9 #if V8_TARGET_ARCH_MIPS64 |
10 | 10 |
(...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
594 Branch(miss, ne, key, Operand(at)); | 594 Branch(miss, ne, key, Operand(at)); |
595 } | 595 } |
596 } | 596 } |
597 | 597 |
598 bind(&done); | 598 bind(&done); |
599 // Check that the value is a field property. | 599 // Check that the value is a field property. |
600 // reg2: elements + (index * kPointerSize). | 600 // reg2: elements + (index * kPointerSize). |
601 const int kDetailsOffset = | 601 const int kDetailsOffset = |
602 SeededNumberDictionary::kElementsStartOffset + 2 * kPointerSize; | 602 SeededNumberDictionary::kElementsStartOffset + 2 * kPointerSize; |
603 ld(reg1, FieldMemOperand(reg2, kDetailsOffset)); | 603 ld(reg1, FieldMemOperand(reg2, kDetailsOffset)); |
604 DCHECK_EQ(FIELD, 0); | 604 DCHECK_EQ(DATA, 0); |
605 And(at, reg1, Operand(Smi::FromInt(PropertyDetails::TypeField::kMask))); | 605 And(at, reg1, Operand(Smi::FromInt(PropertyDetails::TypeField::kMask))); |
606 Branch(miss, ne, at, Operand(zero_reg)); | 606 Branch(miss, ne, at, Operand(zero_reg)); |
607 | 607 |
608 // Get the value at the masked, scaled index and return. | 608 // Get the value at the masked, scaled index and return. |
609 const int kValueOffset = | 609 const int kValueOffset = |
610 SeededNumberDictionary::kElementsStartOffset + kPointerSize; | 610 SeededNumberDictionary::kElementsStartOffset + kPointerSize; |
611 ld(result, FieldMemOperand(reg2, kValueOffset)); | 611 ld(result, FieldMemOperand(reg2, kValueOffset)); |
612 } | 612 } |
613 | 613 |
614 | 614 |
(...skipping 5701 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6316 } | 6316 } |
6317 if (mag.shift > 0) sra(result, result, mag.shift); | 6317 if (mag.shift > 0) sra(result, result, mag.shift); |
6318 srl(at, dividend, 31); | 6318 srl(at, dividend, 31); |
6319 Addu(result, result, Operand(at)); | 6319 Addu(result, result, Operand(at)); |
6320 } | 6320 } |
6321 | 6321 |
6322 | 6322 |
6323 } } // namespace v8::internal | 6323 } } // namespace v8::internal |
6324 | 6324 |
6325 #endif // V8_TARGET_ARCH_MIPS64 | 6325 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |