Bug 913124: Put ASTSerializer into anonymous namespace, since one of its member-vars is in anonymous namespace (& to silence GCC warning). r=Waldo
authorDaniel Holbert <dholbert@cs.stanford.edu>
Thu, 05 Sep 2013 17:03:41 -0700
changeset 158703 55cdc3eef81539800a5929336cc929ef41037007
parent 158702 e7bd5af466abd029d9af297136bc4684b7c1f60d
child 158704 5414483004cfa0bd1af49428305f59328b43a806
push id2961
push userlsblakk@mozilla.com
push dateMon, 28 Oct 2013 21:59:28 +0000
treeherdermozilla-beta@73ef4f13486f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersWaldo
bugs913124
milestone26.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 913124: Put ASTSerializer into anonymous namespace, since one of its member-vars is in anonymous namespace (& to silence GCC warning). r=Waldo
js/src/jsreflect.cpp
--- a/js/src/jsreflect.cpp
+++ b/js/src/jsreflect.cpp
@@ -1470,16 +1470,18 @@ NodeBuilder::function(ASTType type, Toke
                    "defaults", defarray,
                    "body", body,
                    "rest", rest,
                    "generator", isGeneratorVal,
                    "expression", isExpressionVal,
                    dst);
 }
 
+namespace {
+
 /*
  * Serialization of parse nodes to JavaScript objects.
  *
  * All serialization methods take a non-nullable ParseNode pointer.
  */
 class ASTSerializer
 {
     JSContext           *cx;
@@ -1581,16 +1583,18 @@ class ASTSerializer
     void setParser(Parser<FullParseHandler> *p) {
         parser = p;
         builder.setTokenStream(&p->tokenStream);
     }
 
     bool program(ParseNode *pn, MutableHandleValue dst);
 };
 
+} /* anonymous namespace */
+
 AssignmentOperator
 ASTSerializer::aop(JSOp op)
 {
     switch (op) {
       case JSOP_NOP:
         return AOP_ASSIGN;
       case JSOP_ADD:
         return AOP_PLUS;