Keep only captured symbols in CodeBlock symbol tables.
[WebKit-https.git] / Source / JavaScriptCore / bytecompiler / StaticPropertyAnalysis.h
index 607c0ff5dc09e9b4854ba17a11773fa6c07bb7e3..293c22414a6210be1ff7e7b1e28fa4f352240000 100644 (file)
@@ -35,7 +35,7 @@ namespace JSC {
 // Reference count indicates number of live registers that alias this object.
 class StaticPropertyAnalysis : public RefCounted<StaticPropertyAnalysis> {
 public:
-    static PassRefPtr<StaticPropertyAnalysis> create(Vector<UnlinkedInstruction>* instructions, unsigned target)
+    static PassRefPtr<StaticPropertyAnalysis> create(Vector<UnlinkedInstruction, 0, UnsafeVectorOverflow>* instructions, unsigned target)
     {
         return adoptRef(new StaticPropertyAnalysis(instructions, target)); 
     }
@@ -50,15 +50,15 @@ public:
     int propertyIndexCount() { return m_propertyIndexes.size(); }
 
 private:
-    StaticPropertyAnalysis(Vector<UnlinkedInstruction>* instructions, unsigned target)
+    StaticPropertyAnalysis(Vector<UnlinkedInstruction, 0, UnsafeVectorOverflow>* instructions, unsigned target)
         : m_instructions(instructions)
         , m_target(target)
     {
     }
 
-    Vector<UnlinkedInstruction>* m_instructions;
+    Vector<UnlinkedInstruction, 0, UnsafeVectorOverflow>* m_instructions;
     unsigned m_target;
-    typedef HashSet<unsigned, WTF::IntHash<unsigned>, WTF::UnsignedWithZeroKeyHashTraits<unsigned> > PropertyIndexSet;
+    typedef HashSet<unsigned, WTF::IntHash<unsigned>, WTF::UnsignedWithZeroKeyHashTraits<unsigned>> PropertyIndexSet;
     PropertyIndexSet m_propertyIndexes;
 };