v8  3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
HEnvironment Class Reference

#include <hydrogen.h>

Inheritance diagram for HEnvironment:
Collaboration diagram for HEnvironment:

Public Member Functions

 HEnvironment (HEnvironment *outer, Scope *scope, Handle< JSFunction > closure, Zone *zone)
 
HEnvironmentarguments_environment ()
 
Handle< JSFunctionclosure () const
 
const ZoneList< HValue * > * values () const
 
const ZoneList< int > * assigned_variables () const
 
FrameType frame_type () const
 
int parameter_count () const
 
int specials_count () const
 
int local_count () const
 
HEnvironmentouter () const
 
int pop_count () const
 
int push_count () const
 
BailoutId ast_id () const
 
void set_ast_id (BailoutId id)
 
HEnterInlinedentry () const
 
void set_entry (HEnterInlined *entry)
 
int length () const
 
bool is_special_index (int i) const
 
int first_expression_index () const
 
void Bind (Variable *variable, HValue *value)
 
void Bind (int index, HValue *value)
 
void BindContext (HValue *value)
 
HValueLookup (Variable *variable) const
 
HValueLookup (int index) const
 
HValueLookupContext () const
 
void Push (HValue *value)
 
HValuePop ()
 
void Drop (int count)
 
HValueTop () const
 
bool ExpressionStackIsEmpty () const
 
HValueExpressionStackAt (int index_from_top) const
 
void SetExpressionStackAt (int index_from_top, HValue *value)
 
HEnvironmentCopy () const
 
HEnvironmentCopyWithoutHistory () const
 
HEnvironmentCopyAsLoopHeader (HBasicBlock *block) const
 
HEnvironmentCopyForInlining (Handle< JSFunction > target, int arguments, FunctionLiteral *function, HConstant *undefined, CallKind call_kind, InliningKind inlining_kind) const
 
HEnvironmentDiscardInlined (bool drop_extra)
 
void AddIncomingEdge (HBasicBlock *block, HEnvironment *other)
 
void ClearHistory ()
 
void SetValueAt (int index, HValue *value)
 
void PrintTo (StringStream *stream)
 
void PrintToStd ()
 
Zonezone () const
 
- Public Member Functions inherited from ZoneObject
 INLINE (void *operator new(size_t size, Zone *zone))
 
void operator delete (void *, size_t)
 
void operator delete (void *pointer, Zone *zone)
 

Detailed Description

Definition at line 431 of file hydrogen.h.

Constructor & Destructor Documentation

HEnvironment ( HEnvironment outer,
Scope scope,
Handle< JSFunction closure,
Zone zone 
)

Member Function Documentation

HEnvironment* arguments_environment ( )
inline
const ZoneList<int>* assigned_variables ( ) const
inline

Definition at line 445 of file hydrogen.h.

BailoutId ast_id ( ) const
inline

Definition at line 456 of file hydrogen.h.

void Bind ( Variable variable,
HValue value 
)
inline

Definition at line 471 of file hydrogen.h.

Referenced by HEnvironment::BindContext().

void Bind ( int  index,
HValue value 
)
void BindContext ( HValue value)
inline

Definition at line 477 of file hydrogen.h.

References HEnvironment::Bind(), and HEnvironment::parameter_count().

void ClearHistory ( )
inline
Handle<JSFunction> closure ( ) const
inline

Definition at line 443 of file hydrogen.h.

Referenced by HBasicBlock::SetJoinId().

HEnvironment * CopyAsLoopHeader ( HBasicBlock block) const
HEnvironment * CopyWithoutHistory ( ) const

Definition at line 9538 of file hydrogen.cc.

References HEnvironment::ClearHistory(), and HEnvironment::Copy().

Referenced by HGraphBuilder::CreateGraph().

HEnvironment* DiscardInlined ( bool  drop_extra)
inline
void Drop ( int  count)

Definition at line 9526 of file hydrogen.cc.

References HEnvironment::Pop().

Referenced by HEnvironment::CopyForInlining(), and HEnvironment::DiscardInlined().

HEnterInlined* entry ( ) const
inline

Definition at line 459 of file hydrogen.h.

Referenced by HEnvironment::set_entry().

HValue* ExpressionStackAt ( int  index_from_top) const
inline

Definition at line 518 of file hydrogen.h.

References ASSERT, and HEnvironment::length().

Referenced by HEnvironment::CopyForInlining(), and HEnvironment::Top().

bool ExpressionStackIsEmpty ( ) const

Definition at line 9505 of file hydrogen.cc.

References ASSERT, HEnvironment::first_expression_index(), and HEnvironment::length().

Referenced by HEnvironment::Pop().

int first_expression_index ( ) const
inline
bool is_special_index ( int  i) const
inline

Definition at line 463 of file hydrogen.h.

References HEnvironment::parameter_count(), and HEnvironment::specials_count().

int local_count ( ) const
inline

Definition at line 451 of file hydrogen.h.

Referenced by HEnvironment::first_expression_index(), and HEnvironment::PrintTo().

HValue* Lookup ( Variable variable) const
inline

Definition at line 481 of file hydrogen.h.

Referenced by HEnvironment::LookupContext().

HValue* Lookup ( int  index) const
inline

Definition at line 485 of file hydrogen.h.

References ASSERT, and v8::internal::NULL.

HEnvironment* outer ( ) const
inline
HValue* Pop ( )
inline

Definition at line 502 of file hydrogen.h.

References ASSERT, and HEnvironment::ExpressionStackIsEmpty().

Referenced by HEnvironment::Drop(), and HGraphBuilder::Pop().

int pop_count ( ) const
inline

Definition at line 453 of file hydrogen.h.

void PrintToStd ( )
void Push ( HValue value)
inline

Definition at line 496 of file hydrogen.h.

References ASSERT, v8::internal::NULL, and HEnvironment::zone().

Referenced by HBasicBlock::AddLeaveInlined(), and HGraphBuilder::Push().

int push_count ( ) const
inline

Definition at line 454 of file hydrogen.h.

void set_ast_id ( BailoutId  id)
inline

Definition at line 457 of file hydrogen.h.

Referenced by HEnvironment::CopyForInlining(), and HGraph::HGraph().

void set_entry ( HEnterInlined entry)
inline

Definition at line 460 of file hydrogen.h.

References HEnvironment::entry().

void SetExpressionStackAt ( int  index_from_top,
HValue value 
)

Definition at line 9511 of file hydrogen.cc.

References ASSERT.

void SetValueAt ( int  index,
HValue value 
)
inline

Definition at line 555 of file hydrogen.h.

References ASSERT, and HEnvironment::length().

Referenced by HEnvironment::CopyForInlining().

int specials_count ( ) const
inline
HValue* Top ( ) const
inline

Definition at line 514 of file hydrogen.h.

References HEnvironment::ExpressionStackAt().

const ZoneList<HValue*>* values ( ) const
inline

Definition at line 444 of file hydrogen.h.


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