| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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/s390/codegen-s390.h" | 5 #include "src/s390/codegen-s390.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_S390 | 7 #if V8_TARGET_ARCH_S390 |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 MacroAssembler masm(isolate, buffer, static_cast<int>(actual_size), | 29 MacroAssembler masm(isolate, buffer, static_cast<int>(actual_size), |
| 30 CodeObjectRequired::kNo); | 30 CodeObjectRequired::kNo); |
| 31 | 31 |
| 32 __ MovFromFloatParameter(d0); | 32 __ MovFromFloatParameter(d0); |
| 33 __ sqdbr(d0, d0); | 33 __ sqdbr(d0, d0); |
| 34 __ MovToFloatResult(d0); | 34 __ MovToFloatResult(d0); |
| 35 __ Ret(); | 35 __ Ret(); |
| 36 | 36 |
| 37 CodeDesc desc; | 37 CodeDesc desc; |
| 38 masm.GetCode(&desc); | 38 masm.GetCode(isolate, &desc); |
| 39 DCHECK(ABI_USES_FUNCTION_DESCRIPTORS || | 39 DCHECK(ABI_USES_FUNCTION_DESCRIPTORS || |
| 40 !RelocInfo::RequiresRelocation(isolate, desc)); | 40 !RelocInfo::RequiresRelocation(isolate, desc)); |
| 41 | 41 |
| 42 Assembler::FlushICache(isolate, buffer, actual_size); | 42 Assembler::FlushICache(isolate, buffer, actual_size); |
| 43 base::OS::ProtectCode(buffer, actual_size); | 43 base::OS::ProtectCode(buffer, actual_size); |
| 44 return FUNCTION_CAST<UnaryMathFunctionWithIsolate>(buffer); | 44 return FUNCTION_CAST<UnaryMathFunctionWithIsolate>(buffer); |
| 45 #endif | 45 #endif |
| 46 } | 46 } |
| 47 | 47 |
| 48 #undef __ | 48 #undef __ |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 // (kNoCodeAgeSequenceLength - kCodeAgingSequenceLength) bytes. | 232 // (kNoCodeAgeSequenceLength - kCodeAgingSequenceLength) bytes. |
| 233 patcher.masm()->nop(); // 2-byte nops(). | 233 patcher.masm()->nop(); // 2-byte nops(). |
| 234 } | 234 } |
| 235 } | 235 } |
| 236 } | 236 } |
| 237 | 237 |
| 238 } // namespace internal | 238 } // namespace internal |
| 239 } // namespace v8 | 239 } // namespace v8 |
| 240 | 240 |
| 241 #endif // V8_TARGET_ARCH_S390 | 241 #endif // V8_TARGET_ARCH_S390 |
| OLD | NEW |