v8
3.11.10(node0.8.26)
V8 is Google's open source JavaScript engine
|
#include <objects.h>
Public Types | |
enum | DeleteMode { NORMAL_DELETION, STRICT_DELETION, FORCE_DELETION } |
enum | StoreFromKeyed { MAY_BE_STORE_FROM_KEYED, CERTAINLY_NOT_STORE_FROM_KEYED } |
Static Public Member Functions | |
static JSReceiver * | cast (Object *obj) |
static Handle< Object > | SetProperty (Handle< JSReceiver > object, Handle< String > key, Handle< Object > value, PropertyAttributes attributes, StrictModeFlag strict_mode) |
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) |
Protected Member Functions | |
Smi * | GenerateIdentityHash () |
Protected Member Functions inherited from HeapObject | |
void | IteratePointers (ObjectVisitor *v, int start, int end) |
void | IteratePointer (ObjectVisitor *v, int offset) |
Additional Inherited Members | |
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 |
enum DeleteMode |
enum StoreFromKeyed |
|
inlinestatic |
String * class_name | ( | ) |
Definition at line 1460 of file objects.cc.
References JSFunction::cast(), String::cast(), HeapObject::GetHeap(), and HeapObject::map().
Referenced by Logger::ApiIndexedPropertyAccess(), Logger::ApiNamedPropertyAccess(), Object::HasSpecificClassOf(), v8::internal::RUNTIME_FUNCTION(), and Logger::SuspectReadEvent().
String * constructor_name | ( | ) |
Definition at line 1473 of file objects.cc.
References JSObject::cast(), JSFunction::cast(), String::cast(), JSReceiver::constructor_name(), HeapObject::GetHeap(), JSReceiver::GetPrototype(), String::length(), and HeapObject::map().
Referenced by JSReceiver::constructor_name(), and JSObject::JSObjectShortPrint().
MaybeObject * DeleteElement | ( | uint32_t | index, |
DeleteMode | mode | ||
) |
Definition at line 3892 of file objects.cc.
References JSObject::cast(), JSProxy::cast(), JSObject::DeleteElement(), and JSProxy::DeleteElementWithHandler().
MaybeObject * DeleteProperty | ( | String * | name, |
DeleteMode | mode | ||
) |
Definition at line 3900 of file objects.cc.
References JSObject::cast(), JSProxy::cast(), JSObject::DeleteProperty(), and JSProxy::DeletePropertyWithHandler().
|
protected |
Definition at line 3466 of file objects.cc.
References Smi::FromInt(), HeapObject::GetIsolate(), Smi::kMaxValue, and V8::RandomPrivate().
Referenced by JSObject::GetIdentityHash(), and JSProxy::GetIdentityHash().
|
inline |
Definition at line 4795 of file objects-inl.h.
References JSObject::cast(), JSProxy::cast(), JSObject::GetIdentityHash(), and JSProxy::GetIdentityHash().
Referenced by Object::GetHash().
PropertyAttributes GetLocalPropertyAttribute | ( | String * | name | ) |
Definition at line 3134 of file objects.cc.
References ABSENT, String::AsArrayIndex(), JSObject::cast(), HeapObject::GetIsolate(), JSReceiver::GetPropertyAttribute(), JSObject::HasLocalElement(), JSReceiver::LocalLookup(), and NONE.
Referenced by JSReceiver::HasLocalProperty().
|
inline |
Definition at line 4778 of file objects-inl.h.
References JSReceiver::GetPropertyAttributeWithReceiver().
Referenced by JSReceiver::GetLocalPropertyAttribute(), JSReceiver::GetPropertyAttributeWithReceiver(), and JSReceiver::HasProperty().
PropertyAttributes GetPropertyAttributeWithReceiver | ( | JSReceiver * | receiver, |
String * | name | ||
) |
Definition at line 3084 of file objects.cc.
References ABSENT, String::AsArrayIndex(), JSObject::cast(), HeapObject::GetIsolate(), JSReceiver::GetPropertyAttribute(), JSObject::HasElementWithReceiver(), JSReceiver::Lookup(), and NONE.
Referenced by JSReceiver::GetPropertyAttribute(), and JSObject::GetPropertyAttributePostInterceptor().
|
inline |
Definition at line 4757 of file objects-inl.h.
References HeapObject::cast(), and HeapObject::map().
Referenced by v8::internal::BUILTIN(), JSObject::BypassGlobalProxy(), JSReceiver::constructor_name(), JSObject::DefineAccessor(), JSObject::DeleteElement(), JSObject::DeleteHiddenProperty(), JSObject::DeleteProperty(), JSObject::GetHiddenProperty(), JSObject::GetPropertyAttributePostInterceptor(), JSObject::GetPropertyPostInterceptor(), JSObject::HasElementWithReceiver(), JSObject::HasLocalElement(), JSReceiver::IsSimpleEnum(), JSReceiver::LocalLookup(), JSObject::LocalLookupRealNamedProperty(), JSReceiver::Lookup(), JSObject::LookupAccessor(), JSObject::LookupCallback(), JSObject::LookupRealNamedPropertyInPrototypes(), JSObject::PreventExtensions(), v8::internal::RUNTIME_FUNCTION(), JSObject::SetElement(), JSObject::SetElementWithCallbackSetterInPrototypes(), JSObject::SetHiddenProperty(), JSObject::SetLocalPropertyIgnoreAttributes(), JSObject::SetPropertyForResult(), and JSReceiver::SetPrototype().
|
inline |
Definition at line 4802 of file objects-inl.h.
References JSObject::cast(), JSProxy::cast(), JSProxy::HasElementWithHandler(), and JSObject::HasElementWithReceiver().
|
inline |
Definition at line 4770 of file objects-inl.h.
References ABSENT, JSProxy::cast(), JSReceiver::GetLocalPropertyAttribute(), and JSProxy::HasPropertyWithHandler().
|
inline |
Definition at line 4762 of file objects-inl.h.
References ABSENT, JSProxy::cast(), JSReceiver::GetPropertyAttribute(), and JSProxy::HasPropertyWithHandler().
bool IsSimpleEnum | ( | ) |
Definition at line 4100 of file objects.cc.
References ASSERT, JSObject::cast(), FixedArray::cast(), HeapObject::GetHeap(), JSReceiver::GetPrototype(), JSObject::HasIndexedInterceptor(), JSObject::HasNamedInterceptor(), FixedArrayBase::length(), HeapObject::map(), and JSObject::NumberOfEnumElements().
void LocalLookup | ( | String * | name, |
LookupResult * | result | ||
) |
Definition at line 4170 of file objects.cc.
References ASSERT, JSReceiver::cast(), JSObject::cast(), JSProxy::cast(), String::Equals(), HeapObject::GetHeap(), JSReceiver::GetPrototype(), JSObject::HasNamedInterceptor(), JSReceiver::LocalLookup(), and JSObject::LocalLookupRealNamedProperty().
Referenced by JSObject::DefineAccessor(), JSObject::DefineFastAccessor(), JSObject::DeleteProperty(), JSReceiver::GetLocalPropertyAttribute(), JSReceiver::LocalLookup(), JSReceiver::Lookup(), JSObject::LookupAccessor(), v8::internal::RUNTIME_FUNCTION(), JSObject::SetLocalPropertyIgnoreAttributes(), and JSReceiver::SetProperty().
void Lookup | ( | String * | name, |
LookupResult * | result | ||
) |
Definition at line 4212 of file objects.cc.
References JSReceiver::cast(), JSObject::cast(), HeapObject::GetHeap(), JSReceiver::GetPrototype(), and JSReceiver::LocalLookup().
Referenced by JSReceiver::GetPropertyAttributeWithReceiver(), Object::Lookup(), v8::internal::RUNTIME_FUNCTION(), and PolymorphicCodeCache::Update().
MaybeObject * SetElement | ( | uint32_t | index, |
Object * | value, | ||
PropertyAttributes | attributes, | ||
StrictModeFlag | strict_mode, | ||
bool | check_prototype | ||
) |
Definition at line 9636 of file objects.cc.
References JSObject::cast(), JSProxy::cast(), JSObject::SetElement(), and JSProxy::SetElementWithHandler().
|
static |
Definition at line 1944 of file objects.cc.
References CALL_HEAP_FUNCTION, and v8::internal::Object.
Referenced by v8::internal::RUNTIME_FUNCTION(), Runtime::SetObjectProperty(), JSReceiver::SetProperty(), JSObject::SetPropertyPostInterceptor(), KeyedStoreIC::Store(), and TEST().
MaybeObject * SetProperty | ( | String * | key, |
Object * | value, | ||
PropertyAttributes | attributes, | ||
StrictModeFlag | strict_mode, | ||
JSReceiver::StoreFromKeyed | store_mode = MAY_BE_STORE_FROM_KEYED |
||
) |
Definition at line 1955 of file objects.cc.
References HeapObject::GetIsolate(), JSReceiver::LocalLookup(), and JSReceiver::SetProperty().
MaybeObject * SetProperty | ( | LookupResult * | result, |
String * | key, | ||
Object * | value, | ||
PropertyAttributes | attributes, | ||
StrictModeFlag | strict_mode, | ||
JSReceiver::StoreFromKeyed | store_mode = MAY_BE_STORE_FROM_KEYED |
||
) |
Definition at line 2500 of file objects.cc.
References JSObject::cast(), v8::internal::HANDLER, and JSObject::SetPropertyForResult().
MaybeObject * SetPropertyWithDefinedSetter | ( | JSReceiver * | setter, |
Object * | value | ||
) |
Definition at line 2046 of file objects.cc.
References ARRAY_SIZE, Execution::Call(), Failure::Exception(), and HeapObject::GetIsolate().
Referenced by JSObject::SetPropertyWithCallback().
MaybeObject * SetPrototype | ( | Object * | value, |
bool | skip_hidden_prototypes | ||
) |
Definition at line 8792 of file objects.cc.
References ASSERT, JSReceiver::cast(), JSObject::cast(), Heap::ClearInstanceofCache(), Map::CopyDropTransitions(), FACTORY, HeapObject::GetHeap(), Object::GetPrototype(), JSReceiver::GetPrototype(), Map::GetPrototypeTransition(), Map::is_extensible(), Map::is_hidden_prototype(), Heap::isolate(), HeapObject::map(), DescriptorArray::MAY_BE_SHARED, v8::internal::NULL, JSObject::OptimizeAsPrototype(), Map::PutPrototypeTransition(), HeapObject::set_map(), HeapObject::Size(), and Isolate::Throw().