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

Unified Diff: src/deoptimizer.h

Issue 7569009: Clean up TranslationIterator and DeoptimizationInputDataPrint. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: svn update Created 9 years, 4 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/deoptimizer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/deoptimizer.h
diff --git a/src/deoptimizer.h b/src/deoptimizer.h
index 81345ad2d1ab92a539698c7b612e22922b1490c9..033d92480bd8a113f0c4c39e1a3633ec6f56a6ca 100644
--- a/src/deoptimizer.h
+++ b/src/deoptimizer.h
@@ -497,9 +497,7 @@ class TranslationIterator BASE_EMBEDDED {
int32_t Next();
- bool HasNext() const { return index_ >= 0; }
-
- void Done() { index_ = -1; }
+ bool HasNext() const { return index_ < buffer_->length(); }
void Skip(int n) {
for (int i = 0; i < n; i++) Next();
« no previous file with comments | « no previous file | src/deoptimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698