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

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

Issue 1894203002: Fix polymorphic keyed load handler selection for proxies. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 8 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/ic/ic.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-603463.js
diff --git a/test/mjsunit/ignition/dead-code-source-position.js b/test/mjsunit/regress/regress-crbug-603463.js
similarity index 61%
copy from test/mjsunit/ignition/dead-code-source-position.js
copy to test/mjsunit/regress/regress-crbug-603463.js
index 95bb9183b880229a703e58503e9aec2a673015aa..20bfae65c54fa744d2470903fc92749f99726d67 100644
--- a/test/mjsunit/ignition/dead-code-source-position.js
+++ b/test/mjsunit/regress/regress-crbug-603463.js
@@ -2,8 +2,15 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+function load(a, i) {
+ return a[i];
+}
+
function f() {
- for (f(x) in []) { f(new f()) }
+ return load(new Proxy({}, {}), undefined);
}
f();
+f();
+load([11, 22, 33], 0);
+f();
« no previous file with comments | « src/ic/ic.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698