Bug 138651

Summary: Change DFG to use scope operand for op_resolve_scope
Product: WebKit Reporter: Michael Saboff <msaboff>
Component: JavaScriptCoreAssignee: Michael Saboff <msaboff>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 312.x   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 136724    
Attachments:
Description Flags
Patch ggaren: review+

Michael Saboff
Reported 2014-11-11 20:30:07 PST
The DFG should use the scope operand provided by op_resolve_scope.
Attachments
Patch (2.19 KB, patch)
2014-11-11 20:37 PST, Michael Saboff
ggaren: review+
Michael Saboff
Comment 1 2014-11-11 20:37:46 PST
Geoffrey Garen
Comment 2 2014-11-11 21:25:43 PST
Comment on attachment 241412 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=241412&action=review r=me > Source/JavaScriptCore/dfg/DFGByteCodeParser.cpp:2304 > +Node* ByteCodeParser::getScope(VirtualRegister scope, unsigned skipCount) Strange to call a function named "get scope" and pass it a thing named "scope". A better name for this argument would be scopeChain, since it's the list of possible scopes, but the head is not necessarily the one you want to get.
Michael Saboff
Comment 3 2014-11-11 21:59:52 PST
(In reply to comment #2) > Comment on attachment 241412 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=241412&action=review > > r=me > > > Source/JavaScriptCore/dfg/DFGByteCodeParser.cpp:2304 > > +Node* ByteCodeParser::getScope(VirtualRegister scope, unsigned skipCount) > > Strange to call a function named "get scope" and pass it a thing named > "scope". > > A better name for this argument would be scopeChain, since it's the list of > possible scopes, but the head is not necessarily the one you want to get. I changed the argument's name to scopeChain.
Michael Saboff
Comment 4 2014-11-11 22:00:41 PST
Note You need to log in before you can comment on or make changes to this bug.