Apply poisoning to more pointers in JSC.
[WebKit-https.git] / Source / JavaScriptCore / runtime / JSCPoison.h
index 085b438..952c27b 100644 (file)
 namespace JSC {
 
 enum Poison {
-    NotPoisoned = 0,
+    NotPoisoned = 0, // Reserved (and unused) so that poison keys are never 0.
+
+    // Add new poison keys below in alphabetical order. The order doesn't really
+    // matter, but we might as well keep them in alphabetically order for
+    // greater readability.
+    CodeBlockPoison,
+    JSGlobalObjectPoison,
+    JSScriptFetchParametersPoison,
+    JSScriptFetcherPoison,
     JSWebAssemblyCodeBlockPoison,
     JSWebAssemblyInstancePoison,
     JSWebAssemblyMemoryPoison,
     JSWebAssemblyModulePoison,
     JSWebAssemblyTablePoison,
-    TransitionMapPoison,
-    WeakImplPoison,
+    StructureTransitionTablePoison,
+    UnlinkedSourceCodePoison,
 };
 
 } // namespace JSC