| Index: test/mjsunit/regress/internalized-string-not-equal.js
|
| diff --git a/test/mjsunit/compiler/increment-typefeedback.js b/test/mjsunit/regress/internalized-string-not-equal.js
|
| similarity index 86%
|
| copy from test/mjsunit/compiler/increment-typefeedback.js
|
| copy to test/mjsunit/regress/internalized-string-not-equal.js
|
| index 798959296c43014f252d65ae5dd11e00563bfd04..911279b43e6b1174449132bea96fe48144657461 100644
|
| --- a/test/mjsunit/compiler/increment-typefeedback.js
|
| +++ b/test/mjsunit/regress/internalized-string-not-equal.js
|
| @@ -27,13 +27,14 @@
|
|
|
| // Flags: --allow-natives-syntax
|
|
|
| -function f(x) {
|
| - x++;
|
| - return x;
|
| +// A bug in r15773, when masks for internalized string and string types
|
| +// were reorganized.
|
| +function equal(o1, o2) {
|
| + return (o1 == o2);
|
| }
|
| -
|
| -f(0.5);
|
| -f(0.5);
|
| -%OptimizeFunctionOnNextCall(f);
|
| -f(0.5);
|
| -assertOptimized(f);
|
| +var a = "abc";
|
| +var b = "abc";
|
| +equal(a, b);
|
| +equal(a, b);
|
| +%OptimizeFunctionOnNextCall(equal);
|
| +assertTrue(equal(1.3, 1.3));
|
|
|