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

Issue 620553008: Lower NumberMultiply, NumberDivide, and NumberModulus to Int32Mul, Int32[U]Div, and Int32[U]Mod whe… (Closed)

Created:
6 years, 2 months ago by titzer
Modified:
6 years, 2 months ago
Reviewers:
Michael Starzinger
CC:
v8-dev
Project:
v8
Visibility:
Public.

Description

Lower NumberMultiply, NumberDivide, and NumberModulus to Int32Mul, Int32[U]Div, and Int32[U]Mod when possible in simplified-lowering. R=mstarzinger@chromium.org BUG= Committed: https://code.google.com/p/v8/source/detail?r=24462

Patch Set 1 #

Total comments: 3

Patch Set 2 : Add mjsunit and cctests. #

Total comments: 6

Patch Set 3 : Address review comments. #

Patch Set 4 : git cl try #

Unified diffs Side-by-side diffs Delta from patch set Stats (+640 lines, -36 lines) Patch
M src/compiler/simplified-lowering.cc View 1 2 7 chunks +96 lines, -14 lines 0 comments Download
M test/cctest/compiler/test-simplified-lowering.cc View 1 2 3 3 chunks +346 lines, -22 lines 0 comments Download
A test/mjsunit/asm/int32-div.js View 1 2 1 chunk +33 lines, -0 lines 0 comments Download
A test/mjsunit/asm/int32-mod.js View 1 2 1 chunk +33 lines, -0 lines 0 comments Download
A test/mjsunit/asm/int32-mul.js View 1 2 1 chunk +33 lines, -0 lines 0 comments Download
A test/mjsunit/asm/int32-tmod.js View 1 2 1 chunk +33 lines, -0 lines 0 comments Download
A test/mjsunit/asm/int32-udiv.js View 1 2 1 chunk +33 lines, -0 lines 0 comments Download
A test/mjsunit/asm/int32-umod.js View 1 2 1 chunk +33 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
titzer
6 years, 2 months ago (2014-10-01 14:19:10 UTC) #1
Michael Starzinger
Looking good. Please also add tests that actually run the generated code (as discussed offline). ...
6 years, 2 months ago (2014-10-01 21:11:33 UTC) #2
Michael Starzinger
https://codereview.chromium.org/620553008/diff/1/src/compiler/simplified-lowering.cc File src/compiler/simplified-lowering.cc (right): https://codereview.chromium.org/620553008/diff/1/src/compiler/simplified-lowering.cc#newcode355 src/compiler/simplified-lowering.cc:355: bool CanBeInt32Binop(Node* node, MachineTypeUnion use) { On 2014/10/01 21:11:32, ...
6 years, 2 months ago (2014-10-01 21:15:57 UTC) #3
titzer
Added tests. PTAL.
6 years, 2 months ago (2014-10-07 16:19:26 UTC) #4
Michael Starzinger
LGTM (if all comments are addressed). https://codereview.chromium.org/620553008/diff/20001/src/compiler/simplified-lowering.cc File src/compiler/simplified-lowering.cc (right): https://codereview.chromium.org/620553008/diff/20001/src/compiler/simplified-lowering.cc#newcode355 src/compiler/simplified-lowering.cc:355: bool CanBeInt32Binop(Node* node, ...
6 years, 2 months ago (2014-10-08 09:01:28 UTC) #5
titzer
https://codereview.chromium.org/620553008/diff/20001/src/compiler/simplified-lowering.cc File src/compiler/simplified-lowering.cc (right): https://codereview.chromium.org/620553008/diff/20001/src/compiler/simplified-lowering.cc#newcode355 src/compiler/simplified-lowering.cc:355: bool CanBeInt32Binop(Node* node, MachineTypeUnion use) { On 2014/10/08 09:01:28, ...
6 years, 2 months ago (2014-10-08 09:12:29 UTC) #6
titzer
6 years, 2 months ago (2014-10-08 10:54:00 UTC) #7
Message was sent while issue was closed.
Committed patchset #4 manually as 24462 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698