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

Issue 6688062: Add more tests to mul-exhaustive for constant left/right parameters. (Closed)

Created:
9 years, 9 months ago by Lasse Reichstein
Modified:
9 years, 6 months ago
CC:
v8-dev
Visibility:
Public.

Description

Add more tests to mul-exhaustive for constant left/right operands. Make MJSUnit able to distinguish 0 and -0. Committed: http://code.google.com/p/v8/source/detail?r=7368

Patch Set 1 #

Total comments: 20

Patch Set 2 : Addressed review comments. #

Patch Set 3 : Removed loop from mul-extensive #

Unified diffs Side-by-side diffs Delta from patch set Stats (+197 lines, -24 lines) Patch
M test/mjsunit/math-sqrt.js View 1 1 chunk +5 lines, -1 line 0 comments Download
M test/mjsunit/mjsunit.js View 1 3 chunks +59 lines, -8 lines 0 comments Download
M test/mjsunit/mul-exhaustive.js View 1 2 96 chunks +129 lines, -11 lines 0 comments Download
M test/mjsunit/negate-zero.js View 1 chunk +1 line, -1 line 0 comments Download
M test/mjsunit/smi-negative-zero.js View 1 chunk +2 lines, -2 lines 0 comments Download
M test/mjsunit/str-to-num.js View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 5 (0 generated)
Lasse Reichstein
9 years, 9 months ago (2011-03-21 07:53:20 UTC) #1
Kevin Millikin (Chromium)
mul-exhaustive.js should be simplified. It seems too complicated and it's not obvious why it has ...
9 years, 9 months ago (2011-03-21 11:25:39 UTC) #2
Lasse Reichstein
http://codereview.chromium.org/6688062/diff/1/test/mjsunit/math-sqrt.js File test/mjsunit/math-sqrt.js (right): http://codereview.chromium.org/6688062/diff/1/test/mjsunit/math-sqrt.js#newcode33 test/mjsunit/math-sqrt.js:33: // Math.pow(-0, 0.5) must be zero, but Math.sqrt(-0) is ...
9 years, 9 months ago (2011-03-21 13:17:58 UTC) #3
Kevin Millikin (Chromium)
http://codereview.chromium.org/6688062/diff/1/test/mjsunit/mjsunit.js File test/mjsunit/mjsunit.js (right): http://codereview.chromium.org/6688062/diff/1/test/mjsunit/mjsunit.js#newcode82 test/mjsunit/mjsunit.js:82: var start; On 2011/03/21 13:17:58, Lasse Reichstein wrote: > ...
9 years, 9 months ago (2011-03-21 13:37:35 UTC) #4
Lasse Reichstein
9 years, 9 months ago (2011-03-21 14:18:26 UTC) #5
http://codereview.chromium.org/6688062/diff/1/test/mjsunit/mjsunit.js
File test/mjsunit/mjsunit.js (right):

http://codereview.chromium.org/6688062/diff/1/test/mjsunit/mjsunit.js#newcode82
test/mjsunit/mjsunit.js:82: var start;
Indeed! :)

http://codereview.chromium.org/6688062/diff/1/test/mjsunit/mul-exhaustive.js
File test/mjsunit/mul-exhaustive.js (right):

http://codereview.chromium.org/6688062/diff/1/test/mjsunit/mul-exhaustive.js#...
test/mjsunit/mul-exhaustive.js:55: for (var i = 0; i < 1000; i++)
assertEquals(a, xcyv(y));
Will do. Simplicity FTW.

Powered by Google App Engine
This is Rietveld 408576698