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

Issue 10831409: Fix rounding in Uint8ClampedArray setter. (Closed)

Created:
8 years, 4 months ago by ulan
Modified:
8 years, 4 months ago
CC:
v8-dev
Visibility:
Public.

Description

Fix rounding in Uint8ClampedArray setter. According to Web IDL spec, we should round to the nearest integer, choosing the even integer if it lies halfway between two. R=yangguo@chromium.org,kbr@chromium.org BUG=v8:2294 Committed: https://code.google.com/p/v8/source/detail?r=12364

Patch Set 1 #

Total comments: 8

Patch Set 2 : Fix windows compile error, address comments. #

Patch Set 3 : Add missing test file #

Patch Set 4 : Fix manual rounding #

Unified diffs Side-by-side diffs Delta from patch set Stats (+76 lines, -31 lines) Patch
M src/arm/macro-assembler-arm.cc View 1 chunk +9 lines, -4 lines 0 comments Download
M src/ia32/assembler-ia32.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/ia32/assembler-ia32.cc View 1 chunk +10 lines, -0 lines 0 comments Download
M src/ia32/disasm-ia32.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M src/ia32/macro-assembler-ia32.cc View 1 chunk +1 line, -4 lines 0 comments Download
M src/objects.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/platform.h View 1 2 3 1 chunk +18 lines, -0 lines 0 comments Download
M src/x64/macro-assembler-x64.cc View 1 chunk +1 line, -5 lines 0 comments Download
A + test/mjsunit/regress/regress-2294.js View 1 2 1 chunk +33 lines, -16 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
ulan
Please take a look.
8 years, 4 months ago (2012-08-21 17:29:33 UTC) #1
Yang
LGTM with comments addressed. https://chromiumcodereview.appspot.com/10831409/diff/1/src/arm/macro-assembler-arm.cc File src/arm/macro-assembler-arm.cc (right): https://chromiumcodereview.appspot.com/10831409/diff/1/src/arm/macro-assembler-arm.cc#newcode3695 src/arm/macro-assembler-arm.cc:3695: vmsr(ip); Could you use EmitVFPTruncate ...
8 years, 4 months ago (2012-08-22 07:57:06 UTC) #2
ulan
Could you please take another look in src/platform.h? https://chromiumcodereview.appspot.com/10831409/diff/1/src/arm/macro-assembler-arm.cc File src/arm/macro-assembler-arm.cc (right): https://chromiumcodereview.appspot.com/10831409/diff/1/src/arm/macro-assembler-arm.cc#newcode3695 src/arm/macro-assembler-arm.cc:3695: vmsr(ip); ...
8 years, 4 months ago (2012-08-22 13:48:17 UTC) #3
ulan
8 years, 4 months ago (2012-08-22 14:08:48 UTC) #4
Thanks! Fixed manual rounding as discussed offline. Landing.

Powered by Google App Engine
This is Rietveld 408576698