| 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_MIPS | 9 #if V8_TARGET_ARCH_MIPS |
| 10 | 10 |
| (...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 516 | 516 |
| 517 // hash = hash * 2057; | 517 // hash = hash * 2057; |
| 518 sll(scratch, reg0, 11); | 518 sll(scratch, reg0, 11); |
| 519 sll(at, reg0, 3); | 519 sll(at, reg0, 3); |
| 520 addu(reg0, reg0, at); | 520 addu(reg0, reg0, at); |
| 521 addu(reg0, reg0, scratch); | 521 addu(reg0, reg0, scratch); |
| 522 | 522 |
| 523 // hash = hash ^ (hash >> 16); | 523 // hash = hash ^ (hash >> 16); |
| 524 srl(at, reg0, 16); | 524 srl(at, reg0, 16); |
| 525 xor_(reg0, reg0, at); | 525 xor_(reg0, reg0, at); |
| 526 And(reg0, reg0, Operand(0x3fffffff)); |
| 526 } | 527 } |
| 527 | 528 |
| 528 | 529 |
| 529 void MacroAssembler::LoadFromNumberDictionary(Label* miss, | 530 void MacroAssembler::LoadFromNumberDictionary(Label* miss, |
| 530 Register elements, | 531 Register elements, |
| 531 Register key, | 532 Register key, |
| 532 Register result, | 533 Register result, |
| 533 Register reg0, | 534 Register reg0, |
| 534 Register reg1, | 535 Register reg1, |
| 535 Register reg2) { | 536 Register reg2) { |
| (...skipping 5588 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6124 } | 6125 } |
| 6125 if (mag.shift > 0) sra(result, result, mag.shift); | 6126 if (mag.shift > 0) sra(result, result, mag.shift); |
| 6126 srl(at, dividend, 31); | 6127 srl(at, dividend, 31); |
| 6127 Addu(result, result, Operand(at)); | 6128 Addu(result, result, Operand(at)); |
| 6128 } | 6129 } |
| 6129 | 6130 |
| 6130 | 6131 |
| 6131 } } // namespace v8::internal | 6132 } } // namespace v8::internal |
| 6132 | 6133 |
| 6133 #endif // V8_TARGET_ARCH_MIPS | 6134 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |