Chromium Code Reviews| Index: test/mjsunit/compiler/optimized-function-calls.js |
| diff --git a/test/mjsunit/compiler/optimized-function-calls.js b/test/mjsunit/compiler/optimized-function-calls.js |
| index 1b5f3b035366199599c7f47fae6408d19abbfcc8..46a8961ab27908db00adfe19d25ebc0a6ac587e9 100644 |
| --- a/test/mjsunit/compiler/optimized-function-calls.js |
| +++ b/test/mjsunit/compiler/optimized-function-calls.js |
| @@ -25,7 +25,7 @@ |
| // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| -// Flags: --expose-gc |
| +// Flags: --allow-natives-syntax --expose-gc |
| function f() { |
| gc(); |
| @@ -48,7 +48,10 @@ delete object.x; |
| function call_f(o) { |
| return o.f(); |
| } |
| -for (var i = 0; i < 10000000; i++) call_f(object); |
| +for (var i = 0; i < 5; i++) call_f(object); |
| +%OptimizeFunctionOnNextCall(object.f); |
|
Mads Ager (chromium)
2011/04/11 11:06:38
I'm not sure you should do this. If you optimize c
Jakob Kummerow
2011/04/11 12:55:51
Done. (Removed this line.)
|
| +%OptimizeFunctionOnNextCall(call_f); |
| +call_f(object); |
| // Check that nested global function calls work. |