V8 Project
v8::internal::DescriptorArrayAppender Struct Reference
+ Collaboration diagram for v8::internal::DescriptorArrayAppender:

Public Types

typedef DescriptorArray Array
 

Static Public Member Functions

static bool Contains (Handle< Name > key, Handle< AccessorInfo > entry, int valid_descriptors, Handle< DescriptorArray > array)
 
static void Insert (Handle< Name > key, Handle< AccessorInfo > entry, int valid_descriptors, Handle< DescriptorArray > array)
 

Detailed Description

Definition at line 3133 of file objects.cc.

Member Typedef Documentation

◆ Array

Member Function Documentation

◆ Contains()

static bool v8::internal::DescriptorArrayAppender::Contains ( Handle< Name key,
Handle< AccessorInfo entry,
int  valid_descriptors,
Handle< DescriptorArray array 
)
inlinestatic

Definition at line 3135 of file objects.cc.

3138  {
3139  DisallowHeapAllocation no_gc;
3140  return array->Search(*key, valid_descriptors) != DescriptorArray::kNotFound;
3141  }
static const int kNotFound
Definition: objects.h:3015
PerThreadAssertScopeDebugOnly< HEAP_ALLOCATION_ASSERT, false > DisallowHeapAllocation
Definition: assert-scope.h:110

References v8::internal::DescriptorArray::kNotFound.

◆ Insert()

static void v8::internal::DescriptorArrayAppender::Insert ( Handle< Name key,
Handle< AccessorInfo entry,
int  valid_descriptors,
Handle< DescriptorArray array 
)
inlinestatic

Definition at line 3142 of file objects.cc.

3145  {
3146  DisallowHeapAllocation no_gc;
3147  CallbacksDescriptor desc(key, entry, entry->property_attributes());
3148  array->Append(&desc);
3149  }

The documentation for this struct was generated from the following file: