blob: e07cc06082fb3b6ac5d7be044686658ac57821b6 [file] [log] [blame]
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001// Copyright 2014 the V8 project authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00005// Flags: --deopt-every-n-times=1 --no-enable-sse4-1
Ben Murdochb8a8cc12014-11-26 15:28:44 +00006
7function g(f, x, name) {
8 var v2 = f(x);
9 for (var i = 0; i < 13000; i++) {
10 f(i);
11 }
12 var v1 = f(x);
13 assertEquals(v1, v2);
14}
15
16g(Math.sin, 6.283185307179586, "Math.sin");