| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 378 kDoublePrecision = 1 | 378 kDoublePrecision = 1 |
| 379 }; | 379 }; |
| 380 | 380 |
| 381 | 381 |
| 382 // VFP FPSCR constants. | 382 // VFP FPSCR constants. |
| 383 enum VFPConversionMode { | 383 enum VFPConversionMode { |
| 384 kFPSCRRounding = 0, | 384 kFPSCRRounding = 0, |
| 385 kDefaultRoundToZero = 1 | 385 kDefaultRoundToZero = 1 |
| 386 }; | 386 }; |
| 387 | 387 |
| 388 // This mask does not include the "inexact" or "input denormal" cumulative |
| 389 // exceptions flags, because we usually don't want to check for it. |
| 388 static const uint32_t kVFPExceptionMask = 0xf; | 390 static const uint32_t kVFPExceptionMask = 0xf; |
| 391 static const uint32_t kVFPInexactExceptionBit = 1 << 4; |
| 389 static const uint32_t kVFPFlushToZeroMask = 1 << 24; | 392 static const uint32_t kVFPFlushToZeroMask = 1 << 24; |
| 390 static const uint32_t kVFPInvalidExceptionBit = 1; | 393 static const uint32_t kVFPInvalidExceptionBit = 1; |
| 391 | 394 |
| 392 static const uint32_t kVFPNConditionFlagBit = 1 << 31; | 395 static const uint32_t kVFPNConditionFlagBit = 1 << 31; |
| 393 static const uint32_t kVFPZConditionFlagBit = 1 << 30; | 396 static const uint32_t kVFPZConditionFlagBit = 1 << 30; |
| 394 static const uint32_t kVFPCConditionFlagBit = 1 << 29; | 397 static const uint32_t kVFPCConditionFlagBit = 1 << 29; |
| 395 static const uint32_t kVFPVConditionFlagBit = 1 << 28; | 398 static const uint32_t kVFPVConditionFlagBit = 1 << 28; |
| 396 | 399 |
| 397 | 400 |
| 398 // VFP rounding modes. See ARM DDI 0406B Page A2-29. | 401 // VFP rounding modes. See ARM DDI 0406B Page A2-29. |
| 399 enum VFPRoundingMode { | 402 enum VFPRoundingMode { |
| 400 RN = 0 << 22, // Round to Nearest. | 403 RN = 0 << 22, // Round to Nearest. |
| 401 RP = 1 << 22, // Round towards Plus Infinity. | 404 RP = 1 << 22, // Round towards Plus Infinity. |
| 402 RM = 2 << 22, // Round towards Minus Infinity. | 405 RM = 2 << 22, // Round towards Minus Infinity. |
| 403 RZ = 3 << 22, // Round towards zero. | 406 RZ = 3 << 22, // Round towards zero. |
| 404 | 407 |
| 405 // Aliases. | 408 // Aliases. |
| 406 kRoundToNearest = RN, | 409 kRoundToNearest = RN, |
| 407 kRoundToPlusInf = RP, | 410 kRoundToPlusInf = RP, |
| 408 kRoundToMinusInf = RM, | 411 kRoundToMinusInf = RM, |
| 409 kRoundToZero = RZ | 412 kRoundToZero = RZ |
| 410 }; | 413 }; |
| 411 | 414 |
| 412 static const uint32_t kVFPRoundingModeMask = 3 << 22; | 415 static const uint32_t kVFPRoundingModeMask = 3 << 22; |
| 413 | 416 |
| 417 enum CheckForInexactConversion { |
| 418 kCheckForInexactConversion, |
| 419 kDontCheckForInexactConversion |
| 420 }; |
| 421 |
| 414 // ----------------------------------------------------------------------------- | 422 // ----------------------------------------------------------------------------- |
| 415 // Hints. | 423 // Hints. |
| 416 | 424 |
| 417 // Branch hints are not used on the ARM. They are defined so that they can | 425 // Branch hints are not used on the ARM. They are defined so that they can |
| 418 // appear in shared function signatures, but will be ignored in ARM | 426 // appear in shared function signatures, but will be ignored in ARM |
| 419 // implementations. | 427 // implementations. |
| 420 enum Hint { no_hint }; | 428 enum Hint { no_hint }; |
| 421 | 429 |
| 422 // Hints are not used on the arm. Negating is trivial. | 430 // Hints are not used on the arm. Negating is trivial. |
| 423 inline Hint NegateHint(Hint ignored) { return no_hint; } | 431 inline Hint NegateHint(Hint ignored) { return no_hint; } |
| (...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 752 static int Number(const char* name, bool* is_double); | 760 static int Number(const char* name, bool* is_double); |
| 753 | 761 |
| 754 private: | 762 private: |
| 755 static const char* names_[kNumVFPRegisters]; | 763 static const char* names_[kNumVFPRegisters]; |
| 756 }; | 764 }; |
| 757 | 765 |
| 758 | 766 |
| 759 } } // namespace v8::internal | 767 } } // namespace v8::internal |
| 760 | 768 |
| 761 #endif // V8_ARM_CONSTANTS_ARM_H_ | 769 #endif // V8_ARM_CONSTANTS_ARM_H_ |
| OLD | NEW |