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

Side by Side Diff: src/mips64/code-stubs-mips64.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, 6 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_MIPS64 5 #if V8_TARGET_ARCH_MIPS64
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 1023 matching lines...) Expand 10 before | Expand all | Expand 10 after
1034 // Move argv into the correct register. 1034 // Move argv into the correct register.
1035 __ mov(s1, a2); 1035 __ mov(s1, a2);
1036 } else { 1036 } else {
1037 // Compute the argv pointer in a callee-saved register. 1037 // Compute the argv pointer in a callee-saved register.
1038 __ Dlsa(s1, sp, a0, kPointerSizeLog2); 1038 __ Dlsa(s1, sp, a0, kPointerSizeLog2);
1039 __ Dsubu(s1, s1, kPointerSize); 1039 __ Dsubu(s1, s1, kPointerSize);
1040 } 1040 }
1041 1041
1042 // Enter the exit frame that transitions from JavaScript to C++. 1042 // Enter the exit frame that transitions from JavaScript to C++.
1043 FrameScope scope(masm, StackFrame::MANUAL); 1043 FrameScope scope(masm, StackFrame::MANUAL);
1044 __ EnterExitFrame(save_doubles()); 1044 __ EnterExitFrame(save_doubles(), 0, is_builtin_exit()
1045 ? StackFrame::BUILTIN_EXIT
1046 : StackFrame::EXIT);
1045 1047
1046 // s0: number of arguments including receiver (C callee-saved) 1048 // s0: number of arguments including receiver (C callee-saved)
1047 // s1: pointer to first argument (C callee-saved) 1049 // s1: pointer to first argument (C callee-saved)
1048 // s2: pointer to builtin function (C callee-saved) 1050 // s2: pointer to builtin function (C callee-saved)
1049 1051
1050 // Prepare arguments for C routine. 1052 // Prepare arguments for C routine.
1051 // a0 = argc 1053 // a0 = argc
1052 __ mov(s0, a0); 1054 __ mov(s0, a0);
1053 __ mov(s2, a1); 1055 __ mov(s2, a1);
1054 1056
(...skipping 4495 matching lines...) Expand 10 before | Expand all | Expand 10 after
5550 kStackUnwindSpace, kInvalidStackOffset, 5552 kStackUnwindSpace, kInvalidStackOffset,
5551 return_value_operand, NULL); 5553 return_value_operand, NULL);
5552 } 5554 }
5553 5555
5554 #undef __ 5556 #undef __
5555 5557
5556 } // namespace internal 5558 } // namespace internal
5557 } // namespace v8 5559 } // namespace v8
5558 5560
5559 #endif // V8_TARGET_ARCH_MIPS64 5561 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698