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

Issue 1322953002: MIPS: [builtins] Pass correct number of arguments after adapting arguments. (Closed)

Created:
5 years, 3 months ago by akos.palfi.imgtec
Modified:
5 years, 3 months ago
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

MIPS: [builtins] Pass correct number of arguments after adapting arguments. Port fbad63669e309e8c5c3f2ecf503df2fefaac79bb Original commit message: The call protocol requires that the register dedicated to the number of actual arguments (i.e. rax on x64) always contains the actual arguments. That means after adapting arguments it should match the number of expected arguments. But currently we pass some semi-random value (usually some stack address) after adapting arguments. It looks like this is currently not observable anywhere, because our builtins and functions either don't look at the number of arguments and just make hard coded (unchecked) assumptions, or are marked as "don't adapt arguments", which bypasses the broken code in the trampoline for arguments adaption. Nevertheless this should be fixed. BUG= Committed: https://crrev.com/2b4ebd90430cab18a0d0b5dff779159b69bb095a Cr-Commit-Position: refs/heads/master@{#30485}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -25 lines) Patch
M src/mips/builtins-mips.cc View 3 chunks +13 lines, -10 lines 0 comments Download
M src/mips64/builtins-mips64.cc View 3 chunks +18 lines, -15 lines 0 comments Download

Messages

Total messages: 7 (2 generated)
akos.palfi.imgtec
PTAL.
5 years, 3 months ago (2015-08-31 19:20:15 UTC) #2
paul.l...
LGTM.
5 years, 3 months ago (2015-08-31 19:39:01 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1322953002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1322953002/1
5 years, 3 months ago (2015-08-31 19:49:05 UTC) #5
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years, 3 months ago (2015-08-31 20:11:19 UTC) #6
commit-bot: I haz the power
5 years, 3 months ago (2015-08-31 20:11:33 UTC) #7
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/2b4ebd90430cab18a0d0b5dff779159b69bb095a
Cr-Commit-Position: refs/heads/master@{#30485}

Powered by Google App Engine
This is Rietveld 408576698