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 619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
630 extern const Instr kMovwMask; | 630 extern const Instr kMovwMask; |
631 extern const Instr kMovwPattern; | 631 extern const Instr kMovwPattern; |
632 extern const Instr kMovwLeaveCCFlip; | 632 extern const Instr kMovwLeaveCCFlip; |
633 | 633 |
634 extern const Instr kCmpCmnMask; | 634 extern const Instr kCmpCmnMask; |
635 extern const Instr kCmpCmnPattern; | 635 extern const Instr kCmpCmnPattern; |
636 extern const Instr kCmpCmnFlip; | 636 extern const Instr kCmpCmnFlip; |
637 extern const Instr kAddSubFlip; | 637 extern const Instr kAddSubFlip; |
638 extern const Instr kAndBicFlip; | 638 extern const Instr kAndBicFlip; |
639 | 639 |
640 | 640 struct VmovIndex { |
| 641 unsigned char index; |
| 642 }; |
| 643 const VmovIndex VmovIndexLo = { 0 }; |
| 644 const VmovIndex VmovIndexHi = { 1 }; |
641 | 645 |
642 class Assembler : public AssemblerBase { | 646 class Assembler : public AssemblerBase { |
643 public: | 647 public: |
644 // Create an assembler. Instructions and relocation information are emitted | 648 // Create an assembler. Instructions and relocation information are emitted |
645 // into a buffer, with the instructions starting from the beginning and the | 649 // into a buffer, with the instructions starting from the beginning and the |
646 // relocation information starting from the end of the buffer. See CodeDesc | 650 // relocation information starting from the end of the buffer. See CodeDesc |
647 // for a detailed comment on the layout (globals.h). | 651 // for a detailed comment on the layout (globals.h). |
648 // | 652 // |
649 // If the provided buffer is NULL, the assembler allocates and grows its own | 653 // If the provided buffer is NULL, the assembler allocates and grows its own |
650 // buffer, and buffer_size determines the initial buffer size. The buffer is | 654 // buffer, and buffer_size determines the initial buffer size. The buffer is |
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1064 double imm, | 1068 double imm, |
1065 const Register scratch = no_reg, | 1069 const Register scratch = no_reg, |
1066 const Condition cond = al); | 1070 const Condition cond = al); |
1067 void vmov(const SwVfpRegister dst, | 1071 void vmov(const SwVfpRegister dst, |
1068 const SwVfpRegister src, | 1072 const SwVfpRegister src, |
1069 const Condition cond = al); | 1073 const Condition cond = al); |
1070 void vmov(const DwVfpRegister dst, | 1074 void vmov(const DwVfpRegister dst, |
1071 const DwVfpRegister src, | 1075 const DwVfpRegister src, |
1072 const Condition cond = al); | 1076 const Condition cond = al); |
1073 void vmov(const DwVfpRegister dst, | 1077 void vmov(const DwVfpRegister dst, |
1074 int index, | 1078 const VmovIndex index, |
1075 const Register src, | 1079 const Register src, |
1076 const Condition cond = al); | 1080 const Condition cond = al); |
1077 void vmov(const DwVfpRegister dst, | 1081 void vmov(const DwVfpRegister dst, |
1078 const Register src1, | 1082 const Register src1, |
1079 const Register src2, | 1083 const Register src2, |
1080 const Condition cond = al); | 1084 const Condition cond = al); |
1081 void vmov(const Register dst1, | 1085 void vmov(const Register dst1, |
1082 const Register dst2, | 1086 const Register dst2, |
1083 const DwVfpRegister src, | 1087 const DwVfpRegister src, |
1084 const Condition cond = al); | 1088 const Condition cond = al); |
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1502 public: | 1506 public: |
1503 explicit EnsureSpace(Assembler* assembler) { | 1507 explicit EnsureSpace(Assembler* assembler) { |
1504 assembler->CheckBuffer(); | 1508 assembler->CheckBuffer(); |
1505 } | 1509 } |
1506 }; | 1510 }; |
1507 | 1511 |
1508 | 1512 |
1509 } } // namespace v8::internal | 1513 } } // namespace v8::internal |
1510 | 1514 |
1511 #endif // V8_ARM_ASSEMBLER_ARM_H_ | 1515 #endif // V8_ARM_ASSEMBLER_ARM_H_ |
OLD | NEW |