Taylor Woll 6 лет назад
Родитель
Сommit
a0e8946f39
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      lib/Backend/IRBuilder.cpp

+ 4 - 0
lib/Backend/IRBuilder.cpp

@@ -1906,6 +1906,10 @@ IRBuilder::BuildReg2(Js::OpCode newOpcode, uint32 offset, Js::RegSlot R0, Js::Re
         this->AddInstr(instr, offset);
         return;
     }
+    case Js::OpCode::InitConst:
+        // Don't use InitConst in the JIT, as some dataflow tracking is missing, and we don't currently optimize for it.
+        newOpcode = Js::OpCode::Ld_A;
+        break;
     }
 
     IR::RegOpnd *   dstOpnd = this->BuildDstOpnd(R0);