| 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(), 0, is_builtin_exit() | 946 __ EnterExitFrame(save_doubles()); |
| 947 ? StackFrame::BUILTIN_EXIT | |
| 948 : StackFrame::EXIT); | |
| 949 | 947 |
| 950 // s0: number of arguments including receiver (C callee-saved) | 948 // s0: number of arguments including receiver (C callee-saved) |
| 951 // s1: pointer to first argument (C callee-saved) | 949 // s1: pointer to first argument (C callee-saved) |
| 952 // s2: pointer to builtin function (C callee-saved) | 950 // s2: pointer to builtin function (C callee-saved) |
| 953 | 951 |
| 954 // Prepare arguments for C routine. | 952 // Prepare arguments for C routine. |
| 955 // a0 = argc | 953 // a0 = argc |
| 956 __ mov(s0, a0); | 954 __ mov(s0, a0); |
| 957 __ mov(s2, a1); | 955 __ mov(s2, a1); |
| 958 | 956 |
| (...skipping 4495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5454 kStackUnwindSpace, kInvalidStackOffset, | 5452 kStackUnwindSpace, kInvalidStackOffset, |
| 5455 return_value_operand, NULL); | 5453 return_value_operand, NULL); |
| 5456 } | 5454 } |
| 5457 | 5455 |
| 5458 #undef __ | 5456 #undef __ |
| 5459 | 5457 |
| 5460 } // namespace internal | 5458 } // namespace internal |
| 5461 } // namespace v8 | 5459 } // namespace v8 |
| 5462 | 5460 |
| 5463 #endif // V8_TARGET_ARCH_MIPS64 | 5461 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |