V8 Project
v8::internal::EnumerateOptimizedFunctionsVisitor Class Reference
+ Inheritance diagram for v8::internal::EnumerateOptimizedFunctionsVisitor:
+ Collaboration diagram for v8::internal::EnumerateOptimizedFunctionsVisitor:

Public Member Functions

 EnumerateOptimizedFunctionsVisitor (Handle< SharedFunctionInfo > *sfis, Handle< Code > *code_objects, int *count)
 
virtual void EnterContext (Context *context)
 
virtual void LeaveContext (Context *context)
 
virtual void VisitFunction (JSFunction *function)
 

Private Attributes

Handle< SharedFunctionInfo > * sfis_
 
Handle< Code > * code_objects_
 
intcount_
 

Detailed Description

Definition at line 1560 of file log.cc.

Constructor & Destructor Documentation

◆ EnumerateOptimizedFunctionsVisitor()

v8::internal::EnumerateOptimizedFunctionsVisitor::EnumerateOptimizedFunctionsVisitor ( Handle< SharedFunctionInfo > *  sfis,
Handle< Code > *  code_objects,
int count 
)
inline

Definition at line 1562 of file log.cc.

1565  : sfis_(sfis), code_objects_(code_objects), count_(count) { }
Handle< SharedFunctionInfo > * sfis_
Definition: log.cc:1586

Member Function Documentation

◆ EnterContext()

virtual void v8::internal::EnumerateOptimizedFunctionsVisitor::EnterContext ( Context context)
inlinevirtual

Definition at line 1567 of file log.cc.

1567 {}

◆ LeaveContext()

virtual void v8::internal::EnumerateOptimizedFunctionsVisitor::LeaveContext ( Context context)
inlinevirtual

Definition at line 1568 of file log.cc.

1568 {}

◆ VisitFunction()

virtual void v8::internal::EnumerateOptimizedFunctionsVisitor::VisitFunction ( JSFunction function)
inlinevirtual

Definition at line 1570 of file log.cc.

1570  {
1571  SharedFunctionInfo* sfi = SharedFunctionInfo::cast(function->shared());
1572  Object* maybe_script = sfi->script();
1573  if (maybe_script->IsScript()
1574  && !Script::cast(maybe_script)->HasValidSource()) return;
1575  if (sfis_ != NULL) {
1576  sfis_[*count_] = Handle<SharedFunctionInfo>(sfi);
1577  }
1578  if (code_objects_ != NULL) {
1579  DCHECK(function->code()->kind() == Code::OPTIMIZED_FUNCTION);
1580  code_objects_[*count_] = Handle<Code>(function->code());
1581  }
1582  *count_ = *count_ + 1;
1583  }
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
#define DCHECK(condition)
Definition: logging.h:205
kSerializedDataOffset Object
Definition: objects-inl.h:5322

References code_objects_, count_, DCHECK, NULL, and sfis_.

Member Data Documentation

◆ code_objects_

Handle<Code>* v8::internal::EnumerateOptimizedFunctionsVisitor::code_objects_
private

Definition at line 1587 of file log.cc.

Referenced by VisitFunction().

◆ count_

int* v8::internal::EnumerateOptimizedFunctionsVisitor::count_
private

Definition at line 1588 of file log.cc.

Referenced by VisitFunction().

◆ sfis_

Handle<SharedFunctionInfo>* v8::internal::EnumerateOptimizedFunctionsVisitor::sfis_
private

Definition at line 1586 of file log.cc.

Referenced by VisitFunction().


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