OLD | NEW |
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 14 matching lines...) Expand all Loading... |
25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | 27 |
28 #ifndef V8_OBJECTS_H_ | 28 #ifndef V8_OBJECTS_H_ |
29 #define V8_OBJECTS_H_ | 29 #define V8_OBJECTS_H_ |
30 | 30 |
31 #include "builtins.h" | 31 #include "builtins.h" |
32 #include "code-stubs.h" | 32 #include "code-stubs.h" |
33 #include "smart-pointer.h" | 33 #include "smart-pointer.h" |
34 #include "unicode-inl.h" | 34 #include "unicode-inl.h" |
| 35 #if V8_TARGET_ARCH_ARM |
| 36 #include "arm/constants-arm.h" |
| 37 #endif |
35 | 38 |
36 // | 39 // |
37 // All object types in the V8 JavaScript are described in this file. | 40 // All object types in the V8 JavaScript are described in this file. |
38 // | 41 // |
39 // Inheritance hierarchy: | 42 // Inheritance hierarchy: |
40 // - Object | 43 // - Object |
41 // - Smi (immediate small integer) | 44 // - Smi (immediate small integer) |
42 // - Failure (immediate for marking failed operation) | 45 // - Failure (immediate for marking failed operation) |
43 // - HeapObject (superclass for everything allocated in the heap) | 46 // - HeapObject (superclass for everything allocated in the heap) |
44 // - JSObject | 47 // - JSObject |
(...skipping 1235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1280 #ifdef DEBUG | 1283 #ifdef DEBUG |
1281 void HeapNumberVerify(); | 1284 void HeapNumberVerify(); |
1282 #endif | 1285 #endif |
1283 | 1286 |
1284 // Layout description. | 1287 // Layout description. |
1285 static const int kValueOffset = HeapObject::kHeaderSize; | 1288 static const int kValueOffset = HeapObject::kHeaderSize; |
1286 // IEEE doubles are two 32 bit words. The first is just mantissa, the second | 1289 // IEEE doubles are two 32 bit words. The first is just mantissa, the second |
1287 // is a mixture of sign, exponent and mantissa. Our current platforms are all | 1290 // is a mixture of sign, exponent and mantissa. Our current platforms are all |
1288 // little endian apart from non-EABI arm which is little endian with big | 1291 // little endian apart from non-EABI arm which is little endian with big |
1289 // endian floating point word ordering! | 1292 // endian floating point word ordering! |
1290 #if !defined(V8_HOST_ARCH_ARM) || __ARM_EABI__ | 1293 #if !defined(V8_HOST_ARCH_ARM) || defined(USE_ARM_EABI) |
1291 static const int kMantissaOffset = kValueOffset; | 1294 static const int kMantissaOffset = kValueOffset; |
1292 static const int kExponentOffset = kValueOffset + 4; | 1295 static const int kExponentOffset = kValueOffset + 4; |
1293 #else | 1296 #else |
1294 static const int kMantissaOffset = kValueOffset + 4; | 1297 static const int kMantissaOffset = kValueOffset + 4; |
1295 static const int kExponentOffset = kValueOffset; | 1298 static const int kExponentOffset = kValueOffset; |
1296 # define BIG_ENDIAN_FLOATING_POINT 1 | 1299 # define BIG_ENDIAN_FLOATING_POINT 1 |
1297 #endif | 1300 #endif |
1298 static const int kSize = kValueOffset + kDoubleSize; | 1301 static const int kSize = kValueOffset + kDoubleSize; |
1299 | 1302 |
1300 static const uint32_t kSignMask = 0x80000000u; | 1303 static const uint32_t kSignMask = 0x80000000u; |
(...skipping 3585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4886 } else { | 4889 } else { |
4887 value &= ~(1 << bit_position); | 4890 value &= ~(1 << bit_position); |
4888 } | 4891 } |
4889 return value; | 4892 return value; |
4890 } | 4893 } |
4891 }; | 4894 }; |
4892 | 4895 |
4893 } } // namespace v8::internal | 4896 } } // namespace v8::internal |
4894 | 4897 |
4895 #endif // V8_OBJECTS_H_ | 4898 #endif // V8_OBJECTS_H_ |
OLD | NEW |