Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1124)

Side by Side Diff: src/arm/constants-arm.h

Issue 12367002: ARM backend support for pld (preload data) instruction Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/arm/assembler-arm.cc ('k') | src/arm/disasm-arm.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 690 matching lines...) Expand 10 before | Expand all | Expand 10 after
701 && ((Bit(7) == 0)); } 701 && ((Bit(7) == 0)); }
702 702
703 // Test for a nop instruction, which falls under type 1. 703 // Test for a nop instruction, which falls under type 1.
704 inline bool IsNopType1() const { return Bits(24, 0) == 0x0120F000; } 704 inline bool IsNopType1() const { return Bits(24, 0) == 0x0120F000; }
705 705
706 // Test for a stop instruction. 706 // Test for a stop instruction.
707 inline bool IsStop() const { 707 inline bool IsStop() const {
708 return (TypeValue() == 7) && (Bit(24) == 1) && (SvcValue() >= kStopCode); 708 return (TypeValue() == 7) && (Bit(24) == 1) && (SvcValue() >= kStopCode);
709 } 709 }
710 710
711 // Test for a pld instruction
712 inline bool IsPld() const {
713 return (Bits(31, 28) == 15) &&
714 (Bits(27, 26) == 1) &&
715 (Bit(24) == 1) &&
716 (Bits(22, 20) == 5) &&
717 (Bits(15, 12) == 15);
718 }
719
711 // Special accessors that test for existence of a value. 720 // Special accessors that test for existence of a value.
712 inline bool HasS() const { return SValue() == 1; } 721 inline bool HasS() const { return SValue() == 1; }
713 inline bool HasB() const { return BValue() == 1; } 722 inline bool HasB() const { return BValue() == 1; }
714 inline bool HasW() const { return WValue() == 1; } 723 inline bool HasW() const { return WValue() == 1; }
715 inline bool HasL() const { return LValue() == 1; } 724 inline bool HasL() const { return LValue() == 1; }
716 inline bool HasU() const { return UValue() == 1; } 725 inline bool HasU() const { return UValue() == 1; }
717 inline bool HasSign() const { return SignValue() == 1; } 726 inline bool HasSign() const { return SignValue() == 1; }
718 inline bool HasH() const { return HValue() == 1; } 727 inline bool HasH() const { return HValue() == 1; }
719 inline bool HasLink() const { return LinkValue() == 1; } 728 inline bool HasLink() const { return LinkValue() == 1; }
720 729
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
778 static int Number(const char* name, bool* is_double); 787 static int Number(const char* name, bool* is_double);
779 788
780 private: 789 private:
781 static const char* names_[kNumVFPRegisters]; 790 static const char* names_[kNumVFPRegisters];
782 }; 791 };
783 792
784 793
785 } } // namespace v8::internal 794 } } // namespace v8::internal
786 795
787 #endif // V8_ARM_CONSTANTS_ARM_H_ 796 #endif // V8_ARM_CONSTANTS_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/assembler-arm.cc ('k') | src/arm/disasm-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698