| Summary: | CStack Branch: Fix call operationStackCheck to check the proper stack | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Michael Saboff <msaboff> | ||||
| Component: | JavaScriptCore | Assignee: | Michael Saboff <msaboff> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | ||||||
| Priority: | P2 | ||||||
| Version: | 528+ (Nightly build) | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Attachments: |
|
||||||
|
Description
Michael Saboff
2013-12-19 16:10:54 PST
Created attachment 219698 [details]
Patch
Comment on attachment 219698 [details]
Patch
r=me. This is actually more conservative than it needs to be, it’s good enough for now until JSStack can be refactored to handle the check for both cases (coming soon).
Committed r160871: <http://trac.webkit.org/changeset/160871> Comment on attachment 219698 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=219698&action=review > Source/JavaScriptCore/jit/JITOperations.cpp:89 > + if (!exec->vm().isSafeToRecurse(-codeBlock->stackPointerOffset() * sizeof(Register))) Since you're counting registers, you should use frameRegisterCount(), instead of manually converting based on SP. (In reply to comment #4) > (From update of attachment 219698 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=219698&action=review > > > Source/JavaScriptCore/jit/JITOperations.cpp:89 > > + if (!exec->vm().isSafeToRecurse(-codeBlock->stackPointerOffset() * sizeof(Register))) > > Since you're counting registers, you should use frameRegisterCount(), instead of manually converting based on SP. I change it. (In reply to comment #4) > (From update of attachment 219698 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=219698&action=review > > > Source/JavaScriptCore/jit/JITOperations.cpp:89 > > + if (!exec->vm().isSafeToRecurse(-codeBlock->stackPointerOffset() * sizeof(Register))) > > Since you're counting registers, you should use frameRegisterCount(), instead of manually converting based on SP. Landed this update in change set r160874: <http://trac.webkit.org/changeset/160874> |