Backed out changeset daaa2c27b89f (bug 1155474) for bustage.
authorRyan VanderMeulen <ryanvm@gmail.com>
Wed, 29 Apr 2015 09:39:23 -0400
changeset 260321 0a1accb16d39
parent 260320 fcfec0caa7be
child 260322 ff65ba4cd38a
push id748
push userryanvm@gmail.com
push date2015-04-29 13:41 +0000
treeherdermozilla-release@ff65ba4cd38a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1155474
milestone38.0
backs outdaaa2c27b89f
Backed out changeset daaa2c27b89f (bug 1155474) for bustage.
js/src/jit-test/tests/ion/lexical-check-5.js
js/src/jit/IonBuilder.cpp
deleted file mode 100644
--- a/js/src/jit-test/tests/ion/lexical-check-5.js
+++ /dev/null
@@ -1,7 +0,0 @@
-// |jit-test| error: ReferenceError
-
-{
-  for (var i = 0; i < 100; i++)
-    a += i;
-  let a = 1;
-}
--- a/js/src/jit/IonBuilder.cpp
+++ b/js/src/jit/IonBuilder.cpp
@@ -12469,19 +12469,16 @@ IonBuilder::getCallee()
 MDefinition*
 IonBuilder::addLexicalCheck(MDefinition* input)
 {
     MOZ_ASSERT(JSOp(*pc) == JSOP_CHECKLEXICAL || JSOp(*pc) == JSOP_CHECKALIASEDLEXICAL);
 
     // If we're guaranteed to not be JS_UNINITIALIZED_LEXICAL, no need to check.
     MInstruction* lexicalCheck;
     if (input->type() == MIRType_MagicUninitializedLexical)
-        // Mark the input as implicitly used so the JS_UNINITIALIZED_LEXICAL
-        // magic value will be preserved on bailout.
-        input->setImplicitlyUsedUnchecked();
         lexicalCheck = MThrowUninitializedLexical::New(alloc());
     else if (input->type() == MIRType_Value)
         lexicalCheck = MLexicalCheck::New(alloc(), input);
     else
         return input;
 
     current->add(lexicalCheck);
     if (!resumeAfter(lexicalCheck))