| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 | 68 |
| 69 #if !defined(USE_SIMULATOR) | 69 #if !defined(USE_SIMULATOR) |
| 70 return FUNCTION_CAST<UnaryMathFunctionWithIsolate>(buffer); | 70 return FUNCTION_CAST<UnaryMathFunctionWithIsolate>(buffer); |
| 71 #else | 71 #else |
| 72 fast_exp_arm64_machine_code = buffer; | 72 fast_exp_arm64_machine_code = buffer; |
| 73 return &fast_exp_simulator; | 73 return &fast_exp_simulator; |
| 74 #endif | 74 #endif |
| 75 } | 75 } |
| 76 | 76 |
| 77 | 77 |
| 78 UnaryMathFunction CreateSqrtFunction() { | 78 UnaryMathFunctionWithIsolate CreateSqrtFunction(Isolate* isolate) { |
| 79 return &std::sqrt; | 79 return nullptr; |
| 80 } | 80 } |
| 81 | 81 |
| 82 | 82 |
| 83 // ------------------------------------------------------------------------- | 83 // ------------------------------------------------------------------------- |
| 84 // Platform-specific RuntimeCallHelper functions. | 84 // Platform-specific RuntimeCallHelper functions. |
| 85 | 85 |
| 86 void StubRuntimeCallHelper::BeforeCall(MacroAssembler* masm) const { | 86 void StubRuntimeCallHelper::BeforeCall(MacroAssembler* masm) const { |
| 87 masm->EnterFrame(StackFrame::INTERNAL); | 87 masm->EnterFrame(StackFrame::INTERNAL); |
| 88 DCHECK(!masm->has_frame()); | 88 DCHECK(!masm->has_frame()); |
| 89 masm->set_has_frame(true); | 89 masm->set_has_frame(true); |
| (...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 630 | 630 |
| 631 __ Bind(&done); | 631 __ Bind(&done); |
| 632 } | 632 } |
| 633 | 633 |
| 634 #undef __ | 634 #undef __ |
| 635 | 635 |
| 636 } // namespace internal | 636 } // namespace internal |
| 637 } // namespace v8 | 637 } // namespace v8 |
| 638 | 638 |
| 639 #endif // V8_TARGET_ARCH_ARM64 | 639 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |