Changeset 153281 in webkit for trunk/Source/JavaScriptCore/dfg/DFGArrayMode.h
- Timestamp:
- Jul 24, 2013, 9:04:59 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/dfg/DFGArrayMode.h
r153220 r153281 346 346 Structure* originalArrayStructure(Graph&, Node*) const; 347 347 348 bool benefitsFromStructureCheck() const349 {350 switch (type()) {351 case Array::SelectUsingPredictions:352 // It might benefit from structure checks! If it ends up not benefiting, we can just353 // remove it. The FixupPhase does this: if it finds a CheckStructure just before an354 // array op and it had turned that array op into either generic or conversion mode,355 // it will remove the CheckStructure.356 return true;357 case Array::Unprofiled:358 case Array::ForceExit:359 case Array::Generic:360 return false;361 default:362 return conversion() == Array::AsIs;363 }364 }365 366 348 bool doesConversion() const 367 349 {
Note:
See TracChangeset
for help on using the changeset viewer.