Changeset 183548 in webkit for trunk/Source/JavaScriptCore/dfg/DFGAbstractValue.cpp
- Timestamp:
- Apr 29, 2015, 8:55:54 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/dfg/DFGAbstractValue.cpp
r172737 r183548 119 119 } 120 120 121 void AbstractValue::setType(Graph& graph, SpeculatedType type) 122 { 123 SpeculatedType cellType = type & SpecCell; 124 if (cellType) { 125 if (!(cellType & ~SpecString)) 126 m_structure = graph.m_vm.stringStructure.get(); 127 else 128 m_structure.makeTop(); 129 m_arrayModes = ALL_ARRAY_MODES; 130 } else { 131 m_structure.clear(); 132 m_arrayModes = 0; 133 } 134 m_type = type; 135 m_value = JSValue(); 136 checkConsistency(); 137 } 138 121 139 void AbstractValue::fixTypeForRepresentation(NodeFlags representation) 122 140 {
Note:
See TracChangeset
for help on using the changeset viewer.