| Index: test/mjsunit/regress/setvalueof-deopt.js
|
| diff --git a/test/mjsunit/regress/regress-polymorphic-load.js b/test/mjsunit/regress/setvalueof-deopt.js
|
| similarity index 88%
|
| copy from test/mjsunit/regress/regress-polymorphic-load.js
|
| copy to test/mjsunit/regress/setvalueof-deopt.js
|
| index 2545e85f60a2c7fe8f68dd9c667e38a0528ff127..8c42c8a20baa0845d8450d699e62cd98d7d39c08 100644
|
| --- a/test/mjsunit/regress/regress-polymorphic-load.js
|
| +++ b/test/mjsunit/regress/setvalueof-deopt.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:
|
| @@ -27,17 +27,16 @@
|
|
|
| // Flags: --allow-natives-syntax
|
|
|
| -function f(o) {
|
| - return o.x;
|
| +function g(x, y) {
|
| + return y;
|
| }
|
|
|
| -var o1 = {x:1};
|
| -var o2 = {__proto__: {x:2}};
|
| +function f(deopt) {
|
| + return g(%_SetValueOf(1, 1), deopt + 0);
|
| +}
|
|
|
| -f(o2);
|
| -f(o2);
|
| -f(o2);
|
| -f(o1);
|
| +f(0);
|
| +f(0);
|
| +f(0);
|
| %OptimizeFunctionOnNextCall(f);
|
| -assertEquals(1, f(o1));
|
| -assertEquals(2, f(o2));
|
| +assertEquals("result0", f("result"));
|
|
|