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

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

Issue 2508873002: [turbofan] Always install code dependency when optimizing a store to global property. (Closed)
Patch Set: Created 4 years, 1 month 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/js-global-object-specialization.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-663750.js
diff --git a/test/mjsunit/regress/regress-crbug-663750.js b/test/mjsunit/regress/regress-crbug-663750.js
index ba758e77e498cea01d0ef1b5ce68f34933be422a..1b3b531a58bb0549945dbee0471a51c397978bf0 100644
--- a/test/mjsunit/regress/regress-crbug-663750.js
+++ b/test/mjsunit/regress/regress-crbug-663750.js
@@ -11,11 +11,11 @@ function foo(a) {
this.x = 0;
delete x;
-foo(1);
-foo(2);
+foo();
+foo();
%OptimizeFunctionOnNextCall(foo);
-foo(3);
-assertEquals(3, v);
+foo();
+assertEquals(undefined, v);
Object.freeze(this);
@@ -23,4 +23,4 @@ foo(4);
foo(5);
%OptimizeFunctionOnNextCall(foo);
foo(6);
-assertEquals(3, v);
+assertEquals(undefined, v);
« no previous file with comments | « src/compiler/js-global-object-specialization.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698