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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 // Call through to the actual stub | 87 // Call through to the actual stub |
88 __ call(start, RelocInfo::EXTERNAL_REFERENCE); | 88 __ call(start, RelocInfo::EXTERNAL_REFERENCE); |
89 | 89 |
90 __ add(esp, Immediate(kDoubleSize)); | 90 __ add(esp, Immediate(kDoubleSize)); |
91 | 91 |
92 // Make sure no registers have been unexpectedly clobbered | 92 // Make sure no registers have been unexpectedly clobbered |
93 for (--reg_num; reg_num >= 0; --reg_num) { | 93 for (--reg_num; reg_num >= 0; --reg_num) { |
94 Register reg = Register::from_code(reg_num); | 94 Register reg = Register::from_code(reg_num); |
95 if (!reg.is(esp) && !reg.is(ebp) && !reg.is(destination_reg)) { | 95 if (!reg.is(esp) && !reg.is(ebp) && !reg.is(destination_reg)) { |
96 __ cmp(reg, MemOperand(esp, 0)); | 96 __ cmp(reg, MemOperand(esp, 0)); |
97 __ Assert(equal, "register was clobbered"); | 97 __ Assert(equal, kRegisterWasClobbered); |
98 __ add(esp, Immediate(kPointerSize)); | 98 __ add(esp, Immediate(kPointerSize)); |
99 } | 99 } |
100 } | 100 } |
101 | 101 |
102 __ mov(eax, destination_reg); | 102 __ mov(eax, destination_reg); |
103 | 103 |
104 __ pop(edi); | 104 __ pop(edi); |
105 __ pop(esi); | 105 __ pop(esi); |
106 __ pop(edx); | 106 __ pop(edx); |
107 __ pop(ecx); | 107 __ pop(ecx); |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 RunAllTruncationTests(MakeConvertDToIFuncTrampoline(isolate, esi, edx)); | 172 RunAllTruncationTests(MakeConvertDToIFuncTrampoline(isolate, esi, edx)); |
173 RunAllTruncationTests(MakeConvertDToIFuncTrampoline(isolate, esi, edi)); | 173 RunAllTruncationTests(MakeConvertDToIFuncTrampoline(isolate, esi, edi)); |
174 RunAllTruncationTests(MakeConvertDToIFuncTrampoline(isolate, esi, esi)); | 174 RunAllTruncationTests(MakeConvertDToIFuncTrampoline(isolate, esi, esi)); |
175 RunAllTruncationTests(MakeConvertDToIFuncTrampoline(isolate, edi, eax)); | 175 RunAllTruncationTests(MakeConvertDToIFuncTrampoline(isolate, edi, eax)); |
176 RunAllTruncationTests(MakeConvertDToIFuncTrampoline(isolate, edi, ebx)); | 176 RunAllTruncationTests(MakeConvertDToIFuncTrampoline(isolate, edi, ebx)); |
177 RunAllTruncationTests(MakeConvertDToIFuncTrampoline(isolate, edi, ecx)); | 177 RunAllTruncationTests(MakeConvertDToIFuncTrampoline(isolate, edi, ecx)); |
178 RunAllTruncationTests(MakeConvertDToIFuncTrampoline(isolate, edi, edx)); | 178 RunAllTruncationTests(MakeConvertDToIFuncTrampoline(isolate, edi, edx)); |
179 RunAllTruncationTests(MakeConvertDToIFuncTrampoline(isolate, edi, edi)); | 179 RunAllTruncationTests(MakeConvertDToIFuncTrampoline(isolate, edi, edi)); |
180 RunAllTruncationTests(MakeConvertDToIFuncTrampoline(isolate, edi, esi)); | 180 RunAllTruncationTests(MakeConvertDToIFuncTrampoline(isolate, edi, esi)); |
181 } | 181 } |
OLD | NEW |