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

Unified Diff: test/mjsunit/regress/regress-1969.js

Issue 9466003: Fix HConstant's hash function for smis on x64. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 10 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/mjsunit.status ('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-1969.js
diff --git a/test/mjsunit/regress/regress-1969.js b/test/mjsunit/regress/regress-1969.js
index ea836ea29a449ca390d8d39f4d6232019e1cb033..2728c2cae76901207e716681fb84e468ae2220fa 100644
--- a/test/mjsunit/regress/regress-1969.js
+++ b/test/mjsunit/regress/regress-1969.js
@@ -31,12 +31,14 @@ f();
f();
%OptimizeFunctionOnNextCall(f);
var start = (new Date()).getTime();
-f();
+var array = f();
var end = (new Date()).getTime();
// Assert that recompiling and executing f() takes less than a second.
assertTrue((end - start) < 1000);
+for (var i = 0; i < 5000; i++) assertEquals(0, array[i]);
+
function f() {
var a = new Array(5000);
a[0]=0;
@@ -162,7 +164,7 @@ function f() {
a[120]=0;
a[121]=0;
a[122]=0;
- a[0]=0;
+ a[123]=0;
a[124]=0;
a[125]=0;
a[126]=0;
@@ -1162,7 +1164,7 @@ function f() {
a[1120]=0;
a[1121]=0;
a[1122]=0;
- a[10]=0;
+ a[1123]=0;
a[1124]=0;
a[1125]=0;
a[1126]=0;
@@ -1269,16 +1271,16 @@ function f() {
a[1227]=0;
a[1228]=0;
a[1229]=0;
- a[00]=0;
- a[01]=0;
- a[02]=0;
- a[03]=0;
- a[04]=0;
- a[05]=0;
- a[06]=0;
- a[07]=0;
- a[08]=0;
- a[09]=0;
+ a[1230]=0;
+ a[1231]=0;
+ a[1232]=0;
+ a[1233]=0;
+ a[1234]=0;
+ a[1235]=0;
+ a[1236]=0;
+ a[1237]=0;
+ a[1238]=0;
+ a[1239]=0;
a[1240]=0;
a[1241]=0;
a[1242]=0;
@@ -2162,7 +2164,7 @@ function f() {
a[2120]=0;
a[2121]=0;
a[2122]=0;
- a[20]=0;
+ a[2123]=0;
a[2124]=0;
a[2125]=0;
a[2126]=0;
@@ -3162,7 +3164,7 @@ function f() {
a[3120]=0;
a[3121]=0;
a[3122]=0;
- a[30]=0;
+ a[3123]=0;
a[3124]=0;
a[3125]=0;
a[3126]=0;
@@ -4162,7 +4164,7 @@ function f() {
a[4120]=0;
a[4121]=0;
a[4122]=0;
- a[40]=0;
+ a[4123]=0;
a[4124]=0;
a[4125]=0;
a[4126]=0;
@@ -5039,4 +5041,5 @@ function f() {
a[4997]=0;
a[4998]=0;
a[4999]=0;
+ return a;
}
« no previous file with comments | « test/mjsunit/mjsunit.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698