Bug 1462280 - Remove an invalid assert. r=tcampbell
authorJan de Mooij <jdemooij@mozilla.com>
Mon, 21 May 2018 09:14:05 +0200
changeset 419123 daca961e0469a2786bdfabce6b03b4840f6b8ee9
parent 419122 fb1dfccf693f2032ba2f26c77a2f8c6bd64c27ca
child 419124 dc1868d255be744a7d2d462216be205086cc60af
child 419155 fb45edcf3d466e98667903baaad3c441950f144d
push id34026
push userapavel@mozilla.com
push dateMon, 21 May 2018 09:47:33 +0000
treeherdermozilla-central@dc1868d255be [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstcampbell
bugs1462280
milestone62.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 1462280 - Remove an invalid assert. r=tcampbell
js/src/jit-test/tests/cacheir/bug1462280.js
js/src/jit/CacheIRCompiler.cpp
new file mode 100644
--- /dev/null
+++ b/js/src/jit-test/tests/cacheir/bug1462280.js
@@ -0,0 +1,3 @@
+for (var i = 0; i < 2; i++) {
+    evaluate("var obj = {[Symbol.iterator]: Symbol.iterator};");
+}
--- a/js/src/jit/CacheIRCompiler.cpp
+++ b/js/src/jit/CacheIRCompiler.cpp
@@ -698,17 +698,16 @@ CacheRegisterAllocator::assertValidState
         const auto& loc1 = operandLocations_[i];
         if (loc1.isUninitialized())
             continue;
 
         for (size_t j = 0; j < i; j++) {
             const auto& loc2 = operandLocations_[j];
             if (loc2.isUninitialized())
                 continue;
-            MOZ_ASSERT(loc1 != loc2);
             MOZ_ASSERT(!loc1.aliasesReg(loc2));
         }
     }
 }
 #endif
 
 bool
 OperandLocation::aliasesReg(const OperandLocation& other) const