| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 t7, | 179 t7, |
| 180 f0); | 180 f0); |
| 181 __ sw(a0, MemOperand(t3)); // mantissa | 181 __ sw(a0, MemOperand(t3)); // mantissa |
| 182 __ sw(a1, MemOperand(t3, kIntSize)); // exponent | 182 __ sw(a1, MemOperand(t3, kIntSize)); // exponent |
| 183 __ Addu(t3, t3, kDoubleSize); | 183 __ Addu(t3, t3, kDoubleSize); |
| 184 } | 184 } |
| 185 __ Branch(&entry); | 185 __ Branch(&entry); |
| 186 | 186 |
| 187 // Hole found, store the-hole NaN. | 187 // Hole found, store the-hole NaN. |
| 188 __ bind(&convert_hole); | 188 __ bind(&convert_hole); |
| 189 if (FLAG_debug_code) { |
| 190 __ LoadRoot(at, Heap::kTheHoleValueRootIndex); |
| 191 __ Assert(eq, "object found in smi-only array", at, Operand(t5)); |
| 192 } |
| 189 __ sw(t0, MemOperand(t3)); // mantissa | 193 __ sw(t0, MemOperand(t3)); // mantissa |
| 190 __ sw(t1, MemOperand(t3, kIntSize)); // exponent | 194 __ sw(t1, MemOperand(t3, kIntSize)); // exponent |
| 191 __ Addu(t3, t3, kDoubleSize); | 195 __ Addu(t3, t3, kDoubleSize); |
| 192 | 196 |
| 193 __ bind(&entry); | 197 __ bind(&entry); |
| 194 __ Branch(&loop, lt, t3, Operand(t2)); | 198 __ Branch(&loop, lt, t3, Operand(t2)); |
| 195 | 199 |
| 196 if (!fpu_supported) __ Pop(a1, a0); | 200 if (!fpu_supported) __ Pop(a1, a0); |
| 197 __ pop(ra); | 201 __ pop(ra); |
| 198 } | 202 } |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 EMIT_REMEMBERED_SET, | 308 EMIT_REMEMBERED_SET, |
| 305 OMIT_SMI_CHECK); | 309 OMIT_SMI_CHECK); |
| 306 __ pop(ra); | 310 __ pop(ra); |
| 307 } | 311 } |
| 308 | 312 |
| 309 #undef __ | 313 #undef __ |
| 310 | 314 |
| 311 } } // namespace v8::internal | 315 } } // namespace v8::internal |
| 312 | 316 |
| 313 #endif // V8_TARGET_ARCH_MIPS | 317 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |