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

Issue 2498073002: [refactoring] Split CodeAssemblerState out of CodeAssembler (Closed)

Created:
4 years, 1 month ago by Jakob Kummerow
Modified:
4 years, 1 month ago
CC:
v8-reviews_googlegroups.com, rmcilroy
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[refactoring] Split CodeAssemblerState out of CodeAssembler This is in preparation for introducing more specialized CodeStubAssembler subclasses. The state object can be handed around, while the Assembler instances are temporary-scoped. BUG=v8:5628 Committed: https://crrev.com/913da29ea211c4b6d4680b5dae7da8f96a43fdde Cr-Commit-Position: refs/heads/master@{#41015}

Patch Set 1 #

Total comments: 43

Patch Set 2 : address comments #

Total comments: 2

Patch Set 3 : rebased #

Total comments: 2

Patch Set 4 : nits #

Patch Set 5 : rebased again #

Patch Set 6 : rebased again #

Patch Set 7 : try to appease Windows bots #

Patch Set 8 : one more attempt #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4152 lines, -3880 lines) Patch
M src/builtins/builtins.h View 1 2 3 4 5 2 chunks +4 lines, -5 lines 0 comments Download
M src/builtins/builtins.cc View 1 4 chunks +9 lines, -8 lines 0 comments Download
M src/builtins/builtins-array.cc View 1 2 3 4 7 chunks +778 lines, -780 lines 0 comments Download
M src/builtins/builtins-boolean.cc View 1 chunk +15 lines, -11 lines 0 comments Download
M src/builtins/builtins-conversion.cc View 2 chunks +163 lines, -149 lines 0 comments Download
M src/builtins/builtins-date.cc View 2 chunks +72 lines, -39 lines 0 comments Download
M src/builtins/builtins-function.cc View 1 chunk +7 lines, -6 lines 0 comments Download
M src/builtins/builtins-generator.cc View 1 chunk +12 lines, -6 lines 0 comments Download
M src/builtins/builtins-global.cc View 1 chunk +53 lines, -52 lines 0 comments Download
M src/builtins/builtins-handler.cc View 4 chunks +64 lines, -73 lines 0 comments Download
M src/builtins/builtins-internal.cc View 1 chunk +48 lines, -44 lines 0 comments Download
M src/builtins/builtins-iterator.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M src/builtins/builtins-math.cc View 3 chunks +224 lines, -196 lines 0 comments Download
M src/builtins/builtins-number.cc View 4 chunks +835 lines, -819 lines 0 comments Download
M src/builtins/builtins-object.cc View 1 2 4 chunks +195 lines, -186 lines 0 comments Download
M src/builtins/builtins-regexp.cc View 1 2 3 4 5 9 chunks +192 lines, -171 lines 0 comments Download
M src/builtins/builtins-sharedarraybuffer.cc View 6 chunks +71 lines, -69 lines 0 comments Download
M src/builtins/builtins-string.cc View 8 chunks +255 lines, -232 lines 0 comments Download
M src/builtins/builtins-symbol.cc View 1 chunk +23 lines, -18 lines 0 comments Download
M src/builtins/builtins-typedarray.cc View 2 chunks +68 lines, -67 lines 0 comments Download
M src/code-stub-assembler.h View 1 2 3 4 5 1 chunk +2 lines, -11 lines 0 comments Download
M src/code-stub-assembler.cc View 1 2 3 4 5 1 chunk +0 lines, -12 lines 0 comments Download
M src/code-stubs.h View 1 2 18 chunks +45 lines, -111 lines 0 comments Download
M src/code-stubs.cc View 1 2 17 chunks +526 lines, -430 lines 0 comments Download
M src/code-stubs-hydrogen.cc View 1 2 chunks +4 lines, -3 lines 0 comments Download
M src/compiler/code-assembler.h View 1 2 3 6 chunks +45 lines, -21 lines 0 comments Download
M src/compiler/code-assembler.cc View 1 2 3 34 chunks +130 lines, -118 lines 0 comments Download
M src/fast-accessor-assembler.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/fast-accessor-assembler.cc View 1 3 chunks +4 lines, -5 lines 0 comments Download
M src/ic/keyed-store-generic.h View 1 chunk +6 lines, -3 lines 0 comments Download
M src/ic/keyed-store-generic.cc View 3 chunks +20 lines, -10 lines 0 comments Download
M src/interface-descriptors.h View 1 2 3 4 5 6 7 2 chunks +3 lines, -3 lines 0 comments Download
M src/interpreter/interpreter.cc View 1 1 chunk +8 lines, -2 lines 0 comments Download
M src/interpreter/interpreter-assembler.h View 1 chunk +1 line, -1 line 0 comments Download
M src/interpreter/interpreter-assembler.cc View 1 1 chunk +3 lines, -5 lines 0 comments Download
M test/cctest/compiler/code-assembler-tester.h View 1 2 chunks +25 lines, -32 lines 0 comments Download
M test/cctest/compiler/function-tester.h View 1 chunk +2 lines, -1 line 0 comments Download
M test/cctest/compiler/function-tester.cc View 1 chunk +1 line, -3 lines 0 comments Download
M test/cctest/compiler/test-code-assembler.cc View 1 20 chunks +64 lines, -63 lines 0 comments Download
M test/cctest/test-code-stub-assembler.cc View 1 52 chunks +116 lines, -91 lines 0 comments Download
M test/unittests/interpreter/interpreter-assembler-unittest.h View 3 chunks +11 lines, -3 lines 0 comments Download
M test/unittests/interpreter/interpreter-assembler-unittest.cc View 20 chunks +44 lines, -19 lines 0 comments Download

Messages

Total messages: 35 (15 generated)
Jakob Kummerow
PTAL :-) (Michi - compiler, interpreter; Igor - everything else) The majority of the changes ...
4 years, 1 month ago (2016-11-15 09:51:50 UTC) #2
Michael Starzinger
Looked at "interpreter" and "compiler", looking good. Just a couple of nits and minor comments. ...
4 years, 1 month ago (2016-11-15 11:45:21 UTC) #3
Michael Starzinger
https://codereview.chromium.org/2498073002/diff/1/src/interpreter/interpreter.cc File src/interpreter/interpreter.cc (right): https://codereview.chromium.org/2498073002/diff/1/src/interpreter/interpreter.cc#newcode80 src/interpreter/interpreter.cc:80: compiler::CodeAssemblerState state( \ Actually, come to think of it, ...
4 years, 1 month ago (2016-11-15 11:53:08 UTC) #4
Igor Sheludko
lgtm with suggestions: https://codereview.chromium.org/2498073002/diff/1/src/code-stubs.cc File src/code-stubs.cc (right): https://codereview.chromium.org/2498073002/diff/1/src/code-stubs.cc#newcode1697 src/code-stubs.cc:1697: assembler.Return(Generate(&assembler, assembler.Parameter(0), \ On 2016/11/15 09:51:50, ...
4 years, 1 month ago (2016-11-15 13:06:35 UTC) #5
Jakob Kummerow
https://codereview.chromium.org/2498073002/diff/1/src/code-stubs.cc File src/code-stubs.cc (right): https://codereview.chromium.org/2498073002/diff/1/src/code-stubs.cc#newcode1697 src/code-stubs.cc:1697: assembler.Return(Generate(&assembler, assembler.Parameter(0), \ On 2016/11/15 13:06:35, Igor Sheludko wrote: ...
4 years, 1 month ago (2016-11-15 13:40:32 UTC) #6
Igor Sheludko
lgtm https://codereview.chromium.org/2498073002/diff/1/src/code-stubs.cc File src/code-stubs.cc (right): https://codereview.chromium.org/2498073002/diff/1/src/code-stubs.cc#newcode1697 src/code-stubs.cc:1697: assembler.Return(Generate(&assembler, assembler.Parameter(0), \ On 2016/11/15 13:40:31, Jakob Kummerow ...
4 years, 1 month ago (2016-11-15 14:02:53 UTC) #7
Michael Starzinger
LGTM from my end. Thanks! https://codereview.chromium.org/2498073002/diff/40001/src/compiler/code-assembler.h File src/compiler/code-assembler.h (right): https://codereview.chromium.org/2498073002/diff/40001/src/compiler/code-assembler.h#newcode534 src/compiler/code-assembler.h:534: Handle<Code> GenerateCode(); nit: Implementation ...
4 years, 1 month ago (2016-11-15 15:09:48 UTC) #8
Jakob Kummerow
Thanks, landing. https://codereview.chromium.org/2498073002/diff/20001/src/compiler/code-assembler.cc File src/compiler/code-assembler.cc (right): https://codereview.chromium.org/2498073002/diff/20001/src/compiler/code-assembler.cc#newcode65 src/compiler/code-assembler.cc:65: Handle<Code> CodeAssembler::GenerateCode(CodeAssemblerState* state) { On 2016/11/15 14:02:53, ...
4 years, 1 month ago (2016-11-15 15:21:13 UTC) #9
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/2498073002/60001
4 years, 1 month ago (2016-11-15 15:21:33 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux_mips64el_compile_rel on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux_mips64el_compile_rel/builds/24816) v8_presubmit on master.tryserver.v8 (JOB_FAILED, ...
4 years, 1 month ago (2016-11-15 15:23:21 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/2498073002/80001
4 years, 1 month ago (2016-11-15 15:52:39 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux64_rel_ng on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_rel_ng/builds/16234) v8_linux_gcc_compile_rel on master.tryserver.v8 (JOB_FAILED, ...
4 years, 1 month ago (2016-11-15 15:54:07 UTC) #19
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/2498073002/80001
4 years, 1 month ago (2016-11-15 16:05:43 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux_arm64_rel_ng on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux_arm64_rel_ng/builds/12000) v8_linux_mips64el_compile_rel on master.tryserver.v8 (JOB_FAILED, ...
4 years, 1 month ago (2016-11-15 16:08:40 UTC) #23
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/2498073002/100001
4 years, 1 month ago (2016-11-15 17:19:15 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: v8_win_compile_dbg on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_win_compile_dbg/builds/27957)
4 years, 1 month ago (2016-11-15 17:25:11 UTC) #28
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/2498073002/140001
4 years, 1 month ago (2016-11-15 22:06:14 UTC) #31
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 1 month ago (2016-11-15 22:57:15 UTC) #32
Michael Achenbach
A revert of this CL (patchset #8 id:140001) has been created in https://codereview.chromium.org/2504913002/ by machenbach@chromium.org. ...
4 years, 1 month ago (2016-11-16 07:53:29 UTC) #33
commit-bot: I haz the power
4 years, 1 month ago (2016-11-17 22:35:20 UTC) #35
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/913da29ea211c4b6d4680b5dae7da8f96a43fdde
Cr-Commit-Position: refs/heads/master@{#41015}

Powered by Google App Engine
This is Rietveld 408576698