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

Public Member Functions

 ActivationsFinder (Code *code)
 
void VisitThread (Isolate *isolate, ThreadLocalTop *top)
 
void VisitFrames (JavaScriptFrameIterator *it)
 

Public Attributes

Codecode_
 
bool has_code_activations_
 

Additional Inherited Members

- Protected Member Functions inherited from v8::internal::ThreadVisitor
virtual ~ThreadVisitor ()
 

Detailed Description

Definition at line 97 of file runtime-compiler.cc.

Constructor & Destructor Documentation

◆ ActivationsFinder()

v8::internal::ActivationsFinder::ActivationsFinder ( Code code)
inlineexplicit

Member Function Documentation

◆ VisitFrames()

void v8::internal::ActivationsFinder::VisitFrames ( JavaScriptFrameIterator *  it)
inline

Definition at line 110 of file runtime-compiler.cc.

110  {
111  for (; !it->done(); it->Advance()) {
112  JavaScriptFrame* frame = it->frame();
113  if (code_->contains(frame->pc())) has_code_activations_ = true;
114  }
115  }
bool contains(byte *pc)
Definition: objects-inl.h:6211

References code_, v8::internal::Code::contains(), and has_code_activations_.

Referenced by v8::internal::RUNTIME_FUNCTION(), and VisitThread().

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

◆ VisitThread()

void v8::internal::ActivationsFinder::VisitThread ( Isolate isolate,
ThreadLocalTop *  top 
)
inlinevirtual

Implements v8::internal::ThreadVisitor.

Definition at line 105 of file runtime-compiler.cc.

105  {
106  JavaScriptFrameIterator it(isolate, top);
107  VisitFrames(&it);
108  }
void VisitFrames(JavaScriptFrameIterator *it)

References VisitFrames().

+ Here is the call graph for this function:

Member Data Documentation

◆ code_

Code* v8::internal::ActivationsFinder::code_

Definition at line 99 of file runtime-compiler.cc.

Referenced by VisitFrames().

◆ has_code_activations_

bool v8::internal::ActivationsFinder::has_code_activations_

Definition at line 100 of file runtime-compiler.cc.

Referenced by v8::internal::RUNTIME_FUNCTION(), and VisitFrames().


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