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

Public Member Functions

 VarAndOrder (Variable *var, int order)
 
Variablevar () const
 
int order () const
 

Static Public Member Functions

static int Compare (const VarAndOrder *a, const VarAndOrder *b)
 

Private Attributes

Variablevar_
 
int order_
 

Detailed Description

Definition at line 569 of file scopes.cc.

Constructor & Destructor Documentation

◆ VarAndOrder()

v8::internal::VarAndOrder::VarAndOrder ( Variable var,
int  order 
)
inline

Definition at line 571 of file scopes.cc.

571 : var_(var), order_(order) { }
Variable * var() const
Definition: scopes.cc:572

Member Function Documentation

◆ Compare()

static int v8::internal::VarAndOrder::Compare ( const VarAndOrder a,
const VarAndOrder b 
)
inlinestatic

Definition at line 574 of file scopes.cc.

574  {
575  return a->order_ - b->order_;
576  }

References order_.

Referenced by v8::internal::Scope::AllocateNonParameterLocals(), and v8::internal::Scope::CollectStackAndContextLocals().

+ Here is the caller graph for this function:

◆ order()

int v8::internal::VarAndOrder::order ( ) const
inline

Definition at line 573 of file scopes.cc.

573 { return order_; }

References order_.

◆ var()

Variable* v8::internal::VarAndOrder::var ( ) const
inline

Definition at line 572 of file scopes.cc.

572 { return var_; }

References var_.

Member Data Documentation

◆ order_

int v8::internal::VarAndOrder::order_
private

Definition at line 580 of file scopes.cc.

Referenced by Compare(), and order().

◆ var_

Variable* v8::internal::VarAndOrder::var_
private

Definition at line 579 of file scopes.cc.

Referenced by var().


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