Changeset 184318 in webkit for trunk/Source/JavaScriptCore/dfg/DFGAbstractValue.cpp
- Timestamp:
- May 13, 2015, 4:57:17 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/dfg/DFGAbstractValue.cpp
r183548 r184318 137 137 } 138 138 139 void AbstractValue::fixTypeForRepresentation( NodeFlags representation)139 void AbstractValue::fixTypeForRepresentation(Graph& graph, NodeFlags representation, Node* node) 140 140 { 141 141 if (representation == NodeResultDouble) { … … 149 149 m_type |= SpecInt52AsDouble; 150 150 } 151 if (m_type & ~SpecFullDouble) { 152 startCrashing(); 153 dataLog("Abstract value ", *this, " for double node has type outside SpecFullDouble.\n"); 154 CRASH(); 155 } 151 if (m_type & ~SpecFullDouble) 152 DFG_CRASH(graph, node, toCString("Abstract value ", *this, " for double node has type outside SpecFullDouble.\n").data()); 156 153 } else if (representation == NodeResultInt52) { 157 154 if (m_type & SpecInt52AsDouble) { … … 159 156 m_type |= SpecInt52; 160 157 } 161 if (m_type & ~SpecMachineInt) { 162 startCrashing(); 163 dataLog("Abstract value ", *this, " for int52 node has type outside SpecMachineInt.\n"); 164 CRASH(); 165 } 158 if (m_type & ~SpecMachineInt) 159 DFG_CRASH(graph, node, toCString("Abstract value ", *this, " for int52 node has type outside SpecMachineInt.\n").data()); 166 160 } else { 167 161 if (m_type & SpecInt52) { … … 169 163 m_type |= SpecInt52AsDouble; 170 164 } 171 if (m_type & ~SpecBytecodeTop) { 172 startCrashing(); 173 dataLog("Abstract value ", *this, " for value node has type outside SpecBytecodeTop.\n"); 174 CRASH(); 175 } 176 } 177 178 checkConsistency(); 179 } 180 181 void AbstractValue::fixTypeForRepresentation(Node* node) 182 { 183 fixTypeForRepresentation(node->result()); 165 if (m_type & ~SpecBytecodeTop) 166 DFG_CRASH(graph, node, toCString("Abstract value ", *this, " for value node has type outside SpecBytecodeTop.\n").data()); 167 } 168 169 checkConsistency(); 170 } 171 172 void AbstractValue::fixTypeForRepresentation(Graph& graph, Node* node) 173 { 174 fixTypeForRepresentation(graph, node->result(), node); 184 175 } 185 176
Note:
See TracChangeset
for help on using the changeset viewer.