| Index: runtime/vm/intermediate_language.cc
|
| ===================================================================
|
| --- runtime/vm/intermediate_language.cc (revision 13679)
|
| +++ runtime/vm/intermediate_language.cc (working copy)
|
| @@ -1336,6 +1336,12 @@
|
| }
|
|
|
|
|
| +Definition* AssertBooleanInstr::Canonicalize() {
|
| + const intptr_t value_cid = value()->ResultCid();
|
| + return (value_cid == kBoolCid) ? value()->definition() : this;
|
| +}
|
| +
|
| +
|
| Definition* StrictCompareInstr::Canonicalize() {
|
| if (!right()->BindsToConstant()) return this;
|
| const Object& right_constant = right()->BoundConstant();
|
| @@ -1353,10 +1359,10 @@
|
|
|
|
|
| Instruction* CheckClassInstr::Canonicalize() {
|
| - const intptr_t v_cid = value()->ResultCid();
|
| + const intptr_t value_cid = value()->ResultCid();
|
| const intptr_t num_checks = unary_checks().NumberOfChecks();
|
| if ((num_checks == 1) &&
|
| - (v_cid == unary_checks().GetReceiverClassIdAt(0))) {
|
| + (value_cid == unary_checks().GetReceiverClassIdAt(0))) {
|
| // No checks needed.
|
| return NULL;
|
| }
|
|
|