Open Bug 1310321 Opened 8 years ago Updated 2 years ago

Remove unnecessary uses of Expose*ToActiveJS from CodeGen.py

Categories

(Core :: DOM: Core & HTML, defect, P3)

defect

Tracking

()

REOPENED

People

(Reporter: mccr8, Unassigned)

References

Details

      No description provided.
Although, the uses here seem to be reading out of a Rooted<> and not a Heap<> so maybe there's no read barrier?
Ok, I guess we can't really do this. I suppose in the future ideally we'd never store a gray object into a Rooted<>.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
Hmm.  Which uses are you looking at?

In order:

1)  The one in the isAny() case in getWrapTemplateForType() is there because
    for any types we just had callees hand out Value and not worry about
    unmarking.  But now that Heap unmarks, I think this can become an assert.
2)  The isObject() case in the same method, same thing, both branches.
3)  The isObject() case in CGEventGetter, is returning a property stored
    in a HeapObject, so is already getting barriered.
4)  The isAny() case in CGEventGetter is returning from a HeapValue.
4)
Flags: needinfo?(continuation)
Oh, sorry, I was only looking at the invariants local to the method. It makes sense that all getters read from a Heap<> etc.
Status: RESOLVED → REOPENED
Flags: needinfo?(continuation)
Resolution: WONTFIX → ---
I'm assuming P3 here due to the lack of recent activity but feel free to correct me :)
Priority: -- → P3
Assignee: continuation → nobody
Component: DOM → DOM: Core & HTML
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.