| Index: runtime/vm/intermediate_language_mips.cc
|
| ===================================================================
|
| --- runtime/vm/intermediate_language_mips.cc (revision 35632)
|
| +++ runtime/vm/intermediate_language_mips.cc (working copy)
|
| @@ -299,6 +299,30 @@
|
| }
|
|
|
|
|
| +LocationSummary* UnboxedConstantInstr::MakeLocationSummary(bool opt) const {
|
| + const intptr_t kNumInputs = 0;
|
| + const intptr_t kNumTemps = 1;
|
| + LocationSummary* locs =
|
| + new LocationSummary(kNumInputs, kNumTemps, LocationSummary::kNoCall);
|
| + locs->set_out(0, Location::RequiresFpuRegister());
|
| + locs->set_temp(0, Location::RequiresRegister());
|
| + return locs;
|
| +}
|
| +
|
| +
|
| +void UnboxedConstantInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
|
| + // The register allocator drops constant definitions that have no uses.
|
| + if (!locs()->out(0).IsInvalid()) {
|
| + ASSERT(value().IsDouble());
|
| + const Register const_value = locs()->temp(0).reg();
|
| + const DRegister result = locs()->out(0).fpu_reg();
|
| + __ LoadObject(const_value, value());
|
| + __ LoadDFromOffset(result, const_value,
|
| + Double::value_offset() - kHeapObjectTag);
|
| + }
|
| +}
|
| +
|
| +
|
| LocationSummary* AssertAssignableInstr::MakeLocationSummary(bool opt) const {
|
| const intptr_t kNumInputs = 3;
|
| const intptr_t kNumTemps = 0;
|
|
|