Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_ARM_CONSTANTS_ARM_H_ | 5 #ifndef V8_ARM_CONSTANTS_ARM_H_ |
| 6 #define V8_ARM_CONSTANTS_ARM_H_ | 6 #define V8_ARM_CONSTANTS_ARM_H_ |
| 7 | 7 |
| 8 // ARM EABI is required. | 8 // ARM EABI is required. |
| 9 #if defined(__arm__) && !defined(__ARM_EABI__) | 9 #if defined(__arm__) && !defined(__ARM_EABI__) |
| 10 #error ARM EABI support is required. | 10 #error ARM EABI support is required. |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 82 lo = cc // C clear Unsigned lower. | 82 lo = cc // C clear Unsigned lower. |
| 83 }; | 83 }; |
| 84 | 84 |
| 85 | 85 |
| 86 inline Condition NegateCondition(Condition cond) { | 86 inline Condition NegateCondition(Condition cond) { |
| 87 ASSERT(cond != al); | 87 ASSERT(cond != al); |
| 88 return static_cast<Condition>(cond ^ ne); | 88 return static_cast<Condition>(cond ^ ne); |
| 89 } | 89 } |
| 90 | 90 |
| 91 | 91 |
| 92 // Corresponds to transposing the operands of a comparison. | 92 // Commute a condition such that a cond b == b cond' b. |
|
Jakob Kummerow
2014/06/04 18:04:55
Where by "b", you mean "a", right? :-P
| |
| 93 inline Condition ReverseCondition(Condition cond) { | 93 inline Condition CommuteCondition(Condition cond) { |
| 94 switch (cond) { | 94 switch (cond) { |
| 95 case lo: | 95 case lo: |
| 96 return hi; | 96 return hi; |
| 97 case hi: | 97 case hi: |
| 98 return lo; | 98 return lo; |
| 99 case hs: | 99 case hs: |
| 100 return ls; | 100 return ls; |
| 101 case ls: | 101 case ls: |
| 102 return hs; | 102 return hs; |
| 103 case lt: | 103 case lt: |
| (...skipping 637 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 741 static int Number(const char* name, bool* is_double); | 741 static int Number(const char* name, bool* is_double); |
| 742 | 742 |
| 743 private: | 743 private: |
| 744 static const char* names_[kNumVFPRegisters]; | 744 static const char* names_[kNumVFPRegisters]; |
| 745 }; | 745 }; |
| 746 | 746 |
| 747 | 747 |
| 748 } } // namespace v8::internal | 748 } } // namespace v8::internal |
| 749 | 749 |
| 750 #endif // V8_ARM_CONSTANTS_ARM_H_ | 750 #endif // V8_ARM_CONSTANTS_ARM_H_ |
| OLD | NEW |