| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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_ARM64. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM64. |
| 6 #if defined(TARGET_ARCH_ARM64) | 6 #if defined(TARGET_ARCH_ARM64) |
| 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 1621 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1632 | 1632 |
| 1633 | 1633 |
| 1634 LocationSummary* StoreInstanceFieldInstr::MakeLocationSummary(Isolate* isolate, | 1634 LocationSummary* StoreInstanceFieldInstr::MakeLocationSummary(Isolate* isolate, |
| 1635 bool opt) const { | 1635 bool opt) const { |
| 1636 const intptr_t kNumInputs = 2; | 1636 const intptr_t kNumInputs = 2; |
| 1637 const intptr_t kNumTemps = | 1637 const intptr_t kNumTemps = |
| 1638 (IsUnboxedStore() && opt) ? 2 : | 1638 (IsUnboxedStore() && opt) ? 2 : |
| 1639 ((IsPotentialUnboxedStore()) ? 2 : 0); | 1639 ((IsPotentialUnboxedStore()) ? 2 : 0); |
| 1640 LocationSummary* summary = new(isolate) LocationSummary( | 1640 LocationSummary* summary = new(isolate) LocationSummary( |
| 1641 isolate, kNumInputs, kNumTemps, | 1641 isolate, kNumInputs, kNumTemps, |
| 1642 !field().IsNull() && | 1642 ((IsUnboxedStore() && opt && is_initialization_) || |
| 1643 ((field().guarded_cid() == kIllegalCid) || is_initialization_) | 1643 IsPotentialUnboxedStore()) |
| 1644 ? LocationSummary::kCallOnSlowPath | 1644 ? LocationSummary::kCallOnSlowPath |
| 1645 : LocationSummary::kNoCall); | 1645 : LocationSummary::kNoCall); |
| 1646 | 1646 |
| 1647 summary->set_in(0, Location::RequiresRegister()); | 1647 summary->set_in(0, Location::RequiresRegister()); |
| 1648 if (IsUnboxedStore() && opt) { | 1648 if (IsUnboxedStore() && opt) { |
| 1649 summary->set_in(1, Location::RequiresFpuRegister()); | 1649 summary->set_in(1, Location::RequiresFpuRegister()); |
| 1650 summary->set_temp(0, Location::RequiresRegister()); | 1650 summary->set_temp(0, Location::RequiresRegister()); |
| 1651 summary->set_temp(1, Location::RequiresRegister()); | 1651 summary->set_temp(1, Location::RequiresRegister()); |
| 1652 } else if (IsPotentialUnboxedStore()) { | 1652 } else if (IsPotentialUnboxedStore()) { |
| 1653 summary->set_in(1, ShouldEmitStoreBarrier() | 1653 summary->set_in(1, ShouldEmitStoreBarrier() |
| 1654 ? Location::WritableRegister() | 1654 ? Location::WritableRegister() |
| 1655 : Location::RequiresRegister()); | 1655 : Location::RequiresRegister()); |
| (...skipping 3672 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5328 compiler->GenerateCall(token_pos(), | 5328 compiler->GenerateCall(token_pos(), |
| 5329 &label, | 5329 &label, |
| 5330 PcDescriptors::kOther, | 5330 PcDescriptors::kOther, |
| 5331 locs()); | 5331 locs()); |
| 5332 __ Drop(ArgumentCount()); // Discard arguments. | 5332 __ Drop(ArgumentCount()); // Discard arguments. |
| 5333 } | 5333 } |
| 5334 | 5334 |
| 5335 } // namespace dart | 5335 } // namespace dart |
| 5336 | 5336 |
| 5337 #endif // defined TARGET_ARCH_ARM64 | 5337 #endif // defined TARGET_ARCH_ARM64 |
| OLD | NEW |