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

Unified Diff: test/mjsunit/regress/regress-recurse-patch-binary-op.js

Issue 1925583002: Check the state of the current binary op IC before patching smi code (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-recurse-patch-binary-op.js
diff --git a/test/mjsunit/ignition/dead-code-source-position.js b/test/mjsunit/regress/regress-recurse-patch-binary-op.js
similarity index 65%
copy from test/mjsunit/ignition/dead-code-source-position.js
copy to test/mjsunit/regress/regress-recurse-patch-binary-op.js
index 95bb9183b880229a703e58503e9aec2a673015aa..842cc79fc8f1e0b5632c37b08e32fd234c066484 100644
--- a/test/mjsunit/ignition/dead-code-source-position.js
+++ b/test/mjsunit/regress/regress-recurse-patch-binary-op.js
@@ -2,8 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-function f() {
- for (f(x) in []) { f(new f()) }
+var i = 0
+function valueOf() {
+ while (true) return i++ < 4 ? 1 + this : 2
}
-f();
+1 + ({valueOf})
« 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