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

#include <hydrogen-instructions.h>

Inheritance diagram for HDeoptimize:
Collaboration diagram for HDeoptimize:

Public Types

enum  UseEnvironment { kNoUses, kUseAll }
 
- Public Types inherited from HValue
enum  Flag {
  kFlexibleRepresentation, kUseGVN, kTrackSideEffectDominators, kCanOverflow,
  kBailoutOnMinusZero, kCanBeDivByZero, kDeoptimizeOnUndefined, kIsArguments,
  kTruncatingToInt32, kIsDead, kLastFlag = kIsDead
}
 
enum  Opcode { kPhi }
 

Public Member Functions

 HDeoptimize (int environment_length, Zone *zone)
 
virtual Representation RequiredInputRepresentation (int index)
 
virtual int OperandCount ()
 
virtual HValue * OperandAt (int index)
 
virtual void PrintDataTo (StringStream *stream)
 
virtual int SuccessorCount ()
 
virtual HBasicBlock * SuccessorAt (int i)
 
virtual void SetSuccessorAt (int i, HBasicBlock *block)
 
void AddEnvironmentValue (HValue *value, Zone *zone)
 
- Public Member Functions inherited from HControlInstruction
HBasicBlock * FirstSuccessor ()
 
HBasicBlock * SecondSuccessor ()
 
- Public Member Functions inherited from HInstruction
HInstruction * next () const
 
HInstruction * previous () const
 
virtual void PrintTo (StringStream *stream)
 
bool IsLinked () const
 
void Unlink ()
 
void InsertBefore (HInstruction *next)
 
void InsertAfter (HInstruction *previous)
 
int position () const
 
bool has_position () const
 
void set_position (int position)
 
bool CanTruncateToInt32 () const
 
virtual LInstruction * CompileToLithium (LChunkBuilder *builder)=0
 
virtual bool IsCall ()
 
- Public Member Functions inherited from HValue
 STATIC_ASSERT (kLastFlag< kBitsPerInt)
 
virtual Opcode opcode () const =0
 
bool IsPhi () const
 
 HValue ()
 
virtual ~HValue ()
 
HBasicBlock * block () const
 
void SetBlock (HBasicBlock *block)
 
int LoopWeight () const
 
int id () const
 
void set_id (int id)
 
HUseIterator uses () const
 
virtual bool EmitAtUses ()
 
Representation representation () const
 
void ChangeRepresentation (Representation r)
 
void AssumeRepresentation (Representation r)
 
virtual bool IsConvertibleToInteger () const
 
HType type () const
 
void set_type (HType new_type)
 
virtual HValue * EnsureAndPropagateNotMinusZero (BitVector *visited)
 
bool IsDefinedAfter (HBasicBlock *other) const
 
void SetOperandAt (int index, HValue *value)
 
void DeleteAndReplaceWith (HValue *other)
 
void ReplaceAllUsesWith (HValue *other)
 
bool HasNoUses () const
 
bool HasMultipleUses () const
 
int UseCount () const
 
void Kill ()
 
int flags () const
 
void SetFlag (Flag f)
 
void ClearFlag (Flag f)
 
bool CheckFlag (Flag f) const
 
bool CheckUsesForFlag (Flag f)
 
GVNFlagSet gvn_flags () const
 
void SetGVNFlag (GVNFlag f)
 
void ClearGVNFlag (GVNFlag f)
 
bool CheckGVNFlag (GVNFlag f) const
 
void SetAllSideEffects ()
 
void ClearAllSideEffects ()
 
bool HasSideEffects () const
 
bool HasObservableSideEffects () const
 
GVNFlagSet DependsOnFlags () const
 
GVNFlagSet SideEffectFlags () const
 
GVNFlagSet ChangesFlags () const
 
GVNFlagSet ObservableChangesFlags () const
 
Range * range () const
 
bool HasRange () const
 
void AddNewRange (Range *r, Zone *zone)
 
void RemoveLastAddedRange ()
 
void ComputeInitialRange (Zone *zone)
 
virtual Representation InferredRepresentation ()
 
virtual Representation ObservedInputRepresentation (int index)
 
virtual HValue * Canonicalize ()
 
bool Equals (HValue *other)
 
virtual intptr_t Hashcode ()
 
void PrintNameTo (StringStream *stream)
 
void PrintTypeTo (StringStream *stream)
 
void PrintRangeTo (StringStream *stream)
 
void PrintChangesTo (StringStream *stream)
 
const char * Mnemonic () const
 
bool UpdateInferredType ()
 
virtual HType CalculateInferredType ()
 
virtual void SetSideEffectDominator (GVNFlag side_effect, HValue *dominator)
 
- 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)
 

Protected Member Functions

virtual void InternalSetOperandAt (int index, HValue *value)
 
- Protected Member Functions inherited from HInstruction
 HInstruction ()
 
virtual void DeleteFromGraph ()
 
- Protected Member Functions inherited from HValue
virtual bool DataEquals (HValue *other)
 
virtual void RepresentationChanged (Representation to)
 
virtual Range * InferRange (Zone *zone)
 
void clear_block ()
 
void set_representation (Representation r)
 
HUseListNode * RemoveUse (HValue *value, int index)
 
void RegisterUse (int index, HValue *new_value)
 

Additional Inherited Members

- Static Public Member Functions inherited from HValue
static GVNFlag ChangesFlagFromInt (int x)
 
static GVNFlag DependsOnFlagFromInt (int x)
 
static GVNFlagSet ConvertChangesToDependsFlags (GVNFlagSet flags)
 
static HValue * cast (HValue *value)
 
- Static Public Attributes inherited from HValue
static const int kNoNumber = -1
 
static const int kChangesToDependsFlagsLeftShift = 1
 
- Static Protected Member Functions inherited from HValue
static GVNFlagSet AllDependsOnFlagSet ()
 
static GVNFlagSet AllChangesFlagSet ()
 
static GVNFlagSet AllSideEffectsFlagSet ()
 
static GVNFlagSet AllObservableSideEffectsFlagSet ()
 
- Protected Attributes inherited from HValue
HBasicBlock * block_
 
int id_
 
Representation representation_
 
HType type_
 
HUseListNode * use_list_
 
Range * range_
 
int flags_
 
GVNFlagSet gvn_flags_
 

Detailed Description

Definition at line 993 of file hydrogen-instructions.h.

Member Enumeration Documentation

Enumerator
kNoUses 
kUseAll 

Definition at line 1022 of file hydrogen-instructions.h.

Constructor & Destructor Documentation

HDeoptimize ( int  environment_length,
Zone *  zone 
)
inline

Definition at line 995 of file hydrogen-instructions.h.

Member Function Documentation

void AddEnvironmentValue ( HValue *  value,
Zone *  zone 
)
inline

Definition at line 1015 of file hydrogen-instructions.h.

References v8::internal::NULL, and HValue::SetOperandAt().

virtual void InternalSetOperandAt ( int  index,
HValue *  value 
)
inlineprotectedvirtual

Implements HValue.

Definition at line 1028 of file hydrogen-instructions.h.

virtual HValue* OperandAt ( int  index)
inlinevirtual

Implements HValue.

Definition at line 1003 of file hydrogen-instructions.h.

Referenced by HDeoptimize::PrintDataTo().

virtual int OperandCount ( )
inlinevirtual

Implements HValue.

Definition at line 1002 of file hydrogen-instructions.h.

Referenced by HDeoptimize::PrintDataTo().

void PrintDataTo ( StringStream *  stream)
virtual
virtual Representation RequiredInputRepresentation ( int  index)
inlinevirtual

Implements HValue.

Definition at line 998 of file hydrogen-instructions.h.

References Representation::None().

virtual void SetSuccessorAt ( int  i,
HBasicBlock *  block 
)
inlinevirtual

Implements HControlInstruction.

Definition at line 1011 of file hydrogen-instructions.h.

References UNREACHABLE.

virtual HBasicBlock* SuccessorAt ( int  i)
inlinevirtual

Implements HControlInstruction.

Definition at line 1007 of file hydrogen-instructions.h.

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

virtual int SuccessorCount ( )
inlinevirtual

Implements HControlInstruction.

Definition at line 1006 of file hydrogen-instructions.h.


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