Changeset 160347 in webkit for trunk/Source/JavaScriptCore/dfg/DFGArrayMode.cpp
- Timestamp:
- Dec 9, 2013, 7:24:31 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/dfg/DFGArrayMode.cpp
r156047 r160347 549 549 } 550 550 551 bool permitsBoundsCheckLowering(Array::Type type) 552 { 553 switch (type) { 554 case Array::Int32: 555 case Array::Double: 556 case Array::Contiguous: 557 case Array::Int8Array: 558 case Array::Int16Array: 559 case Array::Int32Array: 560 case Array::Uint8Array: 561 case Array::Uint8ClampedArray: 562 case Array::Uint16Array: 563 case Array::Uint32Array: 564 case Array::Float32Array: 565 case Array::Float64Array: 566 return true; 567 default: 568 // These don't allow for bounds check lowering either because the bounds 569 // check involves something other than GetArrayLength (like ArrayStorage), 570 // or because the bounds check isn't a speculation (like String, sort of), 571 // or because the type implies an impure access. 572 return false; 573 } 574 } 575 576 bool ArrayMode::permitsBoundsCheckLowering() const 577 { 578 return DFG::permitsBoundsCheckLowering(type()) && isInBounds(); 579 } 580 551 581 void ArrayMode::dump(PrintStream& out) const 552 582 {
Note:
See TracChangeset
for help on using the changeset viewer.