Changeset 176508 in webkit for trunk/Source/JavaScriptCore/bytecode/CodeBlock.h
- Timestamp:
- Nov 22, 2014, 8:37:15 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/bytecode/CodeBlock.h
r176479 r176508 955 955 bool isKnownToBeLiveDuringGC(); // Will only return valid results when called during GC. Assumes that you've already established that the owner executable is live. 956 956 957 struct RareData { 958 WTF_MAKE_FAST_ALLOCATED; 959 public: 960 Vector<HandlerInfo> m_exceptionHandlers; 961 962 // Buffers used for large array literals 963 Vector<Vector<JSValue>> m_constantBuffers; 964 965 // Jump Tables 966 Vector<SimpleJumpTable> m_switchJumpTables; 967 Vector<StringJumpTable> m_stringSwitchJumpTables; 968 969 EvalCodeCache m_evalCodeCache; 970 }; 957 971 958 972 protected: … … 1022 1036 { 1023 1037 if (!m_rareData) 1024 m_rareData = adoptPtr(new RareData);1038 m_rareData = std::make_unique<RareData>(); 1025 1039 } 1026 1040 … … 1105 1119 std::unique_ptr<BytecodeLivenessAnalysis> m_livenessAnalysis; 1106 1120 1107 struct RareData { 1108 WTF_MAKE_FAST_ALLOCATED; 1109 public: 1110 Vector<HandlerInfo> m_exceptionHandlers; 1111 1112 // Buffers used for large array literals 1113 Vector<Vector<JSValue>> m_constantBuffers; 1114 1115 // Jump Tables 1116 Vector<SimpleJumpTable> m_switchJumpTables; 1117 Vector<StringJumpTable> m_stringSwitchJumpTables; 1118 1119 EvalCodeCache m_evalCodeCache; 1120 }; 1121 #if COMPILER(MSVC) 1122 friend void WTF::deleteOwnedPtr<RareData>(RareData*); 1123 #endif 1124 OwnPtr<RareData> m_rareData; 1121 std::unique_ptr<RareData> m_rareData; 1125 1122 #if ENABLE(JIT) 1126 1123 DFG::CapabilityLevel m_capabilityLevelState;
Note:
See TracChangeset
for help on using the changeset viewer.