V8 Project
v8::internal::FrameFunctionIterator Class Reference
+ Collaboration diagram for v8::internal::FrameFunctionIterator:

Public Member Functions

 FrameFunctionIterator (Isolate *isolate, const DisallowHeapAllocation &promise)
 
JSFunctionnext ()
 
bool Find (JSFunction *function)
 

Private Member Functions

void GetFunctions ()
 

Private Attributes

Isolateisolate_
 
JavaScriptFrameIterator frame_iterator_
 
List< JSFunction * > functions_
 
int index_
 

Detailed Description

Definition at line 1204 of file accessors.cc.

Constructor & Destructor Documentation

◆ FrameFunctionIterator()

v8::internal::FrameFunctionIterator::FrameFunctionIterator ( Isolate isolate,
const DisallowHeapAllocation promise 
)
inline

Definition at line 1206 of file accessors.cc.

1207  : isolate_(isolate),
1208  frame_iterator_(isolate),
1209  functions_(2),
1210  index_(0) {
1211  GetFunctions();
1212  }
List< JSFunction * > functions_
Definition: accessors.cc:1251
JavaScriptFrameIterator frame_iterator_
Definition: accessors.cc:1250

Member Function Documentation

◆ Find()

bool v8::internal::FrameFunctionIterator::Find ( JSFunction function)
inline

Definition at line 1230 of file accessors.cc.

1230  {
1231  JSFunction* next_function;
1232  do {
1233  next_function = next();
1234  if (next_function == function) return true;
1235  } while (next_function != NULL);
1236  return false;
1237  }
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 NULL.

Referenced by v8::internal::FindCaller().

+ Here is the caller graph for this function:

◆ GetFunctions()

void v8::internal::FrameFunctionIterator::GetFunctions ( )
inlineprivate

Definition at line 1240 of file accessors.cc.

1240  {
1241  functions_.Rewind(0);
1242  if (frame_iterator_.done()) return;
1243  JavaScriptFrame* frame = frame_iterator_.frame();
1244  frame->GetFunctions(&functions_);
1245  DCHECK(functions_.length() > 0);
1246  frame_iterator_.Advance();
1247  index_ = functions_.length() - 1;
1248  }
#define DCHECK(condition)
Definition: logging.h:205

References DCHECK, and v8::internal::JavaScriptFrame::GetFunctions().

+ Here is the call graph for this function:

◆ next()

JSFunction* v8::internal::FrameFunctionIterator::next ( )
inline

Definition at line 1213 of file accessors.cc.

1213  {
1214  while (true) {
1215  if (functions_.length() == 0) return NULL;
1216  JSFunction* next_function = functions_[index_];
1217  index_--;
1218  if (index_ < 0) {
1219  GetFunctions();
1220  }
1221  // Skip functions from other origins.
1222  if (!AllowAccessToFunction(isolate_->context(), next_function)) continue;
1223  return next_function;
1224  }
1225  }
Context * context()
Definition: isolate.h:548
static bool AllowAccessToFunction(Context *current_context, JSFunction *function)
Definition: accessors.cc:1198

References v8::internal::AllowAccessToFunction(), and NULL.

Referenced by v8::internal::FindCaller().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ frame_iterator_

JavaScriptFrameIterator v8::internal::FrameFunctionIterator::frame_iterator_
private

Definition at line 1250 of file accessors.cc.

◆ functions_

List<JSFunction*> v8::internal::FrameFunctionIterator::functions_
private

Definition at line 1251 of file accessors.cc.

◆ index_

int v8::internal::FrameFunctionIterator::index_
private

Definition at line 1252 of file accessors.cc.

◆ isolate_

Isolate* v8::internal::FrameFunctionIterator::isolate_
private

Definition at line 1249 of file accessors.cc.


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