Browse Source

fix bug with throw map on in-proc jit

Michael Holman 9 năm trước cách đây
mục cha
commit
2dca0ed00e
2 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 1 0
      bin/ch/HostConfigFlagsList.h
  2. 1 1
      lib/Backend/Encoder.cpp

+ 1 - 0
bin/ch/HostConfigFlagsList.h

@@ -9,5 +9,6 @@ FLAG(bool, DebugLaunch,                     "Create the test debugger and execut
 FLAG(BSTR, GenerateLibraryByteCodeHeader,   "Generate bytecode header file from library code", NULL)
 FLAG(int,  InspectMaxStringLength,          "Max string length to dump in locals inspection", 16)
 FLAG(BSTR, Serialized,                      "If source is UTF8, deserializes from bytecode file", NULL)
+FLAG(bool, EnableOutOfProcJIT,              "JIT in a separate process", false)
 #undef FLAG
 #endif

+ 1 - 1
lib/Backend/Encoder.cpp

@@ -262,10 +262,10 @@ Encoder::Encode()
         {
             auto entryPointInfo = m_func->GetInProcJITEntryPointInfo();
             auto functionBody = entryPointInfo->GetFunctionBody();
+            Js::SmallSpanSequenceIter iter;
             for (int32 i = 0; i < m_pragmaInstrToRecordMap->Count(); i++)
             {
                 IR::PragmaInstr *inst = m_pragmaInstrToRecordMap->Item(i);
-                Js::SmallSpanSequenceIter iter;
                 functionBody->RecordNativeThrowMap(iter, inst->m_offsetInBuffer, inst->m_statementIndex, entryPointInfo, Js::LoopHeader::NoLoop);
             }
         }