V8 Project
v8::internal::FlexibleBodyVisitor< StaticVisitor, BodyDescriptor, ReturnType > Class Template Reference

#include <objects-visiting.h>

+ Inheritance diagram for v8::internal::FlexibleBodyVisitor< StaticVisitor, BodyDescriptor, ReturnType >:
+ Collaboration diagram for v8::internal::FlexibleBodyVisitor< StaticVisitor, BodyDescriptor, ReturnType >:

Public Member Functions

 INLINE (static ReturnType Visit(Map *map, HeapObject *object))
 
- Public Member Functions inherited from v8::internal::BodyVisitorBase< StaticVisitor >
 INLINE (static void IteratePointers(Heap *heap, HeapObject *object, int start_offset, int end_offset))
 

Static Public Member Functions

template<int object_size>
static ReturnType VisitSpecialized (Map *map, HeapObject *object)
 

Detailed Description

template<typename StaticVisitor, typename BodyDescriptor, typename ReturnType>
class v8::internal::FlexibleBodyVisitor< StaticVisitor, BodyDescriptor, ReturnType >

Definition at line 201 of file objects-visiting.h.

Member Function Documentation

◆ INLINE()

template<typename StaticVisitor , typename BodyDescriptor , typename ReturnType >
v8::internal::FlexibleBodyVisitor< StaticVisitor, BodyDescriptor, ReturnType >::INLINE ( static ReturnType   VisitMap *map, HeapObject *object)
inline

Definition at line 203 of file objects-visiting.h.

203  {
204  int object_size = BodyDescriptor::SizeOf(map, object);
205  BodyVisitorBase<StaticVisitor>::IteratePointers(
206  map->GetHeap(), object, BodyDescriptor::kStartOffset, object_size);
207  return static_cast<ReturnType>(object_size);
208  }
enable harmony numeric enable harmony object literal extensions Optimize object Array DOM strings and string trace pretenuring decisions of HAllocate instructions Enables optimizations which favor memory size over execution speed maximum source size in bytes considered for a single inlining maximum cumulative number of AST nodes considered for inlining trace the tracking of allocation sites deoptimize every n garbage collections perform array bounds checks elimination analyze liveness of environment slots and zap dead values flushes the cache of optimized code for closures on every GC allow uint32 values on optimize frames if they are used only in safe operations track concurrent recompilation artificial compilation delay in ms do not emit check maps for constant values that have a leaf map

References map.

◆ VisitSpecialized()

template<typename StaticVisitor , typename BodyDescriptor , typename ReturnType >
template<int object_size>
static ReturnType v8::internal::FlexibleBodyVisitor< StaticVisitor, BodyDescriptor, ReturnType >::VisitSpecialized ( Map map,
HeapObject object 
)
inlinestatic

Definition at line 211 of file objects-visiting.h.

211  {
212  DCHECK(BodyDescriptor::SizeOf(map, object) == object_size);
213  BodyVisitorBase<StaticVisitor>::IteratePointers(
214  map->GetHeap(), object, BodyDescriptor::kStartOffset, object_size);
215  return static_cast<ReturnType>(object_size);
216  }
#define DCHECK(condition)
Definition: logging.h:205

References DCHECK, and map.


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