| 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);
|
|
|