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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 __ Mov(x0, destination_reg); | 122 __ Mov(x0, destination_reg); |
123 | 123 |
124 // Restore callee save registers. | 124 // Restore callee save registers. |
125 __ Mov(csp, jssp); | 125 __ Mov(csp, jssp); |
126 __ SetStackPointer(csp); | 126 __ SetStackPointer(csp); |
127 __ PopCalleeSavedRegisters(); | 127 __ PopCalleeSavedRegisters(); |
128 | 128 |
129 __ Ret(); | 129 __ Ret(); |
130 | 130 |
131 CodeDesc desc; | 131 CodeDesc desc; |
132 masm.GetCode(&desc); | 132 masm.GetCode(isolate, &desc); |
133 Assembler::FlushICache(isolate, buffer, actual_size); | 133 Assembler::FlushICache(isolate, buffer, actual_size); |
134 return (reinterpret_cast<ConvertDToIFunc>( | 134 return (reinterpret_cast<ConvertDToIFunc>( |
135 reinterpret_cast<intptr_t>(buffer))); | 135 reinterpret_cast<intptr_t>(buffer))); |
136 } | 136 } |
137 | 137 |
138 #undef __ | 138 #undef __ |
139 | 139 |
140 | 140 |
141 static Isolate* GetIsolateFrom(LocalContext* context) { | 141 static Isolate* GetIsolateFrom(LocalContext* context) { |
142 return reinterpret_cast<Isolate*>((*context)->GetIsolate()); | 142 return reinterpret_cast<Isolate*>((*context)->GetIsolate()); |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 false)); | 188 false)); |
189 RunAllTruncationTests( | 189 RunAllTruncationTests( |
190 RunGeneratedCodeCallWrapper, | 190 RunGeneratedCodeCallWrapper, |
191 MakeConvertDToIFuncTrampoline(isolate, | 191 MakeConvertDToIFuncTrampoline(isolate, |
192 source_registers[s], | 192 source_registers[s], |
193 dest_registers[d], | 193 dest_registers[d], |
194 true)); | 194 true)); |
195 } | 195 } |
196 } | 196 } |
197 } | 197 } |
OLD | NEW |