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

Side by Side Diff: src/objects.h

Issue 2826001: ARM: Be more smart about switching instructions when immediates... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 6 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 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-2009 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 1105 matching lines...) Expand 10 before | Expand all | Expand 10 after
1116 #else 1116 #else
1117 static const int kMantissaOffset = kValueOffset + 4; 1117 static const int kMantissaOffset = kValueOffset + 4;
1118 static const int kExponentOffset = kValueOffset; 1118 static const int kExponentOffset = kValueOffset;
1119 # define BIG_ENDIAN_FLOATING_POINT 1 1119 # define BIG_ENDIAN_FLOATING_POINT 1
1120 #endif 1120 #endif
1121 static const int kSize = kValueOffset + kDoubleSize; 1121 static const int kSize = kValueOffset + kDoubleSize;
1122 static const uint32_t kSignMask = 0x80000000u; 1122 static const uint32_t kSignMask = 0x80000000u;
1123 static const uint32_t kExponentMask = 0x7ff00000u; 1123 static const uint32_t kExponentMask = 0x7ff00000u;
1124 static const uint32_t kMantissaMask = 0xfffffu; 1124 static const uint32_t kMantissaMask = 0xfffffu;
1125 static const int kMantissaBits = 52; 1125 static const int kMantissaBits = 52;
1126 static const int KExponentBits = 11; 1126 static const int kExponentBits = 11;
1127 static const int kExponentBias = 1023; 1127 static const int kExponentBias = 1023;
1128 static const int kExponentShift = 20; 1128 static const int kExponentShift = 20;
1129 static const int kMantissaBitsInTopWord = 20; 1129 static const int kMantissaBitsInTopWord = 20;
1130 static const int kNonMantissaBitsInTopWord = 12; 1130 static const int kNonMantissaBitsInTopWord = 12;
1131 1131
1132 private: 1132 private:
1133 DISALLOW_IMPLICIT_CONSTRUCTORS(HeapNumber); 1133 DISALLOW_IMPLICIT_CONSTRUCTORS(HeapNumber);
1134 }; 1134 };
1135 1135
1136 1136
(...skipping 1688 matching lines...) Expand 10 before | Expand all | Expand 10 after
2825 static const int kHeaderSize = 2825 static const int kHeaderSize =
2826 (kKindSpecificFlagsOffset + kIntSize + kCodeAlignmentMask) & 2826 (kKindSpecificFlagsOffset + kIntSize + kCodeAlignmentMask) &
2827 ~kCodeAlignmentMask; 2827 ~kCodeAlignmentMask;
2828 2828
2829 // Byte offsets within kKindSpecificFlagsOffset. 2829 // Byte offsets within kKindSpecificFlagsOffset.
2830 static const int kStubMajorKeyOffset = kKindSpecificFlagsOffset + 1; 2830 static const int kStubMajorKeyOffset = kKindSpecificFlagsOffset + 1;
2831 2831
2832 // Flags layout. 2832 // Flags layout.
2833 static const int kFlagsICStateShift = 0; 2833 static const int kFlagsICStateShift = 0;
2834 static const int kFlagsICInLoopShift = 3; 2834 static const int kFlagsICInLoopShift = 3;
2835 static const int kFlagsKindShift = 4; 2835 static const int kFlagsTypeShift = 4;
2836 static const int kFlagsTypeShift = 8; 2836 static const int kFlagsKindShift = 7;
2837 static const int kFlagsArgumentsCountShift = 11; 2837 static const int kFlagsArgumentsCountShift = 11;
2838 2838
2839 static const int kFlagsICStateMask = 0x00000007; // 00000000111 2839 static const int kFlagsICStateMask = 0x00000007; // 00000000111
2840 static const int kFlagsICInLoopMask = 0x00000008; // 00000001000 2840 static const int kFlagsICInLoopMask = 0x00000008; // 00000001000
2841 static const int kFlagsKindMask = 0x000000F0; // 00011110000 2841 static const int kFlagsTypeMask = 0x00000070; // 00001110000
2842 static const int kFlagsTypeMask = 0x00000700; // 11100000000 2842 static const int kFlagsKindMask = 0x00000780; // 11110000000
2843 static const int kFlagsArgumentsCountMask = 0xFFFFF800; 2843 static const int kFlagsArgumentsCountMask = 0xFFFFF800;
2844 2844
2845 static const int kFlagsNotUsedInLookup = 2845 static const int kFlagsNotUsedInLookup =
2846 (kFlagsICInLoopMask | kFlagsTypeMask); 2846 (kFlagsICInLoopMask | kFlagsTypeMask);
2847 2847
2848 private: 2848 private:
2849 DISALLOW_IMPLICIT_CONSTRUCTORS(Code); 2849 DISALLOW_IMPLICIT_CONSTRUCTORS(Code);
2850 }; 2850 };
2851 2851
2852 2852
(...skipping 2425 matching lines...) Expand 10 before | Expand all | Expand 10 after
5278 } else { 5278 } else {
5279 value &= ~(1 << bit_position); 5279 value &= ~(1 << bit_position);
5280 } 5280 }
5281 return value; 5281 return value;
5282 } 5282 }
5283 }; 5283 };
5284 5284
5285 } } // namespace v8::internal 5285 } } // namespace v8::internal
5286 5286
5287 #endif // V8_OBJECTS_H_ 5287 #endif // V8_OBJECTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698