OLD | NEW |
1 // Copyright (c) 1994-2006 Sun Microsystems Inc. | 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. |
2 // All Rights Reserved. | 2 // All Rights Reserved. |
3 // | 3 // |
4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
5 // modification, are permitted provided that the following conditions | 5 // modification, are permitted provided that the following conditions |
6 // are met: | 6 // are met: |
7 // | 7 // |
8 // - Redistributions of source code must retain the above copyright notice, | 8 // - Redistributions of source code must retain the above copyright notice, |
9 // this list of conditions and the following disclaimer. | 9 // this list of conditions and the following disclaimer. |
10 // | 10 // |
(...skipping 1284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1295 } | 1295 } |
1296 | 1296 |
1297 void pop(Register dst, Condition cond = al) { | 1297 void pop(Register dst, Condition cond = al) { |
1298 ldr(dst, MemOperand(sp, 4, PostIndex), cond); | 1298 ldr(dst, MemOperand(sp, 4, PostIndex), cond); |
1299 } | 1299 } |
1300 | 1300 |
1301 void pop() { | 1301 void pop() { |
1302 add(sp, sp, Operand(kPointerSize)); | 1302 add(sp, sp, Operand(kPointerSize)); |
1303 } | 1303 } |
1304 | 1304 |
| 1305 void vpush(DwVfpRegister src, Condition cond = al) { |
| 1306 vstm(db_w, sp, src, src, cond); |
| 1307 } |
| 1308 |
| 1309 void vpop(DwVfpRegister dst, Condition cond = al) { |
| 1310 vldm(ia_w, sp, dst, dst, cond); |
| 1311 } |
| 1312 |
1305 // Jump unconditionally to given label. | 1313 // Jump unconditionally to given label. |
1306 void jmp(Label* L) { b(L, al); } | 1314 void jmp(Label* L) { b(L, al); } |
1307 | 1315 |
1308 // Check the code size generated from label to here. | 1316 // Check the code size generated from label to here. |
1309 int SizeOfCodeGeneratedSince(Label* label) { | 1317 int SizeOfCodeGeneratedSince(Label* label) { |
1310 return pc_offset() - label->pos(); | 1318 return pc_offset() - label->pos(); |
1311 } | 1319 } |
1312 | 1320 |
1313 // Check the number of instructions generated from label to here. | 1321 // Check the number of instructions generated from label to here. |
1314 int InstructionsGeneratedSince(Label* label) { | 1322 int InstructionsGeneratedSince(Label* label) { |
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1655 public: | 1663 public: |
1656 explicit EnsureSpace(Assembler* assembler) { | 1664 explicit EnsureSpace(Assembler* assembler) { |
1657 assembler->CheckBuffer(); | 1665 assembler->CheckBuffer(); |
1658 } | 1666 } |
1659 }; | 1667 }; |
1660 | 1668 |
1661 | 1669 |
1662 } } // namespace v8::internal | 1670 } } // namespace v8::internal |
1663 | 1671 |
1664 #endif // V8_ARM_ASSEMBLER_ARM_H_ | 1672 #endif // V8_ARM_ASSEMBLER_ARM_H_ |
OLD | NEW |