| 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" |
| 11 #include "src/macro-assembler.h" | 11 #include "src/macro-assembler.h" |
| 12 | 12 |
| 13 namespace v8 { | 13 namespace v8 { |
| 14 namespace internal { | 14 namespace internal { |
| 15 | 15 |
| 16 #define __ ACCESS_MASM(masm) | 16 #define __ ACCESS_MASM(masm) |
| 17 | 17 |
| 18 #if defined(USE_SIMULATOR) | 18 #if defined(USE_SIMULATOR) |
| 19 byte* fast_exp_arm64_machine_code = nullptr; | 19 byte* fast_exp_arm64_machine_code = nullptr; |
| 20 double fast_exp_simulator(double x, Isolate* isolate) { | 20 double fast_exp_simulator(double x, Isolate* isolate) { |
| 21 Simulator * simulator = Simulator::current(isolate); | 21 Simulator* simulator = Simulator::current(isolate); |
| 22 Simulator::CallArgument args[] = { | 22 Simulator::CallArgument args[] = { |
| 23 Simulator::CallArgument(x), | 23 Simulator::CallArgument(x), |
| 24 Simulator::CallArgument::End() | 24 Simulator::CallArgument::End() |
| 25 }; | 25 }; |
| 26 return simulator->CallDouble(fast_exp_arm64_machine_code, args); | 26 return simulator->CallDouble(fast_exp_arm64_machine_code, args); |
| 27 } | 27 } |
| 28 #endif | 28 #endif |
| 29 | 29 |
| 30 | 30 |
| 31 UnaryMathFunctionWithIsolate CreateExpFunction(Isolate* isolate) { | 31 UnaryMathFunctionWithIsolate CreateExpFunction(Isolate* isolate) { |
| (...skipping 599 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 |