| Summary: | 32-bit LLInt writeBarrierOnGlobalObject is wrong | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Mark Hahnenberg <mhahnenberg> | ||||
| Component: | JavaScriptCore | Assignee: | Mark Hahnenberg <mhahnenberg> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | benjamin, cmarcelo, commit-queue | ||||
| Priority: | P2 | ||||||
| Version: | 528+ (Nightly build) | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Attachments: |
|
||||||
|
Description
Mark Hahnenberg
2014-02-10 15:31:40 PST
Created attachment 223755 [details]
Patch
Comment on attachment 223755 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=223755&action=review r=me > Source/JavaScriptCore/llint/LowLevelInterpreter64.asm:413 > + loadConstantOrVariableCell(t1, t0, .writeBarrierDone) > btpz t0, .writeBarrierDone Why does this code check for a null t0? Is a null cell ever allowed? (In reply to comment #2) > (From update of attachment 223755 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=223755&action=review > > r=me > > > Source/JavaScriptCore/llint/LowLevelInterpreter64.asm:413 > > + loadConstantOrVariableCell(t1, t0, .writeBarrierDone) > > btpz t0, .writeBarrierDone > > Why does this code check for a null t0? Is a null cell ever allowed? I think init_global_const potentially does this...it's been a while since I added that however. (In reply to comment #3) > (In reply to comment #2) > > (From update of attachment 223755 [details] [details]) > > View in context: https://bugs.webkit.org/attachment.cgi?id=223755&action=review > > > > r=me > > > > > Source/JavaScriptCore/llint/LowLevelInterpreter64.asm:413 > > > + loadConstantOrVariableCell(t1, t0, .writeBarrierDone) > > > btpz t0, .writeBarrierDone > > > > Why does this code check for a null t0? Is a null cell ever allowed? > > I think init_global_const potentially does this...it's been a while since I added that however. I filed bug 128608 to track getting rid of the null check. Comment on attachment 223755 [details] Patch Clearing flags on attachment: 223755 Committed r163887: <http://trac.webkit.org/changeset/163887> All reviewed patches have been landed. Closing bug. |