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

Unified Diff: test/mjsunit/regress/regress-et-clobbers-doubles.js

Issue 22854011: Store doubles before calling into the elements transition stub on ARM (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Add test 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/arm/lithium-codegen-arm.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress/regress-et-clobbers-doubles.js
diff --git a/test/mjsunit/compare-nil.js b/test/mjsunit/regress/regress-et-clobbers-doubles.js
similarity index 90%
copy from test/mjsunit/compare-nil.js
copy to test/mjsunit/regress/regress-et-clobbers-doubles.js
index 0895a31fb80cbe697b678eaa1005926d7d65829f..47fa47925fe48f8a339a807f7cf73ee40f35d29c 100644
--- a/test/mjsunit/compare-nil.js
+++ b/test/mjsunit/regress/regress-et-clobbers-doubles.js
@@ -26,11 +26,14 @@
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// Flags: --allow-natives-syntax
-
-function test(v) {
- return (v == null);
+function t_smi(a) {
+ a[0] = 1.5;
}
-assertFalse(test(true));
-assertFalse(test(true));
-assertTrue(test(null));
-assertTrue(test(null));
+
+t_smi([1,,3]);
+t_smi([1,,3]);
+t_smi([1,,3]);
+%OptimizeFunctionOnNextCall(t_smi);
+var ta = [1,,3];
+t_smi(ta);
+assertEquals([1.5,,3], ta);
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698