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); |