Closed
Bug 195736
Opened 22 years ago
Closed 22 years ago
Small change to xptcinvoke_gcc_x86_unix.cpp
Categories
(Core :: XPConnect, defect, P3)
Tracking
()
VERIFIED
FIXED
mozilla1.5alpha
People
(Reporter: tenthumbs, Assigned: dbradley)
Details
Attachments
(1 file, 1 obsolete file)
2.85 KB,
patch
|
dbradley
:
review+
|
Details | Diff | Splinter Review |
I was going over some old notes for bug 140412 and bug 168508 and i found that I
had forgotten a change to make xptcinvoke use the regparm calling convention
just as xptcstubs does.
As I looked at it, I noticed that mozilla can theoretically pass 64-bit
quantities, like doubles, which work better if they're properly aligned. While
the rest of mozilla doesn't know about such things, it's easy to align the data
block created in XPTC_InvokeByIndex.
I'll attach a patch. Since it saves a few instructions there is some minuscule
performance improvement. :-)
Switches from stdcall to regparm calling convention internally and marks wher
alignment may be useful.
Assignee | ||
Comment 2•22 years ago
|
||
Comment on attachment 116091 [details] [diff] [review]
xptcall patch
r=dbradley
I don't have any way to verify this patch. I assume you ran TestXPTCInvoke and
it didn't report any additional errors.
Attachment #116091 -
Flags: superreview?(shaver)
Attachment #116091 -
Flags: review+
Assignee | ||
Updated•22 years ago
|
Status: NEW → ASSIGNED
Priority: -- → P3
Target Milestone: --- → mozilla1.5alpha
Yes, I tested it. I have to update the patch. Stand by for a new
version.
Assignee | ||
Updated•22 years ago
|
Attachment #116091 -
Flags: superreview?(shaver)
Comment 4•22 years ago
|
||
dbradley's review is enough for me, on the new patch.
This should do it. It works on my tree form a few days ago. I'm updating and
rebuilding but there shouldn't be any problem.
There are some comments about alignment. It would be interesting to see if they
make any perceptible difference.
Also note that gcc 3.2.2 tries hard to maintain stack alignment but xptcinvoke
messes it up and there's no way at the moment to fix that. It may be a prblem
down the road.
Attachment #116091 -
Attachment is obsolete: true
Assignee | ||
Comment 6•22 years ago
|
||
Comment on attachment 120581 [details] [diff] [review]
revised patch
r=dbradley
Attachment #120581 -
Flags: review+
Assignee | ||
Comment 7•22 years ago
|
||
Patch checked in
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•