OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_PPC | 7 #if V8_TARGET_ARCH_PPC |
8 | 8 |
9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
10 #include "src/bootstrapper.h" | 10 #include "src/bootstrapper.h" |
(...skipping 1132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1143 void JSEntryStub::Generate(MacroAssembler* masm) { | 1143 void JSEntryStub::Generate(MacroAssembler* masm) { |
1144 // r3: code entry | 1144 // r3: code entry |
1145 // r4: function | 1145 // r4: function |
1146 // r5: receiver | 1146 // r5: receiver |
1147 // r6: argc | 1147 // r6: argc |
1148 // [sp+0]: argv | 1148 // [sp+0]: argv |
1149 | 1149 |
1150 Label invoke, handler_entry, exit; | 1150 Label invoke, handler_entry, exit; |
1151 | 1151 |
1152 // Called from C | 1152 // Called from C |
1153 #if ABI_USES_FUNCTION_DESCRIPTORS | |
1154 __ function_descriptor(); | 1153 __ function_descriptor(); |
1155 #endif | |
1156 | 1154 |
1157 ProfileEntryHookStub::MaybeCallEntryHook(masm); | 1155 ProfileEntryHookStub::MaybeCallEntryHook(masm); |
1158 | 1156 |
1159 // PPC LINUX ABI: | 1157 // PPC LINUX ABI: |
1160 // preserve LR in pre-reserved slot in caller's frame | 1158 // preserve LR in pre-reserved slot in caller's frame |
1161 __ mflr(r0); | 1159 __ mflr(r0); |
1162 __ StoreP(r0, MemOperand(sp, kStackFrameLRSlot * kPointerSize)); | 1160 __ StoreP(r0, MemOperand(sp, kStackFrameLRSlot * kPointerSize)); |
1163 | 1161 |
1164 // Save callee saved registers on the stack. | 1162 // Save callee saved registers on the stack. |
1165 __ MultiPush(kCalleeSaved); | 1163 __ MultiPush(kCalleeSaved); |
(...skipping 3718 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4884 kStackUnwindSpace, | 4882 kStackUnwindSpace, |
4885 MemOperand(fp, 6 * kPointerSize), NULL); | 4883 MemOperand(fp, 6 * kPointerSize), NULL); |
4886 } | 4884 } |
4887 | 4885 |
4888 | 4886 |
4889 #undef __ | 4887 #undef __ |
4890 } | 4888 } |
4891 } // namespace v8::internal | 4889 } // namespace v8::internal |
4892 | 4890 |
4893 #endif // V8_TARGET_ARCH_PPC | 4891 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |