v8
3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
|
#include <objects.h>
Public Member Functions | |
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 *native_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 | VerifyApiCallResultType () |
void | ShortPrint () |
void | ShortPrint (FILE *out) |
void | ShortPrint (StringStream *accumulator) |
Static Public Member Functions | |
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 | kHeaderSize = 0 |
Definition at line 1007 of file objects.h.
Referenced by v8::internal::GetEnumPropertyKeys(), and Object::GetProperty().
Definition at line 250 of file objects.cc.
References CALL_HEAP_FUNCTION, Handle< T >::cast(), and v8::internal::Object.
Referenced by v8::internal::BUILTIN(), Object::Get(), CallICBase::LoadFunction(), Logger::LogRuntime(), and v8::internal::RUNTIME_FUNCTION().
|
inline |
Definition at line 841 of file objects-inl.h.
References ASSERT, Object::GetElementWithReceiver(), and HEAP.
|
inline |
Definition at line 850 of file objects-inl.h.
References ASSERT, Object::GetElementWithReceiver(), and v8::internal::NULL.
Referenced by StackTrace::GetFrame().
MaybeObject * GetElementWithReceiver | ( | Object * | receiver, |
uint32_t | index | ||
) |
Definition at line 667 of file objects.cc.
References v8::ACCESS_GET, ASSERT, HeapObject::cast(), JSObject::cast(), JSProxy::cast(), Isolate::context(), ElementsAccessor::Get(), JSObject::GetElementsAccessor(), JSProxy::GetElementWithHandler(), JSObject::GetElementWithInterceptor(), HeapObject::GetHeap(), Object::GetPrototype(), JSObject::HasIndexedInterceptor(), Heap::isolate(), Isolate::MayIndexedAccess(), Context::native_context(), and Isolate::ReportFailedAccessCheck().
Referenced by Object::GetElement(), Object::GetElementNoExceptionThrown(), and JSObject::GetElementWithInterceptor().
MaybeObject * GetHash | ( | CreationFlag | flag | ) |
Definition at line 756 of file objects.cc.
References JSReceiver::cast(), String::cast(), Oddball::cast(), v8::internal::ComputeLongHash(), v8::internal::double_to_uint64(), Smi::FromInt(), JSReceiver::GetIdentityHash(), String::Hash(), Smi::kMaxValue, Object::Number(), and UNREACHABLE.
Referenced by ObjectHashSet::Add(), ObjectHashSet::Contains(), ObjectHashTableShape< entrysize >::Hash(), ObjectHashTableShape< entrysize >::HashForObject(), ObjectHashTable::Lookup(), ObjectHashTable::Put(), and ObjectHashSet::Remove().
|
inline |
Definition at line 859 of file objects-inl.h.
References Object::GetPropertyWithReceiver().
Referenced by JSObject::GetLocalPropertyPostInterceptor(), GlobalObject::GetPropertyNoExceptionThrown(), JSObject::GetPropertyPostInterceptor(), Object::GetPropertyWithReceiver(), LoadIC::Load(), KeyedLoadIC::Load(), CallICBase::LoadFunction(), V8HeapExplorer::TagGlobalObjects(), TEST(), and TestParserSync().
|
inline |
Definition at line 865 of file objects-inl.h.
References Object::GetPropertyWithReceiver().
|
static |
Definition at line 575 of file objects.cc.
References CALL_HEAP_FUNCTION, Handle< T >::cast(), and v8::internal::Object.
MaybeObject * GetProperty | ( | Object * | receiver, |
LookupResult * | result, | ||
String * | key, | ||
PropertyAttributes * | attributes | ||
) |
Definition at line 590 of file objects.cc.
References ABSENT, v8::ACCESS_GET, ASSERT, v8::internal::CALLBACKS, Object::cast(), JSObject::cast(), v8::internal::CONSTANT_FUNCTION, v8::internal::FIELD, HeapObject::GetHeap(), JSObject::GetPropertyWithFailedAccessCheck(), Object::GetPrototype(), v8::internal::HANDLER, v8::internal::INTERCEPTOR, Heap::isolate(), Isolate::MayNamedAccess(), v8::internal::NONEXISTENT, v8::internal::NORMAL, v8::internal::NULL, v8::internal::TRANSITION, and UNREACHABLE.
MaybeObject * GetPropertyWithDefinedGetter | ( | Object * | receiver, |
JSReceiver * | getter | ||
) |
Definition at line 286 of file objects.cc.
References Execution::Call(), Failure::Exception(), and v8::internal::NULL.
Referenced by JSObject::GetPropertyWithCallback().
MaybeObject * GetPropertyWithReceiver | ( | Object * | receiver, |
String * | key, | ||
PropertyAttributes * | attributes | ||
) |
Definition at line 154 of file objects.cc.
References ABSENT, ASSERT, HeapObject::GetIsolate(), Object::GetProperty(), and Object::Lookup().
Referenced by Object::GetProperty(), and JSObject::GetPropertyPostInterceptor().
Object * GetPrototype | ( | ) |
Definition at line 725 of file objects.cc.
References HeapObject::cast(), Isolate::context(), HeapObject::GetHeap(), Heap::isolate(), HeapObject::map(), and Context::native_context().
Referenced by SharedFunctionInfo::CanGenerateInlineConstructor(), Object::FindInstanceInPrototypeChain(), Object::GetElementWithReceiver(), Object::GetProperty(), v8::internal::RUNTIME_FUNCTION(), JSReceiver::SetPrototype(), and Deoptimizer::VisitAllOptimizedFunctionsForGlobalObject().
|
inline |
Definition at line 836 of file objects-inl.h.
References JSObject::cast(), and JSReceiver::class_name().
|
inline |
Definition at line 257 of file objects-inl.h.
Referenced by JSObject::set_map_and_elements().
INLINE | ( | bool | IsSpecObject() | ) |
INLINE | ( | bool | IsSpecFunction() | ) |
INLINE | ( | bool | IsUndefined() | ) |
INLINE | ( | bool | IsNull() | ) |
INLINE | ( | bool | IsTheHole() | ) |
INLINE | ( | bool | IsTrue() | ) |
INLINE | ( | bool | IsFalse() | ) |
|
inline |
Definition at line 805 of file objects-inl.h.
References Oddball::cast(), Oddball::kArgumentMarker, and Oddball::kind().
|
inline |
Definition at line 439 of file objects-inl.h.
References HeapObject::cast(), v8::internal::FILLER_TYPE, v8::internal::FREE_SPACE_TYPE, Map::instance_type(), and HeapObject::map().
Referenced by IncrementalMarking::Step(), and IncrementalMarking::UpdateMarkingDequeAfterScavenge().
|
inline |
Definition at line 132 of file objects-inl.h.
|
inline |
Definition at line 137 of file objects-inl.h.
References JSObject::cast(), JSFunction::cast(), FunctionTemplateInfo::cast(), and HeapObject::map().
Referenced by Object::FindInstanceInPrototypeChain(), FunctionTemplate::HasInstance(), and AccessorInfo::IsCompatibleReceiver().
|
inline |
Definition at line 818 of file objects-inl.h.
References HeapNumber::cast(), and isnan().
|
inline |
Definition at line 1701 of file objects-inl.h.
References JSValue::cast(), String::cast(), and String::length().
Referenced by JSObject::DeleteElement(), JSObject::HasElementWithReceiver(), JSObject::HasLocalElement(), and JSObject::HasRealElementProperty().
|
inline |
Definition at line 760 of file objects-inl.h.
References HeapObject::cast(), MAKE_STRUCT_CASE, and STRUCT_LIST.
void Lookup | ( | String * | name, |
LookupResult * | result | ||
) |
Definition at line 132 of file objects.cc.
References ASSERT, JSReceiver::cast(), JSReceiver::Lookup(), Context::native_context(), and v8::internal::NULL.
Referenced by Object::GetPropertyWithReceiver().
|
inline |
Definition at line 166 of file objects-inl.h.
References ASSERT, and v8::internal::kSmiTagMask.
Referenced by IncrementalMarkingMarkingVisitor::INLINE().
|
inline |
Definition at line 810 of file objects-inl.h.
References ASSERT.
Referenced by Object::GetHash(), Heap::GetNumberStringCache(), UnseededNumberDictionaryShape::HashForObject(), HeapNumber::HeapNumberPrint(), NumberDictionaryShape::IsMatch(), JSObject::JSObjectShortPrint(), Array::Length(), v8::internal::NumberToInt32(), v8::internal::NumberToUint32(), StringStream::PrintMentionedObjectCache(), Object::SameValue(), SeededNumberDictionaryShape::SeededHashForObject(), JSObject::SetFastElement(), FastElementsAccessor< FastPackedSmiElementsAccessor, ElementsKindTraits< FAST_SMI_ELEMENTS >, kPointerSize >::SetLengthWithoutNormalize(), DictionaryElementsAccessor::SetLengthWithoutNormalize(), Heap::SetNumberStringCache(), and TEST().
bool SameValue | ( | Object * | other | ) |
Definition at line 780 of file objects.cc.
References String::cast(), String::Equals(), isnan(), and Object::Number().
Referenced by ObjectHashTableShape< entrysize >::IsMatch().
|
inline |
Definition at line 998 of file objects.h.
Referenced by HeapObject::HeapObjectShortPrint(), JSObject::JSObjectShortPrint(), JSObject::PrintElementsTransition(), StringStream::PrintMentionedObjectCache(), JavaScriptFrame::PrintTop(), StringStream::PrintUsingMap(), v8::internal::RUNTIME_FUNCTION(), and Object::ShortPrint().
void ShortPrint | ( | FILE * | out | ) |
Definition at line 798 of file objects.cc.
References StringStream::OutputToFile(), and Object::ShortPrint().
void ShortPrint | ( | StringStream * | accumulator | ) |
Definition at line 806 of file objects.cc.
References Smi::cast(), Failure::cast(), HeapObject::cast(), Failure::FailurePrint(), HeapObject::HeapObjectShortPrint(), and Smi::SmiPrint().
|
inline |
Definition at line 1682 of file objects-inl.h.
References Smi::cast(), HeapNumber::cast(), Smi::value(), and HeapNumber::value().
Referenced by JSArray::JSArrayUpdateLengthFromIndex(), v8::internal::RUNTIME_FUNCTION(), JSObject::SetDictionaryElement(), JSObject::SetFastDoubleElement(), JSObject::SetFastElement(), ElementsAccessorBase< ElementsAccessorSubclass, ElementsTraitsParam >::SetLengthImpl(), JSObject::ShouldConvertToFastElements(), THREADED_TEST(), and JSObject::TransitionElementsKind().
Object * ToBoolean | ( | ) |
Definition at line 107 of file objects.cc.
References Smi::cast(), HeapObject::cast(), HeapNumber::cast(), String::cast(), HeapObject::GetHeap(), HeapNumber::HeapNumberToBoolean(), Object::ToBoolean(), and Heap::ToBoolean().
Referenced by v8::internal::RUNTIME_FUNCTION(), and Object::ToBoolean().
MaybeObject * ToObject | ( | ) |
Definition at line 85 of file objects.cc.
References HeapObject::cast(), Isolate::context(), HeapObject::GetIsolate(), Failure::InternalError(), and Context::native_context().
Referenced by Shell::ArraySet(), and Shell::ArraySubArray().
MaybeObject * ToObject | ( | Context * | native_context | ) |
Definition at line 72 of file objects.cc.
References ASSERT.
|
inline |
Definition at line 823 of file objects-inl.h.
References HeapNumber::cast(), Failure::Exception(), v8::internal::FastD2I(), v8::internal::FastI2D(), Smi::FromInt(), Smi::IsValid(), and HeapNumber::value().
Referenced by ElementsAccessorBase< ElementsAccessorSubclass, ElementsTraitsParam >::SetLengthImpl().
|
inline |
Definition at line 1715 of file objects-inl.h.
References FATAL.
Referenced by JSObject::GetPropertyWithCallback().
|
static |
Definition at line 1010 of file objects.h.
Referenced by ByteArray::LengthFor(), ByteArray::Size(), FixedArray::SizeFor(), FixedDoubleArray::SizeFor(), and ByteArray::SizeFor().