| 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 3112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3123 __ Cvt_d_uw(double_scratch, double_scratch, single_scratch); | 3123 __ Cvt_d_uw(double_scratch, double_scratch, single_scratch); |
| 3124 } | 3124 } |
| 3125 | 3125 |
| 3126 // Store the result. | 3126 // Store the result. |
| 3127 __ mov(v0, heap_number_result); | 3127 __ mov(v0, heap_number_result); |
| 3128 __ sdc1(double_scratch, FieldMemOperand(v0, HeapNumber::kValueOffset)); | 3128 __ sdc1(double_scratch, FieldMemOperand(v0, HeapNumber::kValueOffset)); |
| 3129 __ Ret(); | 3129 __ Ret(); |
| 3130 } else { | 3130 } else { |
| 3131 // Tail call that writes the int32 in a2 to the heap number in v0, using | 3131 // Tail call that writes the int32 in a2 to the heap number in v0, using |
| 3132 // a3 and a0 as scratch. v0 is preserved and returned. | 3132 // a3 and a0 as scratch. v0 is preserved and returned. |
| 3133 __ mov(a0, t1); | 3133 __ mov(v0, t1); |
| 3134 WriteInt32ToHeapNumberStub stub(a2, v0, a3, a0); | 3134 WriteInt32ToHeapNumberStub stub(a2, v0, a3, a0); |
| 3135 __ TailCallStub(&stub); | 3135 __ TailCallStub(&stub); |
| 3136 } | 3136 } |
| 3137 | 3137 |
| 3138 break; | 3138 break; |
| 3139 } | 3139 } |
| 3140 | 3140 |
| 3141 default: | 3141 default: |
| 3142 UNREACHABLE(); | 3142 UNREACHABLE(); |
| 3143 } | 3143 } |
| (...skipping 4530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7674 __ Ret(USE_DELAY_SLOT); | 7674 __ Ret(USE_DELAY_SLOT); |
| 7675 __ mov(v0, a0); | 7675 __ mov(v0, a0); |
| 7676 } | 7676 } |
| 7677 | 7677 |
| 7678 | 7678 |
| 7679 #undef __ | 7679 #undef __ |
| 7680 | 7680 |
| 7681 } } // namespace v8::internal | 7681 } } // namespace v8::internal |
| 7682 | 7682 |
| 7683 #endif // V8_TARGET_ARCH_MIPS | 7683 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |