Mark JSClass as a MOZ_STATIC_CLASS
Categories
(Core :: JavaScript Engine, task, P3)
Tracking
()
People
(Reporter: n.nethercote, Assigned: mgaudet)
References
(Depends on 1 open bug, Blocks 1 open bug)
Details
(Whiteboard: btpp-fixlater)
Attachments
(1 file)
Updated•9 years ago
|
Comment 1•5 years ago
|
||
XPCNativeScriptableShared is no more, and I think we have only static instances of js::Class now, so we might be able to do this now. Although I think this belongs in the JS engine component, as that's where the annotation will need to be added.
Comment 2•5 years ago
|
||
This seems to be mostly done. Compiling with JSClass
marked MOZ_STATIC_CLASS
works, so the annotation just needs to be added.
Updated•3 years ago
|
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 3•1 years ago
|
||
Turns out it's legal to have these at the end as well:
Type Attributes
An attribute specifier list may appear as part of a struct, union or enum
specifier. It may go either immediately after the struct, union or enum
keyword, or after the closing brace. The former syntax is preferred. Where
attribute specifiers follow the closing brace, they are considered to relate
to the structure, union or enumerated type defined, not to any enclosing
declaration the type specifier appears in, and the type defined is not
complete until after the attribute specifiers.
from https://gcc.gnu.org/onlinedocs/gcc/Attribute-Syntax.html
Updated•1 years ago
|
Comment 5•1 years ago
|
||
bugherder |
Updated•1 year ago
|
Updated•1 year ago
|
Description
•