Bug 125791

Summary: CStack Branch: Eliminate topOfStack parameter from callToJavaScript() and callToNativeFunction()
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   
Attachments:
Description Flags
Patch ggaren: review+

Michael Saboff
Reported 2013-12-16 11:19:21 PST
Since callToJavaScript() and callToNativeFunction() now use the C stack, the last Register* topOfStack parameter can be removed.
Attachments
Patch (7.71 KB, patch)
2013-12-16 11:23 PST, Michael Saboff
ggaren: review+
Michael Saboff
Comment 1 2013-12-16 11:23:20 PST
Mark Lam
Comment 2 2013-12-16 12:54:22 PST
Comment on attachment 219335 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=219335&action=review > Source/JavaScriptCore/llint/LLIntThunks.h:44 > + EncodedJSValue callToJavaScript(void*, ExecState**, ProtoCallFrame*); > + EncodedJSValue callToNativeFunction(void*, ExecState**, ProtoCallFrame*); The ExecState** argument doesn't agree with the VM* arg in LowLevelInterpreter.asm below. Which is it supposed to be?
Geoffrey Garen
Comment 3 2013-12-16 13:07:05 PST
Comment on attachment 219335 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=219335&action=review r=me > Source/JavaScriptCore/llint/LowLevelInterpreter.asm:468 > +# EncodedJSValue callToJavaScript(void* code, VM* vm, ProtoCallFrame* protoFrame) > +# EncodedJSValue callToNativeFunction(void* code, VM* vm, ProtoCallFrame* protoFrame) Please change this from VM* to ExecState**. As Mark pointed out, this doesn't match our declaration. Callers pass &vm.topCallFrame, which is an ExecState**.
Michael Saboff
Comment 4 2013-12-16 13:28:33 PST
Note You need to log in before you can comment on or make changes to this bug.