V8 Project
v8::internal::AccessorTable Class Reference

#include <full-codegen.h>

+ Inheritance diagram for v8::internal::AccessorTable:
+ Collaboration diagram for v8::internal::AccessorTable:

Public Member Functions

 AccessorTable (Zone *zone)
 
Iterator lookup (Literal *literal)
 
- Public Member Functions inherited from v8::internal::TemplateHashMap< Literal, ObjectLiteral::Accessors, ZoneAllocationPolicy >
 STATIC_ASSERT (sizeof(Literal *)==sizeof(void *))
 
 STATIC_ASSERT (sizeof(ObjectLiteral::Accessors *)==sizeof(void *))
 
 TemplateHashMap (typename TemplateHashMapImpl< ZoneAllocationPolicy >::MatchFun match, ZoneAllocationPolicy allocator=ZoneAllocationPolicy())
 
Iterator begin () const
 
Iterator end () const
 
Iterator find (Literal *key, bool insert=false, ZoneAllocationPolicy allocator=ZoneAllocationPolicy())
 

Private Attributes

Zonezone_
 

Detailed Description

Definition at line 856 of file full-codegen.h.

Constructor & Destructor Documentation

◆ AccessorTable()

v8::internal::AccessorTable::AccessorTable ( Zone zone)
inlineexplicit

Definition at line 860 of file full-codegen.h.

860  :
861  TemplateHashMap<Literal, ObjectLiteral::Accessors,
862  ZoneAllocationPolicy>(Literal::Match,
863  ZoneAllocationPolicy(zone)),
864  zone_(zone) { }
TemplateHashMap(typename TemplateHashMapImpl< ZoneAllocationPolicy >::MatchFun match, ZoneAllocationPolicy allocator=ZoneAllocationPolicy())
Definition: hashmap.h:329

Member Function Documentation

◆ lookup()

Iterator v8::internal::AccessorTable::lookup ( Literal *  literal)
inline

Definition at line 866 of file full-codegen.h.

866  {
867  Iterator it = find(literal, true, ZoneAllocationPolicy(zone_));
868  if (it->second == NULL) it->second = new(zone_) ObjectLiteral::Accessors();
869  return it;
870  }
Iterator find(Literal *key, bool insert=false, ZoneAllocationPolicy allocator=ZoneAllocationPolicy())
Definition: hashmap.h:339
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 deoptimize the optimized code if the layout of the maps changes enable context specialization in TurboFan execution budget before interrupt is triggered max percentage of megamorphic generic ICs to allow optimization enable use of SAHF instruction if enable use of VFP3 instructions if available enable use of NEON instructions if enable use of SDIV and UDIV instructions if enable use of MLS instructions if enable loading bit constant by means of movw movt instruction enable unaligned accesses for enable use of d16 d31 registers on ARM this requires VFP3 force all emitted branches to be in long enable alignment of csp to bytes on platforms which prefer the register to always be NULL

References v8::internal::TemplateHashMap< Literal, ObjectLiteral::Accessors, ZoneAllocationPolicy >::find(), NULL, and zone_.

+ Here is the call graph for this function:

Member Data Documentation

◆ zone_

Zone* v8::internal::AccessorTable::zone_
private

Definition at line 873 of file full-codegen.h.

Referenced by lookup().


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