| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/ppc/codegen-ppc.h" | 5 #include "src/ppc/codegen-ppc.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_PPC | 7 #if V8_TARGET_ARCH_PPC |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 // Called from C | 33 // Called from C |
| 34 __ function_descriptor(); | 34 __ function_descriptor(); |
| 35 | 35 |
| 36 __ MovFromFloatParameter(d1); | 36 __ MovFromFloatParameter(d1); |
| 37 __ fsqrt(d1, d1); | 37 __ fsqrt(d1, d1); |
| 38 __ MovToFloatResult(d1); | 38 __ MovToFloatResult(d1); |
| 39 __ Ret(); | 39 __ Ret(); |
| 40 | 40 |
| 41 CodeDesc desc; | 41 CodeDesc desc; |
| 42 masm.GetCode(&desc); | 42 masm.GetCode(&desc); |
| 43 DCHECK(ABI_USES_FUNCTION_DESCRIPTORS || !RelocInfo::RequiresRelocation(desc)); | 43 DCHECK(ABI_USES_FUNCTION_DESCRIPTORS || |
| 44 !RelocInfo::RequiresRelocation(isolate, desc)); |
| 44 | 45 |
| 45 Assembler::FlushICache(isolate, buffer, actual_size); | 46 Assembler::FlushICache(isolate, buffer, actual_size); |
| 46 base::OS::ProtectCode(buffer, actual_size); | 47 base::OS::ProtectCode(buffer, actual_size); |
| 47 return FUNCTION_CAST<UnaryMathFunctionWithIsolate>(buffer); | 48 return FUNCTION_CAST<UnaryMathFunctionWithIsolate>(buffer); |
| 48 #endif | 49 #endif |
| 49 } | 50 } |
| 50 | 51 |
| 51 #undef __ | 52 #undef __ |
| 52 | 53 |
| 53 | 54 |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 patcher.masm()->Jump(r3); | 232 patcher.masm()->Jump(r3); |
| 232 for (int i = 0; i < kCodeAgingSequenceNops; i++) { | 233 for (int i = 0; i < kCodeAgingSequenceNops; i++) { |
| 233 patcher.masm()->nop(); | 234 patcher.masm()->nop(); |
| 234 } | 235 } |
| 235 } | 236 } |
| 236 } | 237 } |
| 237 } // namespace internal | 238 } // namespace internal |
| 238 } // namespace v8 | 239 } // namespace v8 |
| 239 | 240 |
| 240 #endif // V8_TARGET_ARCH_PPC | 241 #endif // V8_TARGET_ARCH_PPC |
| OLD | NEW |