V8 Project
v8::internal::HBoundsCheckHoistingPhase Class Reference

#include <hydrogen-bch.h>

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

Public Member Functions

 HBoundsCheckHoistingPhase (HGraph *graph)
 
void Run ()
 
- Public Member Functions inherited from v8::internal::HPhase
 HPhase (const char *name, HGraph *graph)
 
 ~HPhase ()
 

Private Member Functions

void HoistRedundantBoundsChecks ()
 
 DISALLOW_COPY_AND_ASSIGN (HBoundsCheckHoistingPhase)
 

Additional Inherited Members

- Protected Member Functions inherited from v8::internal::HPhase
HGraph * graph () const
 

Detailed Description

Definition at line 14 of file hydrogen-bch.h.

Constructor & Destructor Documentation

◆ HBoundsCheckHoistingPhase()

v8::internal::HBoundsCheckHoistingPhase::HBoundsCheckHoistingPhase ( HGraph *  graph)
inlineexplicit

Definition at line 16 of file hydrogen-bch.h.

17  : HPhase("H_Bounds checks hoisting", graph) { }
HGraph * graph() const
Definition: hydrogen.h:2802
HPhase(const char *name, HGraph *graph)
Definition: hydrogen.h:2796

Member Function Documentation

◆ DISALLOW_COPY_AND_ASSIGN()

v8::internal::HBoundsCheckHoistingPhase::DISALLOW_COPY_AND_ASSIGN ( HBoundsCheckHoistingPhase  )
private

◆ HoistRedundantBoundsChecks()

void v8::internal::HBoundsCheckHoistingPhase::HoistRedundantBoundsChecks ( )
private

Definition at line 371 of file hydrogen-bch.cc.

371  {
372  InductionVariableBlocksTable table(graph());
373  table.CollectInductionVariableData(graph()->entry_block());
374  for (int i = 0; i < graph()->blocks()->length(); i++) {
375  table.EliminateRedundantBoundsChecks(graph()->blocks()->at(i));
376  }
377 }

References v8::internal::HPhase::graph().

Referenced by Run().

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

◆ Run()

void v8::internal::HBoundsCheckHoistingPhase::Run ( )
inline

Definition at line 19 of file hydrogen-bch.h.

References HoistRedundantBoundsChecks().

+ Here is the call graph for this function:

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