V8 Project
v8::internal::AllocationSiteContext Class Reference

#include <allocation-site-scopes.h>

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

Public Member Functions

 AllocationSiteContext (Isolate *isolate)
 
Handle< AllocationSitetop ()
 
Handle< AllocationSitecurrent ()
 
bool ShouldCreateMemento (Handle< JSObject > object)
 
Isolateisolate ()
 

Protected Member Functions

void update_current_site (AllocationSite *site)
 
void InitializeTraversal (Handle< AllocationSite > site)
 

Private Attributes

Isolateisolate_
 
Handle< AllocationSitetop_
 
Handle< AllocationSitecurrent_
 

Detailed Description

Definition at line 19 of file allocation-site-scopes.h.

Constructor & Destructor Documentation

◆ AllocationSiteContext()

v8::internal::AllocationSiteContext::AllocationSiteContext ( Isolate isolate)
inlineexplicit

Definition at line 21 of file allocation-site-scopes.h.

References isolate(), and isolate_.

+ Here is the call graph for this function:

Member Function Documentation

◆ current()

Handle<AllocationSite> v8::internal::AllocationSiteContext::current ( )
inline

Definition at line 26 of file allocation-site-scopes.h.

26 { return current_; }

References current_.

Referenced by v8::internal::HOptimizedGraphBuilder::BuildFastLiteral(), v8::internal::AllocationSiteCreationContext::EnterNewScope(), and v8::internal::AllocationSiteUsageContext::EnterNewScope().

+ Here is the caller graph for this function:

◆ InitializeTraversal()

void v8::internal::AllocationSiteContext::InitializeTraversal ( Handle< AllocationSite site)
inlineprotected

Definition at line 37 of file allocation-site-scopes.h.

37  {
38  top_ = site;
39  current_ = Handle<AllocationSite>(*top_, isolate());
40  }

References current_, isolate(), and top_.

Referenced by v8::internal::AllocationSiteCreationContext::EnterNewScope(), and v8::internal::AllocationSiteUsageContext::EnterNewScope().

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

◆ isolate()

Isolate* v8::internal::AllocationSiteContext::isolate ( )
inline

Definition at line 30 of file allocation-site-scopes.h.

30 { return isolate_; }

References isolate_.

Referenced by AllocationSiteContext(), v8::internal::AllocationSiteCreationContext::EnterNewScope(), v8::internal::AllocationSiteUsageContext::EnterNewScope(), and InitializeTraversal().

+ Here is the caller graph for this function:

◆ ShouldCreateMemento()

bool v8::internal::AllocationSiteContext::ShouldCreateMemento ( Handle< JSObject object)
inline

Definition at line 28 of file allocation-site-scopes.h.

28 { return false; }

◆ top()

Handle<AllocationSite> v8::internal::AllocationSiteContext::top ( )
inline

Definition at line 25 of file allocation-site-scopes.h.

25 { return top_; }

References top_.

Referenced by v8::internal::AllocationSiteCreationContext::EnterNewScope(), v8::internal::AllocationSiteUsageContext::EnterNewScope(), and v8::internal::AllocationSiteCreationContext::ExitScope().

+ Here is the caller graph for this function:

◆ update_current_site()

void v8::internal::AllocationSiteContext::update_current_site ( AllocationSite site)
inlineprotected

Definition at line 33 of file allocation-site-scopes.h.

33  {
34  *(current_.location()) = site;
35  }

References current_.

Referenced by v8::internal::AllocationSiteCreationContext::EnterNewScope(), and v8::internal::AllocationSiteUsageContext::EnterNewScope().

+ Here is the caller graph for this function:

Member Data Documentation

◆ current_

Handle<AllocationSite> v8::internal::AllocationSiteContext::current_
private

Definition at line 45 of file allocation-site-scopes.h.

Referenced by current(), InitializeTraversal(), and update_current_site().

◆ isolate_

Isolate* v8::internal::AllocationSiteContext::isolate_
private

Definition at line 43 of file allocation-site-scopes.h.

Referenced by AllocationSiteContext(), and isolate().

◆ top_

Handle<AllocationSite> v8::internal::AllocationSiteContext::top_
private

Definition at line 44 of file allocation-site-scopes.h.

Referenced by InitializeTraversal(), and top().


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