Changeset 224818 in webkit for trunk/Source/JavaScriptCore/dfg/DFGArrayMode.cpp
- Timestamp:
- Nov 14, 2017, 9:35:33 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/dfg/DFGArrayMode.cpp
r223614 r224818 260 260 if (isDirectArgumentsSpeculation(base) || isScopedArgumentsSpeculation(base)) { 261 261 // Handle out-of-bounds accesses as generic accesses. 262 if (graph.hasExitSite(node->origin.semantic, OutOfBounds) || !isInBounds()) 262 Array::Type type = isDirectArgumentsSpeculation(base) ? Array::DirectArguments : Array::ScopedArguments; 263 if (graph.hasExitSite(node->origin.semantic, OutOfBounds) || !isInBounds()) { 264 // FIXME: Support OOB access for ScopedArguments. 265 // https://bugs.webkit.org/show_bug.cgi?id=179596 266 if (type == Array::DirectArguments) 267 return ArrayMode(type, Array::NonArray, Array::OutOfBounds, Array::AsIs); 263 268 return ArrayMode(Array::Generic); 264 265 if (isDirectArgumentsSpeculation(base)) 266 return withType(Array::DirectArguments); 267 return withType(Array::ScopedArguments); 269 } 270 return withType(type); 268 271 } 269 272
Note:
See TracChangeset
for help on using the changeset viewer.