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

Side by Side Diff: src/mips/code-stubs-mips.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: 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
OLDNEW
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 #if V8_TARGET_ARCH_MIPS 5 #if V8_TARGET_ARCH_MIPS
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/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 1025 matching lines...) Expand 10 before | Expand all | Expand 10 after
1036 // Move argv into the correct register. 1036 // Move argv into the correct register.
1037 __ mov(s1, a2); 1037 __ mov(s1, a2);
1038 } else { 1038 } else {
1039 // Compute the argv pointer in a callee-saved register. 1039 // Compute the argv pointer in a callee-saved register.
1040 __ Lsa(s1, sp, a0, kPointerSizeLog2); 1040 __ Lsa(s1, sp, a0, kPointerSizeLog2);
1041 __ Subu(s1, s1, kPointerSize); 1041 __ Subu(s1, s1, kPointerSize);
1042 } 1042 }
1043 1043
1044 // Enter the exit frame that transitions from JavaScript to C++. 1044 // Enter the exit frame that transitions from JavaScript to C++.
1045 FrameScope scope(masm, StackFrame::MANUAL); 1045 FrameScope scope(masm, StackFrame::MANUAL);
1046 __ EnterExitFrame(save_doubles()); 1046 __ EnterExitFrame(save_doubles(), 0, is_builtin_exit()
1047 ? StackFrame::BUILTIN_EXIT
1048 : StackFrame::EXIT);
1047 1049
1048 // s0: number of arguments including receiver (C callee-saved) 1050 // s0: number of arguments including receiver (C callee-saved)
1049 // s1: pointer to first argument (C callee-saved) 1051 // s1: pointer to first argument (C callee-saved)
1050 // s2: pointer to builtin function (C callee-saved) 1052 // s2: pointer to builtin function (C callee-saved)
1051 1053
1052 // Prepare arguments for C routine. 1054 // Prepare arguments for C routine.
1053 // a0 = argc 1055 // a0 = argc
1054 __ mov(s0, a0); 1056 __ mov(s0, a0);
1055 __ mov(s2, a1); 1057 __ mov(s2, a1);
1056 1058
(...skipping 4459 matching lines...) Expand 10 before | Expand all | Expand 10 after
5516 kStackUnwindSpace, kInvalidStackOffset, 5518 kStackUnwindSpace, kInvalidStackOffset,
5517 return_value_operand, NULL); 5519 return_value_operand, NULL);
5518 } 5520 }
5519 5521
5520 #undef __ 5522 #undef __
5521 5523
5522 } // namespace internal 5524 } // namespace internal
5523 } // namespace v8 5525 } // namespace v8
5524 5526
5525 #endif // V8_TARGET_ARCH_MIPS 5527 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« src/builtins.h ('K') | « src/mips/builtins-mips.cc ('k') | src/mips/macro-assembler-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698