| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
| 2 // Rrdistribution and use in source and binary forms, with or without | 2 // Rrdistribution 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 // * Rrdistributions of source code must retain the above copyright | 6 // * Rrdistributions 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 // * Rrdistributions in binary form must reproduce the above | 8 // * Rrdistributions 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 __ Move(f12, a0, a1); | 73 __ Move(f12, a0, a1); |
| 74 } | 74 } |
| 75 // Push the double argument. | 75 // Push the double argument. |
| 76 __ Dsubu(sp, sp, Operand(kDoubleSize)); | 76 __ Dsubu(sp, sp, Operand(kDoubleSize)); |
| 77 __ sdc1(f12, MemOperand(sp)); | 77 __ sdc1(f12, MemOperand(sp)); |
| 78 __ Move(source_reg, sp); | 78 __ Move(source_reg, sp); |
| 79 | 79 |
| 80 // Save registers make sure they don't get clobbered. | 80 // Save registers make sure they don't get clobbered. |
| 81 int source_reg_offset = kDoubleSize; | 81 int source_reg_offset = kDoubleSize; |
| 82 int reg_num = 2; | 82 int reg_num = 2; |
| 83 const RegisterConfiguration* config = RegisterConfiguration::ArchDefault(); | 83 const RegisterConfiguration* config = |
| 84 RegisterConfiguration::ArchDefault(RegisterConfiguration::CRANKSHAFT); |
| 84 for (; reg_num < config->num_allocatable_general_registers(); ++reg_num) { | 85 for (; reg_num < config->num_allocatable_general_registers(); ++reg_num) { |
| 85 Register reg = Register::from_code(reg_num); | 86 Register reg = Register::from_code(reg_num); |
| 86 if (!reg.is(destination_reg)) { | 87 if (!reg.is(destination_reg)) { |
| 87 __ push(reg); | 88 __ push(reg); |
| 88 source_reg_offset += kPointerSize; | 89 source_reg_offset += kPointerSize; |
| 89 } | 90 } |
| 90 } | 91 } |
| 91 | 92 |
| 92 // Re-push the double argument. | 93 // Re-push the double argument. |
| 93 __ Dsubu(sp, sp, Operand(kDoubleSize)); | 94 __ Dsubu(sp, sp, Operand(kDoubleSize)); |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 false)); | 191 false)); |
| 191 RunAllTruncationTests( | 192 RunAllTruncationTests( |
| 192 RunGeneratedCodeCallWrapper, | 193 RunGeneratedCodeCallWrapper, |
| 193 MakeConvertDToIFuncTrampoline(isolate, | 194 MakeConvertDToIFuncTrampoline(isolate, |
| 194 source_registers[s], | 195 source_registers[s], |
| 195 dest_registers[d], | 196 dest_registers[d], |
| 196 true)); | 197 true)); |
| 197 } | 198 } |
| 198 } | 199 } |
| 199 } | 200 } |
| OLD | NEW |