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

Public Types

typedef FixedArray Array
 

Static Public Member Functions

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

Detailed Description

Definition at line 3153 of file objects.cc.

Member Typedef Documentation

◆ Array

Member Function Documentation

◆ Contains()

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

Definition at line 3155 of file objects.cc.

3158  {
3159  for (int i = 0; i < valid_descriptors; i++) {
3160  if (*key == AccessorInfo::cast(array->get(i))->name()) return true;
3161  }
3162  return false;
3163  }

◆ Insert()

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

Definition at line 3164 of file objects.cc.

3167  {
3168  DisallowHeapAllocation no_gc;
3169  array->set(valid_descriptors, *entry);
3170  }
PerThreadAssertScopeDebugOnly< HEAP_ALLOCATION_ASSERT, false > DisallowHeapAllocation
Definition: assert-scope.h:110

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