Chromium Code Reviews| 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 1760 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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 { | 1775 } else { |
| 1776 LocationSummary* summary = new(zone) LocationSummary( | 1776 LocationSummary* summary = new(zone) LocationSummary( |
| 1777 zone, kNumInputs, 0, LocationSummary::kNoCall); | 1777 zone, kNumInputs, 0, LocationSummary::kNoCall); |
| 1778 summary->set_in(0, Location::RequiresRegister()); | 1778 summary->set_in(0, Location::RequiresRegister()); |
| 1779 return summary; | 1779 return summary; |
| 1780 } | 1780 } |
| 1781 UNREACHABLE(); | 1781 UNREACHABLE(); |
|
Florian Schneider
2016/08/29 21:44:06
I wonder if removing the UNREACHABLE would also fi
zra
2016/08/29 21:57:30
removed else
| |
| 1782 return NULL; | |
| 1782 } | 1783 } |
| 1783 | 1784 |
| 1784 | 1785 |
| 1785 void GuardFieldLengthInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | 1786 void GuardFieldLengthInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
| 1786 if (field().guarded_list_length() == Field::kNoFixedLength) { | 1787 if (field().guarded_list_length() == Field::kNoFixedLength) { |
| 1787 if (Compiler::IsBackgroundCompilation()) { | 1788 if (Compiler::IsBackgroundCompilation()) { |
| 1788 // Field state changed while compiling. | 1789 // Field state changed while compiling. |
| 1789 Compiler::AbortBackgroundCompilation(deopt_id(), | 1790 Compiler::AbortBackgroundCompilation(deopt_id(), |
| 1790 "GuardFieldLengthInstr: field state changed while compiling"); | 1791 "GuardFieldLengthInstr: field state changed while compiling"); |
| 1791 } | 1792 } |
| (...skipping 3990 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 5782 1, | 5783 1, |
| 5783 locs()); | 5784 locs()); |
| 5784 __ lw(result, Address(SP, 1 * kWordSize)); | 5785 __ lw(result, Address(SP, 1 * kWordSize)); |
| 5785 __ addiu(SP, SP, Immediate(2 * kWordSize)); | 5786 __ addiu(SP, SP, Immediate(2 * kWordSize)); |
| 5786 } | 5787 } |
| 5787 | 5788 |
| 5788 | 5789 |
| 5789 } // namespace dart | 5790 } // namespace dart |
| 5790 | 5791 |
| 5791 #endif // defined TARGET_ARCH_MIPS | 5792 #endif // defined TARGET_ARCH_MIPS |
| OLD | NEW |