| Index: runtime/vm/intermediate_language.cc
|
| ===================================================================
|
| --- runtime/vm/intermediate_language.cc (revision 22689)
|
| +++ runtime/vm/intermediate_language.cc (working copy)
|
| @@ -2339,6 +2339,12 @@
|
| }
|
|
|
|
|
| +Instruction* CheckArrayBoundInstr::Canonicalize(FlowGraph* flow_graph) {
|
| + return IsRedundant(RangeBoundary::FromDefinition(length()->definition())) ?
|
| + NULL : this;
|
| +}
|
| +
|
| +
|
| intptr_t CheckArrayBoundInstr::LengthOffsetFor(intptr_t class_id) {
|
| if (RawObject::IsExternalTypedDataClassId(class_id)) {
|
| return ExternalTypedData::length_offset();
|
|
|