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

Issue 714613002: Fix bugs in simplified lowering relating to int32/uint32 signs. (Closed)

Created:
6 years, 1 month ago by titzer
Modified:
6 years, 1 month ago
Reviewers:
Benedikt Meurer, Jarin
CC:
v8-dev
Project:
v8
Visibility:
Public.

Description

Fix bugs in simplified lowering relating to int32/uint32 signs. Lowering of NumberToUint32 and NumberToInt32 was not correctly accounting for the sign of the input and the sign of the output, emitting the wrong representation changes. Along the way, I've found cases where MachineOperatorBuilder would break if fed a machine type for loads or stores that was not cached, requiring MachineOperatorBuilder to take zone to allocate operators for these cases. R=bmeurer@chromium.org, jarin@chromium.org BUG= Committed: https://code.google.com/p/v8/source/detail?r=25247

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+205 lines, -64 lines) Patch
M src/compiler/basic-block-instrumentor.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/compiler/machine-operator.h View 2 chunks +2 lines, -1 line 0 comments Download
M src/compiler/machine-operator.cc View 4 chunks +13 lines, -6 lines 0 comments Download
M src/compiler/pipeline.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/compiler/raw-machine-assembler.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/compiler/simplified-lowering.cc View 2 chunks +11 lines, -5 lines 0 comments Download
M src/compiler/typer.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M test/cctest/compiler/graph-builder-tester.h View 1 chunk +1 line, -0 lines 0 comments Download
M test/cctest/compiler/test-instruction.cc View 1 chunk +1 line, -0 lines 0 comments Download
M test/cctest/compiler/test-js-constant-cache.cc View 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/compiler/test-js-context-specialization.cc View 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/compiler/test-js-typed-lowering.cc View 1 chunk +1 line, -0 lines 0 comments Download
M test/cctest/compiler/test-machine-operator-reducer.cc View 1 chunk +1 line, -0 lines 0 comments Download
M test/cctest/compiler/test-schedule.cc View 1 chunk +2 lines, -1 line 0 comments Download
M test/cctest/compiler/test-scheduler.cc View 16 chunks +11 lines, -16 lines 0 comments Download
M test/cctest/compiler/test-simplified-lowering.cc View 5 chunks +70 lines, -22 lines 0 comments Download
A test/mjsunit/mod-range.js View 1 2 1 chunk +79 lines, -0 lines 0 comments Download
M test/unittests/compiler/change-lowering-unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M test/unittests/compiler/js-builtin-reducer-unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M test/unittests/compiler/js-typed-lowering-unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M test/unittests/compiler/machine-operator-reducer-unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M test/unittests/compiler/node-matchers-unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M test/unittests/compiler/simplified-operator-reducer-unittest.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 7 (1 generated)
titzer
6 years, 1 month ago (2014-11-10 12:46:58 UTC) #1
Benedikt Meurer
https://codereview.chromium.org/714613002/diff/1/src/compiler/typer.cc File src/compiler/typer.cc (right): https://codereview.chromium.org/714613002/diff/1/src/compiler/typer.cc#newcode1037 src/compiler/typer.cc:1037: if (FLAG_turbo_mod_range) Why do we need a flag here? ...
6 years, 1 month ago (2014-11-10 12:54:47 UTC) #3
titzer
https://codereview.chromium.org/714613002/diff/1/src/compiler/typer.cc File src/compiler/typer.cc (right): https://codereview.chromium.org/714613002/diff/1/src/compiler/typer.cc#newcode1037 src/compiler/typer.cc:1037: if (FLAG_turbo_mod_range) On 2014/11/10 12:54:47, Benedikt Meurer wrote: > ...
6 years, 1 month ago (2014-11-10 12:57:07 UTC) #4
Jarin
lgtm
6 years, 1 month ago (2014-11-10 13:01:17 UTC) #5
Benedikt Meurer
lgtm
6 years, 1 month ago (2014-11-10 13:01:25 UTC) #6
titzer
6 years, 1 month ago (2014-11-10 14:28:29 UTC) #7
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as 25247 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698