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

Unified Diff: test/mjsunit/compiler/double-array-to-global.js

Issue 1657863004: [turbofan] Introduce proper ObjectIsReceiver operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 11 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/compiler/verifier.cc ('k') | test/unittests/compiler/js-intrinsic-lowering-unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/compiler/double-array-to-global.js
diff --git a/test/mjsunit/compiler/regress-491578.js b/test/mjsunit/compiler/double-array-to-global.js
similarity index 68%
copy from test/mjsunit/compiler/regress-491578.js
copy to test/mjsunit/compiler/double-array-to-global.js
index c27570456c31e9a191fe1f4f1ea17b80f29de98e..e221d90358e8084ccbe254c5cd6597a919103c23 100644
--- a/test/mjsunit/compiler/regress-491578.js
+++ b/test/mjsunit/compiler/double-array-to-global.js
@@ -4,12 +4,14 @@
// Flags: --allow-natives-syntax
-function foo(x) {
- if (x === undefined) return;
- while (true) {
- while (1 || 2) { }
- f();
+var a = [-0, 0];
+var b;
+function foo(a) {
+ for (var i = 0; i < 2; ++i) {
+ b = a[i];
}
}
+foo(a);
+foo(a);
%OptimizeFunctionOnNextCall(foo);
-foo();
+foo(a);
« no previous file with comments | « src/compiler/verifier.cc ('k') | test/unittests/compiler/js-intrinsic-lowering-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698