| Index: src/hydrogen.h
|
| diff --git a/src/hydrogen.h b/src/hydrogen.h
|
| index fdd2f75779d97111a3134f6db8681e565e0a24c5..8f1d350ed6f1a8a92cae1abdadbe8f4a41c492eb 100644
|
| --- a/src/hydrogen.h
|
| +++ b/src/hydrogen.h
|
| @@ -230,6 +230,21 @@ class HPredecessorIterator BASE_EMBEDDED {
|
| };
|
|
|
|
|
| +class HInstructionIterator BASE_EMBEDDED {
|
| + public:
|
| + explicit HInstructionIterator(HBasicBlock* block)
|
| + : block_(block), instr_(block->first()) { }
|
| +
|
| + bool Done() { return instr_ == block_->last(); }
|
| + HInstruction* Current() { return instr_; }
|
| + void Advance() { instr_ = instr_->next(); }
|
| +
|
| + private:
|
| + HBasicBlock* block_;
|
| + HInstruction* instr_;
|
| +};
|
| +
|
| +
|
| class HLoopInformation: public ZoneObject {
|
| public:
|
| HLoopInformation(HBasicBlock* loop_header, Zone* zone)
|
|
|