OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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/x87/codegen-x87.h" | 5 #include "src/x87/codegen-x87.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_X87 | 7 #if V8_TARGET_ARCH_X87 |
8 | 8 |
9 #include "src/codegen.h" | 9 #include "src/codegen.h" |
10 #include "src/heap/heap.h" | 10 #include "src/heap/heap.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 | 26 |
27 void StubRuntimeCallHelper::AfterCall(MacroAssembler* masm) const { | 27 void StubRuntimeCallHelper::AfterCall(MacroAssembler* masm) const { |
28 masm->LeaveFrame(StackFrame::INTERNAL); | 28 masm->LeaveFrame(StackFrame::INTERNAL); |
29 DCHECK(masm->has_frame()); | 29 DCHECK(masm->has_frame()); |
30 masm->set_has_frame(false); | 30 masm->set_has_frame(false); |
31 } | 31 } |
32 | 32 |
33 | 33 |
34 #define __ masm. | 34 #define __ masm. |
35 | 35 |
36 UnaryMathFunctionWithIsolate CreateExpFunction(Isolate* isolate) { | |
37 return nullptr; | |
38 } | |
39 | |
40 | 36 |
41 UnaryMathFunctionWithIsolate CreateSqrtFunction(Isolate* isolate) { | 37 UnaryMathFunctionWithIsolate CreateSqrtFunction(Isolate* isolate) { |
42 size_t actual_size; | 38 size_t actual_size; |
43 // Allocate buffer in executable space. | 39 // Allocate buffer in executable space. |
44 byte* buffer = | 40 byte* buffer = |
45 static_cast<byte*>(base::OS::Allocate(1 * KB, &actual_size, true)); | 41 static_cast<byte*>(base::OS::Allocate(1 * KB, &actual_size, true)); |
46 if (buffer == nullptr) return nullptr; | 42 if (buffer == nullptr) return nullptr; |
47 | 43 |
48 MacroAssembler masm(isolate, buffer, static_cast<int>(actual_size), | 44 MacroAssembler masm(isolate, buffer, static_cast<int>(actual_size), |
49 CodeObjectRequired::kNo); | 45 CodeObjectRequired::kNo); |
(...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
645 CodePatcher patcher(isolate, sequence, young_length); | 641 CodePatcher patcher(isolate, sequence, young_length); |
646 patcher.masm()->call(stub->instruction_start(), RelocInfo::NONE32); | 642 patcher.masm()->call(stub->instruction_start(), RelocInfo::NONE32); |
647 } | 643 } |
648 } | 644 } |
649 | 645 |
650 | 646 |
651 } // namespace internal | 647 } // namespace internal |
652 } // namespace v8 | 648 } // namespace v8 |
653 | 649 |
654 #endif // V8_TARGET_ARCH_X87 | 650 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |