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_ARM | 5 #if V8_TARGET_ARCH_ARM |
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 836 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
847 // Move argv into the correct register. | 847 // Move argv into the correct register. |
848 __ mov(r1, Operand(r2)); | 848 __ mov(r1, Operand(r2)); |
849 } else { | 849 } else { |
850 // Compute the argv pointer in a callee-saved register. | 850 // Compute the argv pointer in a callee-saved register. |
851 __ add(r1, sp, Operand(r0, LSL, kPointerSizeLog2)); | 851 __ add(r1, sp, Operand(r0, LSL, kPointerSizeLog2)); |
852 __ sub(r1, r1, Operand(kPointerSize)); | 852 __ sub(r1, r1, Operand(kPointerSize)); |
853 } | 853 } |
854 | 854 |
855 // Enter the exit frame that transitions from JavaScript to C++. | 855 // Enter the exit frame that transitions from JavaScript to C++. |
856 FrameScope scope(masm, StackFrame::MANUAL); | 856 FrameScope scope(masm, StackFrame::MANUAL); |
857 __ EnterExitFrame(save_doubles()); | 857 __ EnterExitFrame(save_doubles(), 0, is_builtin_exit() |
| 858 ? StackFrame::BUILTIN_EXIT |
| 859 : StackFrame::EXIT); |
858 | 860 |
859 // Store a copy of argc in callee-saved registers for later. | 861 // Store a copy of argc in callee-saved registers for later. |
860 __ mov(r4, Operand(r0)); | 862 __ mov(r4, Operand(r0)); |
861 | 863 |
862 // r0, r4: number of arguments including receiver (C callee-saved) | 864 // r0, r4: number of arguments including receiver (C callee-saved) |
863 // r1: pointer to the first argument (C callee-saved) | 865 // r1: pointer to the first argument (C callee-saved) |
864 // r5: pointer to builtin function (C callee-saved) | 866 // r5: pointer to builtin function (C callee-saved) |
865 | 867 |
866 int frame_alignment = MacroAssembler::ActivationFrameAlignment(); | 868 int frame_alignment = MacroAssembler::ActivationFrameAlignment(); |
867 int frame_alignment_mask = frame_alignment - 1; | 869 int frame_alignment_mask = frame_alignment - 1; |
(...skipping 4375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5243 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, | 5245 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, |
5244 kStackUnwindSpace, NULL, return_value_operand, NULL); | 5246 kStackUnwindSpace, NULL, return_value_operand, NULL); |
5245 } | 5247 } |
5246 | 5248 |
5247 #undef __ | 5249 #undef __ |
5248 | 5250 |
5249 } // namespace internal | 5251 } // namespace internal |
5250 } // namespace v8 | 5252 } // namespace v8 |
5251 | 5253 |
5252 #endif // V8_TARGET_ARCH_ARM | 5254 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |