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

Issue 6835021: X64: Use roundsd for DoMathFloor. (Closed)

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

Description

X64: Use roundsd for DoMathFloor. TEST=mjsunit/math-floor Committed: http://code.google.com/p/v8/source/detail?r=7613

Patch Set 1 #

Total comments: 4

Patch Set 2 : Addressed review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+167 lines, -92 lines) Patch
M src/x64/assembler-x64.h View 1 chunk +9 lines, -0 lines 0 comments Download
M src/x64/assembler-x64.cc View 1 chunk +15 lines, -0 lines 0 comments Download
M src/x64/disasm-x64.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M src/x64/lithium-codegen-x64.cc View 1 chunk +26 lines, -11 lines 0 comments Download
M test/mjsunit/math-floor.js View 1 3 chunks +78 lines, -65 lines 0 comments Download
M test/mjsunit/math-round.js View 1 1 chunk +2 lines, -0 lines 0 comments Download
M test/mjsunit/mjsunit.js View 1 5 chunks +30 lines, -16 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Lasse Reichstein
9 years, 8 months ago (2011-04-13 12:55:46 UTC) #1
Vitaly Repeshko
Drive-by question. http://codereview.chromium.org/6835021/diff/1/test/mjsunit/math-floor.js File test/mjsunit/math-floor.js (right): http://codereview.chromium.org/6835021/diff/1/test/mjsunit/math-floor.js#newcode34 test/mjsunit/math-floor.js:34: assertEquals(expect, test(input)); Don't we need (at least) ...
9 years, 8 months ago (2011-04-13 21:11:50 UTC) #2
William Hesse
9 years, 8 months ago (2011-04-14 08:13:03 UTC) #3
LGTM, unless you agree that there is a flaw in DeepEquals for arrays containing
named properties.

http://codereview.chromium.org/6835021/diff/1/test/mjsunit/math-floor.js
File test/mjsunit/math-floor.js (right):

http://codereview.chromium.org/6835021/diff/1/test/mjsunit/math-floor.js#newc...
test/mjsunit/math-floor.js:36: assertEquals(expect, test(input));
What about the fact that -0 and +0 compare equal?  Don't you need to compare 1/x
and 1/y?

http://codereview.chromium.org/6835021/diff/1/test/mjsunit/mjsunit.js
File test/mjsunit/mjsunit.js (right):

http://codereview.chromium.org/6835021/diff/1/test/mjsunit/mjsunit.js#newcode66
test/mjsunit/mjsunit.js:66: var clazz = classOf(value);
object_class?  Better than a misspelling.

http://codereview.chromium.org/6835021/diff/1/test/mjsunit/mjsunit.js#newcode152
test/mjsunit/mjsunit.js:152: return false;
What about if a is an Object and b is an Array?
{0:"foo", 1:"bar} and ["foo", "bar"] - OK, I see length would have to be a
non-enumerable property on the object for it to happen.  Could this happen?

What about arrays with named properties - the named properties are not checked.

Powered by Google App Engine
This is Rietveld 408576698