| 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 #ifndef V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 5 #ifndef V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
| 6 #define V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 6 #define V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
| 7 | 7 |
| 8 #include "src/assembler.h" | 8 #include "src/assembler.h" |
| 9 #include "src/frames.h" | 9 #include "src/frames.h" |
| 10 #include "src/globals.h" | 10 #include "src/globals.h" |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 void Usat(Register dst, int satpos, const Operand& src, | 145 void Usat(Register dst, int satpos, const Operand& src, |
| 146 Condition cond = al); | 146 Condition cond = al); |
| 147 | 147 |
| 148 void Call(Label* target); | 148 void Call(Label* target); |
| 149 void Push(Register src) { push(src); } | 149 void Push(Register src) { push(src); } |
| 150 void Pop(Register dst) { pop(dst); } | 150 void Pop(Register dst) { pop(dst); } |
| 151 | 151 |
| 152 // Register move. May do nothing if the registers are identical. | 152 // Register move. May do nothing if the registers are identical. |
| 153 void Move(Register dst, Handle<Object> value); | 153 void Move(Register dst, Handle<Object> value); |
| 154 void Move(Register dst, Register src, Condition cond = al); | 154 void Move(Register dst, Register src, Condition cond = al); |
| 155 void Move(Register dst, const Operand& src, Condition cond = al) { | 155 void Move(Register dst, const Operand& src, SBit sbit = LeaveCC, |
| 156 if (!src.is_reg() || !src.rm().is(dst)) mov(dst, src, LeaveCC, cond); | 156 Condition cond = al) { |
| 157 if (!src.is_reg() || !src.rm().is(dst) || sbit != LeaveCC) { |
| 158 mov(dst, src, sbit, cond); |
| 159 } |
| 157 } | 160 } |
| 158 void Move(DwVfpRegister dst, DwVfpRegister src); | 161 void Move(DwVfpRegister dst, DwVfpRegister src); |
| 159 | 162 |
| 160 void Load(Register dst, const MemOperand& src, Representation r); | 163 void Load(Register dst, const MemOperand& src, Representation r); |
| 161 void Store(Register src, const MemOperand& dst, Representation r); | 164 void Store(Register src, const MemOperand& dst, Representation r); |
| 162 | 165 |
| 163 // Load an object from the root table. | 166 // Load an object from the root table. |
| 164 void LoadRoot(Register destination, | 167 void LoadRoot(Register destination, |
| 165 Heap::RootListIndex index, | 168 Heap::RootListIndex index, |
| 166 Condition cond = al); | 169 Condition cond = al); |
| (...skipping 1455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1622 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1625 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
| 1623 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1626 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
| 1624 #else | 1627 #else |
| 1625 #define ACCESS_MASM(masm) masm-> | 1628 #define ACCESS_MASM(masm) masm-> |
| 1626 #endif | 1629 #endif |
| 1627 | 1630 |
| 1628 | 1631 |
| 1629 } } // namespace v8::internal | 1632 } } // namespace v8::internal |
| 1630 | 1633 |
| 1631 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 1634 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
| OLD | NEW |