| 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_ARM. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM. |
| 6 #if defined(TARGET_ARCH_ARM) | 6 #if defined(TARGET_ARCH_ARM) |
| 7 | 7 |
| 8 #include "vm/intermediate_language.h" | 8 #include "vm/intermediate_language.h" |
| 9 | 9 |
| 10 #include "vm/cpu.h" | 10 #include "vm/cpu.h" |
| (...skipping 1874 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1885 | 1885 |
| 1886 | 1886 |
| 1887 LocationSummary* StoreInstanceFieldInstr::MakeLocationSummary(Isolate* isolate, | 1887 LocationSummary* StoreInstanceFieldInstr::MakeLocationSummary(Isolate* isolate, |
| 1888 bool opt) const { | 1888 bool opt) const { |
| 1889 const intptr_t kNumInputs = 2; | 1889 const intptr_t kNumInputs = 2; |
| 1890 const intptr_t kNumTemps = | 1890 const intptr_t kNumTemps = |
| 1891 (IsUnboxedStore() && opt) ? 2 : | 1891 (IsUnboxedStore() && opt) ? 2 : |
| 1892 ((IsPotentialUnboxedStore()) ? 3 : 0); | 1892 ((IsPotentialUnboxedStore()) ? 3 : 0); |
| 1893 LocationSummary* summary = new(isolate) LocationSummary( | 1893 LocationSummary* summary = new(isolate) LocationSummary( |
| 1894 isolate, kNumInputs, kNumTemps, | 1894 isolate, kNumInputs, kNumTemps, |
| 1895 !field().IsNull() && | 1895 ((IsUnboxedStore() && opt && is_initialization_) || |
| 1896 ((field().guarded_cid() == kIllegalCid) || is_initialization_) | 1896 IsPotentialUnboxedStore()) |
| 1897 ? LocationSummary::kCallOnSlowPath | 1897 ? LocationSummary::kCallOnSlowPath |
| 1898 : LocationSummary::kNoCall); | 1898 : LocationSummary::kNoCall); |
| 1899 | 1899 |
| 1900 summary->set_in(0, Location::RequiresRegister()); | 1900 summary->set_in(0, Location::RequiresRegister()); |
| 1901 if (IsUnboxedStore() && opt) { | 1901 if (IsUnboxedStore() && opt) { |
| 1902 summary->set_in(1, Location::RequiresFpuRegister()); | 1902 summary->set_in(1, Location::RequiresFpuRegister()); |
| 1903 summary->set_temp(0, Location::RequiresRegister()); | 1903 summary->set_temp(0, Location::RequiresRegister()); |
| 1904 summary->set_temp(1, Location::RequiresRegister()); | 1904 summary->set_temp(1, Location::RequiresRegister()); |
| 1905 } else if (IsPotentialUnboxedStore()) { | 1905 } else if (IsPotentialUnboxedStore()) { |
| 1906 summary->set_in(1, ShouldEmitStoreBarrier() | 1906 summary->set_in(1, ShouldEmitStoreBarrier() |
| (...skipping 4446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6353 compiler->GenerateCall(token_pos(), | 6353 compiler->GenerateCall(token_pos(), |
| 6354 &label, | 6354 &label, |
| 6355 PcDescriptors::kOther, | 6355 PcDescriptors::kOther, |
| 6356 locs()); | 6356 locs()); |
| 6357 __ Drop(ArgumentCount()); // Discard arguments. | 6357 __ Drop(ArgumentCount()); // Discard arguments. |
| 6358 } | 6358 } |
| 6359 | 6359 |
| 6360 } // namespace dart | 6360 } // namespace dart |
| 6361 | 6361 |
| 6362 #endif // defined TARGET_ARCH_ARM | 6362 #endif // defined TARGET_ARCH_ARM |
| OLD | NEW |