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

Unified Diff: test/mjsunit/regress/regress-346343.js

Issue 185653004: Experimental parser: merge to r19637 (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/parser
Patch Set: Created 6 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/regress/regress-343609.js ('k') | test/mjsunit/regress/regress-347262.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress/regress-346343.js
diff --git a/test/mjsunit/regress/regress-polymorphic-load.js b/test/mjsunit/regress/regress-346343.js
similarity index 87%
copy from test/mjsunit/regress/regress-polymorphic-load.js
copy to test/mjsunit/regress/regress-346343.js
index 2545e85f60a2c7fe8f68dd9c667e38a0528ff127..e4c10663138db599a682880df98f3310e0754b63 100644
--- a/test/mjsunit/regress/regress-polymorphic-load.js
+++ b/test/mjsunit/regress/regress-346343.js
@@ -1,4 +1,4 @@
-// Copyright 2013 the V8 project authors. All rights reserved.
+// Copyright 2014 the V8 project authors. All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
@@ -28,16 +28,15 @@
// Flags: --allow-natives-syntax
function f(o) {
- return o.x;
+ for (var i = 1; i < 2; ++i) {
+ var y = o.y;
+ }
}
+f({y:1.1});
+f({y:1.1});
-var o1 = {x:1};
-var o2 = {__proto__: {x:2}};
-
-f(o2);
-f(o2);
-f(o2);
-f(o1);
-%OptimizeFunctionOnNextCall(f);
-assertEquals(1, f(o1));
-assertEquals(2, f(o2));
+function g(x) { f({z:x}); }
+g(1);
+g(2);
+%OptimizeFunctionOnNextCall(g);
+g(1);
« no previous file with comments | « test/mjsunit/regress/regress-343609.js ('k') | test/mjsunit/regress/regress-347262.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698