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

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

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

Description

[builtins] Pass correct number of arguments after adapting arguments. 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. R=mstarzinger@chromium.org Committed: https://crrev.com/fbad63669e309e8c5c3f2ecf503df2fefaac79bb Cr-Commit-Position: refs/heads/master@{#30467}

Patch Set 1 : Initial version. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -18 lines) Patch
M src/arm/builtins-arm.cc View 3 chunks +11 lines, -7 lines 0 comments Download
M src/arm64/builtins-arm64.cc View 4 chunks +8 lines, -5 lines 0 comments Download
M src/ia32/builtins-ia32.cc View 3 chunks +15 lines, -6 lines 0 comments Download
M src/x64/builtins-x64.cc View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (3 generated)
Benedikt Meurer
5 years, 3 months ago (2015-08-31 10:36:43 UTC) #1
Benedikt Meurer
Hey Michi, The bug we just discovered; it's not even an off-by-N... Please take a ...
5 years, 3 months ago (2015-08-31 10:37:46 UTC) #2
Michael Starzinger
LGTM.
5 years, 3 months ago (2015-08-31 10:58:28 UTC) #4
Benedikt Meurer
Hey MIPS people, Please port this fix to MIPS/MIPS64. Thanks, Benedikt
5 years, 3 months ago (2015-08-31 10:58:32 UTC) #6
Benedikt Meurer
On 2015/08/31 10:58:32, Benedikt Meurer wrote: > Hey MIPS people, > > Please port this ...
5 years, 3 months ago (2015-08-31 11:27:25 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1306423003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1306423003/20001
5 years, 3 months ago (2015-08-31 11:27:33 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:20001)
5 years, 3 months ago (2015-08-31 11:28:57 UTC) #10
commit-bot: I haz the power
5 years, 3 months ago (2015-08-31 11:29:09 UTC) #11
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/fbad63669e309e8c5c3f2ecf503df2fefaac79bb
Cr-Commit-Position: refs/heads/master@{#30467}

Powered by Google App Engine
This is Rietveld 408576698