OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 R(8) R(9) R(10) R(11) R(12) R(13) R(14) R(15) \ | 49 R(8) R(9) R(10) R(11) R(12) R(13) R(14) R(15) \ |
50 R(16) R(17) R(18) R(19) R(20) R(21) R(22) R(23) \ | 50 R(16) R(17) R(18) R(19) R(20) R(21) R(22) R(23) \ |
51 R(24) R(25) R(26) R(27) R(28) R(29) R(30) R(31) | 51 R(24) R(25) R(26) R(27) R(28) R(29) R(30) R(31) |
52 | 52 |
53 | 53 |
54 static const int kRegListSizeInBits = sizeof(RegList) * kBitsPerByte; | 54 static const int kRegListSizeInBits = sizeof(RegList) * kBitsPerByte; |
55 | 55 |
56 | 56 |
57 // Some CPURegister methods can return Register and FPRegister types, so we | 57 // Some CPURegister methods can return Register and FPRegister types, so we |
58 // need to declare them in advance. | 58 // need to declare them in advance. |
59 class Register; | 59 struct Register; |
60 class FPRegister; | 60 struct FPRegister; |
61 | 61 |
62 | 62 |
63 struct CPURegister { | 63 struct CPURegister { |
64 enum RegisterType { | 64 enum RegisterType { |
65 // The kInvalid value is used to detect uninitialized static instances, | 65 // The kInvalid value is used to detect uninitialized static instances, |
66 // which are always zero-initialized before any constructors are called. | 66 // which are always zero-initialized before any constructors are called. |
67 kInvalid = 0, | 67 kInvalid = 0, |
68 kRegister, | 68 kRegister, |
69 kFPRegister, | 69 kFPRegister, |
70 kNoRegister | 70 kNoRegister |
(...skipping 1965 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2036 class EnsureSpace BASE_EMBEDDED { | 2036 class EnsureSpace BASE_EMBEDDED { |
2037 public: | 2037 public: |
2038 explicit EnsureSpace(Assembler* assembler) { | 2038 explicit EnsureSpace(Assembler* assembler) { |
2039 assembler->CheckBuffer(); | 2039 assembler->CheckBuffer(); |
2040 } | 2040 } |
2041 }; | 2041 }; |
2042 | 2042 |
2043 } } // namespace v8::internal | 2043 } } // namespace v8::internal |
2044 | 2044 |
2045 #endif // V8_A64_ASSEMBLER_A64_H_ | 2045 #endif // V8_A64_ASSEMBLER_A64_H_ |
OLD | NEW |