| 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_X64. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_X64. |
| 6 #if defined(TARGET_ARCH_X64) | 6 #if defined(TARGET_ARCH_X64) |
| 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 1564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1575 | 1575 |
| 1576 | 1576 |
| 1577 LocationSummary* StoreInstanceFieldInstr::MakeLocationSummary(Isolate* isolate, | 1577 LocationSummary* StoreInstanceFieldInstr::MakeLocationSummary(Isolate* isolate, |
| 1578 bool opt) const { | 1578 bool opt) const { |
| 1579 const intptr_t kNumInputs = 2; | 1579 const intptr_t kNumInputs = 2; |
| 1580 const intptr_t kNumTemps = | 1580 const intptr_t kNumTemps = |
| 1581 (IsUnboxedStore() && opt) ? 2 : | 1581 (IsUnboxedStore() && opt) ? 2 : |
| 1582 ((IsPotentialUnboxedStore()) ? 3 : 0); | 1582 ((IsPotentialUnboxedStore()) ? 3 : 0); |
| 1583 LocationSummary* summary = new(isolate) LocationSummary( | 1583 LocationSummary* summary = new(isolate) LocationSummary( |
| 1584 isolate, kNumInputs, kNumTemps, | 1584 isolate, kNumInputs, kNumTemps, |
| 1585 !field().IsNull() && | 1585 ((IsUnboxedStore() && opt && is_initialization_) || |
| 1586 ((field().guarded_cid() == kIllegalCid) || is_initialization_) | 1586 IsPotentialUnboxedStore()) |
| 1587 ? LocationSummary::kCallOnSlowPath | 1587 ? LocationSummary::kCallOnSlowPath |
| 1588 : LocationSummary::kNoCall); | 1588 : LocationSummary::kNoCall); |
| 1589 | 1589 |
| 1590 summary->set_in(0, Location::RequiresRegister()); | 1590 summary->set_in(0, Location::RequiresRegister()); |
| 1591 if (IsUnboxedStore() && opt) { | 1591 if (IsUnboxedStore() && opt) { |
| 1592 summary->set_in(1, Location::RequiresFpuRegister()); | 1592 summary->set_in(1, Location::RequiresFpuRegister()); |
| 1593 summary->set_temp(0, Location::RequiresRegister()); | 1593 summary->set_temp(0, Location::RequiresRegister()); |
| 1594 summary->set_temp(1, Location::RequiresRegister()); | 1594 summary->set_temp(1, Location::RequiresRegister()); |
| 1595 } else if (IsPotentialUnboxedStore()) { | 1595 } else if (IsPotentialUnboxedStore()) { |
| 1596 summary->set_in(1, ShouldEmitStoreBarrier() | 1596 summary->set_in(1, ShouldEmitStoreBarrier() |
| (...skipping 4226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5823 PcDescriptors::kOther, | 5823 PcDescriptors::kOther, |
| 5824 locs()); | 5824 locs()); |
| 5825 __ Drop(ArgumentCount()); // Discard arguments. | 5825 __ Drop(ArgumentCount()); // Discard arguments. |
| 5826 } | 5826 } |
| 5827 | 5827 |
| 5828 } // namespace dart | 5828 } // namespace dart |
| 5829 | 5829 |
| 5830 #undef __ | 5830 #undef __ |
| 5831 | 5831 |
| 5832 #endif // defined TARGET_ARCH_X64 | 5832 #endif // defined TARGET_ARCH_X64 |
| OLD | NEW |