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

Unified Diff: test/mjsunit/regress/regress-crbug-613919.js

Issue 2001133002: [deoptimizer] Fix materialization of sloppy arguments. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 7 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/deoptimizer.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-crbug-613919.js
diff --git a/test/mjsunit/regress/regress-crbug-602595.js b/test/mjsunit/regress/regress-crbug-613919.js
similarity index 57%
copy from test/mjsunit/regress/regress-crbug-602595.js
copy to test/mjsunit/regress/regress-crbug-613919.js
index 7f6d478e05d096d4bf03cca13271f6d49ec354b9..cbd3e43b96796677fb8fc2faf77651dce2fa0c1f 100644
--- a/test/mjsunit/regress/regress-crbug-602595.js
+++ b/test/mjsunit/regress/regress-crbug-613919.js
@@ -4,9 +4,15 @@
// Flags: --allow-natives-syntax --turbo-escape
-function f(a) { return [a] }
-
-assertEquals([23], f(23));
-assertEquals([42], f(42));
+function g(a) {
+ if (a) return arguments;
+ %DeoptimizeNow();
+ return 23;
+}
+function f() {
+ return g(false);
+}
+assertEquals(23, f());
+assertEquals(23, f());
%OptimizeFunctionOnNextCall(f);
-assertEquals([65], f(65));
+assertEquals(23, f());
« no previous file with comments | « src/deoptimizer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698