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 1025 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |