Changeset 155480 in webkit for trunk/Source/JavaScriptCore/dfg/DFGAbstractValue.h
- Timestamp:
- Sep 10, 2013, 2:55:45 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/dfg/DFGAbstractValue.h
r153296 r155480 63 63 bool operator!() const { return isClear(); } 64 64 65 void make Top()66 { 67 m _type |= SpecTop; // The state may have included SpecEmpty, in which case we want this to become SpecEmptyOrTop.68 m_arrayModes = ALL_ARRAY_MODES;69 m_currentKnownStructure.makeTop();70 m_futurePossibleStructure.makeTop();71 m_value = JSValue();72 checkConsistency();65 void makeHeapTop() 66 { 67 makeTop(SpecHeapTop); 68 } 69 70 void makeBytecodeTop() 71 { 72 makeTop(SpecBytecodeTop); 73 73 } 74 74 … … 90 90 } 91 91 92 bool is Top() const93 { 94 return m_type == SpecTop&& m_currentKnownStructure.isTop() && m_futurePossibleStructure.isTop();92 bool isHeapTop() const 93 { 94 return (m_type | SpecHeapTop) == m_type && m_currentKnownStructure.isTop() && m_futurePossibleStructure.isTop(); 95 95 } 96 96 … … 105 105 } 106 106 107 static AbstractValue top()107 static AbstractValue heapTop() 108 108 { 109 109 AbstractValue result; 110 result.make Top();110 result.makeHeapTop(); 111 111 return result; 112 112 } … … 196 196 bool validateType(JSValue value) const 197 197 { 198 if (is Top())198 if (isHeapTop()) 199 199 return true; 200 200 … … 212 212 bool validate(JSValue value) const 213 213 { 214 if (is Top())214 if (isHeapTop()) 215 215 return true; 216 216 … … 364 364 } 365 365 366 void makeTop(SpeculatedType top) 367 { 368 m_type |= top; 369 m_arrayModes = ALL_ARRAY_MODES; 370 m_currentKnownStructure.makeTop(); 371 m_futurePossibleStructure.makeTop(); 372 m_value = JSValue(); 373 checkConsistency(); 374 } 375 366 376 void setFuturePossibleStructure(Graph&, Structure* structure); 367 377
Note:
See TracChangeset
for help on using the changeset viewer.