| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 __ push(esi); | 63 __ push(esi); |
| 64 __ push(edi); | 64 __ push(edi); |
| 65 | 65 |
| 66 if (!source_reg.is(esp)) { | 66 if (!source_reg.is(esp)) { |
| 67 __ lea(source_reg, MemOperand(esp, 6 * kPointerSize - offset)); | 67 __ lea(source_reg, MemOperand(esp, 6 * kPointerSize - offset)); |
| 68 } | 68 } |
| 69 | 69 |
| 70 int param_offset = 7 * kPointerSize; | 70 int param_offset = 7 * kPointerSize; |
| 71 // Save registers make sure they don't get clobbered. | 71 // Save registers make sure they don't get clobbered. |
| 72 int reg_num = 0; | 72 int reg_num = 0; |
| 73 for (;reg_num < Register::NumAllocatableRegisters(); ++reg_num) { | 73 for (; reg_num < Register::NumAllocatableRegisters(); ++reg_num) { |
| 74 Register reg = Register::FromAllocationIndex(reg_num); | 74 Register reg = Register::FromAllocationIndex(reg_num); |
| 75 if (!reg.is(esp) && !reg.is(ebp) && !reg.is(destination_reg)) { | 75 if (!reg.is(esp) && !reg.is(ebp) && !reg.is(destination_reg)) { |
| 76 __ push(reg); | 76 __ push(reg); |
| 77 param_offset += kPointerSize; | 77 param_offset += kPointerSize; |
| 78 } | 78 } |
| 79 } | 79 } |
| 80 | 80 |
| 81 // Re-push the double argument | 81 // Re-push the double argument |
| 82 __ push(MemOperand(esp, param_offset)); | 82 __ push(MemOperand(esp, param_offset)); |
| 83 __ push(MemOperand(esp, param_offset)); | 83 __ push(MemOperand(esp, param_offset)); |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 | 139 |
| 140 for (size_t s = 0; s < sizeof(source_registers) / sizeof(Register); s++) { | 140 for (size_t s = 0; s < sizeof(source_registers) / sizeof(Register); s++) { |
| 141 for (size_t d = 0; d < sizeof(dest_registers) / sizeof(Register); d++) { | 141 for (size_t d = 0; d < sizeof(dest_registers) / sizeof(Register); d++) { |
| 142 RunAllTruncationTests( | 142 RunAllTruncationTests( |
| 143 MakeConvertDToIFuncTrampoline(isolate, | 143 MakeConvertDToIFuncTrampoline(isolate, |
| 144 source_registers[s], | 144 source_registers[s], |
| 145 dest_registers[d])); | 145 dest_registers[d])); |
| 146 } | 146 } |
| 147 } | 147 } |
| 148 } | 148 } |
| OLD | NEW |