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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 __ Move(f12, a0, a1); | 72 __ Move(f12, a0, a1); |
73 } | 73 } |
74 // Push the double argument. | 74 // Push the double argument. |
75 __ Subu(sp, sp, Operand(kDoubleSize)); | 75 __ Subu(sp, sp, Operand(kDoubleSize)); |
76 __ sdc1(f12, MemOperand(sp)); | 76 __ sdc1(f12, MemOperand(sp)); |
77 __ Move(source_reg, sp); | 77 __ Move(source_reg, sp); |
78 | 78 |
79 // Save registers make sure they don't get clobbered. | 79 // Save registers make sure they don't get clobbered. |
80 int source_reg_offset = kDoubleSize; | 80 int source_reg_offset = kDoubleSize; |
81 int reg_num = 2; | 81 int reg_num = 2; |
82 for (;reg_num < Register::NumAllocatableRegisters(); ++reg_num) { | 82 for (; reg_num < Register::NumAllocatableRegisters(); ++reg_num) { |
83 Register reg = Register::from_code(reg_num); | 83 Register reg = Register::from_code(reg_num); |
84 if (!reg.is(destination_reg)) { | 84 if (!reg.is(destination_reg)) { |
85 __ push(reg); | 85 __ push(reg); |
86 source_reg_offset += kPointerSize; | 86 source_reg_offset += kPointerSize; |
87 } | 87 } |
88 } | 88 } |
89 | 89 |
90 // Re-push the double argument. | 90 // Re-push the double argument. |
91 __ Subu(sp, sp, Operand(kDoubleSize)); | 91 __ Subu(sp, sp, Operand(kDoubleSize)); |
92 __ sdc1(f12, MemOperand(sp)); | 92 __ sdc1(f12, MemOperand(sp)); |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 false)); | 187 false)); |
188 RunAllTruncationTests( | 188 RunAllTruncationTests( |
189 RunGeneratedCodeCallWrapper, | 189 RunGeneratedCodeCallWrapper, |
190 MakeConvertDToIFuncTrampoline(isolate, | 190 MakeConvertDToIFuncTrampoline(isolate, |
191 source_registers[s], | 191 source_registers[s], |
192 dest_registers[d], | 192 dest_registers[d], |
193 true)); | 193 true)); |
194 } | 194 } |
195 } | 195 } |
196 } | 196 } |
OLD | NEW |