OLD | NEW |
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2009 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 void Call(Handle<Code> code, RelocInfo::Mode rmode, Condition cond = al); | 81 void Call(Handle<Code> code, RelocInfo::Mode rmode, Condition cond = al); |
82 void Ret(Condition cond = al); | 82 void Ret(Condition cond = al); |
83 | 83 |
84 // Emit code to discard a non-negative number of pointer-sized elements | 84 // Emit code to discard a non-negative number of pointer-sized elements |
85 // from the stack, clobbering only the sp register. | 85 // from the stack, clobbering only the sp register. |
86 void Drop(int count, Condition cond = al); | 86 void Drop(int count, Condition cond = al); |
87 | 87 |
88 | 88 |
89 // Swap two registers. If the scratch register is omitted then a slightly | 89 // Swap two registers. If the scratch register is omitted then a slightly |
90 // less efficient form using xor instead of mov is emitted. | 90 // less efficient form using xor instead of mov is emitted. |
91 void Swap(Register reg1, Register reg2, Register scratch = no_reg); | 91 void Swap(Register reg1, |
| 92 Register reg2, |
| 93 Register scratch = no_reg, |
| 94 Condition cond = al); |
92 | 95 |
93 void Call(Label* target); | 96 void Call(Label* target); |
94 void Move(Register dst, Handle<Object> value); | 97 void Move(Register dst, Handle<Object> value); |
95 // May do nothing if the registers are identical. | 98 // May do nothing if the registers are identical. |
96 void Move(Register dst, Register src); | 99 void Move(Register dst, Register src); |
97 // Jumps to the label at the index given by the Smi in "index". | 100 // Jumps to the label at the index given by the Smi in "index". |
98 void SmiJumpTable(Register index, Vector<Label*> targets); | 101 void SmiJumpTable(Register index, Vector<Label*> targets); |
99 // Load an object from the root table. | 102 // Load an object from the root table. |
100 void LoadRoot(Register destination, | 103 void LoadRoot(Register destination, |
101 Heap::RootListIndex index, | 104 Heap::RootListIndex index, |
(...skipping 555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
657 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 660 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
658 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 661 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
659 #else | 662 #else |
660 #define ACCESS_MASM(masm) masm-> | 663 #define ACCESS_MASM(masm) masm-> |
661 #endif | 664 #endif |
662 | 665 |
663 | 666 |
664 } } // namespace v8::internal | 667 } } // namespace v8::internal |
665 | 668 |
666 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 669 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
OLD | NEW |