Changeset 165098 in webkit for trunk/Source/JavaScriptCore/dfg/DFGArrayMode.cpp
- Timestamp:
- Mar 4, 2014, 11:25:02 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/dfg/DFGArrayMode.cpp
r165085 r165098 1 1 /* 2 * Copyright (C) 2012, 2013 , 2014Apple Inc. All rights reserved.2 * Copyright (C) 2012, 2013 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 133 133 134 134 ArrayMode ArrayMode::refine( 135 Graph& graph, Node* node,135 Graph& graph, CodeOrigin codeOrigin, 136 136 SpeculatedType base, SpeculatedType index, SpeculatedType value, 137 137 NodeFlags flags) const … … 200 200 201 201 ArrayMode result; 202 switch (node->op()) { 203 case PutByVal: 204 if (graph.hasExitSite(node->origin.semantic, OutOfBounds) || !isInBounds()) 205 result = withSpeculation(Array::OutOfBounds); 206 else 207 result = withSpeculation(Array::InBounds); 208 break; 209 210 default: 202 if (graph.hasExitSite(codeOrigin, OutOfBounds) || !isInBounds()) 203 result = withSpeculation(Array::OutOfBounds); 204 else 211 205 result = withSpeculation(Array::InBounds); 212 break;213 }214 206 215 207 if (isInt8ArraySpeculation(base))
Note:
See TracChangeset
for help on using the changeset viewer.