~ubuntu-branches/ubuntu/saucy/libv8/saucy

« back to all changes in this revision

Viewing changes to test/mjsunit/regress/regress-397.js

  • Committer: Package Import Robot
  • Author(s): Jérémy Lal
  • Date: 2012-04-07 16:26:13 UTC
  • mfrom: (15.1.27 sid)
  • Revision ID: package-import@ubuntu.com-20120407162613-dqo1m6w9r3fh8tst
Tags: 3.8.9.16-3
* mipsel build fixes :
  + v8_use_mips_abi_hardfloat=false, this lowers EABI requirements.
  + v8_can_use_fpu_instructions=false, detect if FPU is present.
  + set -Wno-unused-but-set-variable only on mipsel.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26
26
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
27
 
 
28
// Flags: --allow-natives-syntax
28
29
// See http://code.google.com/p/v8/issues/detail?id=397
29
30
 
30
 
assertEquals("Infinity", String(Math.pow(Infinity, 0.5)));
31
 
assertEquals(0, Math.pow(Infinity, -0.5));
32
 
 
33
 
assertEquals("Infinity", String(Math.pow(-Infinity, 0.5)));
34
 
assertEquals(0, Math.pow(-Infinity, -0.5));
 
31
 
 
32
function test() {
 
33
  assertEquals("Infinity", String(Math.pow(Infinity, 0.5)));
 
34
  assertEquals(0, Math.pow(Infinity, -0.5));
 
35
 
 
36
  assertEquals("Infinity", String(Math.pow(-Infinity, 0.5)));
 
37
  assertEquals(0, Math.pow(-Infinity, -0.5));
 
38
}
 
39
 
 
40
test();
 
41
test();
 
42
%OptimizeFunctionOnNextCall(test);
 
43
test();