| 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_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 928 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 939 // Move argv into the correct register. | 939 // Move argv into the correct register. |
| 940 __ mov(s1, a2); | 940 __ mov(s1, a2); |
| 941 } else { | 941 } else { |
| 942 // Compute the argv pointer in a callee-saved register. | 942 // Compute the argv pointer in a callee-saved register. |
| 943 __ Lsa(s1, sp, a0, kPointerSizeLog2); | 943 __ Lsa(s1, sp, a0, kPointerSizeLog2); |
| 944 __ Subu(s1, s1, kPointerSize); | 944 __ Subu(s1, s1, kPointerSize); |
| 945 } | 945 } |
| 946 | 946 |
| 947 // Enter the exit frame that transitions from JavaScript to C++. | 947 // Enter the exit frame that transitions from JavaScript to C++. |
| 948 FrameScope scope(masm, StackFrame::MANUAL); | 948 FrameScope scope(masm, StackFrame::MANUAL); |
| 949 __ EnterExitFrame(save_doubles(), 0, is_builtin_exit() | 949 __ EnterExitFrame(save_doubles()); |
| 950 ? StackFrame::BUILTIN_EXIT | |
| 951 : StackFrame::EXIT); | |
| 952 | 950 |
| 953 // s0: number of arguments including receiver (C callee-saved) | 951 // s0: number of arguments including receiver (C callee-saved) |
| 954 // s1: pointer to first argument (C callee-saved) | 952 // s1: pointer to first argument (C callee-saved) |
| 955 // s2: pointer to builtin function (C callee-saved) | 953 // s2: pointer to builtin function (C callee-saved) |
| 956 | 954 |
| 957 // Prepare arguments for C routine. | 955 // Prepare arguments for C routine. |
| 958 // a0 = argc | 956 // a0 = argc |
| 959 __ mov(s0, a0); | 957 __ mov(s0, a0); |
| 960 __ mov(s2, a1); | 958 __ mov(s2, a1); |
| 961 | 959 |
| (...skipping 4459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5421 kStackUnwindSpace, kInvalidStackOffset, | 5419 kStackUnwindSpace, kInvalidStackOffset, |
| 5422 return_value_operand, NULL); | 5420 return_value_operand, NULL); |
| 5423 } | 5421 } |
| 5424 | 5422 |
| 5425 #undef __ | 5423 #undef __ |
| 5426 | 5424 |
| 5427 } // namespace internal | 5425 } // namespace internal |
| 5428 } // namespace v8 | 5426 } // namespace v8 |
| 5429 | 5427 |
| 5430 #endif // V8_TARGET_ARCH_MIPS | 5428 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |