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

Issue 1811283003: [wasm] WIP fix arm64 frame alignment. (Closed)

Created:
4 years, 9 months ago by titzer
Modified:
4 years, 8 months ago
Reviewers:
ahaas, danno
CC:
v8-arm-ports_googlegroups..com, 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

[wasm] Fix arm64 frame alignment. In JavaScript code and stubs, JSSP mirrors the CSP but may be unaligned. But in WASM code only CSP is used, like native code, and it must be aligned. Calls into WASM from JS need to carefully align the C stack pointer (csp) and restore the previous JSSP, while calls from WASM to JS need to compute a new JSSP and restore their CSP after the call. R=ahaas@chromium.org BUG= Committed: https://crrev.com/c9f59780f7f2429ad1dd6b870d4e7764747853a3 Cr-Commit-Position: refs/heads/master@{#35096}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 10

Patch Set 5 : #

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+193 lines, -80 lines) Patch
M src/arm64/macro-assembler-arm64.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M src/arm64/macro-assembler-arm64.cc View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
M src/compiler/arm64/code-generator-arm64.cc View 1 2 3 4 5 5 chunks +56 lines, -20 lines 0 comments Download
M src/compiler/arm64/instruction-selector-arm64.cc View 1 2 3 4 5 1 chunk +6 lines, -6 lines 0 comments Download
M src/compiler/c-linkage.cc View 2 chunks +6 lines, -4 lines 0 comments Download
M src/compiler/instruction-selector.cc View 1 2 3 4 5 1 chunk +7 lines, -5 lines 0 comments Download
M src/compiler/linkage.h View 1 chunk +3 lines, -2 lines 0 comments Download
M src/compiler/wasm-compiler.cc View 1 2 3 4 2 chunks +12 lines, -0 lines 0 comments Download
M test/cctest/wasm/test-run-wasm.cc View 2 chunks +0 lines, -7 lines 0 comments Download
M test/cctest/wasm/test-run-wasm-js.cc View 9 chunks +90 lines, -30 lines 0 comments Download
M test/cctest/wasm/test-run-wasm-module.cc View 2 chunks +0 lines, -3 lines 0 comments Download
M test/mjsunit/mjsunit.status View 1 2 3 4 2 chunks +2 lines, -3 lines 0 comments Download

Messages

Total messages: 12 (5 generated)
titzer
+danno PTAL. I'd like to land this while the arm64 folks take a look at ...
4 years, 9 months ago (2016-03-24 10:11:34 UTC) #3
ahaas
https://codereview.chromium.org/1811283003/diff/60001/src/arm64/macro-assembler-arm64.cc File src/arm64/macro-assembler-arm64.cc (right): https://codereview.chromium.org/1811283003/diff/60001/src/arm64/macro-assembler-arm64.cc#newcode1358 src/arm64/macro-assembler-arm64.cc:1358: void MacroAssembler::AssertCspAligned() { Could you let this function return ...
4 years, 8 months ago (2016-03-29 08:33:58 UTC) #4
titzer
https://codereview.chromium.org/1811283003/diff/60001/src/arm64/macro-assembler-arm64.cc File src/arm64/macro-assembler-arm64.cc (right): https://codereview.chromium.org/1811283003/diff/60001/src/arm64/macro-assembler-arm64.cc#newcode1358 src/arm64/macro-assembler-arm64.cc:1358: void MacroAssembler::AssertCspAligned() { On 2016/03/29 08:33:58, ahaas wrote: > ...
4 years, 8 months ago (2016-03-29 09:10:53 UTC) #5
ahaas
lgtm
4 years, 8 months ago (2016-03-29 09:22:45 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1811283003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1811283003/100001
4 years, 8 months ago (2016-03-29 10:38:50 UTC) #8
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 8 months ago (2016-03-29 11:41:39 UTC) #10
commit-bot: I haz the power
4 years, 8 months ago (2016-03-29 11:42:55 UTC) #12
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/c9f59780f7f2429ad1dd6b870d4e7764747853a3
Cr-Commit-Position: refs/heads/master@{#35096}

Powered by Google App Engine
This is Rietveld 408576698