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

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, 9 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
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 { return (Bits(31, 28) == 15)
danno 2013/02/28 07:06:32 nit: formatting, please don't put code on the line
713 && (Bits(27, 26) == 1)
714 && (Bit(24) == 1)
715 && (Bits(22, 20) == 5)
716 && (Bits(15, 12) == 15); }
danno 2013/02/28 07:06:32 } on next line by itself.
rkrithiv 2013/04/05 00:16:53 Done.
717
711 // Special accessors that test for existence of a value. 718 // Special accessors that test for existence of a value.
712 inline bool HasS() const { return SValue() == 1; } 719 inline bool HasS() const { return SValue() == 1; }
713 inline bool HasB() const { return BValue() == 1; } 720 inline bool HasB() const { return BValue() == 1; }
714 inline bool HasW() const { return WValue() == 1; } 721 inline bool HasW() const { return WValue() == 1; }
715 inline bool HasL() const { return LValue() == 1; } 722 inline bool HasL() const { return LValue() == 1; }
716 inline bool HasU() const { return UValue() == 1; } 723 inline bool HasU() const { return UValue() == 1; }
717 inline bool HasSign() const { return SignValue() == 1; } 724 inline bool HasSign() const { return SignValue() == 1; }
718 inline bool HasH() const { return HValue() == 1; } 725 inline bool HasH() const { return HValue() == 1; }
719 inline bool HasLink() const { return LinkValue() == 1; } 726 inline bool HasLink() const { return LinkValue() == 1; }
720 727
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
778 static int Number(const char* name, bool* is_double); 785 static int Number(const char* name, bool* is_double);
779 786
780 private: 787 private:
781 static const char* names_[kNumVFPRegisters]; 788 static const char* names_[kNumVFPRegisters];
782 }; 789 };
783 790
784 791
785 } } // namespace v8::internal 792 } } // namespace v8::internal
786 793
787 #endif // V8_ARM_CONSTANTS_ARM_H_ 794 #endif // V8_ARM_CONSTANTS_ARM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698