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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 __ Move(f12, a0, a1); | 74 __ Move(f12, a0, a1); |
75 } | 75 } |
76 // Push the double argument. | 76 // Push the double argument. |
77 __ Dsubu(sp, sp, Operand(kDoubleSize)); | 77 __ Dsubu(sp, sp, Operand(kDoubleSize)); |
78 __ sdc1(f12, MemOperand(sp)); | 78 __ sdc1(f12, MemOperand(sp)); |
79 __ Move(source_reg, sp); | 79 __ Move(source_reg, sp); |
80 | 80 |
81 // Save registers make sure they don't get clobbered. | 81 // Save registers make sure they don't get clobbered. |
82 int source_reg_offset = kDoubleSize; | 82 int source_reg_offset = kDoubleSize; |
83 int reg_num = 2; | 83 int reg_num = 2; |
84 const RegisterConfiguration* config = | 84 const RegisterConfiguration* config = RegisterConfiguration::Crankshaft(); |
85 RegisterConfiguration::ArchDefault(RegisterConfiguration::CRANKSHAFT); | |
86 for (; reg_num < config->num_allocatable_general_registers(); ++reg_num) { | 85 for (; reg_num < config->num_allocatable_general_registers(); ++reg_num) { |
87 Register reg = Register::from_code(reg_num); | 86 Register reg = Register::from_code(reg_num); |
88 if (!reg.is(destination_reg)) { | 87 if (!reg.is(destination_reg)) { |
89 __ push(reg); | 88 __ push(reg); |
90 source_reg_offset += kPointerSize; | 89 source_reg_offset += kPointerSize; |
91 } | 90 } |
92 } | 91 } |
93 | 92 |
94 // Re-push the double argument. | 93 // Re-push the double argument. |
95 __ Dsubu(sp, sp, Operand(kDoubleSize)); | 94 __ Dsubu(sp, sp, Operand(kDoubleSize)); |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 false)); | 192 false)); |
194 RunAllTruncationTests( | 193 RunAllTruncationTests( |
195 RunGeneratedCodeCallWrapper, | 194 RunGeneratedCodeCallWrapper, |
196 MakeConvertDToIFuncTrampoline(isolate, | 195 MakeConvertDToIFuncTrampoline(isolate, |
197 source_registers[s], | 196 source_registers[s], |
198 dest_registers[d], | 197 dest_registers[d], |
199 true)); | 198 true)); |
200 } | 199 } |
201 } | 200 } |
202 } | 201 } |
OLD | NEW |