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

Unified Diff: test/mjsunit/compiler/simple-global-access.js

Issue 660095: Merge revision 3813 to 3930 from bleeding_edge to partial snapshots branch. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/partial_snapshots/
Patch Set: '' Created 10 years, 10 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 | « test/mjsunit/compiler/simple-binary-op.js ('k') | test/mjsunit/compiler/this-property-refs.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/compiler/simple-global-access.js
===================================================================
--- test/mjsunit/compiler/simple-global-access.js (revision 3935)
+++ test/mjsunit/compiler/simple-global-access.js (working copy)
@@ -31,21 +31,23 @@
var g1 = 42;
var g2 = 43;
var g3 = 44;
+this.__defineGetter__("g4", function () { return 45; });
function f1() { this.x = this.y = this.z = g1; }
function f2() { this.x = g1; this.y = g2; this.z = g3; }
+function f3() { this.x = g4; }
-var o = {x:0, y:0, z:0, m1:f1, m2:f2}
+var o = { x:0, y:0, z:0, test1:f1, test2:f2, test3:f3 }
-o.m1();
-
+o.test1();
assertEquals(42, o.x);
assertEquals(42, o.y);
assertEquals(42, o.z);
-
-o.m2();
-
+o.test2();
assertEquals(42, o.x);
assertEquals(43, o.y);
assertEquals(44, o.z);
+
+o.test3();
+assertEquals(45, o.x);
« no previous file with comments | « test/mjsunit/compiler/simple-binary-op.js ('k') | test/mjsunit/compiler/this-property-refs.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698