OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 void DetachLoopInformation(); | 95 void DetachLoopInformation(); |
96 bool IsLoopHeader() const { return loop_information() != NULL; } | 96 bool IsLoopHeader() const { return loop_information() != NULL; } |
97 bool IsStartBlock() const { return block_id() == 0; } | 97 bool IsStartBlock() const { return block_id() == 0; } |
98 void PostProcessLoopHeader(IterationStatement* stmt); | 98 void PostProcessLoopHeader(IterationStatement* stmt); |
99 | 99 |
100 bool IsFinished() const { return end_ != NULL; } | 100 bool IsFinished() const { return end_ != NULL; } |
101 void AddPhi(HPhi* phi); | 101 void AddPhi(HPhi* phi); |
102 void RemovePhi(HPhi* phi); | 102 void RemovePhi(HPhi* phi); |
103 void AddInstruction(HInstruction* instr); | 103 void AddInstruction(HInstruction* instr); |
104 bool Dominates(HBasicBlock* other) const; | 104 bool Dominates(HBasicBlock* other) const; |
| 105 int LoopNestingDepth() const; |
105 | 106 |
106 void SetInitialEnvironment(HEnvironment* env); | 107 void SetInitialEnvironment(HEnvironment* env); |
107 void ClearEnvironment() { last_environment_ = NULL; } | 108 void ClearEnvironment() { last_environment_ = NULL; } |
108 bool HasEnvironment() const { return last_environment_ != NULL; } | 109 bool HasEnvironment() const { return last_environment_ != NULL; } |
109 void UpdateEnvironment(HEnvironment* env) { last_environment_ = env; } | 110 void UpdateEnvironment(HEnvironment* env) { last_environment_ = env; } |
110 HBasicBlock* parent_loop_header() const { return parent_loop_header_; } | 111 HBasicBlock* parent_loop_header() const { return parent_loop_header_; } |
111 | 112 |
112 void set_parent_loop_header(HBasicBlock* block) { | 113 void set_parent_loop_header(HBasicBlock* block) { |
113 ASSERT(parent_loop_header_ == NULL); | 114 ASSERT(parent_loop_header_ == NULL); |
114 parent_loop_header_ = block; | 115 parent_loop_header_ = block; |
(...skipping 1116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1231 const char* filename_; | 1232 const char* filename_; |
1232 HeapStringAllocator string_allocator_; | 1233 HeapStringAllocator string_allocator_; |
1233 StringStream trace_; | 1234 StringStream trace_; |
1234 int indent_; | 1235 int indent_; |
1235 }; | 1236 }; |
1236 | 1237 |
1237 | 1238 |
1238 } } // namespace v8::internal | 1239 } } // namespace v8::internal |
1239 | 1240 |
1240 #endif // V8_HYDROGEN_H_ | 1241 #endif // V8_HYDROGEN_H_ |
OLD | NEW |