| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_MIPS. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_MIPS. |
| 6 #if defined(TARGET_ARCH_MIPS) | 6 #if defined(TARGET_ARCH_MIPS) |
| 7 | 7 |
| 8 #include "vm/intermediate_language.h" | 8 #include "vm/intermediate_language.h" |
| 9 | 9 |
| 10 #include "vm/dart_entry.h" | 10 #include "vm/dart_entry.h" |
| (...skipping 1638 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1649 __ bne(CMPRES1, ZR, fail); | 1649 __ bne(CMPRES1, ZR, fail); |
| 1650 } else { | 1650 } else { |
| 1651 UNREACHABLE(); | 1651 UNREACHABLE(); |
| 1652 } | 1652 } |
| 1653 } | 1653 } |
| 1654 } | 1654 } |
| 1655 __ Bind(&ok); | 1655 __ Bind(&ok); |
| 1656 } | 1656 } |
| 1657 | 1657 |
| 1658 | 1658 |
| 1659 bool Field::IsUnboxedField() const { |
| 1660 bool valid_class = (guarded_cid() == kDoubleCid); |
| 1661 return is_unboxing_candidate() && !is_final() && !is_nullable() && |
| 1662 valid_class; |
| 1663 } |
| 1664 |
| 1665 |
| 1659 class StoreInstanceFieldSlowPath : public SlowPathCode { | 1666 class StoreInstanceFieldSlowPath : public SlowPathCode { |
| 1660 public: | 1667 public: |
| 1661 StoreInstanceFieldSlowPath(StoreInstanceFieldInstr* instruction, | 1668 explicit StoreInstanceFieldSlowPath(StoreInstanceFieldInstr* instruction) |
| 1662 const Class& cls) | 1669 : instruction_(instruction) { } |
| 1663 : instruction_(instruction), cls_(cls) { } | |
| 1664 | 1670 |
| 1665 virtual void EmitNativeCode(FlowGraphCompiler* compiler) { | 1671 virtual void EmitNativeCode(FlowGraphCompiler* compiler) { |
| 1666 __ Comment("StoreInstanceFieldSlowPath"); | 1672 __ Comment("StoreInstanceFieldSlowPath"); |
| 1667 __ Bind(entry_label()); | 1673 __ Bind(double_entry_label()); |
| 1674 const Class& cls = compiler->double_class(); |
| 1668 const Code& stub = | 1675 const Code& stub = |
| 1669 Code::Handle(StubCode::GetAllocationStubForClass(cls_)); | 1676 Code::Handle(StubCode::GetAllocationStubForClass(cls)); |
| 1670 const ExternalLabel label(cls_.ToCString(), stub.EntryPoint()); | 1677 const ExternalLabel label(cls.ToCString(), stub.EntryPoint()); |
| 1671 | 1678 |
| 1672 LocationSummary* locs = instruction_->locs(); | 1679 LocationSummary* locs = instruction_->locs(); |
| 1673 locs->live_registers()->Remove(locs->out()); | 1680 locs->live_registers()->Remove(locs->out()); |
| 1674 | 1681 |
| 1675 compiler->SaveLiveRegisters(locs); | 1682 compiler->SaveLiveRegisters(locs); |
| 1676 compiler->GenerateCall(Scanner::kNoSourcePos, // No token position. | 1683 compiler->GenerateCall(Scanner::kNoSourcePos, // No token position. |
| 1677 &label, | 1684 &label, |
| 1678 PcDescriptors::kOther, | 1685 PcDescriptors::kOther, |
| 1679 locs); | 1686 locs); |
| 1680 __ mov(locs->temp(0).reg(), V0); | 1687 __ mov(locs->temp(0).reg(), V0); |
| 1681 compiler->RestoreLiveRegisters(locs); | 1688 compiler->RestoreLiveRegisters(locs); |
| 1682 | 1689 |
| 1683 __ b(exit_label()); | 1690 __ b(double_exit_label()); |
| 1691 } |
| 1692 |
| 1693 Label* double_entry_label() { |
| 1694 // Use default SlowPathCode label for double. |
| 1695 return entry_label(); |
| 1696 } |
| 1697 Label* double_exit_label() { |
| 1698 // Use default SlowPathCode label for double. |
| 1699 return exit_label(); |
| 1684 } | 1700 } |
| 1685 | 1701 |
| 1686 private: | 1702 private: |
| 1687 StoreInstanceFieldInstr* instruction_; | 1703 StoreInstanceFieldInstr* instruction_; |
| 1688 const Class& cls_; | |
| 1689 }; | 1704 }; |
| 1690 | 1705 |
| 1691 | 1706 |
| 1692 LocationSummary* StoreInstanceFieldInstr::MakeLocationSummary(bool opt) const { | 1707 LocationSummary* StoreInstanceFieldInstr::MakeLocationSummary(bool opt) const { |
| 1693 const intptr_t kNumInputs = 2; | 1708 const intptr_t kNumInputs = 2; |
| 1694 const intptr_t kNumTemps = 0; | 1709 const intptr_t kNumTemps = 0; |
| 1695 LocationSummary* summary = | 1710 LocationSummary* summary = |
| 1696 new LocationSummary(kNumInputs, kNumTemps, | 1711 new LocationSummary(kNumInputs, kNumTemps, |
| 1697 (field().guarded_cid() == kIllegalCid) || (is_initialization_) | 1712 (field().guarded_cid() == kIllegalCid) || (is_initialization_) |
| 1698 ? LocationSummary::kCallOnSlowPath | 1713 ? LocationSummary::kCallOnSlowPath |
| (...skipping 24 matching lines...) Expand all Loading... |
| 1723 void StoreInstanceFieldInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | 1738 void StoreInstanceFieldInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
| 1724 Label skip_store; | 1739 Label skip_store; |
| 1725 | 1740 |
| 1726 Register instance_reg = locs()->in(0).reg(); | 1741 Register instance_reg = locs()->in(0).reg(); |
| 1727 | 1742 |
| 1728 if (IsUnboxedStore() && compiler->is_optimizing()) { | 1743 if (IsUnboxedStore() && compiler->is_optimizing()) { |
| 1729 DRegister value = locs()->in(1).fpu_reg(); | 1744 DRegister value = locs()->in(1).fpu_reg(); |
| 1730 Register temp = locs()->temp(0).reg(); | 1745 Register temp = locs()->temp(0).reg(); |
| 1731 Register temp2 = locs()->temp(1).reg(); | 1746 Register temp2 = locs()->temp(1).reg(); |
| 1732 const intptr_t cid = field().UnboxedFieldCid(); | 1747 const intptr_t cid = field().UnboxedFieldCid(); |
| 1748 StoreInstanceFieldSlowPath* slow_path = |
| 1749 new StoreInstanceFieldSlowPath(this); |
| 1750 compiler->AddSlowPathCode(slow_path); |
| 1733 | 1751 |
| 1734 if (is_initialization_) { | 1752 if (is_initialization_) { |
| 1735 const Class* cls = NULL; | 1753 const Class* cls = NULL; |
| 1754 Label* entry_label = NULL; |
| 1755 Label* exit_label = NULL; |
| 1736 switch (cid) { | 1756 switch (cid) { |
| 1737 case kDoubleCid: | 1757 case kDoubleCid: |
| 1738 cls = &compiler->double_class(); | 1758 cls = &compiler->double_class(); |
| 1759 entry_label = slow_path->double_entry_label(); |
| 1760 exit_label = slow_path->double_exit_label(); |
| 1739 break; | 1761 break; |
| 1740 default: | 1762 default: |
| 1741 UNREACHABLE(); | 1763 UNREACHABLE(); |
| 1742 } | 1764 } |
| 1743 StoreInstanceFieldSlowPath* slow_path = | |
| 1744 new StoreInstanceFieldSlowPath(this, *cls); | |
| 1745 compiler->AddSlowPathCode(slow_path); | |
| 1746 __ TryAllocate(*cls, | 1765 __ TryAllocate(*cls, |
| 1747 slow_path->entry_label(), | 1766 entry_label, |
| 1748 temp, | 1767 temp, |
| 1749 temp2); | 1768 temp2); |
| 1750 __ Bind(slow_path->exit_label()); | 1769 __ Bind(exit_label); |
| 1751 __ mov(temp2, temp); | 1770 __ mov(temp2, temp); |
| 1752 __ StoreIntoObject(instance_reg, | 1771 __ StoreIntoObject(instance_reg, |
| 1753 FieldAddress(instance_reg, field().Offset()), | 1772 FieldAddress(instance_reg, field().Offset()), |
| 1754 temp2); | 1773 temp2); |
| 1755 } else { | 1774 } else { |
| 1756 __ lw(temp, FieldAddress(instance_reg, field().Offset())); | 1775 __ lw(temp, FieldAddress(instance_reg, field().Offset())); |
| 1757 } | 1776 } |
| 1758 switch (cid) { | 1777 switch (cid) { |
| 1759 case kDoubleCid: | 1778 case kDoubleCid: |
| 1760 __ StoreDToOffset(value, temp, Double::value_offset() - kHeapObjectTag); | 1779 __ StoreDToOffset(value, temp, Double::value_offset() - kHeapObjectTag); |
| (...skipping 29 matching lines...) Expand all Loading... |
| 1790 // Fall through. | 1809 // Fall through. |
| 1791 __ b(&store_pointer); | 1810 __ b(&store_pointer); |
| 1792 | 1811 |
| 1793 __ Bind(&store_double); | 1812 __ Bind(&store_double); |
| 1794 | 1813 |
| 1795 __ lw(temp, FieldAddress(instance_reg, field().Offset())); | 1814 __ lw(temp, FieldAddress(instance_reg, field().Offset())); |
| 1796 __ BranchNotEqual(temp, reinterpret_cast<int32_t>(Object::null()), | 1815 __ BranchNotEqual(temp, reinterpret_cast<int32_t>(Object::null()), |
| 1797 ©_double); | 1816 ©_double); |
| 1798 | 1817 |
| 1799 StoreInstanceFieldSlowPath* slow_path = | 1818 StoreInstanceFieldSlowPath* slow_path = |
| 1800 new StoreInstanceFieldSlowPath(this, compiler->double_class()); | 1819 new StoreInstanceFieldSlowPath(this); |
| 1801 compiler->AddSlowPathCode(slow_path); | 1820 compiler->AddSlowPathCode(slow_path); |
| 1802 | 1821 |
| 1803 if (!compiler->is_optimizing()) { | 1822 if (!compiler->is_optimizing()) { |
| 1804 locs()->live_registers()->Add(locs()->in(0)); | 1823 locs()->live_registers()->Add(locs()->in(0)); |
| 1805 locs()->live_registers()->Add(locs()->in(1)); | 1824 locs()->live_registers()->Add(locs()->in(1)); |
| 1806 } | 1825 } |
| 1807 | 1826 |
| 1808 __ TryAllocate(compiler->double_class(), | 1827 __ TryAllocate(compiler->double_class(), |
| 1809 slow_path->entry_label(), | 1828 slow_path->double_entry_label(), |
| 1810 temp, | 1829 temp, |
| 1811 temp2); | 1830 temp2); |
| 1812 __ Bind(slow_path->exit_label()); | 1831 __ Bind(slow_path->double_exit_label()); |
| 1813 __ mov(temp2, temp); | 1832 __ mov(temp2, temp); |
| 1814 __ StoreIntoObject(instance_reg, | 1833 __ StoreIntoObject(instance_reg, |
| 1815 FieldAddress(instance_reg, field().Offset()), | 1834 FieldAddress(instance_reg, field().Offset()), |
| 1816 temp2); | 1835 temp2); |
| 1817 | 1836 |
| 1818 __ Bind(©_double); | 1837 __ Bind(©_double); |
| 1819 __ LoadDFromOffset(fpu_temp, | 1838 __ LoadDFromOffset(fpu_temp, |
| 1820 value_reg, | 1839 value_reg, |
| 1821 Double::value_offset() - kHeapObjectTag); | 1840 Double::value_offset() - kHeapObjectTag); |
| 1822 __ StoreDToOffset(fpu_temp, temp, Double::value_offset() - kHeapObjectTag); | 1841 __ StoreDToOffset(fpu_temp, temp, Double::value_offset() - kHeapObjectTag); |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1960 deopt_id(), | 1979 deopt_id(), |
| 1961 kAllocateObjectWithBoundsCheckRuntimeEntry, | 1980 kAllocateObjectWithBoundsCheckRuntimeEntry, |
| 1962 3, | 1981 3, |
| 1963 locs()); | 1982 locs()); |
| 1964 __ Drop(3); | 1983 __ Drop(3); |
| 1965 ASSERT(locs()->out().reg() == V0); | 1984 ASSERT(locs()->out().reg() == V0); |
| 1966 __ Pop(V0); // Pop new instance. | 1985 __ Pop(V0); // Pop new instance. |
| 1967 } | 1986 } |
| 1968 | 1987 |
| 1969 | 1988 |
| 1970 class BoxDoubleSlowPath : public SlowPathCode { | 1989 class LoadFieldSlowPath : public SlowPathCode { |
| 1971 public: | 1990 public: |
| 1972 explicit BoxDoubleSlowPath(Instruction* instruction) | 1991 explicit LoadFieldSlowPath(Instruction* instruction) |
| 1973 : instruction_(instruction) { } | 1992 : instruction_(instruction) { } |
| 1974 | 1993 |
| 1975 virtual void EmitNativeCode(FlowGraphCompiler* compiler) { | 1994 virtual void EmitNativeCode(FlowGraphCompiler* compiler) { |
| 1976 __ Comment("BoxDoubleSlowPath"); | 1995 __ Comment("LoadFieldSlowPath"); |
| 1977 __ Bind(entry_label()); | 1996 __ Bind(entry_label()); |
| 1978 const Class& double_class = compiler->double_class(); | 1997 const Class& double_class = compiler->double_class(); |
| 1979 const Code& stub = | 1998 const Code& stub = |
| 1980 Code::Handle(StubCode::GetAllocationStubForClass(double_class)); | 1999 Code::Handle(StubCode::GetAllocationStubForClass(double_class)); |
| 1981 const ExternalLabel label(double_class.ToCString(), stub.EntryPoint()); | 2000 const ExternalLabel label(double_class.ToCString(), stub.EntryPoint()); |
| 1982 | 2001 |
| 1983 LocationSummary* locs = instruction_->locs(); | 2002 LocationSummary* locs = instruction_->locs(); |
| 1984 locs->live_registers()->Remove(locs->out()); | 2003 locs->live_registers()->Remove(locs->out()); |
| 1985 | 2004 |
| 1986 compiler->SaveLiveRegisters(locs); | 2005 compiler->SaveLiveRegisters(locs); |
| 1987 compiler->GenerateCall(Scanner::kNoSourcePos, // No token position. | 2006 compiler->GenerateCall(Scanner::kNoSourcePos, // No token position. |
| 1988 &label, | 2007 &label, |
| 1989 PcDescriptors::kOther, | 2008 PcDescriptors::kOther, |
| 1990 locs); | 2009 locs); |
| 1991 if (locs->out().reg() != V0) { | 2010 if (locs->out().reg() != V0) { |
| 1992 __ mov(locs->out().reg(), V0); | 2011 __ mov(locs->out().reg(), V0); |
| 1993 } | 2012 } |
| 1994 compiler->RestoreLiveRegisters(locs); | 2013 compiler->RestoreLiveRegisters(locs); |
| 1995 | 2014 |
| 1996 __ b(exit_label()); | 2015 __ b(exit_label()); |
| 1997 } | 2016 } |
| 1998 | 2017 |
| 2018 Label* double_entry_label() { |
| 2019 // Use default SlowPathCode label for double. |
| 2020 return entry_label(); |
| 2021 } |
| 2022 Label* double_exit_label() { |
| 2023 // Use default SlowPathCode label for double. |
| 2024 return exit_label(); |
| 2025 } |
| 2026 |
| 1999 private: | 2027 private: |
| 2000 Instruction* instruction_; | 2028 Instruction* instruction_; |
| 2001 }; | 2029 }; |
| 2002 | 2030 |
| 2003 | 2031 |
| 2004 LocationSummary* LoadFieldInstr::MakeLocationSummary(bool opt) const { | 2032 LocationSummary* LoadFieldInstr::MakeLocationSummary(bool opt) const { |
| 2005 const intptr_t kNumInputs = 1; | 2033 const intptr_t kNumInputs = 1; |
| 2006 const intptr_t kNumTemps = 0; | 2034 const intptr_t kNumTemps = 0; |
| 2007 LocationSummary* locs = | 2035 LocationSummary* locs = |
| 2008 new LocationSummary( | 2036 new LocationSummary( |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2041 UNREACHABLE(); | 2069 UNREACHABLE(); |
| 2042 } | 2070 } |
| 2043 return; | 2071 return; |
| 2044 } | 2072 } |
| 2045 | 2073 |
| 2046 Label done; | 2074 Label done; |
| 2047 Register result_reg = locs()->out().reg(); | 2075 Register result_reg = locs()->out().reg(); |
| 2048 if (IsPotentialUnboxedLoad()) { | 2076 if (IsPotentialUnboxedLoad()) { |
| 2049 Register temp = locs()->temp(1).reg(); | 2077 Register temp = locs()->temp(1).reg(); |
| 2050 DRegister value = locs()->temp(0).fpu_reg(); | 2078 DRegister value = locs()->temp(0).fpu_reg(); |
| 2079 LoadFieldSlowPath* slow_path = new LoadFieldSlowPath(this); |
| 2080 compiler->AddSlowPathCode(slow_path); |
| 2051 | 2081 |
| 2052 Label load_pointer; | 2082 Label load_pointer; |
| 2053 Label load_double; | 2083 Label load_double; |
| 2054 | 2084 |
| 2055 __ LoadObject(result_reg, Field::ZoneHandle(field()->raw())); | 2085 __ LoadObject(result_reg, Field::ZoneHandle(field()->raw())); |
| 2056 | 2086 |
| 2057 FieldAddress field_cid_operand(result_reg, Field::guarded_cid_offset()); | 2087 FieldAddress field_cid_operand(result_reg, Field::guarded_cid_offset()); |
| 2058 FieldAddress field_nullability_operand(result_reg, | 2088 FieldAddress field_nullability_operand(result_reg, |
| 2059 Field::is_nullable_offset()); | 2089 Field::is_nullable_offset()); |
| 2060 | 2090 |
| 2061 __ lw(temp, field_nullability_operand); | 2091 __ lw(temp, field_nullability_operand); |
| 2062 __ BranchEqual(temp, kNullCid, &load_pointer); | 2092 __ BranchEqual(temp, kNullCid, &load_pointer); |
| 2063 | 2093 |
| 2064 __ lw(temp, field_cid_operand); | 2094 __ lw(temp, field_cid_operand); |
| 2065 __ BranchEqual(temp, kDoubleCid, &load_double); | 2095 __ BranchEqual(temp, kDoubleCid, &load_double); |
| 2066 | 2096 |
| 2067 // Fall through. | 2097 // Fall through. |
| 2068 __ b(&load_pointer); | 2098 __ b(&load_pointer); |
| 2069 | 2099 |
| 2070 __ Bind(&load_double); | 2100 { |
| 2101 __ Bind(&load_double); |
| 2071 | 2102 |
| 2072 BoxDoubleSlowPath* slow_path = new BoxDoubleSlowPath(this); | 2103 if (!compiler->is_optimizing()) { |
| 2073 compiler->AddSlowPathCode(slow_path); | 2104 locs()->live_registers()->Add(locs()->in(0)); |
| 2105 } |
| 2074 | 2106 |
| 2075 if (!compiler->is_optimizing()) { | 2107 __ TryAllocate(compiler->double_class(), |
| 2076 locs()->live_registers()->Add(locs()->in(0)); | 2108 slow_path->double_entry_label(), |
| 2109 result_reg, |
| 2110 temp); |
| 2111 __ Bind(slow_path->double_exit_label()); |
| 2112 __ lw(temp, FieldAddress(instance_reg, offset_in_bytes())); |
| 2113 __ LoadDFromOffset(value, temp, Double::value_offset() - kHeapObjectTag); |
| 2114 __ StoreDToOffset(value, |
| 2115 result_reg, |
| 2116 Double::value_offset() - kHeapObjectTag); |
| 2117 __ b(&done); |
| 2077 } | 2118 } |
| 2078 | 2119 |
| 2079 __ TryAllocate(compiler->double_class(), | |
| 2080 slow_path->entry_label(), | |
| 2081 result_reg, | |
| 2082 temp); | |
| 2083 __ Bind(slow_path->exit_label()); | |
| 2084 __ lw(temp, FieldAddress(instance_reg, offset_in_bytes())); | |
| 2085 __ LoadDFromOffset(value, temp, Double::value_offset() - kHeapObjectTag); | |
| 2086 __ StoreDToOffset(value, | |
| 2087 result_reg, | |
| 2088 Double::value_offset() - kHeapObjectTag); | |
| 2089 __ b(&done); | |
| 2090 __ Bind(&load_pointer); | 2120 __ Bind(&load_pointer); |
| 2091 } | 2121 } |
| 2092 __ lw(result_reg, Address(instance_reg, offset_in_bytes() - kHeapObjectTag)); | 2122 __ lw(result_reg, Address(instance_reg, offset_in_bytes() - kHeapObjectTag)); |
| 2093 __ Bind(&done); | 2123 __ Bind(&done); |
| 2094 } | 2124 } |
| 2095 | 2125 |
| 2096 | 2126 |
| 2097 LocationSummary* InstantiateTypeInstr::MakeLocationSummary(bool opt) const { | 2127 LocationSummary* InstantiateTypeInstr::MakeLocationSummary(bool opt) const { |
| 2098 const intptr_t kNumInputs = 1; | 2128 const intptr_t kNumInputs = 1; |
| 2099 const intptr_t kNumTemps = 0; | 2129 const intptr_t kNumTemps = 0; |
| (...skipping 828 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2928 } else if (right_cid == kSmiCid) { | 2958 } else if (right_cid == kSmiCid) { |
| 2929 __ andi(CMPRES1, left, Immediate(kSmiTagMask)); | 2959 __ andi(CMPRES1, left, Immediate(kSmiTagMask)); |
| 2930 } else { | 2960 } else { |
| 2931 __ or_(TMP, left, right); | 2961 __ or_(TMP, left, right); |
| 2932 __ andi(CMPRES1, TMP, Immediate(kSmiTagMask)); | 2962 __ andi(CMPRES1, TMP, Immediate(kSmiTagMask)); |
| 2933 } | 2963 } |
| 2934 __ beq(CMPRES1, ZR, deopt); | 2964 __ beq(CMPRES1, ZR, deopt); |
| 2935 } | 2965 } |
| 2936 | 2966 |
| 2937 | 2967 |
| 2968 class BoxDoubleSlowPath : public SlowPathCode { |
| 2969 public: |
| 2970 explicit BoxDoubleSlowPath(Instruction* instruction) |
| 2971 : instruction_(instruction) { } |
| 2972 |
| 2973 virtual void EmitNativeCode(FlowGraphCompiler* compiler) { |
| 2974 __ Comment("BoxDoubleSlowPath"); |
| 2975 __ Bind(entry_label()); |
| 2976 const Class& double_class = compiler->double_class(); |
| 2977 const Code& stub = |
| 2978 Code::Handle(StubCode::GetAllocationStubForClass(double_class)); |
| 2979 const ExternalLabel label(double_class.ToCString(), stub.EntryPoint()); |
| 2980 |
| 2981 LocationSummary* locs = instruction_->locs(); |
| 2982 locs->live_registers()->Remove(locs->out()); |
| 2983 |
| 2984 compiler->SaveLiveRegisters(locs); |
| 2985 compiler->GenerateCall(Scanner::kNoSourcePos, // No token position. |
| 2986 &label, |
| 2987 PcDescriptors::kOther, |
| 2988 locs); |
| 2989 if (locs->out().reg() != V0) { |
| 2990 __ mov(locs->out().reg(), V0); |
| 2991 } |
| 2992 compiler->RestoreLiveRegisters(locs); |
| 2993 |
| 2994 __ b(exit_label()); |
| 2995 } |
| 2996 |
| 2997 private: |
| 2998 Instruction* instruction_; |
| 2999 }; |
| 3000 |
| 3001 |
| 2938 LocationSummary* BoxDoubleInstr::MakeLocationSummary(bool opt) const { | 3002 LocationSummary* BoxDoubleInstr::MakeLocationSummary(bool opt) const { |
| 2939 const intptr_t kNumInputs = 1; | 3003 const intptr_t kNumInputs = 1; |
| 2940 const intptr_t kNumTemps = 1; | 3004 const intptr_t kNumTemps = 1; |
| 2941 LocationSummary* summary = | 3005 LocationSummary* summary = |
| 2942 new LocationSummary(kNumInputs, | 3006 new LocationSummary(kNumInputs, |
| 2943 kNumTemps, | 3007 kNumTemps, |
| 2944 LocationSummary::kCallOnSlowPath); | 3008 LocationSummary::kCallOnSlowPath); |
| 2945 summary->set_in(0, Location::RequiresFpuRegister()); | 3009 summary->set_in(0, Location::RequiresFpuRegister()); |
| 2946 summary->set_temp(0, Location::RequiresRegister()); | 3010 summary->set_temp(0, Location::RequiresRegister()); |
| 2947 summary->set_out(Location::RequiresRegister()); | 3011 summary->set_out(Location::RequiresRegister()); |
| (...skipping 1296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4244 compiler->GenerateCall(token_pos(), | 4308 compiler->GenerateCall(token_pos(), |
| 4245 &label, | 4309 &label, |
| 4246 PcDescriptors::kOther, | 4310 PcDescriptors::kOther, |
| 4247 locs()); | 4311 locs()); |
| 4248 __ Drop(2); // Discard type arguments and receiver. | 4312 __ Drop(2); // Discard type arguments and receiver. |
| 4249 } | 4313 } |
| 4250 | 4314 |
| 4251 } // namespace dart | 4315 } // namespace dart |
| 4252 | 4316 |
| 4253 #endif // defined TARGET_ARCH_MIPS | 4317 #endif // defined TARGET_ARCH_MIPS |
| OLD | NEW |