![]() |
v8
3.11.10(node0.8.26)
V8 is Google's open source JavaScript engine
|
#include <objects.h>
Public Member Functions | |
int | value () |
void | SmiPrint () |
void | SmiPrint (FILE *out) |
void | SmiPrint (StringStream *accumulator) |
![]() | |
bool | IsObject () |
bool | IsFixedArrayBase () |
bool | IsInstanceOf (FunctionTemplateInfo *type) |
bool | IsStruct () |
INLINE (bool IsSpecObject()) | |
INLINE (bool IsSpecFunction()) | |
INLINE (bool IsUndefined()) | |
INLINE (bool IsNull()) | |
INLINE (bool IsTheHole()) | |
INLINE (bool IsTrue()) | |
INLINE (bool IsFalse()) | |
bool | IsArgumentsMarker () |
bool | NonFailureIsHeapObject () |
bool | IsFiller () |
double | Number () |
bool | IsNaN () |
bool | HasValidElements () |
bool | HasSpecificClassOf (String *name) |
MUST_USE_RESULT MaybeObject * | ToObject () |
Object * | ToBoolean () |
MUST_USE_RESULT MaybeObject * | ToObject (Context *global_context) |
MUST_USE_RESULT MaybeObject * | ToSmi () |
void | Lookup (String *name, LookupResult *result) |
MUST_USE_RESULT MaybeObject * | GetProperty (String *key) |
MUST_USE_RESULT MaybeObject * | GetProperty (String *key, PropertyAttributes *attributes) |
MUST_USE_RESULT MaybeObject * | GetPropertyWithReceiver (Object *receiver, String *key, PropertyAttributes *attributes) |
MUST_USE_RESULT MaybeObject * | GetProperty (Object *receiver, LookupResult *result, String *key, PropertyAttributes *attributes) |
MUST_USE_RESULT MaybeObject * | GetPropertyWithDefinedGetter (Object *receiver, JSReceiver *getter) |
MUST_USE_RESULT MaybeObject * | GetElement (uint32_t index) |
Object * | GetElementNoExceptionThrown (uint32_t index) |
MUST_USE_RESULT MaybeObject * | GetElementWithReceiver (Object *receiver, uint32_t index) |
Object * | GetPrototype () |
MUST_USE_RESULT MaybeObject * | GetHash (CreationFlag flag) |
bool | SameValue (Object *other) |
bool | ToArrayIndex (uint32_t *index) |
bool | IsStringObjectWithCharacterAt (uint32_t index) |
void | ShortPrint () |
void | ShortPrint (FILE *out) |
void | ShortPrint (StringStream *accumulator) |
Static Public Member Functions | |
static Smi * | FromInt (int value) |
static Smi * | FromIntptr (intptr_t value) |
static bool | IsValid (intptr_t value) |
static Smi * | cast (Object *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 | kMinValue |
static const int | kMaxValue = -(kMinValue + 1) |
![]() | |
static const int | kHeaderSize = 0 |
Referenced by ObjectHashSet::Add(), DeoptimizationOutputData::AstId(), TypeFeedbackCells::AstId(), Map::bit_field3(), DescriptorArray::bit_field3_storage(), v8::internal::BUILTIN(), SharedFunctionInfo::builtin_function_id(), HashTable< CompilationCacheShape, HashTableKey * >::Capacity(), JSRegExp::CaptureCount(), Isolate::CaptureCurrentStackTrace(), ScopeInfo::ContextLocalInitFlag(), ScopeInfo::ContextLocalMode(), ElementsAccessorBase< FastPackedSmiElementsAccessor, ElementsKindTraits< FAST_SMI_ELEMENTS > >::CopyElements(), Factory::CreateApiFunction(), Runtime::CreateArrayLiteralBoilerplate(), FastElementsAccessor< FastPackedSmiElementsAccessor, ElementsKindTraits< FAST_SMI_ELEMENTS >, kPointerSize >::DeleteCommon(), Dictionary< SeededNumberDictionaryShape, uint32_t >::DetailsAt(), JSFunctionResultCache::finger_index(), ScopeInfo::FunctionContextSlotIndex(), Runtime::FunctionForSymbol(), Dictionary< Shape, Key >::GenerateNewEnumerationIndices(), JavaScriptFrame::GetArgumentsLength(), RegExpImpl::GetCapture(), StackFrame::GetColumn(), DescriptorArray::GetDetails(), JSRegExp::GetFlags(), StackTrace::GetFrameCount(), JSObject::GetIdentityHash(), NonStrictArgumentsElementsAccessor::GetImpl(), DictionaryElementsAccessor::GetKeyForIndexImpl(), RegExpImpl::GetLastCaptureCount(), StackFrame::GetLineNumber(), JSObject::GetLocalElementKeys(), ArgumentsAdaptorFrame::GetNumberOfIncomingArguments(), Heap::GetNumberStringCache(), v8::internal::GetScriptColumnNumber(), v8::internal::GetScriptLineNumber(), SharedFunctionInfo::GetThisPropertyAssignmentArgument(), CompileTimeValue::GetType(), ObjectHashTableShape< entrysize >::Hash(), ObjectHashTableShape< entrysize >::HashForObject(), StringSharedKey::HashForObject(), RegExpKey::HashForObject(), JSObject::HasLocalElement(), JSObject::HasRealElementProperty(), BASE_EMBEDDED< Visitor >::IndexFromValue(), Execution::InstantiateFunction(), Value::Int32Value(), Value::IntegerValue(), ObjectTemplate::InternalFieldCount(), RegExpImpl::IrregexpMaxRegisterCount(), RegExpImpl::IrregexpNumberOfCaptures(), RegExpImpl::IrregexpNumberOfRegisters(), StringSharedKey::IsMatch(), SharedFunctionInfo::IsThisPropertyAssignmentArgument(), Value::IsUint32(), Oddball::kind(), NeanderArray::length(), Array::Length(), Logger::LogRuntime(), SeededNumberDictionary::max_number_key(), Factory::NewScript(), IntrusiveMapTransitionIterator::Next(), IntrusivePrototypeTransitionIterator::Next(), DescriptorArray::NextEnumerationIndex(), Dictionary< SeededNumberDictionaryShape, uint32_t >::NextEnumerationIndex(), JSObject::NormalizeElements(), HashTable< CompilationCacheShape, HashTableKey * >::NumberOfDeletedElements(), HashTable< CompilationCacheShape, HashTableKey * >::NumberOfElements(), JSObject::NumberOfEnumElements(), Map::NumberOfProtoTransitions(), v8::internal::NumberToInt32(), Heap::NumberToString(), v8::internal::NumberToUint32(), DeoptimizationOutputData::PcAndState(), JSObject::PrepareSlowElementsForSort(), ObjectHashTable::Put(), ToBooleanStub::Types::Record(), SeededNumberDictionary::requires_slow_elements(), v8::internal::RUNTIME_FUNCTION(), JSRegExp::SetDataAtUnchecked(), JSObject::SetElement(), JSObject::SetFastDoubleElement(), ElementsAccessorBase< ElementsAccessorSubclass, ElementsTraitsParam >::SetLengthImpl(), FastElementsAccessor< FastPackedSmiElementsAccessor, ElementsKindTraits< FAST_SMI_ELEMENTS >, kPointerSize >::SetLengthWithoutNormalize(), Heap::SetNumberStringCache(), ExternalPixelArray::SetValue(), ExternalUnsignedIntArray::SetValue(), ExternalFloatArray::SetValue(), ExternalDoubleArray::SetValue(), Object::ShortPrint(), JSFunctionResultCache::size(), BASE_EMBEDDED< Visitor >::smi_at(), FixedArray::SwapPairs(), TEST(), THREADED_TEST(), Object::ToArrayIndex(), Value::ToArrayIndex(), Object::ToBoolean(), JSRegExp::TypeTag(), JSRegExp::TypeTagUnchecked(), Value::Uint32Value(), ElementsAccessorBase< FastPackedSmiElementsAccessor, ElementsKindTraits< FAST_SMI_ELEMENTS > >::ValidateImpl(), Integer::Value(), Int32::Value(), and Uint32::Value().
|
inlinestatic |
Definition at line 973 of file objects-inl.h.
References ASSERT, Smi::IsValid(), v8::internal::kSmiShiftSize, v8::internal::kSmiTag, v8::internal::kSmiTagSize, and Smi::value().
Referenced by BASE_EMBEDDED< Visitor >::Add(), NeanderArray::add(), ReplacementStringBuilder::AddSubjectSlice(), DescriptorArray::Allocate(), Heap::AllocateArgumentsObject(), Heap::AllocateJSArrayAndStorage(), Heap::AllocateJSArrayWithElements(), Heap::AllocateJSFunctionProxy(), Heap::AllocateJSProxy(), LargeObjectSpace::AllocateRaw(), PolymorphicCodeCacheHashTableKey::AsObject(), StringSharedKey::AsObject(), v8::internal::BUILTIN(), v8::internal::CalculateLineEnds(), Isolate::CaptureCurrentStackTrace(), StringSplitCache::Clear(), Map::clear_instance_descriptors(), MarkCompactCollector::CollectGarbage(), Compiler::Compile(), StringDictionary::CopyEnumKeysTo(), ScopeInfo::Create(), Heap::CreateApiObjects(), Runtime::CreateArrayLiteralBoilerplate(), Heap::CreateCode(), StringSplitCache::Enter(), Value::Equals(), JSReceiver::GenerateIdentityHash(), Dictionary< Shape, Key >::GenerateNewEnumerationIndices(), ExternalPixelArray::get(), ExternalByteArray::get(), ExternalUnsignedByteArray::get(), ExternalShortArray::get(), ExternalUnsignedShortArray::get(), HGraph::GetConstant1(), HGraph::GetConstantMinus1(), v8::internal::GetEnumPropertyKeys(), Object::GetHash(), JSObject::GetIdentityHash(), BASE_EMBEDDED< Visitor >::GetLazyValue(), JSObject::GetLocalElementKeys(), Deoptimizer::GetOutputInfo(), ThisNamedPropertyAssignmentFinder::GetThisPropertyAssignments(), BASE_EMBEDDED< Visitor >::GetValue(), CompileTimeValue::GetValue(), Map::init_instance_descriptors(), JSArray::Initialize(), Runtime::InitializeIntrinsicFunctionNames(), MacroAssembler::InitializeSmiConstantRegister(), StandardFrame::IsArgumentsAdaptorFrame(), StandardFrame::IsConstructFrame(), LoadIC::Load(), KeyedLoadIC::Load(), StringSplitCache::Lookup(), TryCatch::Message(), NeanderArray::NeanderArray(), Integer::New(), FunctionTemplate::New(), Factory::NewScript(), IntrusiveMapTransitionIterator::Next(), IntrusivePrototypeTransitionIterator::Next(), Heap::NumberFromDouble(), Heap::NumberFromInt32(), Heap::NumberFromUint32(), JSObject::PrepareElementsForSort(), JSObject::PrepareSlowElementsForSort(), Isolate::PrintCurrentStackTrace(), TryCatch::Reset(), DateCache::ResetDateCache(), v8::internal::RUNTIME_FUNCTION(), BooleanBit::set(), Map::set_bit_field3(), DescriptorArray::set_bit_field3_storage(), JSFunctionResultCache::set_finger_index(), Oddball::set_kind(), AccessorInfo::set_property_attributes(), SeededNumberDictionary::set_requires_slow_elements(), JSFunctionResultCache::set_size(), Heap::SetArgumentsAdaptorDeoptPCOffset(), HashTable< CompilationCacheShape, HashTableKey * >::SetCapacity(), RegExpImpl::SetCapture(), Heap::SetConstructStubDeoptPCOffset(), JSArray::SetContent(), Dictionary< Shape, Key >::SetEntry(), JSObject::SetFastDoubleElement(), JSObject::SetFastDoubleElementsCapacityAndLength(), JSObject::SetFastElement(), JSObject::SetFastElementsCapacityAndLength(), ObjectTemplate::SetInternalFieldCount(), RegExpImpl::SetIrregexpMaxRegisterCount(), RegExpImpl::SetLastCaptureCount(), ElementsAccessorBase< ElementsAccessorSubclass, ElementsTraitsParam >::SetLengthImpl(), DescriptorArray::SetNextEnumerationIndex(), Dictionary< SeededNumberDictionaryShape, uint32_t >::SetNextEnumerationIndex(), HashTable< CompilationCacheShape, HashTableKey * >::SetNumberOfDeletedElements(), HashTable< CompilationCacheShape, HashTableKey * >::SetNumberOfElements(), Map::SetNumberOfProtoTransitions(), Factory::SetRegExpAtomData(), Factory::SetRegExpIrregexpData(), Heap::SetUp(), ExternalPixelArray::SetValue(), JSDate::SetValue(), IntrusiveMapTransitionIterator::Start(), IntrusivePrototypeTransitionIterator::Start(), TEST(), THREADED_TEST(), Value::ToArrayIndex(), FixedArrayBuilder::ToJSArray(), Object::ToSmi(), and SeededNumberDictionary::UpdateMaxNumberKey().
|
inlinestatic |
Definition at line 982 of file objects-inl.h.
References ASSERT, Smi::IsValid(), v8::internal::kSmiShiftSize, v8::internal::kSmiTag, and v8::internal::kSmiTagSize.
|
inlinestatic |
Definition at line 1051 of file objects-inl.h.
References ASSERT, Smi::kMaxValue, Smi::kMinValue, v8::internal::U, and Smi::value().
Referenced by Smi::FromInt(), Smi::FromIntptr(), BASE_EMBEDDED< Visitor >::GetValue(), Integer::New(), Factory::NewScript(), Heap::NumberFromDouble(), Heap::NumberFromInt32(), Heap::NumberFromUint32(), v8::internal::RUNTIME_FUNCTION(), Map::set_bit_field3(), ObjectTemplate::SetInternalFieldCount(), THREADED_TEST(), and Object::ToSmi().
|
inline |
Definition at line 995 of file objects.h.
Referenced by Object::ShortPrint().
void SmiPrint | ( | FILE * | out | ) |
Definition at line 802 of file objects.cc.
References v8::internal::PrintF(), and Smi::value().
void SmiPrint | ( | StringStream * | accumulator | ) |
Definition at line 807 of file objects.cc.
References StringStream::Add(), and Smi::value().
|
inline |
Definition at line 968 of file objects-inl.h.
References Internals::SmiValue().
Referenced by Map::bit_field3(), DescriptorArray::bit_field3_storage(), v8::internal::BUILTIN(), SharedFunctionInfo::builtin_function_id(), HashTable< CompilationCacheShape, HashTableKey * >::Capacity(), JSRegExp::CaptureCount(), ScopeInfo::ContextLocalInitFlag(), ScopeInfo::ContextLocalMode(), ElementsAccessorBase< FastPackedSmiElementsAccessor, ElementsKindTraits< FAST_SMI_ELEMENTS > >::CopyElements(), FastElementsAccessor< FastPackedSmiElementsAccessor, ElementsKindTraits< FAST_SMI_ELEMENTS >, kPointerSize >::DeleteCommon(), JSFunctionResultCache::finger_index(), Smi::FromInt(), ScopeInfo::FunctionContextSlotIndex(), Runtime::FunctionForSymbol(), JavaScriptFrame::GetArgumentsLength(), StackFrame::GetColumn(), JSDate::GetField(), JSRegExp::GetFlags(), StackTrace::GetFrameCount(), JSObject::GetIdentityHash(), NonStrictArgumentsElementsAccessor::GetImpl(), DictionaryElementsAccessor::GetKeyForIndexImpl(), StackFrame::GetLineNumber(), JSObject::GetLocalElementKeys(), ArgumentsAdaptorFrame::GetNumberOfIncomingArguments(), Deoptimizer::GetOutputInfo(), SharedFunctionInfo::GetThisPropertyAssignmentArgument(), CompileTimeValue::GetType(), JSObject::HasLocalElement(), JSObject::HasRealElementProperty(), BASE_EMBEDDED< Visitor >::IndexFromValue(), Value::Int32Value(), Value::IntegerValue(), ObjectTemplate::InternalFieldCount(), SharedFunctionInfo::IsThisPropertyAssignmentArgument(), Value::IsUint32(), Smi::IsValid(), Oddball::kind(), Array::Length(), SeededNumberDictionary::max_number_key(), IntrusiveMapTransitionIterator::Next(), IntrusivePrototypeTransitionIterator::Next(), DescriptorArray::NextEnumerationIndex(), Dictionary< SeededNumberDictionaryShape, uint32_t >::NextEnumerationIndex(), JSObject::NormalizeElements(), HashTable< CompilationCacheShape, HashTableKey * >::NumberOfDeletedElements(), HashTable< CompilationCacheShape, HashTableKey * >::NumberOfElements(), JSObject::NumberOfEnumElements(), v8::internal::NumberToInt32(), Heap::NumberToString(), v8::internal::NumberToUint32(), JSObject::PrepareSlowElementsForSort(), ToBooleanStub::Types::Record(), RegExpKey::RegExpHash(), SeededNumberDictionary::requires_slow_elements(), DateCache::ResetDateCache(), v8::internal::RUNTIME_FUNCTION(), BooleanBit::set(), JSObject::SetElement(), JSObject::SetFastDoubleElement(), ElementsAccessorBase< ElementsAccessorSubclass, ElementsTraitsParam >::SetLengthImpl(), FastElementsAccessor< FastPackedSmiElementsAccessor, ElementsKindTraits< FAST_SMI_ELEMENTS >, kPointerSize >::SetLengthWithoutNormalize(), ExternalPixelArray::SetValue(), ExternalUnsignedIntArray::SetValue(), ExternalFloatArray::SetValue(), ExternalDoubleArray::SetValue(), JSFunctionResultCache::size(), BASE_EMBEDDED< Visitor >::smi_at(), Smi::SmiPrint(), TEST(), Object::ToArrayIndex(), Value::ToArrayIndex(), JSRegExp::TypeTag(), JSRegExp::TypeTagUnchecked(), Value::Uint32Value(), ElementsAccessorBase< FastPackedSmiElementsAccessor, ElementsKindTraits< FAST_SMI_ELEMENTS > >::ValidateImpl(), Integer::Value(), Int32::Value(), and Uint32::Value().
|
static |
Definition at line 1006 of file objects.h.
Referenced by v8::internal::BUILTIN(), HStringLength::CalculateInferredType(), JSReceiver::GenerateIdentityHash(), Object::GetHash(), Range::IsInSmiRange(), Smi::IsValid(), JSObject::PrepareElementsForSort(), JSObject::PrepareSlowElementsForSort(), DateCache::ResetDateCache(), v8::internal::RUNTIME_FUNCTION(), TEST(), THREADED_TEST(), and Value::ToArrayIndex().
|
static |
Definition at line 1004 of file objects.h.
Referenced by Range::IsInSmiRange(), Smi::IsValid(), and TEST().