Bug 125067

Summary: mips path could be merged with arm/sh4 path in nativeForGenerator and privateCompileCTINativeCall
Product: WebKit Reporter: Julien Brianceau <jbriance>
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, fu, gergely, kilvadyb, msaboff, palfia
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Merge mips and arm/sh4 paths in nativeForGenerator and privateCompileCTINativeCall functions. none

Julien Brianceau
Reported 2013-12-02 01:30:10 PST
In nativeForGenerator and privateCompileCTINativeCall functions, CPU(MIPS) path could be merged with CPU(ARM) || CPU(SH4) path to reduce architecture specific code. Moreover, this is likely to fix a potential issue in mips port: with current implementation Callee is put in MIPSRegisters::a2 instead of MIPSRegisters::a1 (argumentGPR1).
Attachments
Merge mips and arm/sh4 paths in nativeForGenerator and privateCompileCTINativeCall functions. (6.51 KB, patch)
2013-12-02 01:32 PST, Julien Brianceau
no flags
Julien Brianceau
Comment 1 2013-12-02 01:32:25 PST
Created attachment 218152 [details] Merge mips and arm/sh4 paths in nativeForGenerator and privateCompileCTINativeCall functions. I don't see regressions on my mips board with this patch, but I'd like to have a feedback from homejinni or mips guys before putting it into the commit queue.
Balazs Kilvady
Comment 2 2013-12-02 04:45:26 PST
(In reply to comment #1) > Created an attachment (id=218152) [details] > Merge mips and arm/sh4 paths in nativeForGenerator and privateCompileCTINativeCall functions. > > I don't see regressions on my mips board with this patch, but I'd like to have a feedback from homejinni or mips guys before putting it into the commit queue. I am on holiday so I can check/test it tomorrow. And I will definitely :)
Julien Brianceau
Comment 3 2013-12-02 04:51:34 PST
(In reply to comment #2) > I am on holiday so I can check/test it tomorrow. And I will definitely :) Thanks! I won't request commit queue before your feedback then.. and enjoy your day off :) About the MIPSRegisters::a2 thing, perhaps it's just used as a temp register so I'm not sure it could fix something.
Michael Saboff
Comment 4 2013-12-02 08:43:57 PST
Comment on attachment 218152 [details] Merge mips and arm/sh4 paths in nativeForGenerator and privateCompileCTINativeCall functions. Looks fine. Will cq+ after kilvadyb@homejinni.com provides results from testing.
Balazs Kilvady
Comment 5 2013-12-03 01:47:03 PST
(In reply to comment #4) > (From update of attachment 218152 [details]) > Looks fine. Will cq+ after kilvadyb@homejinni.com provides results from testing. Looks good to me also, no more regressions with this patch.(In reply to comment #4) > (From update of attachment 218152 [details]) > Looks fine. Will cq+ after kilvadyb@homejinni.com provides results from testing. Looks good to me also, no more regressions with this patch. a2 was used as a temporary scratch register in the previous code and now argumentGPR1 == a1 is the scratch reg on MIPS which is also fine.
Julien Brianceau
Comment 6 2013-12-03 01:50:14 PST
(In reply to comment #5) > Looks good to me also, no more regressions with this patch. a2 was used as a temporary scratch register in the previous code and now argumentGPR1 == a1 is the scratch reg on MIPS which is also fine. Great, I'm requesting commit queue then. Thanks!
WebKit Commit Bot
Comment 7 2013-12-03 02:25:32 PST
Comment on attachment 218152 [details] Merge mips and arm/sh4 paths in nativeForGenerator and privateCompileCTINativeCall functions. Clearing flags on attachment: 218152 Committed r159995: <http://trac.webkit.org/changeset/159995>
WebKit Commit Bot
Comment 8 2013-12-03 02:25:34 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.