| Index: runtime/vm/intermediate_language_mips.cc
|
| ===================================================================
|
| --- runtime/vm/intermediate_language_mips.cc (revision 33059)
|
| +++ runtime/vm/intermediate_language_mips.cc (working copy)
|
| @@ -3863,6 +3863,33 @@
|
| }
|
|
|
|
|
| +LocationSummary* CheckClassIdInstr::MakeLocationSummary(bool opt) const {
|
| + const intptr_t kNumInputs = 2;
|
| + const intptr_t kNumTemps = 0;
|
| + LocationSummary* summary =
|
| + new LocationSummary(kNumInputs, kNumTemps, LocationSummary::kNoCall);
|
| + summary->set_in(0, Location::RequiresRegister());
|
| + summary->set_in(1, Location::RegisterOrSmiConstant(right()));
|
| + return summary;
|
| +}
|
| +
|
| +
|
| +void CheckClassIdInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
|
| + Register left = locs()->in(0).reg();
|
| + Location right = locs()->in(1);
|
| + Label* deopt = compiler->AddDeoptStub(deopt_id(), kDeoptCheckClass);
|
| + if (right.IsRegister()) {
|
| + __ bne(left, right.reg(), deopt);
|
| + } else {
|
| + ASSERT(right.IsConstant());
|
| + const Object& right_const = Smi::Cast(right.constant());
|
| + __ BranchNotEqual(left,
|
| + reinterpret_cast<int32_t>(right_const.raw()),
|
| + deopt);
|
| + }
|
| +}
|
| +
|
| +
|
| LocationSummary* CheckArrayBoundInstr::MakeLocationSummary(bool opt) const {
|
| const intptr_t kNumInputs = 2;
|
| const intptr_t kNumTemps = 0;
|
|
|