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 #ifndef V8_PPC_MACRO_ASSEMBLER_PPC_H_ | 5 #ifndef V8_PPC_MACRO_ASSEMBLER_PPC_H_ |
6 #define V8_PPC_MACRO_ASSEMBLER_PPC_H_ | 6 #define V8_PPC_MACRO_ASSEMBLER_PPC_H_ |
7 | 7 |
8 #include "src/assembler.h" | 8 #include "src/assembler.h" |
9 #include "src/bailout-reason.h" | 9 #include "src/bailout-reason.h" |
10 #include "src/frames.h" | 10 #include "src/frames.h" |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 Condition cond = al); | 140 Condition cond = al); |
141 void Call(Handle<Code> code, RelocInfo::Mode rmode = RelocInfo::CODE_TARGET, | 141 void Call(Handle<Code> code, RelocInfo::Mode rmode = RelocInfo::CODE_TARGET, |
142 TypeFeedbackId ast_id = TypeFeedbackId::None(), | 142 TypeFeedbackId ast_id = TypeFeedbackId::None(), |
143 Condition cond = al); | 143 Condition cond = al); |
144 void Ret() { blr(); } | 144 void Ret() { blr(); } |
145 void Ret(Condition cond, CRegister cr = cr7) { bclr(cond, cr); } | 145 void Ret(Condition cond, CRegister cr = cr7) { bclr(cond, cr); } |
146 | 146 |
147 // Emit code to discard a non-negative number of pointer-sized elements | 147 // Emit code to discard a non-negative number of pointer-sized elements |
148 // from the stack, clobbering only the sp register. | 148 // from the stack, clobbering only the sp register. |
149 void Drop(int count); | 149 void Drop(int count); |
| 150 void Drop(Register count, Register scratch = r0); |
150 | 151 |
151 void Ret(int drop) { | 152 void Ret(int drop) { |
152 Drop(drop); | 153 Drop(drop); |
153 blr(); | 154 blr(); |
154 } | 155 } |
155 | 156 |
156 void Call(Label* target); | 157 void Call(Label* target); |
157 | 158 |
158 // Emit call to the code we are currently generating. | 159 // Emit call to the code we are currently generating. |
159 void CallSelf() { | 160 void CallSelf() { |
(...skipping 1428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1588 #define ACCESS_MASM(masm) \ | 1589 #define ACCESS_MASM(masm) \ |
1589 masm->stop(__FILE_LINE__); \ | 1590 masm->stop(__FILE_LINE__); \ |
1590 masm-> | 1591 masm-> |
1591 #else | 1592 #else |
1592 #define ACCESS_MASM(masm) masm-> | 1593 #define ACCESS_MASM(masm) masm-> |
1593 #endif | 1594 #endif |
1594 } // namespace internal | 1595 } // namespace internal |
1595 } // namespace v8 | 1596 } // namespace v8 |
1596 | 1597 |
1597 #endif // V8_PPC_MACRO_ASSEMBLER_PPC_H_ | 1598 #endif // V8_PPC_MACRO_ASSEMBLER_PPC_H_ |
OLD | NEW |