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

Issue 1903343002: PPC: [turbofan] CodeGenerator: Frame setup refactoring (Closed)

Created:
4 years, 8 months ago by JaideepBajwa
Modified:
4 years, 8 months ago
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

PPC: [turbofan] CodeGenerator: Frame setup refactoring Port 81a1530e6fb3f4382098f71c01ffe047ffd72afc Original commit message: Before frame elision, we finalized the frame shape when assembling the prologue, which is also when we prepared the frame (saving sp, etc). The frame finalization only needs to happen once, and happens to be actually a set of idempotent operations. With frame elision, the logic for frame finalization was happening every time we constructed the frame. Albeit idempotent operations, the code would become hard to maintain. This change separates frame shape finalization from frame construction. When constructing the CodeGenerator, we finalize the frame. Subsequent access is to a const Frame*. Also renamed AssemblePrologue to AssembleConstructFrame, as suggested in the frame elision CR. Separating frame setup gave the opportunity to do away with architecture-independent frame aligning (which is something just arm64 cares about), and also with stack pointer setup (also arm64). Both of these happen now at frame finalization on arm64. R=mtrofin@chromium.org, joransiu@ca.ibm.com, jyan@ca.ibm.com, michael_dawson@ca.ibm.com, mbrandy@us.ibm.com BUG= LOG=N Committed: https://crrev.com/a9cb48bf37fe325a54ca010e0760237ed714ab9d Cr-Commit-Position: refs/heads/master@{#35674}

Patch Set 1 #

Total comments: 2

Patch Set 2 : removed unnecessary push #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -16 lines) Patch
M src/compiler/ppc/code-generator-ppc.cc View 1 6 chunks +30 lines, -16 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
JaideepBajwa
PTAL
4 years, 8 months ago (2016-04-20 17:37:11 UTC) #1
MTBrandyberry
https://codereview.chromium.org/1903343002/diff/1/src/compiler/ppc/code-generator-ppc.cc File src/compiler/ppc/code-generator-ppc.cc (right): https://codereview.chromium.org/1903343002/diff/1/src/compiler/ppc/code-generator-ppc.cc#newcode1762 src/compiler/ppc/code-generator-ppc.cc:1762: __ MultiPushDoubles(double_saves); Don't think we want to push here. ...
4 years, 8 months ago (2016-04-20 17:47:38 UTC) #2
MTBrandyberry
lgtm
4 years, 8 months ago (2016-04-20 18:01:14 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1903343002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1903343002/20001
4 years, 8 months ago (2016-04-20 18:02:23 UTC) #5
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 8 months ago (2016-04-20 18:20:43 UTC) #6
commit-bot: I haz the power
4 years, 8 months ago (2016-04-22 19:13:43 UTC) #8
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/a9cb48bf37fe325a54ca010e0760237ed714ab9d
Cr-Commit-Position: refs/heads/master@{#35674}

Powered by Google App Engine
This is Rietveld 408576698