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

Unified Diff: test/mjsunit/math-min-max.js

Issue 21173004: Version 3.20.11.1 (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: 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
« no previous file with comments | « test/mjsunit/generated-transition-stub.js ('k') | test/mjsunit/mjsunit.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/math-min-max.js
diff --git a/test/mjsunit/math-min-max.js b/test/mjsunit/math-min-max.js
index a4d1b27c70b39a58e0a450e410cb45274e701867..e4fd313538f53270747661268a1a1d47dfbc7c39 100644
--- a/test/mjsunit/math-min-max.js
+++ b/test/mjsunit/math-min-max.js
@@ -177,21 +177,6 @@ function crankshaft_test_2() {
run(crankshaft_test_2);
-var o = { a: 1, b: 2 };
-
-// Test smi-based Math.min.
-function f(o) {
- return Math.min(o.a, o.b);
-}
-
-assertEquals(1, f(o));
-assertEquals(1, f(o));
-%OptimizeFunctionOnNextCall(f);
-assertEquals(1, f(o));
-o.a = 5;
-o.b = 4;
-assertEquals(4, f(o));
-
// Test overriding Math.min and Math.max
Math.min = function(a, b) { return a + b; }
Math.max = function(a, b) { return a - b; }
« no previous file with comments | « test/mjsunit/generated-transition-stub.js ('k') | test/mjsunit/mjsunit.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698