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

Issue 2663243002: [asm] Fix lots of invalid asm.js tests (Closed)

Created:
3 years, 10 months ago by Clemens Hammacher
Modified:
3 years, 10 months ago
Reviewers:
titzer, bradnelson, bradn
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[asm] Fix lots of invalid asm.js tests I identified lots of asm.js tests that are actually not valid according to the spec, hence they execute in default-javascript-mode. This CL fixes most of them by adding additional type annotations. The atomic tests are totally non-spec-compliant by expecting a fourth argument, and infinite-loops-taken expects a function-type parameter, so I did not fix those. I also did not fix the regression tests. R=titzer@chromium.org, bradnelson@chromium.org BUG=v8:4203 Review-Url: https://codereview.chromium.org/2663243002 Cr-Commit-Position: refs/heads/master@{#43179} Committed: https://chromium.googlesource.com/v8/v8/+/be1a5f7551268a0f5cb9119e04af9834125132d0

Patch Set 1 #

Patch Set 2 : clang-format #

Total comments: 2

Patch Set 3 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+311 lines, -241 lines) Patch
M test/mjsunit/asm/do-while.js View 1 1 chunk +4 lines, -4 lines 0 comments Download
M test/mjsunit/asm/do-while-false.js View 1 1 chunk +5 lines, -5 lines 0 comments Download
M test/mjsunit/asm/float32array-negative-offset.js View 1 2 2 chunks +2 lines, -4 lines 0 comments Download
M test/mjsunit/asm/float32array-outofbounds.js View 1 chunk +1 line, -2 lines 0 comments Download
M test/mjsunit/asm/float32array-store-div.js View 1 chunk +3 lines, -2 lines 0 comments Download
M test/mjsunit/asm/float64array-negative-offset.js View 2 chunks +2 lines, -4 lines 0 comments Download
M test/mjsunit/asm/float64array-outofbounds.js View 1 chunk +1 line, -2 lines 0 comments Download
M test/mjsunit/asm/float64array-store-div.js View 1 chunk +3 lines, -2 lines 0 comments Download
M test/mjsunit/asm/float64mul.js View 1 chunk +1 line, -1 line 0 comments Download
M test/mjsunit/asm/if-cloning.js View 1 2 chunks +2 lines, -2 lines 0 comments Download
M test/mjsunit/asm/if-folding.js View 1 2 chunks +43 lines, -21 lines 0 comments Download
M test/mjsunit/asm/if-reduction.js View 1 2 chunks +68 lines, -44 lines 0 comments Download
M test/mjsunit/asm/if-tonumber.js View 1 1 chunk +2 lines, -2 lines 0 comments Download
M test/mjsunit/asm/infinite-loops-taken.js View 1 chunk +1 line, -0 lines 0 comments Download
M test/mjsunit/asm/int16array-negative-offset.js View 1 2 chunks +2 lines, -2 lines 0 comments Download
M test/mjsunit/asm/int16array-outofbounds.js View 1 1 chunk +9 lines, -6 lines 0 comments Download
M test/mjsunit/asm/int32-div.js View 1 1 chunk +4 lines, -4 lines 0 comments Download
M test/mjsunit/asm/int32-mod.js View 1 2 chunks +8 lines, -8 lines 0 comments Download
M test/mjsunit/asm/int32-mul.js View 1 2 chunks +5 lines, -5 lines 0 comments Download
M test/mjsunit/asm/int32-tmod.js View 1 1 chunk +5 lines, -5 lines 0 comments Download
M test/mjsunit/asm/int32-udiv.js View 1 1 chunk +8 lines, -8 lines 0 comments Download
M test/mjsunit/asm/int32-umod.js View 1 1 chunk +8 lines, -8 lines 0 comments Download
M test/mjsunit/asm/int32array-constant-key.js View 1 2 chunks +23 lines, -17 lines 0 comments Download
M test/mjsunit/asm/int32array-negative-offset.js View 1 2 chunks +2 lines, -2 lines 0 comments Download
M test/mjsunit/asm/int32array-outofbounds.js View 1 1 chunk +1 line, -1 line 0 comments Download
M test/mjsunit/asm/int32array-unaligned.js View 1 1 chunk +1 line, -1 line 0 comments Download
M test/mjsunit/asm/int32div.js View 1 1 chunk +9 lines, -7 lines 0 comments Download
M test/mjsunit/asm/int32mod.js View 1 chunk +1 line, -1 line 0 comments Download
M test/mjsunit/asm/int32mod-constant.js View 1 1 chunk +9 lines, -7 lines 0 comments Download
M test/mjsunit/asm/int32modb.js View 1 1 chunk +1 line, -1 line 0 comments Download
M test/mjsunit/asm/int8array-negative-offset.js View 1 2 chunks +2 lines, -2 lines 0 comments Download
M test/mjsunit/asm/load-elimination.js View 1 1 chunk +5 lines, -4 lines 0 comments Download
M test/mjsunit/asm/math-abs.js View 1 1 chunk +3 lines, -3 lines 0 comments Download
M test/mjsunit/asm/math-ceil.js View 1 chunk +1 line, -1 line 0 comments Download
M test/mjsunit/asm/math-clz32.js View 1 1 chunk +2 lines, -2 lines 0 comments Download
M test/mjsunit/asm/math-floor.js View 1 chunk +2 lines, -2 lines 0 comments Download
M test/mjsunit/asm/redundancy1.js View 1 1 chunk +4 lines, -4 lines 0 comments Download
M test/mjsunit/asm/redundancy2.js View 1 2 chunks +4 lines, -4 lines 0 comments Download
M test/mjsunit/asm/switch.js View 1 5 chunks +6 lines, -4 lines 0 comments Download
M test/mjsunit/asm/uint32-less-than-shift.js View 3 chunks +6 lines, -3 lines 0 comments Download
M test/mjsunit/asm/uint32div.js View 1 2 chunks +12 lines, -8 lines 0 comments Download
M test/mjsunit/asm/uint32mod.js View 2 chunks +4 lines, -4 lines 0 comments Download
M test/mjsunit/asm/uint32mod-constant.js View 1 2 chunks +10 lines, -8 lines 0 comments Download
M test/mjsunit/asm/uint8array-outofbounds.js View 1 chunk +1 line, -1 line 0 comments Download
M test/mjsunit/asm/word32and.js View 1 1 chunk +9 lines, -7 lines 0 comments Download
M test/mjsunit/asm/word32ror.js View 2 chunks +2 lines, -2 lines 0 comments Download
M test/mjsunit/asm/zero-extend.js View 2 chunks +4 lines, -4 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 24 (15 generated)
Clemens Hammacher
3 years, 10 months ago (2017-01-31 16:50:11 UTC) #3
Clemens Hammacher
This is blocked on http://crbug.com/v8/5912 (do-while-false.js does not terminate).
3 years, 10 months ago (2017-01-31 16:50:56 UTC) #4
bradnelson
lgtm These tests predate the validator. I'd avoided changing these to valid asm way back ...
3 years, 10 months ago (2017-01-31 17:16:08 UTC) #9
Clemens Hammacher
On 2017/01/31 at 17:16:08, bradnelson wrote: > While you're at it, maybe we should also ...
3 years, 10 months ago (2017-01-31 18:26:23 UTC) #10
titzer
On 2017/01/31 18:26:23, Clemens Hammacher wrote: > On 2017/01/31 at 17:16:08, bradnelson wrote: > > ...
3 years, 10 months ago (2017-01-31 20:34:30 UTC) #11
Clemens Hammacher
On 2017/01/31 at 20:34:30, titzer wrote: > On 2017/01/31 18:26:23, Clemens Hammacher wrote: > > ...
3 years, 10 months ago (2017-02-01 17:23:42 UTC) #12
bradn
I think adding a runtime-test method to know would be useful. But no need to ...
3 years, 10 months ago (2017-02-01 17:49:58 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2663243002/40001
3 years, 10 months ago (2017-02-14 09:25:09 UTC) #21
commit-bot: I haz the power
3 years, 10 months ago (2017-02-14 09:26:58 UTC) #24
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/v8/v8/+/be1a5f7551268a0f5cb9119e04af9834125...

Powered by Google App Engine
This is Rietveld 408576698