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 510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
521 | 521 |
522 // hash = hash * 2057; | 522 // hash = hash * 2057; |
523 sll(scratch, reg0, 11); | 523 sll(scratch, reg0, 11); |
524 sll(at, reg0, 3); | 524 sll(at, reg0, 3); |
525 addu(reg0, reg0, at); | 525 addu(reg0, reg0, at); |
526 addu(reg0, reg0, scratch); | 526 addu(reg0, reg0, scratch); |
527 | 527 |
528 // hash = hash ^ (hash >> 16); | 528 // hash = hash ^ (hash >> 16); |
529 srl(at, reg0, 16); | 529 srl(at, reg0, 16); |
530 xor_(reg0, reg0, at); | 530 xor_(reg0, reg0, at); |
| 531 And(reg0, reg0, Operand(0x3fffffff)); |
531 } | 532 } |
532 | 533 |
533 | 534 |
534 void MacroAssembler::LoadFromNumberDictionary(Label* miss, | 535 void MacroAssembler::LoadFromNumberDictionary(Label* miss, |
535 Register elements, | 536 Register elements, |
536 Register key, | 537 Register key, |
537 Register result, | 538 Register result, |
538 Register reg0, | 539 Register reg0, |
539 Register reg1, | 540 Register reg1, |
540 Register reg2) { | 541 Register reg2) { |
(...skipping 5653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6194 } | 6195 } |
6195 if (mag.shift > 0) sra(result, result, mag.shift); | 6196 if (mag.shift > 0) sra(result, result, mag.shift); |
6196 srl(at, dividend, 31); | 6197 srl(at, dividend, 31); |
6197 Addu(result, result, Operand(at)); | 6198 Addu(result, result, Operand(at)); |
6198 } | 6199 } |
6199 | 6200 |
6200 | 6201 |
6201 } } // namespace v8::internal | 6202 } } // namespace v8::internal |
6202 | 6203 |
6203 #endif // V8_TARGET_ARCH_MIPS64 | 6204 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |