Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(267)

Side by Side Diff: src/arm64/code-stubs-arm64.cc

Issue 2090723005: [builtins] New frame type for exits to C++ builtins (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add missing condition in SafeStackFrameIter::frame() Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/arm64/builtins-arm64.cc ('k') | src/arm64/macro-assembler-arm64.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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(save_doubles(), x10, extra_stack_space); 928 __ EnterExitFrame(
929 save_doubles(), x10, extra_stack_space,
930 is_builtin_exit() ? StackFrame::BUILTIN_EXIT : StackFrame::EXIT);
929 DCHECK(csp.Is(__ StackPointer())); 931 DCHECK(csp.Is(__ StackPointer()));
930 932
931 // Poke callee-saved registers into reserved space. 933 // Poke callee-saved registers into reserved space.
932 __ Poke(argv, 1 * kPointerSize); 934 __ Poke(argv, 1 * kPointerSize);
933 __ Poke(argc, 2 * kPointerSize); 935 __ Poke(argc, 2 * kPointerSize);
934 __ Poke(target, 3 * kPointerSize); 936 __ Poke(target, 3 * kPointerSize);
935 937
936 if (result_size() > 2) { 938 if (result_size() > 2) {
937 // Save the location of the return value into x8 for call. 939 // Save the location of the return value into x8 for call.
938 __ Add(x8, __ StackPointer(), Operand(4 * kPointerSize)); 940 __ Add(x8, __ StackPointer(), Operand(4 * kPointerSize));
(...skipping 4656 matching lines...) Expand 10 before | Expand all | Expand 10 after
5595 kStackUnwindSpace, NULL, spill_offset, 5597 kStackUnwindSpace, NULL, spill_offset,
5596 return_value_operand, NULL); 5598 return_value_operand, NULL);
5597 } 5599 }
5598 5600
5599 #undef __ 5601 #undef __
5600 5602
5601 } // namespace internal 5603 } // namespace internal
5602 } // namespace v8 5604 } // namespace v8
5603 5605
5604 #endif // V8_TARGET_ARCH_ARM64 5606 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/arm64/builtins-arm64.cc ('k') | src/arm64/macro-assembler-arm64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698