Commit db217c8a23ad6cb4cce7b84a77df5a7aa04cd10f
Fix compilation on HP-UX: work around declaration order issue
Don't include StructureChain.h from Structure.h.
| |   |
| 32 | 32 | #include "MacroAssembler.h" |
| 33 | 33 | #include "Opcode.h" |
| 34 | 34 | #include "Structure.h" |
| #include "StructureChain.h" |
| 35 | 36 | #include <wtf/VectorTraits.h> |
| 36 | 37 | |
| 37 | 38 | #define POLYMORPHIC_LIST_CACHE_SIZE 8 |
| |   |
| 28 | 28 | #include "NativeFunctionWrapper.h" |
| 29 | 29 | #include "NumberPrototype.h" |
| 30 | 30 | #include "StringPrototype.h" |
| #include "StructureChain.h" |
| 31 | 32 | #include <wtf/HashSet.h> |
| 32 | 33 | #include <wtf/OwnPtr.h> |
| 33 | 34 | |
| |   |
| 32 | 32 | #include "PropertyMapHashTable.h" |
| 33 | 33 | #include "PropertyNameArray.h" |
| 34 | 34 | #include "Protect.h" |
| #include "StructureChain.h" |
| 36 | 35 | #include "StructureTransitionTable.h" |
| 37 | 36 | #include "JSTypeInfo.h" |
| 38 | 37 | #include "UString.h" |
| … | … | |
| 49 | 49 | class MarkStack; |
| 50 | 50 | class PropertyNameArray; |
| 51 | 51 | class PropertyNameArrayData; |
| class StructureChain; |
| 52 | 53 | |
| 53 | 54 | enum EnumerationMode { |
| 54 | 55 | ExcludeDontEnumProperties, |
| |   |
| 46 | 46 | m_vector[i] = 0; |
| 47 | 47 | } |
| 48 | 48 | |
| #if OS(HPUX) |
| PassRefPtr<StructureChain> StructureChain::create(Structure* head) |
| { |
| return adoptRef(new StructureChain(head)); |
| } |
| #endif |
|
| 49 | 56 | } // namespace JSC |
| |   |
| 39 | 39 | friend class JIT; |
| 40 | 40 | |
| 41 | 41 | public: |
| #if OS(HPUX) |
| static PassRefPtr<StructureChain> create(Structure* head); |
| #else |
| 42 | 45 | static PassRefPtr<StructureChain> create(Structure* head) { return adoptRef(new StructureChain(head)); } |
| #endif |
| 43 | 47 | RefPtr<Structure>* head() { return m_vector.get(); } |
| 44 | 48 | |
| 45 | 49 | private: |