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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 if (!destination_reg.is(r0)) | 126 if (!destination_reg.is(r0)) |
127 __ mov(r0, destination_reg); | 127 __ mov(r0, destination_reg); |
128 | 128 |
129 // Restore callee save registers. | 129 // Restore callee save registers. |
130 __ Pop(lr); | 130 __ Pop(lr); |
131 __ Pop(r7, r6, r5, r4); | 131 __ Pop(r7, r6, r5, r4); |
132 | 132 |
133 __ Ret(0); | 133 __ Ret(0); |
134 | 134 |
135 CodeDesc desc; | 135 CodeDesc desc; |
136 masm.GetCode(&desc); | 136 masm.GetCode(isolate, &desc); |
137 Assembler::FlushICache(isolate, buffer, actual_size); | 137 Assembler::FlushICache(isolate, buffer, actual_size); |
138 return (reinterpret_cast<ConvertDToIFunc>( | 138 return (reinterpret_cast<ConvertDToIFunc>( |
139 reinterpret_cast<intptr_t>(buffer))); | 139 reinterpret_cast<intptr_t>(buffer))); |
140 } | 140 } |
141 | 141 |
142 #undef __ | 142 #undef __ |
143 | 143 |
144 | 144 |
145 static Isolate* GetIsolateFrom(LocalContext* context) { | 145 static Isolate* GetIsolateFrom(LocalContext* context) { |
146 return reinterpret_cast<Isolate*>((*context)->GetIsolate()); | 146 return reinterpret_cast<Isolate*>((*context)->GetIsolate()); |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 false)); | 183 false)); |
184 RunAllTruncationTests( | 184 RunAllTruncationTests( |
185 RunGeneratedCodeCallWrapper, | 185 RunGeneratedCodeCallWrapper, |
186 MakeConvertDToIFuncTrampoline(isolate, | 186 MakeConvertDToIFuncTrampoline(isolate, |
187 source_registers[s], | 187 source_registers[s], |
188 dest_registers[d], | 188 dest_registers[d], |
189 true)); | 189 true)); |
190 } | 190 } |
191 } | 191 } |
192 } | 192 } |
OLD | NEW |