Index: test/mjsunit/regress/regress-1210.js |
diff --git a/test/mjsunit/regress/regress-1210.js b/test/mjsunit/regress/regress-1210.js |
index 9c708a580544748e7ca9496055bf2a1c811c209e..7d4735a40ced52484b97e221019fd68089b5d61f 100644 |
--- a/test/mjsunit/regress/regress-1210.js |
+++ b/test/mjsunit/regress/regress-1210.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 |
+ |
// Deoptimization of the key expression in an arguments access should see |
// the arguments object as the value of the receiver. |
@@ -43,6 +45,8 @@ function test() { |
// Run enough to optimize assuming global 'a' is a smi. |
for (var i = 0; i < 1000000; ++i) test(0); |
+%OptimizeFunctionOnNextCall(test); |
+test(0); |
a = "hello"; |
test(0); |