Index: test/mjsunit/compiler/regress-loadfield.js |
diff --git a/test/mjsunit/compiler/regress-loadfield.js b/test/mjsunit/compiler/regress-loadfield.js |
index a2028919000ffce52bbd40b5ebefe02684e4a482..a3da156e3b9ac3363ce6620541b108fc2ff5083d 100644 |
--- a/test/mjsunit/compiler/regress-loadfield.js |
+++ b/test/mjsunit/compiler/regress-loadfield.js |
@@ -25,6 +25,8 @@ |
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
+// Flags: --allow-natives-syntax |
+ |
// Regression test for GVN on field loads. |
function bar() {} |
@@ -58,8 +60,10 @@ a.p9 = ""; |
a.p10 = ""; |
a.p11 = ""; |
a.foo = "foo"; |
-for (var i = 0; i < 100000; i++) { |
+for (var i = 0; i < 5; i++) { |
test(a); |
} |
+%OptimizeFunctionOnNextCall(test); |
+test(a); |
test(""); |