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

Unified Diff: src/compiler/js-builtin-reducer.cc

Issue 1013853009: Version 4.2.77.13 (cherry-pick) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@4.2
Patch Set: Created 5 years, 9 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 | « include/v8-version.h ('k') | test/mjsunit/compiler/regress-468162.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/js-builtin-reducer.cc
diff --git a/src/compiler/js-builtin-reducer.cc b/src/compiler/js-builtin-reducer.cc
index df43b84c61f783e72c42d683c9a6f33e2831020c..a89f4a32551e8851dee63e44b16f88b1701054b5 100644
--- a/src/compiler/js-builtin-reducer.cc
+++ b/src/compiler/js-builtin-reducer.cc
@@ -150,8 +150,8 @@ Reduction JSBuiltinReducer::ReduceMathMax(Node* node) {
Node* const input = r.GetJSCallInput(i);
value = graph()->NewNode(
common()->Select(kMachNone),
- graph()->NewNode(simplified()->NumberLessThan(), input, value), input,
- value);
+ graph()->NewNode(simplified()->NumberLessThan(), input, value), value,
+ input);
}
return Replace(value);
}
« no previous file with comments | « include/v8-version.h ('k') | test/mjsunit/compiler/regress-468162.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698