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

Unified Diff: test/mjsunit/array-push-non-smi-value.js

Issue 23589002: MIPS: Fix return-value from Array.push stub when pushing non-SMI value (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 | « src/mips/stub-cache-mips.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/array-push-non-smi-value.js
diff --git a/test/mjsunit/compare-nil.js b/test/mjsunit/array-push-non-smi-value.js
similarity index 91%
copy from test/mjsunit/compare-nil.js
copy to test/mjsunit/array-push-non-smi-value.js
index 0895a31fb80cbe697b678eaa1005926d7d65829f..4fe6e859d4612c02f5c6885dcf8d42cdb06670c9 100644
--- a/test/mjsunit/compare-nil.js
+++ b/test/mjsunit/array-push-non-smi-value.js
@@ -27,10 +27,11 @@
// Flags: --allow-natives-syntax
-function test(v) {
- return (v == null);
-}
-assertFalse(test(true));
-assertFalse(test(true));
-assertTrue(test(null));
-assertTrue(test(null));
+// Check pushes of non-SMI values.
+(function() {
Jakob Kummerow 2013/08/27 13:58:36 Why the outer closure?
fs 2013/08/27 16:16:13 Why indeed. Dropped.
+ var a = [];
+
+ %OptimizeFunctionOnNextCall(a.push);
Jakob Kummerow 2013/08/27 13:58:36 The patch only affects the stub. Why optimize the
fs 2013/08/27 16:16:13 I rolled back the TC a few steps (I suspect I trie
+
+ assertEquals(1, a.push(0x40000000));
+})();
« no previous file with comments | « src/mips/stub-cache-mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698