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

Unified Diff: test/mjsunit/regress-keyed-store-non-strict-arguments.js

Issue 176843018: Only use the non-strict-arguments-stub if the store site is non-strict. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix the fix Created 6 years, 9 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 | « src/ic.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress-keyed-store-non-strict-arguments.js
diff --git a/test/mjsunit/regress/regress-347906.js b/test/mjsunit/regress-keyed-store-non-strict-arguments.js
similarity index 50%
copy from test/mjsunit/regress/regress-347906.js
copy to test/mjsunit/regress-keyed-store-non-strict-arguments.js
index c751618928c93015679087ee1b500637657aa341..865d600ad90f1b9c6915659d242e2122ba407008 100644
--- a/test/mjsunit/regress/regress-347906.js
+++ b/test/mjsunit/regress-keyed-store-non-strict-arguments.js
@@ -2,13 +2,15 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// Flags: --allow-natives-syntax --harmony
+function args(arg) { return arguments; }
+var a = args(false);
-function foo() {
- return Math.clz32(12.34);
-}
+(function () {
+ "use strict";
+ a["const" + 0] = 0;
+})();
-foo();
-foo();
-%OptimizeFunctionOnNextCall(foo);
-foo();
+(function () {
+ "use strict";
+ a[0] = 0;
+})();
« no previous file with comments | « src/ic.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698