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

Side by Side Diff: src/objects.h

Issue 119241: A bunch of changes to speed up math on ARM.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 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
« src/arm/codegen-arm.cc ('K') | « src/ia32/codegen-ia32.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1144 matching lines...) Expand 10 before | Expand all | Expand 10 after
1155 // Dispatched behavior. 1155 // Dispatched behavior.
1156 Object* HeapNumberToBoolean(); 1156 Object* HeapNumberToBoolean();
1157 void HeapNumberPrint(); 1157 void HeapNumberPrint();
1158 void HeapNumberPrint(StringStream* accumulator); 1158 void HeapNumberPrint(StringStream* accumulator);
1159 #ifdef DEBUG 1159 #ifdef DEBUG
1160 void HeapNumberVerify(); 1160 void HeapNumberVerify();
1161 #endif 1161 #endif
1162 1162
1163 // Layout description. 1163 // Layout description.
1164 static const int kValueOffset = HeapObject::kHeaderSize; 1164 static const int kValueOffset = HeapObject::kHeaderSize;
1165 // IEEE doubles are two 32 bit words. The first is just mantissa, the second
1166 // is a mixture of sign, exponent and mantissa. This is the ordering on a
1167 // little endian machine with little endian double word ordering.
1168 static const int kMantissaOffset = kValueOffset;
1169 static const int kExponentOffset = kValueOffset + 4;
1165 static const int kSize = kValueOffset + kDoubleSize; 1170 static const int kSize = kValueOffset + kDoubleSize;
1166 1171
1172 static const uint32_t kSignMask = 0x80000000u;
1173 static const uint32_t kExponentMask = 0x7ff00000u;
1174 static const uint32_t kMantissaMask = 0xfffffu;
1175 static const int kExponentBias = 1023;
1176 static const int kExponentShift = 20;
1177 static const int kMantissaBitsInTopWord = 20;
1178 static const int kNonMantissaBitsInTopWord = 12;
1179
1167 private: 1180 private:
1168 DISALLOW_IMPLICIT_CONSTRUCTORS(HeapNumber); 1181 DISALLOW_IMPLICIT_CONSTRUCTORS(HeapNumber);
1169 }; 1182 };
1170 1183
1171 1184
1172 // The JSObject describes real heap allocated JavaScript objects with 1185 // The JSObject describes real heap allocated JavaScript objects with
1173 // properties. 1186 // properties.
1174 // Note that the map of JSObject changes during execution to enable inline 1187 // Note that the map of JSObject changes during execution to enable inline
1175 // caching. 1188 // caching.
1176 class JSObject: public HeapObject { 1189 class JSObject: public HeapObject {
(...skipping 3247 matching lines...) Expand 10 before | Expand all | Expand 10 after
4424 } else { 4437 } else {
4425 value &= ~(1 << bit_position); 4438 value &= ~(1 << bit_position);
4426 } 4439 }
4427 return value; 4440 return value;
4428 } 4441 }
4429 }; 4442 };
4430 4443
4431 } } // namespace v8::internal 4444 } } // namespace v8::internal
4432 4445
4433 #endif // V8_OBJECTS_H_ 4446 #endif // V8_OBJECTS_H_
OLDNEW
« src/arm/codegen-arm.cc ('K') | « src/ia32/codegen-ia32.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698