| 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 16 matching lines...) Expand all Loading... |
| 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 | 35 #if V8_TARGET_ARCH_ARM |
| 36 #include "arm/constants-arm.h" | 36 #include "arm/constants-arm.h" |
| 37 #elif V8_TARGET_ARCH_MIPS |
| 38 #include "mips/constants-mips.h" |
| 37 #endif | 39 #endif |
| 38 | 40 |
| 39 // | 41 // |
| 40 // All object types in the V8 JavaScript are described in this file. | 42 // All object types in the V8 JavaScript are described in this file. |
| 41 // | 43 // |
| 42 // Inheritance hierarchy: | 44 // Inheritance hierarchy: |
| 43 // - Object | 45 // - Object |
| 44 // - Smi (immediate small integer) | 46 // - Smi (immediate small integer) |
| 45 // - Failure (immediate for marking failed operation) | 47 // - Failure (immediate for marking failed operation) |
| 46 // - HeapObject (superclass for everything allocated in the heap) | 48 // - HeapObject (superclass for everything allocated in the heap) |
| (...skipping 1047 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1094 // endian floating point word ordering! | 1096 // endian floating point word ordering! |
| 1095 #if !defined(V8_HOST_ARCH_ARM) || defined(USE_ARM_EABI) | 1097 #if !defined(V8_HOST_ARCH_ARM) || defined(USE_ARM_EABI) |
| 1096 static const int kMantissaOffset = kValueOffset; | 1098 static const int kMantissaOffset = kValueOffset; |
| 1097 static const int kExponentOffset = kValueOffset + 4; | 1099 static const int kExponentOffset = kValueOffset + 4; |
| 1098 #else | 1100 #else |
| 1099 static const int kMantissaOffset = kValueOffset + 4; | 1101 static const int kMantissaOffset = kValueOffset + 4; |
| 1100 static const int kExponentOffset = kValueOffset; | 1102 static const int kExponentOffset = kValueOffset; |
| 1101 # define BIG_ENDIAN_FLOATING_POINT 1 | 1103 # define BIG_ENDIAN_FLOATING_POINT 1 |
| 1102 #endif | 1104 #endif |
| 1103 static const int kSize = kValueOffset + kDoubleSize; | 1105 static const int kSize = kValueOffset + kDoubleSize; |
| 1104 | |
| 1105 static const uint32_t kSignMask = 0x80000000u; | 1106 static const uint32_t kSignMask = 0x80000000u; |
| 1106 static const uint32_t kExponentMask = 0x7ff00000u; | 1107 static const uint32_t kExponentMask = 0x7ff00000u; |
| 1107 static const uint32_t kMantissaMask = 0xfffffu; | 1108 static const uint32_t kMantissaMask = 0xfffffu; |
| 1108 static const int kExponentBias = 1023; | 1109 static const int kExponentBias = 1023; |
| 1109 static const int kExponentShift = 20; | 1110 static const int kExponentShift = 20; |
| 1110 static const int kMantissaBitsInTopWord = 20; | 1111 static const int kMantissaBitsInTopWord = 20; |
| 1111 static const int kNonMantissaBitsInTopWord = 12; | 1112 static const int kNonMantissaBitsInTopWord = 12; |
| 1112 | 1113 |
| 1113 private: | 1114 private: |
| 1114 DISALLOW_IMPLICIT_CONSTRUCTORS(HeapNumber); | 1115 DISALLOW_IMPLICIT_CONSTRUCTORS(HeapNumber); |
| (...skipping 3856 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4971 } else { | 4972 } else { |
| 4972 value &= ~(1 << bit_position); | 4973 value &= ~(1 << bit_position); |
| 4973 } | 4974 } |
| 4974 return value; | 4975 return value; |
| 4975 } | 4976 } |
| 4976 }; | 4977 }; |
| 4977 | 4978 |
| 4978 } } // namespace v8::internal | 4979 } } // namespace v8::internal |
| 4979 | 4980 |
| 4980 #endif // V8_OBJECTS_H_ | 4981 #endif // V8_OBJECTS_H_ |
| OLD | NEW |