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

Issue 13973011: Pepper IDL: Check for structs in callbacks. (Closed)

Created:
7 years, 8 months ago by teravest
Modified:
7 years, 8 months ago
CC:
chromium-reviews, Mark Seaborn
Visibility:
Public.

Description

Pepper IDL: Check for structs in callbacks. It's problematic for PNaCl when callbacks take structs that are passed by value; there's not enough type information for matching GCC's calling conventions on the target architecture. This change scans for typedefs that define functions, and scans the arguments to see if any are a struct (or a typedef of a struct). This change whitelists one existing problematic callback. Tested: Verified that exceptions are raised for the one type in the whitelist when the whitelist was empty. Verified that no exceptions are raised with this change as-is. BUG=233439 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=196162

Patch Set 1 #

Total comments: 7

Patch Set 2 : Fixes for noelallen #

Patch Set 3 : Fixes for mseaborn #

Total comments: 3

Patch Set 4 : Fix mseaborn comments, round 2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -0 lines) Patch
M ppapi/generators/idl_c_header.py View 1 2 3 1 chunk +29 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
teravest
7 years, 8 months ago (2013-04-22 20:30:52 UTC) #1
noelallen1
https://codereview.chromium.org/13973011/diff/1/ppapi/generators/idl_c_header.py File ppapi/generators/idl_c_header.py (right): https://codereview.chromium.org/13973011/diff/1/ppapi/generators/idl_c_header.py#newcode150 ppapi/generators/idl_c_header.py:150: 'PP_Ext_Alarms_OnAlarm_Func_Dev_0_1') I think this is the current problem file ...
7 years, 8 months ago (2013-04-22 21:48:26 UTC) #2
Mark Seaborn
Thanks for looking into this. https://codereview.chromium.org/13973011/diff/1/ppapi/generators/idl_c_header.py File ppapi/generators/idl_c_header.py (right): https://codereview.chromium.org/13973011/diff/1/ppapi/generators/idl_c_header.py#newcode148 ppapi/generators/idl_c_header.py:148: cgen = CGen() cgen ...
7 years, 8 months ago (2013-04-22 23:48:41 UTC) #3
teravest
On Mon, Apr 22, 2013 at 3:48 PM, <noelallen@chromium.org> wrote: > > https://codereview.chromium.org/13973011/diff/1/ppapi/generators/idl_c_header.py > File ...
7 years, 8 months ago (2013-04-23 14:30:20 UTC) #4
teravest
On Mon, Apr 22, 2013 at 5:48 PM, <mseaborn@chromium.org> wrote: > Thanks for looking into ...
7 years, 8 months ago (2013-04-23 14:32:29 UTC) #5
Mark Seaborn
You need to update this part of the commit message: "This change whitelists the two ...
7 years, 8 months ago (2013-04-23 15:08:47 UTC) #6
teravest
On Tue, Apr 23, 2013 at 9:08 AM, <mseaborn@chromium.org> wrote: > You need to update ...
7 years, 8 months ago (2013-04-23 15:41:32 UTC) #7
noelallen1
LGTM. I think this is a positive move forward, but something to consider if we ...
7 years, 8 months ago (2013-04-23 17:29:12 UTC) #8
teravest
On Tue, Apr 23, 2013 at 11:29 AM, <noelallen@chromium.org> wrote: > LGTM. I think this ...
7 years, 8 months ago (2013-04-23 17:50:24 UTC) #9
Mark Seaborn
On 23 April 2013 10:49, Justin TerAvest <teravest@chromium.org> wrote: > On Tue, Apr 23, 2013 ...
7 years, 8 months ago (2013-04-23 18:01:54 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/teravest@chromium.org/13973011/13001
7 years, 8 months ago (2013-04-23 18:29:28 UTC) #11
commit-bot: I haz the power
Retried try job too often on win7_aura for step(s) interactive_ui_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win7_aura&number=32310
7 years, 8 months ago (2013-04-23 21:36:53 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/teravest@chromium.org/13973011/13001
7 years, 8 months ago (2013-04-23 21:41:17 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/teravest@chromium.org/13973011/13001
7 years, 8 months ago (2013-04-24 16:31:53 UTC) #14
commit-bot: I haz the power
7 years, 8 months ago (2013-04-24 16:52:29 UTC) #15
Message was sent while issue was closed.
Change committed as 196162

Powered by Google App Engine
This is Rietveld 408576698