OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 2073 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2084 r2 = scratch; | 2084 r2 = scratch; |
2085 li(r2, rt); | 2085 li(r2, rt); |
2086 sltu(scratch, rs, r2); | 2086 sltu(scratch, rs, r2); |
2087 offset = shifted_branch_offset(L, false); | 2087 offset = shifted_branch_offset(L, false); |
2088 bne(scratch, zero_reg, offset); | 2088 bne(scratch, zero_reg, offset); |
2089 } | 2089 } |
2090 break; | 2090 break; |
2091 case Uless_equal: | 2091 case Uless_equal: |
2092 if (rt.imm32_ == 0) { | 2092 if (rt.imm32_ == 0) { |
2093 offset = shifted_branch_offset(L, false); | 2093 offset = shifted_branch_offset(L, false); |
2094 b(offset); | 2094 beq(rs, zero_reg, offset); |
2095 } else { | 2095 } else { |
2096 ASSERT(!scratch.is(rs)); | 2096 ASSERT(!scratch.is(rs)); |
2097 r2 = scratch; | 2097 r2 = scratch; |
2098 li(r2, rt); | 2098 li(r2, rt); |
2099 sltu(scratch, r2, rs); | 2099 sltu(scratch, r2, rs); |
2100 offset = shifted_branch_offset(L, false); | 2100 offset = shifted_branch_offset(L, false); |
2101 beq(scratch, zero_reg, offset); | 2101 beq(scratch, zero_reg, offset); |
2102 } | 2102 } |
2103 break; | 2103 break; |
2104 default: | 2104 default: |
(...skipping 3669 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5774 } | 5774 } |
5775 if (ms.shift() > 0) sra(result, result, ms.shift()); | 5775 if (ms.shift() > 0) sra(result, result, ms.shift()); |
5776 srl(at, dividend, 31); | 5776 srl(at, dividend, 31); |
5777 Addu(result, result, Operand(at)); | 5777 Addu(result, result, Operand(at)); |
5778 } | 5778 } |
5779 | 5779 |
5780 | 5780 |
5781 } } // namespace v8::internal | 5781 } } // namespace v8::internal |
5782 | 5782 |
5783 #endif // V8_TARGET_ARCH_MIPS | 5783 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |