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 #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 925 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
936 // Move argv into the correct register. | 936 // Move argv into the correct register. |
937 __ mov(s1, a2); | 937 __ mov(s1, a2); |
938 } else { | 938 } else { |
939 // Compute the argv pointer in a callee-saved register. | 939 // Compute the argv pointer in a callee-saved register. |
940 __ Dlsa(s1, sp, a0, kPointerSizeLog2); | 940 __ Dlsa(s1, sp, a0, kPointerSizeLog2); |
941 __ Dsubu(s1, s1, kPointerSize); | 941 __ Dsubu(s1, s1, kPointerSize); |
942 } | 942 } |
943 | 943 |
944 // Enter the exit frame that transitions from JavaScript to C++. | 944 // Enter the exit frame that transitions from JavaScript to C++. |
945 FrameScope scope(masm, StackFrame::MANUAL); | 945 FrameScope scope(masm, StackFrame::MANUAL); |
946 __ EnterExitFrame(save_doubles()); | 946 __ EnterExitFrame(save_doubles(), 0, is_builtin_exit() |
| 947 ? StackFrame::BUILTIN_EXIT |
| 948 : StackFrame::EXIT); |
947 | 949 |
948 // s0: number of arguments including receiver (C callee-saved) | 950 // s0: number of arguments including receiver (C callee-saved) |
949 // s1: pointer to first argument (C callee-saved) | 951 // s1: pointer to first argument (C callee-saved) |
950 // s2: pointer to builtin function (C callee-saved) | 952 // s2: pointer to builtin function (C callee-saved) |
951 | 953 |
952 // Prepare arguments for C routine. | 954 // Prepare arguments for C routine. |
953 // a0 = argc | 955 // a0 = argc |
954 __ mov(s0, a0); | 956 __ mov(s0, a0); |
955 __ mov(s2, a1); | 957 __ mov(s2, a1); |
956 | 958 |
(...skipping 4495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5452 kStackUnwindSpace, kInvalidStackOffset, | 5454 kStackUnwindSpace, kInvalidStackOffset, |
5453 return_value_operand, NULL); | 5455 return_value_operand, NULL); |
5454 } | 5456 } |
5455 | 5457 |
5456 #undef __ | 5458 #undef __ |
5457 | 5459 |
5458 } // namespace internal | 5460 } // namespace internal |
5459 } // namespace v8 | 5461 } // namespace v8 |
5460 | 5462 |
5461 #endif // V8_TARGET_ARCH_MIPS64 | 5463 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |