Ver código fonte

Fix oop jit data strut for wasm

Michael Ferris 9 anos atrás
pai
commit
766cf47af4
1 arquivos alterados com 6 adições e 0 exclusões
  1. 6 0
      lib/Backend/JITTimeFunctionBody.cpp

+ 6 - 0
lib/Backend/JITTimeFunctionBody.cpp

@@ -54,6 +54,12 @@ JITTimeFunctionBody::InitializeJITFunctionData(
                 }
             }
         }
+        else if (functionBody->IsWasmFunction())
+        {
+            // no consts in wasm
+            Assert(jitBody->constTable == nullptr);
+            jitBody->constCount = 0;
+        }
     }
 
     Js::SmallSpanSequence * statementMap = functionBody->GetStatementMapSpanSequence();