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 #if V8_TARGET_ARCH_ARM64 | 5 #if V8_TARGET_ARCH_ARM64 |
6 | 6 |
7 #include "src/code-stubs.h" | 7 #include "src/code-stubs.h" |
8 #include "src/api-arguments.h" | 8 #include "src/api-arguments.h" |
9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
(...skipping 907 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
918 // - Adjust for the receiver. | 918 // - Adjust for the receiver. |
919 __ Sub(temp_argv, temp_argv, 1 * kPointerSize); | 919 __ Sub(temp_argv, temp_argv, 1 * kPointerSize); |
920 } | 920 } |
921 | 921 |
922 // Reserve three slots to preserve x21-x23 callee-saved registers. If the | 922 // Reserve three slots to preserve x21-x23 callee-saved registers. If the |
923 // result size is too large to be returned in registers then also reserve | 923 // result size is too large to be returned in registers then also reserve |
924 // space for the return value. | 924 // space for the return value. |
925 int extra_stack_space = 3 + (result_size() <= 2 ? 0 : result_size()); | 925 int extra_stack_space = 3 + (result_size() <= 2 ? 0 : result_size()); |
926 // Enter the exit frame. | 926 // Enter the exit frame. |
927 FrameScope scope(masm, StackFrame::MANUAL); | 927 FrameScope scope(masm, StackFrame::MANUAL); |
928 __ EnterExitFrame( | 928 __ EnterExitFrame(save_doubles(), x10, extra_stack_space); |
929 save_doubles(), x10, extra_stack_space, | |
930 is_builtin_exit() ? StackFrame::BUILTIN_EXIT : StackFrame::EXIT); | |
931 DCHECK(csp.Is(__ StackPointer())); | 929 DCHECK(csp.Is(__ StackPointer())); |
932 | 930 |
933 // Poke callee-saved registers into reserved space. | 931 // Poke callee-saved registers into reserved space. |
934 __ Poke(argv, 1 * kPointerSize); | 932 __ Poke(argv, 1 * kPointerSize); |
935 __ Poke(argc, 2 * kPointerSize); | 933 __ Poke(argc, 2 * kPointerSize); |
936 __ Poke(target, 3 * kPointerSize); | 934 __ Poke(target, 3 * kPointerSize); |
937 | 935 |
938 if (result_size() > 2) { | 936 if (result_size() > 2) { |
939 // Save the location of the return value into x8 for call. | 937 // Save the location of the return value into x8 for call. |
940 __ Add(x8, __ StackPointer(), Operand(4 * kPointerSize)); | 938 __ Add(x8, __ StackPointer(), Operand(4 * kPointerSize)); |
(...skipping 4656 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5597 kStackUnwindSpace, NULL, spill_offset, | 5595 kStackUnwindSpace, NULL, spill_offset, |
5598 return_value_operand, NULL); | 5596 return_value_operand, NULL); |
5599 } | 5597 } |
5600 | 5598 |
5601 #undef __ | 5599 #undef __ |
5602 | 5600 |
5603 } // namespace internal | 5601 } // namespace internal |
5604 } // namespace v8 | 5602 } // namespace v8 |
5605 | 5603 |
5606 #endif // V8_TARGET_ARCH_ARM64 | 5604 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |