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

Unified Diff: test/mjsunit/compiler/regress-strict-equals-mixed-feedback.js

Issue 2360233004: [interpreter] Fix word32 vs word64 bug in CodeStubAssembler::UpdateFeedback. (Closed)
Patch Set: Fix cctest, remove some dead code. 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 | « test/cctest/interpreter/test-interpreter.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/compiler/regress-strict-equals-mixed-feedback.js
diff --git a/test/mjsunit/regress/regress-3650-3.js b/test/mjsunit/compiler/regress-strict-equals-mixed-feedback.js
similarity index 60%
copy from test/mjsunit/regress/regress-3650-3.js
copy to test/mjsunit/compiler/regress-strict-equals-mixed-feedback.js
index 013e4df2834e20435982300303eb6260eb41b2be..cf4161709609a6ee77773a39aea9169178914dde 100644
--- a/test/mjsunit/regress/regress-3650-3.js
+++ b/test/mjsunit/compiler/regress-strict-equals-mixed-feedback.js
@@ -4,14 +4,20 @@
// Flags: --allow-natives-syntax
-function foo(a) {
- for (var d in a) {
- delete a[1];
- }
+function bar(x, y) {
+ return x === y;
}
-foo([1,2,3]);
-foo([2,3,4]);
+function foo(x) {
+ bar("0", x);
+}
+
+foo("0");
+foo("0");
+%BaselineFunctionOnNextCall(bar);
+foo("0");
+foo("0");
+bar(1, 1);
%OptimizeFunctionOnNextCall(foo);
-foo([1,2,3]);
+foo("0");
assertOptimized(foo);
« no previous file with comments | « test/cctest/interpreter/test-interpreter.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698