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

Issue 1535233002: Refactor PUSH/POP in ARM assemblers. (Closed)

Created:
5 years ago by Karl
Modified:
4 years, 11 months ago
Reviewers:
Jim Stichnoth, sehr, John
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

Refactor PUSH/POP in ARM assemblers. Refactors methods emit() and emitIAS() of InstARM32Push and InstARM32Pop to separate out the selection of assembler instructions from instruction emission, using template methods. Template method assemble() provides a single implementation for emit() and emitIAS(). This method calls template functions in the assembler to generate textual and binary forms of the instruction. BUG= None R=jpp@chromium.org, stichnot@chromium.org Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=c411dbf1c868911d4d300c6bf1ca6caa62592a1c

Patch Set 1 #

Patch Set 2 : Format. #

Patch Set 3 : Remove "#if 0' #

Total comments: 4

Patch Set 4 : Refactor to not generate text in ASM assembler. #

Patch Set 5 : Refactor and fix trivial bug (insertion of newline for vpush). #

Total comments: 22

Patch Set 6 : Rewrite to use virtuals. #

Patch Set 7 : Do some more cleanups. #

Total comments: 16

Patch Set 8 : Fix remaining issues. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+280 lines, -265 lines) Patch
M src/IceAssemblerARM32.h View 1 2 3 4 5 6 7 2 chunks +1 line, -7 lines 0 comments Download
M src/IceAssemblerARM32.cpp View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M src/IceInstARM32.h View 1 2 3 4 5 6 7 5 chunks +63 lines, -8 lines 0 comments Download
M src/IceInstARM32.cpp View 1 2 3 4 5 6 7 3 chunks +186 lines, -245 lines 0 comments Download
M src/IceRegistersARM32.h View 1 2 3 4 5 6 7 4 chunks +28 lines, -3 lines 0 comments Download

Messages

Total messages: 15 (3 generated)
Karl
5 years ago (2015-12-18 20:04:29 UTC) #3
John
I can't fully review this now, but please wait for my review before landing
5 years ago (2015-12-18 20:22:27 UTC) #4
John
Getting rid of duplication is always nice, but this CL does something else also: it ...
4 years, 11 months ago (2016-01-04 15:27:49 UTC) #5
Karl
Refactored code as suggested. https://codereview.chromium.org/1535233002/diff/40001/src/IceAssembler.h File src/IceAssembler.h (right): https://codereview.chromium.org/1535233002/diff/40001/src/IceAssembler.h#newcode37 src/IceAssembler.h:37: // Defines form that assembly ...
4 years, 11 months ago (2016-01-05 17:43:03 UTC) #6
John
https://codereview.chromium.org/1535233002/diff/80001/src/IceAssemblerARM32.cpp File src/IceAssemblerARM32.cpp (right): https://codereview.chromium.org/1535233002/diff/80001/src/IceAssemblerARM32.cpp#newcode534 src/IceAssemblerARM32.cpp:534: assert(Var->hasReg()); optional: This assertion is not needed -- Var->getRegNum() ...
4 years, 11 months ago (2016-01-06 16:10:21 UTC) #7
Karl
https://codereview.chromium.org/1535233002/diff/80001/src/IceAssemblerARM32.cpp File src/IceAssemblerARM32.cpp (right): https://codereview.chromium.org/1535233002/diff/80001/src/IceAssemblerARM32.cpp#newcode534 src/IceAssemblerARM32.cpp:534: assert(Var->hasReg()); On 2016/01/06 16:10:21, John wrote: > optional: This ...
4 years, 11 months ago (2016-01-06 23:21:58 UTC) #8
Karl
Ping?
4 years, 11 months ago (2016-01-08 15:21:38 UTC) #9
Jim Stichnoth
Otherwise lgtm. It would be good to get John's signoff as well before landing. https://codereview.chromium.org/1535233002/diff/120001/src/IceInstARM32.h ...
4 years, 11 months ago (2016-01-10 18:22:00 UTC) #10
John
lgtm https://codereview.chromium.org/1535233002/diff/120001/src/IceInstARM32.cpp File src/IceInstARM32.cpp (right): https://codereview.chromium.org/1535233002/diff/120001/src/IceInstARM32.cpp#newcode676 src/IceInstARM32.cpp:676: << "v" << getOpcode() << "\t{"; optional: I ...
4 years, 11 months ago (2016-01-11 13:40:36 UTC) #11
Karl
Committed patchset #8 (id:140001) manually as c411dbf1c868911d4d300c6bf1ca6caa62592a1c (presubmit successful).
4 years, 11 months ago (2016-01-11 17:59:26 UTC) #13
Karl
https://codereview.chromium.org/1535233002/diff/120001/src/IceInstARM32.cpp File src/IceInstARM32.cpp (right): https://codereview.chromium.org/1535233002/diff/120001/src/IceInstARM32.cpp#newcode676 src/IceInstARM32.cpp:676: << "v" << getOpcode() << "\t{"; On 2016/01/11 13:40:36, ...
4 years, 11 months ago (2016-01-11 17:59:44 UTC) #14
Karl
4 years, 11 months ago (2016-01-11 17:59:45 UTC) #15
Message was sent while issue was closed.

          

Powered by Google App Engine
This is Rietveld 408576698