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

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

Issue 2317623003: [turbofan] Handle ObjectIsReceiver in escape analysis. (Closed)
Patch Set: Created 4 years, 3 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/escape-analysis.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-631027.js
diff --git a/test/mjsunit/regress/regress-crbug-602595.js b/test/mjsunit/regress/regress-crbug-631027.js
similarity index 68%
copy from test/mjsunit/regress/regress-crbug-602595.js
copy to test/mjsunit/regress/regress-crbug-631027.js
index 7f6d478e05d096d4bf03cca13271f6d49ec354b9..f3d04b8efd4e28715149527ff15d5fd03e2f8741 100644
--- a/test/mjsunit/regress/regress-crbug-602595.js
+++ b/test/mjsunit/regress/regress-crbug-631027.js
@@ -4,9 +4,9 @@
// Flags: --allow-natives-syntax --turbo-escape
-function f(a) { return [a] }
-
-assertEquals([23], f(23));
-assertEquals([42], f(42));
+function f() {
+ with ({ value:"foo" }) { return value; }
+}
+assertEquals("foo", f());
%OptimizeFunctionOnNextCall(f);
-assertEquals([65], f(65));
+assertEquals("foo", f());
« no previous file with comments | « src/compiler/escape-analysis.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698