Bug 137907

Summary: Change native call frames to use the scope from their Callee instead of their caller's scope
Product: WebKit Reporter: Michael Saboff <msaboff>
Component: JavaScriptCoreAssignee: Michael Saboff <msaboff>
Status: RESOLVED FIXED    
Severity: Normal CC: ossy
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on: 137839, 137906    
Bug Blocks: 136724, 136901    
Attachments:
Description Flags
Patch mark.lam: review+

Description Michael Saboff 2014-10-20 18:53:45 PDT
Currently the scope for a native call frame is copied from their caller's scope.  This usually works, but is not the proper semantic.  The correct scope to use is the one from the callee.
Comment 1 Michael Saboff 2014-10-21 11:52:49 PDT
Created attachment 240213 [details]
Patch
Comment 2 Mark Lam 2014-10-21 12:14:43 PDT
Comment on attachment 240213 [details]
Patch

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

> Source/JavaScriptCore/llint/LowLevelInterpreter32_64.asm:-2109
> -        # t1 already contains the Callee.

I don't think you should remove this comment.
Comment 3 Michael Saboff 2014-10-21 12:36:58 PDT
(In reply to comment #2)
> Comment on attachment 240213 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=240213&action=review
> 
> > Source/JavaScriptCore/llint/LowLevelInterpreter32_64.asm:-2109
> > -        # t1 already contains the Callee.
> 
> I don't think you should remove this comment.

I put it back in.
Comment 4 Michael Saboff 2014-10-21 13:03:25 PDT
Committed r174996: <http://trac.webkit.org/changeset/174996>
Comment 6 Michael Saboff 2014-10-22 11:21:38 PDT
(In reply to comment #5)
> (In reply to comment #4)
> > Committed r174996: <http://trac.webkit.org/changeset/174996>
> 
> It broke the testapi tests on the CLOOP bots:
> https://build.webkit.org/builders/
> Apple%20Mavericks%20LLINT%20CLoop%20%28BuildAndTest%29/builds/9212/steps/
> webkit-jsc-cloop-test/logs/stdio

tracked in <https://bugs.webkit.org/show_bug.cgi?id=137971>