| Index: src/hydrogen-range-analysis.h
|
| diff --git a/src/hydrogen-escape-analysis.h b/src/hydrogen-range-analysis.h
|
| similarity index 70%
|
| copy from src/hydrogen-escape-analysis.h
|
| copy to src/hydrogen-range-analysis.h
|
| index 1d31f3dce7e789320c7fdd8439a9f11e1bb35236..52ce109c8797d0f65edc01b733e90bda93008db3 100644
|
| --- a/src/hydrogen-escape-analysis.h
|
| +++ b/src/hydrogen-range-analysis.h
|
| @@ -25,33 +25,37 @@
|
| // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
| -#ifndef V8_HYDROGEN_ESCAPE_ANALYSIS_H_
|
| -#define V8_HYDROGEN_ESCAPE_ANALYSIS_H_
|
| +#ifndef V8_HYDROGEN_RANGE_ANALYSIS_H_
|
| +#define V8_HYDROGEN_RANGE_ANALYSIS_H_
|
|
|
| -#include "allocation.h"
|
| #include "hydrogen.h"
|
|
|
| namespace v8 {
|
| namespace internal {
|
|
|
|
|
| -class HEscapeAnalysis BASE_EMBEDDED {
|
| +class HRangeAnalysisPhase : public HPhase {
|
| public:
|
| - explicit HEscapeAnalysis(HGraph* graph)
|
| - : graph_(graph), zone_(graph->zone()), captured_(0, zone_) { }
|
| + explicit HRangeAnalysisPhase(HGraph* graph)
|
| + : HPhase("H_Range analysis", graph), changed_ranges_(16, zone()) { }
|
|
|
| - void Analyze();
|
| + void Run() {
|
| + Analyze(graph()->entry_block());
|
| + }
|
|
|
| private:
|
| - void CollectCapturedValues();
|
| - void CollectIfNoEscapingUses(HInstruction* instr);
|
| -
|
| - HGraph* graph_;
|
| - Zone* zone_;
|
| - ZoneList<HValue*> captured_;
|
| + void TraceRange(const char* msg, ...);
|
| + void Analyze(HBasicBlock* block);
|
| + void InferControlFlowRange(HCompareIDAndBranch* test, HBasicBlock* dest);
|
| + void UpdateControlFlowRange(Token::Value op, HValue* value, HValue* other);
|
| + void InferRange(HValue* value);
|
| + void RollBackTo(int index);
|
| + void AddRange(HValue* value, Range* range);
|
| +
|
| + ZoneList<HValue*> changed_ranges_;
|
| };
|
|
|
|
|
| } } // namespace v8::internal
|
|
|
| -#endif // V8_HYDROGEN_ESCAPE_ANALYSIS_H_
|
| +#endif // V8_HYDROGEN_RANGE_ANALYSIS_H_
|
|
|