Bug 127201

Summary: CStack Branch: Fix Baseline JIT for X86-32
Product: WebKit Reporter: Michael Saboff <msaboff>
Component: JavaScriptCoreAssignee: Michael Saboff <msaboff>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on: 127071    
Bug Blocks: 127205    
Attachments:
Description Flags
Patch ggaren: review+

Description Michael Saboff 2014-01-17 15:46:13 PST
This is to get the baseline JIT working again.
Comment 1 Michael Saboff 2014-01-17 16:20:22 PST
Created attachment 221508 [details]
Patch
Comment 2 Geoffrey Garen 2014-01-17 16:39:42 PST
Comment on attachment 221508 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=221508&action=review

r=me

> Source/JavaScriptCore/ChangeLog:9
> +        epilogues) and making room on the stack for outgoiing arguments.

Should be "outgoing".

> Source/JavaScriptCore/jit/ThunkGenerators.cpp:523
> +    // Install the new return PC.
> +    // FIXME: I don't think currentReturnThunkPC is used and should be deleted.
> +#  if 0
> +    jit.loadPtr(&vm->currentReturnThunkPC, GPRInfo::regT2);
> +    jit.storePtr(GPRInfo::regT2, JSInterfaceJIT::Address(JSInterfaceJIT::callFrameRegister, CallFrame::returnPCOffset()));
> +#   else
> +    jit.storePtr(GPRInfo::regT5, JSInterfaceJIT::Address(JSInterfaceJIT::callFrameRegister, CallFrame::returnPCOffset()));
> +#   endif

Need a bug about this.
Comment 3 Michael Saboff 2014-01-17 16:44:55 PST
(In reply to comment #2)
> (From update of attachment 221508 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=221508&action=review
> 
> r=me
> 
> > Source/JavaScriptCore/ChangeLog:9
> > +        epilogues) and making room on the stack for outgoiing arguments.
> 
> Should be "outgoing".

Fixed.
 
> > Source/JavaScriptCore/jit/ThunkGenerators.cpp:523
> > +    // Install the new return PC.
> > +    // FIXME: I don't think currentReturnThunkPC is used and should be deleted.
> > +#  if 0
> > +    jit.loadPtr(&vm->currentReturnThunkPC, GPRInfo::regT2);
> > +    jit.storePtr(GPRInfo::regT2, JSInterfaceJIT::Address(JSInterfaceJIT::callFrameRegister, CallFrame::returnPCOffset()));
> > +#   else
> > +    jit.storePtr(GPRInfo::regT5, JSInterfaceJIT::Address(JSInterfaceJIT::callFrameRegister, CallFrame::returnPCOffset()));
> > +#   endif
> 
> Need a bug about this.

Added <https://bugs.webkit.org/show_bug.cgi?id=127205> - CStack Branch: VM::currentReturnThunkPC appears to be unused and should be removed
Comment 4 Michael Saboff 2014-01-17 21:06:05 PST
Committed r162242: <http://trac.webkit.org/changeset/162242>