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

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

Issue 1410393006: [turbofan] Fix representation type for JSArray::length. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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-4515.js
diff --git a/test/mjsunit/compiler/regress-variable-liveness-let.js b/test/mjsunit/regress/regress-4515.js
similarity index 57%
copy from test/mjsunit/compiler/regress-variable-liveness-let.js
copy to test/mjsunit/regress/regress-4515.js
index 4c6b6936e58543844ec2684d56abd898217ce6cd..81610f08a59a8713ac8916481744719364b50a8e 100644
--- a/test/mjsunit/compiler/regress-variable-liveness-let.js
+++ b/test/mjsunit/regress/regress-4515.js
@@ -4,12 +4,14 @@
// Flags: --allow-natives-syntax --turbo-filter=f
-"use strict";
-
-function f() {
- %DeoptimizeNow();
- let x = 23;
+function f(array) {
+ return array.length >>> 0;
}
+var a = new Array();
+a[4000000000] = "A";
+
+assertEquals(4000000001, f(a));
+assertEquals(4000000001, f(a));
%OptimizeFunctionOnNextCall(f);
-f();
+assertEquals(4000000001, f(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