| 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/compiler.h" | 10 #include "vm/compiler.h" |
| (...skipping 1754 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1765 const intptr_t kNumInputs = 1; | 1765 const intptr_t kNumInputs = 1; |
| 1766 | 1766 |
| 1767 if (!opt || (field().guarded_list_length() == Field::kUnknownFixedLength)) { | 1767 if (!opt || (field().guarded_list_length() == Field::kUnknownFixedLength)) { |
| 1768 const intptr_t kNumTemps = 1; | 1768 const intptr_t kNumTemps = 1; |
| 1769 LocationSummary* summary = new(zone) LocationSummary( | 1769 LocationSummary* summary = new(zone) LocationSummary( |
| 1770 zone, kNumInputs, kNumTemps, LocationSummary::kNoCall); | 1770 zone, kNumInputs, kNumTemps, LocationSummary::kNoCall); |
| 1771 summary->set_in(0, Location::RequiresRegister()); | 1771 summary->set_in(0, Location::RequiresRegister()); |
| 1772 // We need temporaries for field object. | 1772 // We need temporaries for field object. |
| 1773 summary->set_temp(0, Location::RequiresRegister()); | 1773 summary->set_temp(0, Location::RequiresRegister()); |
| 1774 return summary; | 1774 return summary; |
| 1775 } else { | |
| 1776 LocationSummary* summary = new(zone) LocationSummary( | |
| 1777 zone, kNumInputs, 0, LocationSummary::kNoCall); | |
| 1778 summary->set_in(0, Location::RequiresRegister()); | |
| 1779 return summary; | |
| 1780 } | 1775 } |
| 1781 UNREACHABLE(); | 1776 LocationSummary* summary = new(zone) LocationSummary( |
| 1777 zone, kNumInputs, 0, LocationSummary::kNoCall); |
| 1778 summary->set_in(0, Location::RequiresRegister()); |
| 1779 return summary; |
| 1782 } | 1780 } |
| 1783 | 1781 |
| 1784 | 1782 |
| 1785 void GuardFieldLengthInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | 1783 void GuardFieldLengthInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
| 1786 if (field().guarded_list_length() == Field::kNoFixedLength) { | 1784 if (field().guarded_list_length() == Field::kNoFixedLength) { |
| 1787 if (Compiler::IsBackgroundCompilation()) { | 1785 if (Compiler::IsBackgroundCompilation()) { |
| 1788 // Field state changed while compiling. | 1786 // Field state changed while compiling. |
| 1789 Compiler::AbortBackgroundCompilation(deopt_id(), | 1787 Compiler::AbortBackgroundCompilation(deopt_id(), |
| 1790 "GuardFieldLengthInstr: field state changed while compiling"); | 1788 "GuardFieldLengthInstr: field state changed while compiling"); |
| 1791 } | 1789 } |
| (...skipping 3990 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5782 1, | 5780 1, |
| 5783 locs()); | 5781 locs()); |
| 5784 __ lw(result, Address(SP, 1 * kWordSize)); | 5782 __ lw(result, Address(SP, 1 * kWordSize)); |
| 5785 __ addiu(SP, SP, Immediate(2 * kWordSize)); | 5783 __ addiu(SP, SP, Immediate(2 * kWordSize)); |
| 5786 } | 5784 } |
| 5787 | 5785 |
| 5788 | 5786 |
| 5789 } // namespace dart | 5787 } // namespace dart |
| 5790 | 5788 |
| 5791 #endif // defined TARGET_ARCH_MIPS | 5789 #endif // defined TARGET_ARCH_MIPS |
| OLD | NEW |