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 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
345 // Test for special encodings of type 0 instructions (extra loads and stores, | 345 // Test for special encodings of type 0 instructions (extra loads and stores, |
346 // as well as multiplications). | 346 // as well as multiplications). |
347 inline bool IsSpecialType0() const { return (Bit(7) == 1) && (Bit(4) == 1); } | 347 inline bool IsSpecialType0() const { return (Bit(7) == 1) && (Bit(4) == 1); } |
348 | 348 |
349 // Test for miscellaneous instructions encodings of type 0 instructions. | 349 // Test for miscellaneous instructions encodings of type 0 instructions. |
350 inline bool IsMiscType0() const { return (Bit(24) == 1) | 350 inline bool IsMiscType0() const { return (Bit(24) == 1) |
351 && (Bit(23) == 0) | 351 && (Bit(23) == 0) |
352 && (Bit(20) == 0) | 352 && (Bit(20) == 0) |
353 && ((Bit(7) == 0)); } | 353 && ((Bit(7) == 0)); } |
354 | 354 |
| 355 // Test for a stop instruction. |
| 356 inline bool IsStop() const { |
| 357 return (TypeField() == 7) && (Bit(24) == 1) && (SvcField() >= stop); |
| 358 } |
| 359 |
355 // Special accessors that test for existence of a value. | 360 // Special accessors that test for existence of a value. |
356 inline bool HasS() const { return SField() == 1; } | 361 inline bool HasS() const { return SField() == 1; } |
357 inline bool HasB() const { return BField() == 1; } | 362 inline bool HasB() const { return BField() == 1; } |
358 inline bool HasW() const { return WField() == 1; } | 363 inline bool HasW() const { return WField() == 1; } |
359 inline bool HasL() const { return LField() == 1; } | 364 inline bool HasL() const { return LField() == 1; } |
360 inline bool HasU() const { return UField() == 1; } | 365 inline bool HasU() const { return UField() == 1; } |
361 inline bool HasSign() const { return SignField() == 1; } | 366 inline bool HasSign() const { return SignField() == 1; } |
362 inline bool HasH() const { return HField() == 1; } | 367 inline bool HasH() const { return HField() == 1; } |
363 inline bool HasLink() const { return LinkField() == 1; } | 368 inline bool HasLink() const { return LinkField() == 1; } |
364 | 369 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
419 static int Number(const char* name, bool* is_double); | 424 static int Number(const char* name, bool* is_double); |
420 | 425 |
421 private: | 426 private: |
422 static const char* names_[kNumVFPRegisters]; | 427 static const char* names_[kNumVFPRegisters]; |
423 }; | 428 }; |
424 | 429 |
425 | 430 |
426 } } // namespace assembler::arm | 431 } } // namespace assembler::arm |
427 | 432 |
428 #endif // V8_ARM_CONSTANTS_ARM_H_ | 433 #endif // V8_ARM_CONSTANTS_ARM_H_ |
OLD | NEW |