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 18 matching lines...) Expand all Loading... |
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(&desc); |
39 DCHECK(ABI_USES_FUNCTION_DESCRIPTORS || !RelocInfo::RequiresRelocation(desc)); | 39 DCHECK(ABI_USES_FUNCTION_DESCRIPTORS || |
| 40 !RelocInfo::RequiresRelocation(isolate, desc)); |
40 | 41 |
41 Assembler::FlushICache(isolate, buffer, actual_size); | 42 Assembler::FlushICache(isolate, buffer, actual_size); |
42 base::OS::ProtectCode(buffer, actual_size); | 43 base::OS::ProtectCode(buffer, actual_size); |
43 return FUNCTION_CAST<UnaryMathFunctionWithIsolate>(buffer); | 44 return FUNCTION_CAST<UnaryMathFunctionWithIsolate>(buffer); |
44 #endif | 45 #endif |
45 } | 46 } |
46 | 47 |
47 #undef __ | 48 #undef __ |
48 | 49 |
49 // ------------------------------------------------------------------------- | 50 // ------------------------------------------------------------------------- |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 // (kNoCodeAgeSequenceLength - kCodeAgingSequenceLength) bytes. | 232 // (kNoCodeAgeSequenceLength - kCodeAgingSequenceLength) bytes. |
232 patcher.masm()->nop(); // 2-byte nops(). | 233 patcher.masm()->nop(); // 2-byte nops(). |
233 } | 234 } |
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_S390 | 241 #endif // V8_TARGET_ARCH_S390 |
OLD | NEW |