Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(566)

Side by Side Diff: test/mjsunit/constant-folding-2.js

Issue 19807002: Turn on parallel recompilation for tests that assert optimization status. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: fix small details. no logic change. Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « test/mjsunit/compiler/parallel-proto-change.js ('k') | test/mjsunit/count-based-osr.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 16 matching lines...) Expand all
27 27
28 28
29 // Flags: --nodead-code-elimination --fold-constants --allow-natives-syntax 29 // Flags: --nodead-code-elimination --fold-constants --allow-natives-syntax
30 30
31 function test(f) { 31 function test(f) {
32 f(); 32 f();
33 f(); 33 f();
34 %OptimizeFunctionOnNextCall(f); 34 %OptimizeFunctionOnNextCall(f);
35 f(); 35 f();
36 // Assert that there has been no deopt. 36 // Assert that there has been no deopt.
37 assertTrue(%GetOptimizationStatus(f) != 2); 37 assertOptimized(f);
38 } 38 }
39 39
40 test(function add() { 40 test(function add() {
41 assertEquals(2, 1 + 1); 41 assertEquals(2, 1 + 1);
42 assertEquals(2.5, 1.25 + 1.25); 42 assertEquals(2.5, 1.25 + 1.25);
43 assertEquals("Infinity", String(Infinity + Infinity)); 43 assertEquals("Infinity", String(Infinity + Infinity));
44 assertEquals("Infinity", String(Infinity + 3)); 44 assertEquals("Infinity", String(Infinity + 3));
45 assertEquals("NaN", String(Infinity + (-Infinity))); 45 assertEquals("NaN", String(Infinity + (-Infinity)));
46 assertEquals("NaN", String(NaN + 2)); 46 assertEquals("NaN", String(NaN + 2));
47 assertEquals("-Infinity", String(1 / (-0.0 + (-0.0)))); 47 assertEquals("-Infinity", String(1 / (-0.0 + (-0.0))));
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 }); 258 });
259 259
260 260
261 test(function int32Mod() { 261 test(function int32Mod() {
262 assertEquals(-0, -2147483648 % (-1)); 262 assertEquals(-0, -2147483648 % (-1));
263 }); 263 });
264 264
265 test(function int32Div() { 265 test(function int32Div() {
266 assertEquals(2147483648, -2147483648 / (-1)); 266 assertEquals(2147483648, -2147483648 / (-1));
267 }); 267 });
OLDNEW
« no previous file with comments | « test/mjsunit/compiler/parallel-proto-change.js ('k') | test/mjsunit/count-based-osr.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698