Comment out busted assertions. See bug 695922. r=red.
authorJason Orendorff <jorendorff@mozilla.com>
Wed, 19 Oct 2011 18:56:35 -0500
changeset 79640 2d649d1cc360cd4308c903a3adaf90ac70cf87b2
parent 79639 68dc332516426779a00b6d47f183646b83b0eba3
child 79641 f6df1f113f794d0288ea6340305a3cceecea2829
push id506
push userclegnitto@mozilla.com
push dateWed, 09 Nov 2011 02:03:18 +0000
treeherdermozilla-aurora@63587fc7bb93 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersred
bugs695922
milestone10.0a1
Comment out busted assertions. See bug 695922. r=red.
js/src/frontend/TokenStream.h
--- a/js/src/frontend/TokenStream.h
+++ b/js/src/frontend/TokenStream.h
@@ -208,24 +208,26 @@ struct TokenPtr {
 
 struct TokenPos {
     TokenPtr          begin;          /* first character and line of token */
     TokenPtr          end;            /* index 1 past last char, last line */
 
     TokenPos() {}
 
     TokenPos(const TokenPtr &begin, const TokenPtr &end) : begin(begin), end(end) {
-        JS_ASSERT(begin <= end);
+        // Assertion temporarily disabled by jorendorff. See bug 695922.
+        //JS_ASSERT(begin <= end);
     }
 
     /* Return a TokenPos that covers left, right, and anything in between. */
     static TokenPos box(const TokenPos &left, const TokenPos &right) {
-        JS_ASSERT(left.begin <= left.end);
-        JS_ASSERT(left.end <= right.begin);
-        JS_ASSERT(right.begin <= right.end);
+        // Assertions temporarily disabled by jorendorff. See bug 695922.
+        //JS_ASSERT(left.begin <= left.end);
+        //JS_ASSERT(left.end <= right.begin);
+        //JS_ASSERT(right.begin <= right.end);
         return TokenPos(left.begin, right.end);
     }
 
     bool operator==(const TokenPos& bpos) const {
         return begin == bpos.begin && end == bpos.end;
     }
 
     bool operator!=(const TokenPos& bpos) const {