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

Unified Diff: test/mjsunit/regress/regress-1117.js

Issue 11028027: Revert trunk to bleeding_edge at r12484 (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/mjsunit/regress-2286.js ('k') | test/mjsunit/regress/regress-148378.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress/regress-1117.js
diff --git a/test/mjsunit/regress/regress-1117.js b/test/mjsunit/regress/regress-1117.js
index 981a1b7a3f445d76fd040c59cab44409e58f8452..b013a223ece4e049504d0b4b1e298c7ad4c33b32 100644
--- a/test/mjsunit/regress/regress-1117.js
+++ b/test/mjsunit/regress/regress-1117.js
@@ -25,20 +25,11 @@
// (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: --allow-natives-syntax
-
// Test that we actually return the right value (-0) when we multiply
// constant 0 with a negative integer.
function foo(y) {return 0 * y; }
+for( var i = 0; i< 1000000; i++){
+ foo(42);
+}
assertEquals(1/foo(-42), -Infinity);
-assertEquals(1/foo(-42), -Infinity);
-%OptimizeFunctionOnNextCall(foo);
-assertEquals(1/foo(-42), -Infinity);
-
-function bar(x) { return x * 0; }
-assertEquals(Infinity, 1/bar(5));
-assertEquals(Infinity, 1/bar(5));
-%OptimizeFunctionOnNextCall(bar);
-assertEquals(-Infinity, 1/bar(-5));
-
« no previous file with comments | « test/mjsunit/regress-2286.js ('k') | test/mjsunit/regress/regress-148378.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698