| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 inline int DecodeConstantPoolLength(int instr) { | 95 inline int DecodeConstantPoolLength(int instr) { |
| 96 ASSERT((instr & kConstantPoolMarkerMask) == kConstantPoolMarker); | 96 ASSERT((instr & kConstantPoolMarkerMask) == kConstantPoolMarker); |
| 97 return ((instr >> 4) & 0xfff0) | (instr & 0xf); | 97 return ((instr >> 4) & 0xfff0) | (instr & 0xf); |
| 98 } | 98 } |
| 99 | 99 |
| 100 // Number of registers in normal ARM mode. | 100 // Number of registers in normal ARM mode. |
| 101 const int kNumRegisters = 16; | 101 const int kNumRegisters = 16; |
| 102 | 102 |
| 103 // VFP support. | 103 // VFP support. |
| 104 const int kNumVFPSingleRegisters = 32; | 104 const int kNumVFPSingleRegisters = 32; |
| 105 const int kNumVFPDoubleRegisters = 16; | 105 const int kNumVFPDoubleRegisters = 32; |
| 106 const int kNumVFPRegisters = kNumVFPSingleRegisters + kNumVFPDoubleRegisters; | 106 const int kNumVFPRegisters = kNumVFPSingleRegisters + kNumVFPDoubleRegisters; |
| 107 | 107 |
| 108 // PC is register 15. | 108 // PC is register 15. |
| 109 const int kPCRegister = 15; | 109 const int kPCRegister = 15; |
| 110 const int kNoRegister = -1; | 110 const int kNoRegister = -1; |
| 111 | 111 |
| 112 // ----------------------------------------------------------------------------- | 112 // ----------------------------------------------------------------------------- |
| 113 // Conditions. | 113 // Conditions. |
| 114 | 114 |
| 115 // Defines constants and accessor classes to assemble, disassemble and | 115 // Defines constants and accessor classes to assemble, disassemble and |
| (...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 778 static int Number(const char* name, bool* is_double); | 778 static int Number(const char* name, bool* is_double); |
| 779 | 779 |
| 780 private: | 780 private: |
| 781 static const char* names_[kNumVFPRegisters]; | 781 static const char* names_[kNumVFPRegisters]; |
| 782 }; | 782 }; |
| 783 | 783 |
| 784 | 784 |
| 785 } } // namespace v8::internal | 785 } } // namespace v8::internal |
| 786 | 786 |
| 787 #endif // V8_ARM_CONSTANTS_ARM_H_ | 787 #endif // V8_ARM_CONSTANTS_ARM_H_ |
| OLD | NEW |