| Index: runtime/vm/intermediate_language.cc
|
| ===================================================================
|
| --- runtime/vm/intermediate_language.cc (revision 14294)
|
| +++ runtime/vm/intermediate_language.cc (working copy)
|
| @@ -21,8 +21,8 @@
|
| namespace dart {
|
|
|
| DECLARE_FLAG(bool, enable_type_checks);
|
| +DECLARE_FLAG(int, max_polymorphic_checks);
|
|
|
| -
|
| Definition::Definition()
|
| : range_(NULL),
|
| temp_index_(-1),
|
| @@ -1074,6 +1074,13 @@
|
| }
|
|
|
|
|
| +bool EqualityCompareInstr::IsPolymorphic() const {
|
| + return HasICData() &&
|
| + (ic_data()->NumberOfChecks() > 0) &&
|
| + (ic_data()->NumberOfChecks() <= FLAG_max_polymorphic_checks);
|
| +}
|
| +
|
| +
|
| RawAbstractType* RelationalOpInstr::CompileType() const {
|
| if ((operands_class_id() == kSmiCid) ||
|
| (operands_class_id() == kDoubleCid) ||
|
|
|