| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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/arm64/codegen-arm64.h" | 5 #include "src/arm64/codegen-arm64.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_ARM64 | 7 #if V8_TARGET_ARCH_ARM64 |
| 8 | 8 |
| 9 #include "src/arm64/simulator-arm64.h" | 9 #include "src/arm64/simulator-arm64.h" |
| 10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 double_temp1, double_temp2, | 57 double_temp1, double_temp2, |
| 58 temp1, temp2, temp3); | 58 temp1, temp2, temp3); |
| 59 // Move the result to the return register. | 59 // Move the result to the return register. |
| 60 masm.Fmov(d0, result); | 60 masm.Fmov(d0, result); |
| 61 masm.Ret(); | 61 masm.Ret(); |
| 62 | 62 |
| 63 CodeDesc desc; | 63 CodeDesc desc; |
| 64 masm.GetCode(&desc); | 64 masm.GetCode(&desc); |
| 65 DCHECK(!RelocInfo::RequiresRelocation(desc)); | 65 DCHECK(!RelocInfo::RequiresRelocation(desc)); |
| 66 | 66 |
| 67 CpuFeatures::FlushICache(buffer, actual_size); | 67 Assembler::FlushICacheWithoutIsolate(buffer, actual_size); |
| 68 base::OS::ProtectCode(buffer, actual_size); | 68 base::OS::ProtectCode(buffer, actual_size); |
| 69 | 69 |
| 70 #if !defined(USE_SIMULATOR) | 70 #if !defined(USE_SIMULATOR) |
| 71 return FUNCTION_CAST<UnaryMathFunction>(buffer); | 71 return FUNCTION_CAST<UnaryMathFunction>(buffer); |
| 72 #else | 72 #else |
| 73 fast_exp_arm64_machine_code = buffer; | 73 fast_exp_arm64_machine_code = buffer; |
| 74 return &fast_exp_simulator; | 74 return &fast_exp_simulator; |
| 75 #endif | 75 #endif |
| 76 } | 76 } |
| 77 | 77 |
| (...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 631 | 631 |
| 632 __ Bind(&done); | 632 __ Bind(&done); |
| 633 } | 633 } |
| 634 | 634 |
| 635 #undef __ | 635 #undef __ |
| 636 | 636 |
| 637 } // namespace internal | 637 } // namespace internal |
| 638 } // namespace v8 | 638 } // namespace v8 |
| 639 | 639 |
| 640 #endif // V8_TARGET_ARCH_ARM64 | 640 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |