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

Unified Diff: src/compiler/bytecode-loop-analysis.h

Issue 2254493002: [interpreter] Use VisitForTest for loop conditions (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase(line) golden file Created 4 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/compiler/bytecode-loop-analysis.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/bytecode-loop-analysis.h
diff --git a/src/compiler/bytecode-loop-analysis.h b/src/compiler/bytecode-loop-analysis.h
index b38425e8c90fd89fc3b3dee2260c8ad182095b00..59fabcef7bbd0c72182157a5a4b37622d591377d 100644
--- a/src/compiler/bytecode-loop-analysis.h
+++ b/src/compiler/bytecode-loop-analysis.h
@@ -47,10 +47,10 @@ class BytecodeLoopAnalysis BASE_EMBEDDED {
Zone* zone_;
int current_loop_offset_;
+ bool found_current_backedge_;
// Map from the offset of a backedge jump to the offset of the corresponding
- // loop header. Since we assume exactly one backedge per loop, the map will
- // have as many entries as there are loops.
+ // loop header. There might be multiple backedges for do-while loops.
ZoneMap<int, int> backedge_to_header_;
// Map from the offset of a loop header to the offset of its parent's loop
// header. This map will have as many entries as there are loops in the
« no previous file with comments | « no previous file | src/compiler/bytecode-loop-analysis.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698