summaryrefslogtreecommitdiff
path: root/Source/JavaScriptCore/bytecompiler/StaticPropertyAnalysis.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/JavaScriptCore/bytecompiler/StaticPropertyAnalysis.h')
-rw-r--r--Source/JavaScriptCore/bytecompiler/StaticPropertyAnalysis.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/Source/JavaScriptCore/bytecompiler/StaticPropertyAnalysis.h b/Source/JavaScriptCore/bytecompiler/StaticPropertyAnalysis.h
index 293c22414..d11be1a32 100644
--- a/Source/JavaScriptCore/bytecompiler/StaticPropertyAnalysis.h
+++ b/Source/JavaScriptCore/bytecompiler/StaticPropertyAnalysis.h
@@ -23,10 +23,8 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef StaticPropertyAnalysis_h
-#define StaticPropertyAnalysis_h
+#pragma once
-#include "Executable.h"
#include "JSGlobalObject.h"
#include <wtf/HashSet.h>
@@ -35,9 +33,9 @@ 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, 0, UnsafeVectorOverflow>* instructions, unsigned target)
+ static Ref<StaticPropertyAnalysis> create(Vector<UnlinkedInstruction, 0, UnsafeVectorOverflow>* instructions, unsigned target)
{
- return adoptRef(new StaticPropertyAnalysis(instructions, target));
+ return adoptRef(*new StaticPropertyAnalysis(instructions, target));
}
void addPropertyIndex(unsigned propertyIndex) { m_propertyIndexes.add(propertyIndex); }
@@ -63,5 +61,3 @@ private:
};
} // namespace JSC
-
-#endif // StaticPropertyAnalysis_h