зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1530389 - Enclose BinAST code in Parser.h with JS_BUILD_BINAST. r=Yoric
Differential Revision: https://phabricator.services.mozilla.com/D21091 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
de1788a765
Коммит
eec12de124
|
@ -269,8 +269,11 @@ class MOZ_STACK_CLASS ParserSharedBase : private JS::AutoGCRooter {
|
||||||
// This is needed to cast a parser to JS::AutoGCRooter.
|
// This is needed to cast a parser to JS::AutoGCRooter.
|
||||||
friend void js::frontend::TraceParser(JSTracer* trc,
|
friend void js::frontend::TraceParser(JSTracer* trc,
|
||||||
JS::AutoGCRooter* parser);
|
JS::AutoGCRooter* parser);
|
||||||
|
|
||||||
|
#if defined(JS_BUILD_BINAST)
|
||||||
friend void js::frontend::TraceBinParser(JSTracer* trc,
|
friend void js::frontend::TraceBinParser(JSTracer* trc,
|
||||||
JS::AutoGCRooter* parser);
|
JS::AutoGCRooter* parser);
|
||||||
|
#endif // JS_BUILD_BINAST
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Create a new traceable node and store it into the trace list.
|
// Create a new traceable node and store it into the trace list.
|
||||||
|
|
Загрузка…
Ссылка в новой задаче