Bug 1219757 - Part 7: Remove RegExpStatics::multiline and RegExpStatics::setMultiline. r=till
authorTooru Fujisawa <arai_a@mac.com>
Wed, 25 Nov 2015 22:38:05 +0900
changeset 290054 ca7fffec2dddbc955428a27379cfc344520bb4fd
parent 290053 1e6d7810b79a6c57538f3241c23896c2dccf5b68
child 290055 485ed8b35eac2d1d15064163e07600ccafc8d239
push id19656
push usergwagner@mozilla.com
push dateMon, 04 Apr 2016 13:43:23 +0000
treeherderb2g-inbound@e99061fde28a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstill
bugs1219757
milestone48.0a1
Bug 1219757 - Part 7: Remove RegExpStatics::multiline and RegExpStatics::setMultiline. r=till
js/src/vm/RegExpStatics.h
--- a/js/src/vm/RegExpStatics.h
+++ b/js/src/vm/RegExpStatics.h
@@ -65,25 +65,16 @@ class RegExpStatics
     explicit RegExpStatics(InitBuffer) {}
 
   public:
     /* Mutators. */
     inline void updateLazily(JSContext* cx, JSLinearString* input,
                              RegExpShared* shared, size_t lastIndex, bool sticky);
     inline bool updateFromMatchPairs(JSContext* cx, JSLinearString* input, MatchPairs& newPairs);
 
-    void setMultiline(JSContext* cx, bool enabled) {
-        if (enabled) {
-            flags = RegExpFlag(flags | MultilineFlag);
-            markFlagsSet(cx);
-        } else {
-            flags = RegExpFlag(flags & ~MultilineFlag);
-        }
-    }
-
     inline void clear();
 
     /* Corresponds to JSAPI functionality to set the pending RegExp input. */
     void reset(JSContext* cx, JSString* newInput) {
         clear();
         pendingInput = newInput;
         checkInvariants();
     }
@@ -96,17 +87,16 @@ class RegExpStatics
         /* Safe: only used by String methods, which do not set lazy mode. */
         MOZ_ASSERT(!pendingLazyEvaluation);
         return matches;
     }
 
     JSString* getPendingInput() const { return pendingInput; }
 
     RegExpFlag getFlags() const { return flags; }
-    bool multiline() const { return flags & MultilineFlag; }
 
     void mark(JSTracer* trc) {
         /*
          * Changes to this function must also be reflected in
          * RegExpStatics::AutoRooter::trace().
          */
         if (matchesInput)
             TraceEdge(trc, &matchesInput, "res->matchesInput");