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

Unified Diff: src/hydrogen.cc

Issue 17568015: New array bounds check elimination pass (focused on induction variables and bitwise operations). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Actually removed a method, and applied a small fix. Created 7 years, 5 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
Index: src/hydrogen.cc
diff --git a/src/hydrogen.cc b/src/hydrogen.cc
index 396e98a7f931cd824e516d3faef20a94c1ec97e0..b0d78793d98ec04aa10528d1a52b6b1acf2b7f54 100644
--- a/src/hydrogen.cc
+++ b/src/hydrogen.cc
@@ -4251,6 +4251,8 @@ class BoundsCheckBbData: public ZoneObject {
}
if (!keep_new_check) {
+ BasicBlock()->graph()->isolate()->counters()->
+ bounds_checks_covered()->Increment();
new_check->DeleteAndReplaceWith(new_check->ActualValue());
}
@@ -4448,6 +4450,9 @@ void HGraph::EliminateRedundantBoundsChecks() {
HPhase phase("H_Eliminate bounds checks", this);
BoundsCheckTable checks_table(zone());
EliminateRedundantBoundsChecks(entry_block(), &checks_table);
+ if (FLAG_abcd_ivars) {
titzer 2013/07/11 16:39:10 Indentation
Massi 2013/07/12 08:20:24 Done.
+ EliminateRedundantBoundsChecksUsingInductionVariables();
+ }
}

Powered by Google App Engine
This is Rietveld 408576698