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

Issue 1630863002: Clean up register+immediate addresses in ARM. (Closed)

Created:
4 years, 11 months ago by Karl
Modified:
4 years, 11 months ago
CC:
native-client-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Clean up register+immediate addresses in ARM. Cleans up the integrated ARM assembler, and its handling of register memory addresses that can be modified by an immediate value. Handles each possible encoding of such memory addresses. Also adds assertions to check that the immediate value has the proper range for the immediate value, based on the corresponding encoding. BUG=None R=stichnot@chromium.org Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=18273c0f6878b1b88fa4fffdae5c14f36631c511

Patch Set 1 #

Patch Set 2 : Fix nits. #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -47 lines) Patch
M src/IceAssemblerARM32.cpp View 1 17 chunks +71 lines, -47 lines 4 comments Download

Messages

Total messages: 7 (3 generated)
Karl
4 years, 11 months ago (2016-01-25 19:02:25 UTC) #3
Jim Stichnoth
lgtm https://codereview.chromium.org/1630863002/diff/20001/src/IceAssemblerARM32.cpp File src/IceAssemblerARM32.cpp (right): https://codereview.chromium.org/1630863002/diff/20001/src/IceAssemblerARM32.cpp#newcode207 src/IceAssemblerARM32.cpp:207: // Alternate encoding for RotatedImm8Address, where the offset ...
4 years, 11 months ago (2016-01-25 20:37:50 UTC) #4
Karl
Committed patchset #2 (id:20001) manually as 18273c0f6878b1b88fa4fffdae5c14f36631c511 (presubmit successful).
4 years, 11 months ago (2016-01-25 23:59:00 UTC) #6
Karl
4 years, 11 months ago (2016-01-25 23:59:16 UTC) #7
Message was sent while issue was closed.
https://codereview.chromium.org/1630863002/diff/20001/src/IceAssemblerARM32.cpp
File src/IceAssemblerARM32.cpp (right):

https://codereview.chromium.org/1630863002/diff/20001/src/IceAssemblerARM32.c...
src/IceAssemblerARM32.cpp:207: // Alternate encoding for RotatedImm8Address,
where the offset is divided by 4
On 2016/01/25 20:37:50, stichnot wrote:
> Optional: Consider adding a blank line after each enum value, to make it
easier
> to associate the comment with the correct enum value.

Added blank lines. Did same for following enum EncodedOperand.

https://codereview.chromium.org/1630863002/diff/20001/src/IceAssemblerARM32.c...
src/IceAssemblerARM32.cpp:365: inline IValueT encodeImmRegOffset(IValueT Reg,
IOffsetT Offset,
On 2016/01/25 20:37:50, stichnot wrote:
> Why inline here?  This seems inconsistent with the other functions here.

Removed.

Powered by Google App Engine
This is Rietveld 408576698