Bug 144369

Summary: FTL SwitchString slow case should use address-of-label
Product: WebKit Reporter: Filip Pizlo <fpizlo>
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on: 144348    
Bug Blocks:    

Filip Pizlo
Reported 2015-04-28 18:35:24 PDT
Currently the FTL SwitchString slow case is done by having us emit IR to switch on the branch offset that the runtime call finds in the jump table's hash map. But we could just have the IR jump to the address returned from the runtime call, and populate the hash map with addresses of labels.
Attachments
Note You need to log in before you can comment on or make changes to this bug.