Bug 1530389 - Enclose BinAST code in Parser.h with JS_BUILD_BINAST. r=Yoric
authorTooru Fujisawa <arai_a@mac.com>
Tue, 26 Feb 2019 13:21:02 +0000
changeset 519035 7e5a341f5662
parent 519034 2a52513df092
child 519036 29032f75438b
push id10862
push userffxbld-merge
push dateMon, 11 Mar 2019 13:01:11 +0000
treeherdermozilla-beta@a2e7f5c935da [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersYoric
bugs1530389
milestone67.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1530389 - Enclose BinAST code in Parser.h with JS_BUILD_BINAST. r=Yoric Differential Revision: https://phabricator.services.mozilla.com/D21091
js/src/frontend/Parser.h
--- a/js/src/frontend/Parser.h
+++ b/js/src/frontend/Parser.h
@@ -264,18 +264,21 @@ class MOZ_STACK_CLASS ParserSharedBase :
 
   // Root atoms and objects allocated for the parsed tree.
   AutoKeepAtoms keepAtoms_;
 
  private:
   // This is needed to cast a parser to JS::AutoGCRooter.
   friend void js::frontend::TraceParser(JSTracer* trc,
                                         JS::AutoGCRooter* parser);
+
+#if defined(JS_BUILD_BINAST)
   friend void js::frontend::TraceBinParser(JSTracer* trc,
                                            JS::AutoGCRooter* parser);
+#endif  // JS_BUILD_BINAST
 
  private:
   // Create a new traceable node and store it into the trace list.
   template <typename BoxT, typename ArgT>
   BoxT* newTraceListNode(ArgT* arg);
 
  public:
   // Create a new JSObject and store it into the trace list.