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

Unified Diff: test/mjsunit/regress/regress-crbug-390918.js

Issue 363073002: One of the fast cases in JSObject::MigrateFastToFast() should not be taken... (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressing comments Created 6 years, 6 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/objects.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/regress-crbug-390918.js
diff --git a/test/mjsunit/regress/regress-no-dummy-use-for-arguments-object.js b/test/mjsunit/regress/regress-crbug-390918.js
similarity index 65%
copy from test/mjsunit/regress/regress-no-dummy-use-for-arguments-object.js
copy to test/mjsunit/regress/regress-crbug-390918.js
index 658d776ea3b80cd00d256a5514603bdb3df1f179..4c202b3a9b22a1e4802788136f69c39174ae0d51 100644
--- a/test/mjsunit/regress/regress-no-dummy-use-for-arguments-object.js
+++ b/test/mjsunit/regress/regress-crbug-390918.js
@@ -4,18 +4,15 @@
// Flags: --allow-natives-syntax
-function g() {
- arguments.length;
-}
-
-var global = "";
+function f(scale) {
+ var arr = {a: 1.1};
-function f() {
- global.dummy = this;
- g({});
+ for (var i = 0; i < 2; i++) {
+ arr[2 * scale] = 0;
+ }
}
-f();
-f();
+f({});
+f({});
%OptimizeFunctionOnNextCall(f);
-f();
+f(1004);
« no previous file with comments | « src/objects.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698