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

Unified Diff: test/mjsunit/regress/regress-5275-1.js

Issue 2231683002: [turbofan] Properly guard keyed stores wrt. setters in the prototype chain. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@2232483002
Patch Set: REBASE Created 4 years, 4 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/js-native-context-specialization.cc ('k') | test/mjsunit/regress/regress-5275-2.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress/regress-5275-1.js
diff --git a/test/mjsunit/regress/regress-5085.js b/test/mjsunit/regress/regress-5275-1.js
similarity index 54%
copy from test/mjsunit/regress/regress-5085.js
copy to test/mjsunit/regress/regress-5275-1.js
index 0ed034dc2d09e97827e2b4881570d60be2b5072b..542bae0602dbe8d9f00e892ac7195a936d15bbc5 100644
--- a/test/mjsunit/regress/regress-5085.js
+++ b/test/mjsunit/regress/regress-5275-1.js
@@ -5,10 +5,14 @@
// Flags: --allow-natives-syntax
function foo(x) {
- return x instanceof Proxy;
+ var a = new Array(1);
+ a[0] = x;
+ return a;
}
-assertFalse(foo({}));
-assertFalse(foo({}));
+assertEquals([1], foo(1));
+assertEquals([1], foo(1));
%OptimizeFunctionOnNextCall(foo);
-assertFalse(foo({}));
+assertEquals([1], foo(1));
+Array.prototype.__defineSetter__("0", function() {});
+assertEquals([undefined], foo(1));
« no previous file with comments | « src/compiler/js-native-context-specialization.cc ('k') | test/mjsunit/regress/regress-5275-2.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698