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

Unified Diff: test/mjsunit/deopt-global-accessor.js

Issue 490533002: Use LookupIterator to transition to accessors (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 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/v8natives.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/deopt-global-accessor.js
diff --git a/test/mjsunit/regress/regress-no-dummy-use-for-arguments-object.js b/test/mjsunit/deopt-global-accessor.js
similarity index 67%
copy from test/mjsunit/regress/regress-no-dummy-use-for-arguments-object.js
copy to test/mjsunit/deopt-global-accessor.js
index 658d776ea3b80cd00d256a5514603bdb3df1f179..5c544a0fa0c3b3ba88790fb6e869d11b3a3eb4f0 100644
--- a/test/mjsunit/regress/regress-no-dummy-use-for-arguments-object.js
+++ b/test/mjsunit/deopt-global-accessor.js
@@ -4,18 +4,20 @@
// Flags: --allow-natives-syntax
-function g() {
- arguments.length;
-}
-
-var global = "";
+x = 1;
+x = 2;
+x = 3;
function f() {
- global.dummy = this;
- g({});
+ return x;
}
f();
f();
+f();
%OptimizeFunctionOnNextCall(f);
f();
+
+Object.defineProperty(this, "x", {get:function() { return 100; }});
+
+assertEquals(100, f());
« no previous file with comments | « src/v8natives.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698