]> git.saurik.com Git - apple/javascriptcore.git/blobdiff - ftl/FTLJITCode.cpp
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / ftl / FTLJITCode.cpp
index c031609dc71d883a6b887dcaf648a02fc47143bc..6120f0520fab5630e61419028c68b14a72ee6700 100644 (file)
@@ -1,5 +1,5 @@
 /*
 /*
- * Copyright (C) 2013 Apple Inc. All rights reserved.
+ * Copyright (C) 2013, 2015 Apple Inc. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -125,6 +125,14 @@ DFG::CommonData* JITCode::dfgCommon()
     return &common;
 }
 
     return &common;
 }
 
+void JITCode::validateReferences(const TrackedReferences& trackedReferences)
+{
+    common.validateReferences(trackedReferences);
+    
+    for (OSRExit& exit : osrExit)
+        exit.validateReferences(trackedReferences);
+}
+
 } } // namespace JSC::FTL
 
 #endif // ENABLE(FTL_JIT)
 } } // namespace JSC::FTL
 
 #endif // ENABLE(FTL_JIT)