Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(469)

Unified Diff: src/hydrogen.h

Issue 18068002: Use HInstructionIterator more broadly for hydrogen. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/hydrogen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/hydrogen.h
diff --git a/src/hydrogen.h b/src/hydrogen.h
index 8f1d350ed6f1a8a92cae1abdadbe8f4a41c492eb..604e0cd115ee6b0faae22e06206fc383956a5ad1 100644
--- a/src/hydrogen.h
+++ b/src/hydrogen.h
@@ -232,15 +232,13 @@ class HPredecessorIterator BASE_EMBEDDED {
class HInstructionIterator BASE_EMBEDDED {
public:
- explicit HInstructionIterator(HBasicBlock* block)
- : block_(block), instr_(block->first()) { }
+ explicit HInstructionIterator(HBasicBlock* block) : instr_(block->first()) { }
- bool Done() { return instr_ == block_->last(); }
+ bool Done() { return instr_ == NULL; }
HInstruction* Current() { return instr_; }
void Advance() { instr_ = instr_->next(); }
private:
- HBasicBlock* block_;
HInstruction* instr_;
};
« no previous file with comments | « no previous file | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698