Commit db217c8a23ad6cb4cce7b84a77df5a7aa04cd10f

  • avatar
  • khansen
  • Mon Feb 08 17:52:41 CET 2010
Fix compilation on HP-UX: work around declaration order issue

Don't include StructureChain.h from Structure.h.
  
3232#include "MacroAssembler.h"
3333#include "Opcode.h"
3434#include "Structure.h"
35#include "StructureChain.h"
3536#include <wtf/VectorTraits.h>
3637
3738#define POLYMORPHIC_LIST_CACHE_SIZE 8
  
2828#include "NativeFunctionWrapper.h"
2929#include "NumberPrototype.h"
3030#include "StringPrototype.h"
31#include "StructureChain.h"
3132#include <wtf/HashSet.h>
3233#include <wtf/OwnPtr.h>
3334
  
3232#include "PropertyMapHashTable.h"
3333#include "PropertyNameArray.h"
3434#include "Protect.h"
35#include "StructureChain.h"
3635#include "StructureTransitionTable.h"
3736#include "JSTypeInfo.h"
3837#include "UString.h"
4949 class MarkStack;
5050 class PropertyNameArray;
5151 class PropertyNameArrayData;
52 class StructureChain;
5253
5354 enum EnumerationMode {
5455 ExcludeDontEnumProperties,
  
4646 m_vector[i] = 0;
4747}
4848
49#if OS(HPUX)
50PassRefPtr<StructureChain> StructureChain::create(Structure* head)
51{
52 return adoptRef(new StructureChain(head));
53}
54#endif
55
4956} // namespace JSC
  
3939 friend class JIT;
4040
4141 public:
42#if OS(HPUX)
43 static PassRefPtr<StructureChain> create(Structure* head);
44#else
4245 static PassRefPtr<StructureChain> create(Structure* head) { return adoptRef(new StructureChain(head)); }
46#endif
4347 RefPtr<Structure>* head() { return m_vector.get(); }
4448
4549 private: