| 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 1738 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1749 | 1749 |
| 1750 | 1750 |
| 1751 LocationSummary* StoreInstanceFieldInstr::MakeLocationSummary(Isolate* isolate, | 1751 LocationSummary* StoreInstanceFieldInstr::MakeLocationSummary(Isolate* isolate, |
| 1752 bool opt) const { | 1752 bool opt) const { |
| 1753 const intptr_t kNumInputs = 2; | 1753 const intptr_t kNumInputs = 2; |
| 1754 const intptr_t kNumTemps = | 1754 const intptr_t kNumTemps = |
| 1755 (IsUnboxedStore() && opt) ? 2 : | 1755 (IsUnboxedStore() && opt) ? 2 : |
| 1756 ((IsPotentialUnboxedStore()) ? 3 : 0); | 1756 ((IsPotentialUnboxedStore()) ? 3 : 0); |
| 1757 LocationSummary* summary = new(isolate) LocationSummary( | 1757 LocationSummary* summary = new(isolate) LocationSummary( |
| 1758 isolate, kNumInputs, kNumTemps, | 1758 isolate, kNumInputs, kNumTemps, |
| 1759 !field().IsNull() && | 1759 ((IsUnboxedStore() && opt && is_initialization_) || |
| 1760 ((field().guarded_cid() == kIllegalCid) || is_initialization_) | 1760 IsPotentialUnboxedStore()) |
| 1761 ? LocationSummary::kCallOnSlowPath | 1761 ? LocationSummary::kCallOnSlowPath |
| 1762 : LocationSummary::kNoCall); | 1762 : LocationSummary::kNoCall); |
| 1763 | 1763 |
| 1764 summary->set_in(0, Location::RequiresRegister()); | 1764 summary->set_in(0, Location::RequiresRegister()); |
| 1765 if (IsUnboxedStore() && opt) { | 1765 if (IsUnboxedStore() && opt) { |
| 1766 summary->set_in(1, Location::RequiresFpuRegister()); | 1766 summary->set_in(1, Location::RequiresFpuRegister()); |
| 1767 summary->set_temp(0, Location::RequiresRegister()); | 1767 summary->set_temp(0, Location::RequiresRegister()); |
| 1768 summary->set_temp(1, Location::RequiresRegister()); | 1768 summary->set_temp(1, Location::RequiresRegister()); |
| 1769 } else if (IsPotentialUnboxedStore()) { | 1769 } else if (IsPotentialUnboxedStore()) { |
| 1770 summary->set_in(1, ShouldEmitStoreBarrier() | 1770 summary->set_in(1, ShouldEmitStoreBarrier() |
| (...skipping 2910 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4681 compiler->GenerateCall(token_pos(), | 4681 compiler->GenerateCall(token_pos(), |
| 4682 &label, | 4682 &label, |
| 4683 PcDescriptors::kOther, | 4683 PcDescriptors::kOther, |
| 4684 locs()); | 4684 locs()); |
| 4685 __ Drop(ArgumentCount()); // Discard arguments. | 4685 __ Drop(ArgumentCount()); // Discard arguments. |
| 4686 } | 4686 } |
| 4687 | 4687 |
| 4688 } // namespace dart | 4688 } // namespace dart |
| 4689 | 4689 |
| 4690 #endif // defined TARGET_ARCH_MIPS | 4690 #endif // defined TARGET_ARCH_MIPS |
| OLD | NEW |