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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 | 130 |
131 // Restore callee save registers. | 131 // Restore callee save registers. |
132 __ MultiPop(kCalleeSaved | ra.bit()); | 132 __ MultiPop(kCalleeSaved | ra.bit()); |
133 | 133 |
134 Label ok1; | 134 Label ok1; |
135 __ Branch(&ok1, eq, v0, Operand(zero_reg)); | 135 __ Branch(&ok1, eq, v0, Operand(zero_reg)); |
136 __ bind(&ok1); | 136 __ bind(&ok1); |
137 __ Ret(); | 137 __ Ret(); |
138 | 138 |
139 CodeDesc desc; | 139 CodeDesc desc; |
140 masm.GetCode(&desc); | 140 masm.GetCode(isolate, &desc); |
141 Assembler::FlushICache(isolate, buffer, actual_size); | 141 Assembler::FlushICache(isolate, buffer, actual_size); |
142 return (reinterpret_cast<ConvertDToIFunc>( | 142 return (reinterpret_cast<ConvertDToIFunc>( |
143 reinterpret_cast<intptr_t>(buffer))); | 143 reinterpret_cast<intptr_t>(buffer))); |
144 } | 144 } |
145 | 145 |
146 #undef __ | 146 #undef __ |
147 | 147 |
148 | 148 |
149 static Isolate* GetIsolateFrom(LocalContext* context) { | 149 static Isolate* GetIsolateFrom(LocalContext* context) { |
150 return reinterpret_cast<Isolate*>((*context)->GetIsolate()); | 150 return reinterpret_cast<Isolate*>((*context)->GetIsolate()); |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 false)); | 192 false)); |
193 RunAllTruncationTests( | 193 RunAllTruncationTests( |
194 RunGeneratedCodeCallWrapper, | 194 RunGeneratedCodeCallWrapper, |
195 MakeConvertDToIFuncTrampoline(isolate, | 195 MakeConvertDToIFuncTrampoline(isolate, |
196 source_registers[s], | 196 source_registers[s], |
197 dest_registers[d], | 197 dest_registers[d], |
198 true)); | 198 true)); |
199 } | 199 } |
200 } | 200 } |
201 } | 201 } |
OLD | NEW |