Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(151)

Side by Side Diff: runtime/vm/intermediate_language_mips.cc

Issue 330243003: Record field initializer stores with simple literals at compile-time. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/intermediate_language_ia32.cc ('k') | runtime/vm/intermediate_language_x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language_ia32.cc ('k') | runtime/vm/intermediate_language_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698