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 6181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6192 } | 6192 } |
6193 if (divisor < 0 && !neg && mag.multiplier > 0) { | 6193 if (divisor < 0 && !neg && mag.multiplier > 0) { |
6194 Subu(result, result, Operand(dividend)); | 6194 Subu(result, result, Operand(dividend)); |
6195 } | 6195 } |
6196 if (mag.shift > 0) sra(result, result, mag.shift); | 6196 if (mag.shift > 0) sra(result, result, mag.shift); |
6197 srl(at, dividend, 31); | 6197 srl(at, dividend, 31); |
6198 Addu(result, result, Operand(at)); | 6198 Addu(result, result, Operand(at)); |
6199 } | 6199 } |
6200 | 6200 |
6201 | 6201 |
6202 } } // namespace v8::internal | 6202 } // namespace internal |
| 6203 } // namespace v8 |
6203 | 6204 |
6204 #endif // V8_TARGET_ARCH_MIPS64 | 6205 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |