v8
3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
|
#include <objects.h>
Static Public Member Functions | |
static HeapNumber * | cast (Object *obj) |
Static Public Member Functions inherited from HeapObject | |
static HeapObject * | FromAddress (Address address) |
static Object ** | RawField (HeapObject *obj, int offset) |
static HeapObject * | cast (Object *obj) |
Static Public Member Functions inherited from Object | |
static Handle< Object > | GetProperty (Handle< Object > object, Handle< Object > receiver, LookupResult *result, Handle< String > key, PropertyAttributes *attributes) |
static Handle< Object > | GetElement (Handle< Object > object, uint32_t index) |
static Object * | cast (Object *value) |
Static Public Attributes | |
static const int | kValueOffset = HeapObject::kHeaderSize |
static const int | kMantissaOffset = kValueOffset |
static const int | kExponentOffset = kValueOffset + 4 |
static const int | kSize = kValueOffset + kDoubleSize |
static const uint32_t | kSignMask = 0x80000000u |
static const uint32_t | kExponentMask = 0x7ff00000u |
static const uint32_t | kMantissaMask = 0xfffffu |
static const int | kMantissaBits = 52 |
static const int | kExponentBits = 11 |
static const int | kExponentBias = 1023 |
static const int | kExponentShift = 20 |
static const int | kMantissaBitsInTopWord = 20 |
static const int | kNonMantissaBitsInTopWord = 12 |
Static Public Attributes inherited from HeapObject | |
static const int | kMapOffset = Object::kHeaderSize |
static const int | kHeaderSize = kMapOffset + kPointerSize |
Static Public Attributes inherited from Object | |
static const int | kHeaderSize = 0 |
Additional Inherited Members | |
Protected Member Functions inherited from HeapObject | |
void | IteratePointers (ObjectVisitor *v, int start, int end) |
void | IteratePointer (ObjectVisitor *v, int offset) |
|
inlinestatic |
Referenced by Heap::AllocateHeapNumber(), V8::FillHeapNumberWithRandom(), HeapObject::HeapObjectShortPrint(), Object::IsNaN(), Heap::NumberToString(), JSObject::PrepareElementsForSort(), JSObject::PrepareSlowElementsForSort(), ToBooleanStub::Types::Record(), v8::internal::RUNTIME_FUNCTION(), JSObject::SetFastDoubleElement(), ExternalPixelArray::SetValue(), ExternalUnsignedIntArray::SetValue(), ExternalFloatArray::SetValue(), ExternalDoubleArray::SetValue(), TEST(), TestSeeds(), Object::ToArrayIndex(), Object::ToBoolean(), Object::ToSmi(), and TypeInfo::TypeFromValue().
|
inline |
Definition at line 1208 of file objects-inl.h.
References HeapNumber::kExponentBias, HeapNumber::kExponentMask, HeapNumber::kExponentOffset, HeapNumber::kExponentShift, and READ_INT_FIELD.
Referenced by v8::internal::RUNTIME_FUNCTION().
|
inline |
Definition at line 1214 of file objects-inl.h.
References HeapNumber::kExponentOffset, HeapNumber::kSignMask, and READ_INT_FIELD.
Referenced by v8::internal::RUNTIME_FUNCTION().
|
inline |
Definition at line 1331 of file objects.h.
Referenced by HeapObject::HeapObjectShortPrint().
void HeapNumberPrint | ( | FILE * | out | ) |
Definition at line 1456 of file objects.cc.
References Object::Number(), and v8::internal::PrintF().
void HeapNumberPrint | ( | StringStream * | accumulator | ) |
Definition at line 1461 of file objects.cc.
References StringStream::Add(), Object::Number(), OS::SNPrintF(), and Vector< T >::start().
Object * HeapNumberToBoolean | ( | ) |
Definition at line 1434 of file objects.cc.
References IeeeDoubleBigEndianArchType::bits, IeeeDoubleBigEndianArchType::d, IeeeDoubleBigEndianArchType::exp, HeapObject::GetHeap(), IeeeDoubleBigEndianArchType::man_high, IeeeDoubleBigEndianArchType::man_low, and HeapNumber::value().
Referenced by Object::ToBoolean().
|
inline |
Definition at line 1203 of file objects-inl.h.
References HeapNumber::kValueOffset, and WRITE_DOUBLE_FIELD.
Referenced by Heap::AllocateHeapNumber(), V8::FillHeapNumberWithRandom(), JSObject::PrepareElementsForSort(), and JSObject::PrepareSlowElementsForSort().
|
inline |
Definition at line 1198 of file objects-inl.h.
References HeapNumber::kValueOffset, and READ_DOUBLE_FIELD.
Referenced by HeapNumber::HeapNumberToBoolean(), Heap::NumberToString(), JSObject::PrepareSlowElementsForSort(), ToBooleanStub::Types::Record(), v8::internal::RUNTIME_FUNCTION(), JSObject::SetFastDoubleElement(), ExternalPixelArray::SetValue(), ExternalUnsignedIntArray::SetValue(), ExternalFloatArray::SetValue(), ExternalDoubleArray::SetValue(), TEST(), TestSeeds(), Object::ToArrayIndex(), Object::ToSmi(), and TypeInfo::TypeFromValue().
|
static |
Definition at line 1356 of file objects.h.
Referenced by HeapNumber::get_exponent().
|
static |
Definition at line 1352 of file objects.h.
Referenced by HeapNumber::get_exponent().
|
static |
Definition at line 1348 of file objects.h.
Referenced by HeapNumber::get_exponent(), and HeapNumber::get_sign().
|
static |
Definition at line 1357 of file objects.h.
Referenced by HeapNumber::get_exponent().
|
static |
|
static |
Definition at line 1351 of file objects.h.
Referenced by HeapNumber::get_sign().
|
static |
Definition at line 1350 of file objects.h.
Referenced by Heap::AllocateHeapNumber(), and TEST().
|
static |
Definition at line 1342 of file objects.h.
Referenced by HeapNumber::set_value(), and HeapNumber::value().