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

Unified Diff: src/hydrogen.cc

Issue 313073003: Fix invalid loop condition for Array.lastIndexOf(). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | test/mjsunit/regress/regress-crbug-380512.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/hydrogen.cc
diff --git a/src/hydrogen.cc b/src/hydrogen.cc
index 39554993d8c39144801849a0a1c83aa9ba046c73..aedf3a10e9600efa74214903928fdc406593e9a2 100644
--- a/src/hydrogen.cc
+++ b/src/hydrogen.cc
@@ -8385,7 +8385,7 @@ HValue* HOptimizedGraphBuilder::BuildArrayIndexOf(HValue* receiver,
ASSERT_EQ(kLastIndexOf, mode);
initial = length;
terminating = graph()->GetConstant0();
- token = Token::GTE;
+ token = Token::GT;
direction = LoopBuilder::kPreDecrement;
}
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-crbug-380512.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698