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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 | 82 |
83 private: | 83 private: |
84 #ifdef DEBUG | 84 #ifdef DEBUG |
85 static bool initialized_; | 85 static bool initialized_; |
86 #endif | 86 #endif |
87 static unsigned supported_; | 87 static unsigned supported_; |
88 static unsigned found_by_runtime_probing_only_; | 88 static unsigned found_by_runtime_probing_only_; |
89 static unsigned cache_line_size_; | 89 static unsigned cache_line_size_; |
90 | 90 |
91 friend class ExternalReference; | 91 friend class ExternalReference; |
92 friend class PlatformFeatureScope; | |
93 DISALLOW_COPY_AND_ASSIGN(CpuFeatures); | 92 DISALLOW_COPY_AND_ASSIGN(CpuFeatures); |
94 }; | 93 }; |
95 | 94 |
96 | 95 |
97 // CPU Registers. | 96 // CPU Registers. |
98 // | 97 // |
99 // 1) We would prefer to use an enum, but enum values are assignment- | 98 // 1) We would prefer to use an enum, but enum values are assignment- |
100 // compatible with int, which has caused code-generation bugs. | 99 // compatible with int, which has caused code-generation bugs. |
101 // | 100 // |
102 // 2) We would prefer to use a class instead of a struct but we don't like | 101 // 2) We would prefer to use a class instead of a struct but we don't like |
(...skipping 1473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1576 public: | 1575 public: |
1577 explicit EnsureSpace(Assembler* assembler) { | 1576 explicit EnsureSpace(Assembler* assembler) { |
1578 assembler->CheckBuffer(); | 1577 assembler->CheckBuffer(); |
1579 } | 1578 } |
1580 }; | 1579 }; |
1581 | 1580 |
1582 | 1581 |
1583 } } // namespace v8::internal | 1582 } } // namespace v8::internal |
1584 | 1583 |
1585 #endif // V8_ARM_ASSEMBLER_ARM_H_ | 1584 #endif // V8_ARM_ASSEMBLER_ARM_H_ |
OLD | NEW |